PageSourceSearch

https://veashi-scan.netlify.app/assets/index-BhRt3Gbu.js

js veashi-scan.netlify.app collected 2026-10-03 11:34:21 UTC 1,990,753 bytes, 213 lines download raw bytes

vendor: 5,580 bytes, lines 1-9
1var xq=Object.defineProperty;var yC=e=>{throw TypeError(e)};var vq=(e,t,n)=>t in e?xq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var de=(e,t,n)=>vq(e,typeof t!="symbol"?t+"":t,n),Zx=(e,t,n)=>t.has(e)||yC("Cannot "+n);var q=(e,t,n)=>(Zx(e,t,"read from private field"),n?n.call(e):t.get(e)),Ce=(e,t,n)=>t.has(e)?yC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),se=(e,t,n,r)=>(Zx(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),je=(e,t,n)=>(Zx(e,t,"access private method"),n);var fu=(e,t,n,r)=>({set _(a){se(e,t,a,n)},get _(){return q(e,t,r)}});function IR(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var Eb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function NR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wq(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Qx={exports:{}},lf={},Xx={exports:{}},Ut={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var bC;function Eq(){if(bC)return Ut;bC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function m(O){return O===null||typeof O!="object"?null:(O=p&&O[p]||O["@@iterator"],typeof O=="function"?O:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,x={};function C(O,H,Z){this.props=O,this.context=H,this.refs=x,this.updater=Z||h}C.prototype.isReactComponent={},C.prototype.setState=function(O,H){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,H,"setState")},C.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function T(){}T.prototype=C.prototype;function w(O,H,Z){this.props=O,this.context=H,this.refs=x,this.updater=Z||h}var v=w.prototype=new T;v.constructor=w,y(v,C.prototype),v.isPureReactComponent=!0;var g=Array.isArray,A=Object.prototype.hasOwnProperty,S={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function k(O,H,Z){var ee,ae={},ie=null,fe=null;if(H!=null)for(ee in H.ref!==void 0&&(fe=H.ref),H.key!==void 0&&(ie=""+H.key),H)A.call(H,ee)&&!_.hasOwnProperty(ee)&&(ae[ee]=H[ee]);var le=arguments.length-2;if(le===1)ae.children=Z;else if(1<le){for(var xe=Array(le),he=0;he<le;he++)xe[he]=arguments[he+2];ae.children=xe}if(O&&O.defaultProps)for(ee in le=O.defaultProps,le)ae[ee]===void 0&&(ae[ee]=le[ee]);return{$$typeof:e,type:O,key:ie,ref:fe,props:ae,_owner:S.current}}function R(O,H){return{$$typeof:e,type:O.type,key:H,ref:O.ref,props:O.props,_owner:O._owner}}function D(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function B(O){var H={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(Z){return H[Z]})}var M=/\/+/g;function E(O,H){return typeof O=="object"&&O!==null&&O.key!=null?B(""+O.key):H.toString(36)}function N(O,H,Z,ee,ae){var ie=typeof O;(ie==="undefined"||ie==="boolean")&&(O=null);var fe=!1;if(O===null)fe=!0;else switch(ie){case"string":case"number":fe=!0;break;case"object":switch(O.$$typeof){case e:case t:fe=!0}}if(fe)return fe=O,ae=ae(fe),O=ee===""?"."+E(fe,0):ee,g(ae)?(Z="",O!=null&&(Z=O.replace(M,"$&/")+"/"),N(ae,H,Z,"",function(he){return he})):ae!=null&&(D(ae)&&(ae=R(ae,Z+(!ae.key||fe&&fe.key===ae.key?"":(""+ae.key).replace(M,"$&/")+"/")+O)),H.push(ae)),1;if(fe=0,ee=ee===""?".":ee+":",g(O))for(var le=0;le<O.length;le++){ie=O[le];var xe=ee+E(ie,le);fe+=N(ie,H,Z,xe,ae)}else if(xe=m(O),typeof xe=="function")for(O=xe.call(O),le=0;
vendor: 10,638 bytes, lines 9-33
9!(ie=O.next()).done;)ie=ie.value,xe=ee+E(ie,le++),fe+=N(ie,H,Z,xe,ae);else if(ie==="object")throw H=String(O),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return fe}function I(O,H,Z){if(O==null)return O;var ee=[],ae=0;return N(O,ee,"","",function(ie){return H.call(Z,ie,ae++)}),ee}function F(O){if(O._status===-1){var H=O._result;H=H(),H.then(function(Z){(O._status===0||O._status===-1)&&(O._status=1,O._result=Z)},function(Z){(O._status===0||O._status===-1)&&(O._status=2,O._result=Z)}),O._status===-1&&(O._status=0,O._result=H)}if(O._status===1)return O._result.default;throw O._result}var z={current:null},U={transition:null},V={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:U,ReactCurrentOwner:S};function $(){throw Error("act(...) is not supported in production builds of React.")}return Ut.Children={map:I,forEach:function(O,H,Z){I(O,function(){H.apply(this,arguments)},Z)},count:function(O){var H=0;return I(O,function(){H++}),H},toArray:function(O){return I(O,function(H){return H})||[]},only:function(O){if(!D(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},Ut.Component=C,Ut.Fragment=n,Ut.Profiler=a,Ut.PureComponent=w,Ut.StrictMode=r,Ut.Suspense=c,Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,Ut.act=$,Ut.cloneElement=function(O,H,Z){if(O==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+O+".");var ee=y({},O.props),ae=O.key,ie=O.ref,fe=O._owner;if(H!=null){if(H.ref!==void 0&&(ie=H.ref,fe=S.current),H.key!==void 0&&(ae=""+H.key),O.type&&O.type.defaultProps)var le=O.type.defaultProps;for(xe in H)A.call(H,xe)&&!_.hasOwnProperty(xe)&&(ee[xe]=H[xe]===void 0&&le!==void 0?le[xe]:H[xe])}var xe=arguments.length-2;if(xe===1)ee.children=Z;else if(1<xe){le=Array(xe);for(var he=0;he<xe;he++)le[he]=arguments[he+2];ee.children=le}return{$$typeof:e,type:O.type,key:ae,ref:ie,props:ee,_owner:fe}},Ut.createContext=function(O){return O={$$typeof:i,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},O.Provider={$$typeof:s,_context:O},O.Consumer=O},Ut.createElement=k,Ut.createFactory=function(O){var H=k.bind(null,O);return H.type=O,H},Ut.createRef=function(){return{current:null}},Ut.forwardRef=function(O){return{$$typeof:l,render:O}},Ut.isValidElement=D,Ut.lazy=function(O){return{$$typeof:f,_payload:{_status:-1,_result:O},_init:F}},Ut.memo=function(O,H){return{$$typeof:u,type:O,compare:H===void 0?null:H}},Ut.startTransition=function(O){var H=U.transition;U.transition={};try{O()}finally{U.transition=H}},Ut.unstable_act=$,Ut.useCallback=function(O,H){return z.current.useCallback(O,H)},Ut.useContext=function(O){return z.current.useContext(O)},Ut.useDebugValue=function(){},Ut.useDeferredValue=function(O){return z.current.useDeferredValue(O)},Ut.useEffect=function(O,H){return z.current.useEffect(O,H)},Ut.useId=function(){return z.current.useId()},Ut.useImperativeHandle=function(O,H,Z){return z.current.useImperativeHandle(O,H,Z)},Ut.useInsertionEffect=function(O,H){return z.current.useInsertionEffect(O,H)},Ut.useLayoutEffect=function(O,H){return z.current.useLayoutEffect(O,H)},Ut.useMemo=function(O,H){return z.current.useMemo(O,H)},Ut.useReducer=function(O,H,Z){return z.current.useReducer(O,H,Z)},Ut.useRef=function(O){return z.current.useRef(O)},Ut.useState=function(O){return z.current.useState(O)},Ut.useSyncExternalStore=function(O,H,Z){return z.current.useSyncExternalStore(O,H,Z)},Ut.useTransition=function(){return z.current.useTransition()},Ut.version="18.3.1",Ut}var gC;function r8(){return gC||(gC=1,Xx.exports=Eq()),Xx.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var xC;function kq(){if(xC)return lf;xC=1;var e=r8(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var f,p={},m=null,h=null;u!==void 0&&(m=""+u),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(h=c.ref);for(f in c)r.call(c,f)&&!s.hasOwnProperty(f)&&(p[f]=c[f]);if(l&&l.defaultProps)for(f in c=l.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:l,key:m,ref:h,props:p,_owner:a.current}}return lf.Fragment=n,lf.jsx=i,lf.jsxs=i,lf}var vC;function Cq(){return vC||(vC=1,Qx.exports=kq()),Qx.exports}var W=Cq(),G=r8();const Pe=NR(G),Aq=IR({__proto__:null,default:Pe},[G]);var ty={},Yx={exports:{}},Vr={},ev={exports:{}},tv={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var wC;function Pq(){return wC||(wC=1,(function(e){function t(U,V){var $=U.length;U.push(V);e:for(;0<$;){var O=$-1>>>1,H=U[O];if(0<a(H,V))U[O]=V,U[$]=H,$=O;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var V=U[0],$=U.pop();if($!==V){U[0]=$;e:for(var O=0,H=U.length,Z=H>>>1;O<Z;){var ee=2*(O+1)-1,ae=U[ee],ie=ee+1,fe=U[ie];if(0>a(ae,$))ie<H&&0>a(fe,ae)?(U[O]=fe,U[ie]=$,O=ie):(U[O]=ae,U[ee]=$,O=ee);else if(ie<H&&0>a(fe,$))U[O]=fe,U[ie]=$,O=ie;else break e}}return V}function a(U,V){var $=U.sortIndex-V.sortIndex;return $!==0?$:U.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],u=[],f=1,p=null,m=3,h=!1,y=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(U){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=U)r(u),V.sortIndex=V.expirationTime,t(c,V);else break;V=n(u)}}function g(U){if(x=!1,v(U),!y)if(n(c)!==null)y=!0,F(A);else{var V=n(u);V!==null&&z(g,V.startTime-U)}}function A(U,V){y=!1,x&&(x=!1,T(k),k=-1),h=!0;var $=m;try{for(v(V),p=n(c);p!==null&&(!(p.expirationTime>V)||U&&!B());){var O=p.callback;if(typeof O=="function"){p.callback=null,m=p.priorityLevel;var H=O(p.expirationTime<=V);V=e.unstable_now(),typeof H=="function"?p.callback=H:p===n(c)&&r(c),v(V)}else r(c);p=n(c)}if(p!==null)var Z=!0;else{var ee=n(u);ee!==null&&z(g,ee.startTime-V),Z=!1}return Z}finally{p=null,m=$,h=!1}}var S=!1,_=null,k=-1,R=5,D=-1;function B(){return!(e.unstable_now()-D<R)}function M(){if(_!==null){var U=e.unstable_now();D=U;var V=!0;try{V=_(!0,U)}finally{V?E():(S=!1,_=null)}}else S=!1}var E;if(typeof w=="function")E=function(){w(M)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,I=N.port2;N.port1.onmessage=M,E=function(){I.postMessage(null)}}else E=function(){C(M,0)};function F(U){_=U,S||(S=!0,E())}function z(U,V){k=C(function(){U(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,F(A))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(U){switch(m){case 1:case 2:case 3:var V=3;break;default:V=m}var $=m;m=V;try{return U()}finally{m=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,V){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var $=m;m=U;try{return V()}finally{m=$}},e.unstable_scheduleCallback=function(U,V,$){var O=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?O+$:O):$=O,U){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=$+H,U={id:f++,callback:V,priorityLevel:U,startTime:$,expirationTime:H,sortIndex:-1},$>O?(U.sortIndex=$,t(u,U),n(c)===null&&U===n(u)&&(x?(T(k),k=-1):x=!0,z(g,$-O))):(U.sortIndex=H,t(c,U),y||h||(y=!0,F(A))),U},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(U){var V=m;return function(){var $=m;m=V;try{return U.apply(this,arguments)}finally{m=$}}}})(tv)),tv}var EC;function Tq(){return EC||(EC=1,ev.exports=Pq()),ev.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var kC;function Sq(){if(kC)return Vr;kC=1;var e=r8(),t=Tq();function n(o){for(var d="https://reactjs.org/docs/error-decoder.html?invariant="+o,b=1;b<arguments.length;b++)d+="&args[]="+encodeURIComponent(arguments[b]);return"Minified React error #"+o+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function s(o,d){i(o,d),i(o+"Capture",d)}function i(o,d){for(a[o]=d,o=0;o<d.length;o++)r.add(d[o])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function m(o){return c.call(p,o)?!0:c.call(f,o)?!1:u.test(o)?p[o]=!0:(f[o]=!0,!1)}function h(o,d,b,P){if(b!==null&&b.type===0)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":return P?!1:b!==null?!b.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function y(o,d,b,P){if(d===null||typeof d>"u"||h(o,d,b,P))return!0;
vendor: 13,624 bytes, lines 33-37
33if(P)return!1;if(b!==null)switch(b.type){case 3:return!d;case 4:return d===!1;case 5:return isNaN(d);case 6:return isNaN(d)||1>d}return!1}function x(o,d,b,P,L,K,te){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=P,this.attributeNamespace=L,this.mustUseProperty=b,this.propertyName=o,this.type=d,this.sanitizeURL=K,this.removeEmptyString=te}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){C[o]=new x(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var d=o[0];C[d]=new x(d,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){C[o]=new x(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){C[o]=new x(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){C[o]=new x(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){C[o]=new x(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){C[o]=new x(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){C[o]=new x(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){C[o]=new x(o,5,!1,o.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function w(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var d=o.replace(T,w);C[d]=new x(d,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var d=o.replace(T,w);C[d]=new x(d,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var d=o.replace(T,w);C[d]=new x(d,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){C[o]=new x(o,1,!1,o.toLowerCase(),null,!1,!1)}),C.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){C[o]=new x(o,1,!1,o.toLowerCase(),null,!0,!0)});function v(o,d,b,P){var L=C.hasOwnProperty(d)?C[d]:null;(L!==null?L.type!==0:P||!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(y(d,b,L,P)&&(b=null),P||L===null?m(d)&&(b===null?o.removeAttribute(d):o.setAttribute(d,""+b)):L.mustUseProperty?o[L.propertyName]=b===null?L.type===3?!1:"":b:(d=L.attributeName,P=L.attributeNamespace,b===null?o.removeAttribute(d):(L=L.type,b=L===3||L===4&&b===!0?"":""+b,P?o.setAttributeNS(P,d,b):o.setAttribute(d,b))))}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),S=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),B=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),U=Symbol.iterator;function V(o){return o===null||typeof o!="object"?null:(o=U&&o[U]||o["@@iterator"],typeof o=="function"?o:null)}var $=Object.assign,O;function H(o){if(O===void 0)try{throw Error()}catch(b){var d=b.stack.trim().match(/\n( *(at )?)/);O=d&&d[1]||""}return`
34`+O+o}var Z=!1;function ee(o,d){if(!o||Z)return"";Z=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(d)if(d=function(){throw Error()},Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(_e){var P=_e}Reflect.construct(o,[],d)}else{try{d.call()}catch(_e){P=_e}o.call(d.prototype)}else{try{throw Error()}catch(_e){P=_e}o()}}catch(_e){if(_e&&P&&typeof _e.stack=="string"){for(var L=_e.stack.split(`
35`),K=P.stack.split(`
36`),te=L.length-1,oe=K.length-1;1<=te&&0<=oe&&L[te]!==K[oe];)oe--;for(;1<=te&&0<=oe;te--,oe--)if(L[te]!==K[oe]){if(te!==1||oe!==1)do if(te--,oe--,0>oe||L[te]!==K[oe]){var ye=`
37`+L[te].replace(" at new "," at ");return o.displayName&&ye.includes("<anonymous>")&&(ye=ye.replace("<anonymous>",o.displayName)),ye}while(1<=te&&0<=oe);break}}}finally{Z=!1,Error.prepareStackTrace=b}return(o=o?o.displayName||o.name:"")?H(o):""}function ae(o){switch(o.tag){case 5:return H(o.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return o=ee(o.type,!1),o;case 11:return o=ee(o.type.render,!1),o;case 1:return o=ee(o.type,!0),o;default:return""}}function ie(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case _:return"Fragment";case S:return"Portal";case R:return"Profiler";case k:return"StrictMode";case E:return"Suspense";case N:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case B:return(o.displayName||"Context")+".Consumer";case D:return(o._context.displayName||"Context")+".Provider";case M:var d=o.render;return o=o.displayName,o||(o=d.displayName||d.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case I:return d=o.displayName||null,d!==null?d:ie(o.type)||"Memo";case F:d=o._payload,o=o._init;try{return ie(o(d))}catch{}}return null}function fe(o){var d=o.type;switch(o.tag){case 24:return"Cache";case 9:return(d.displayName||"Context")+".Consumer";case 10:return(d._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=d.render,o=o.displayName||o.name||"",d.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return d;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ie(d);case 8:return d===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d}return null}function le(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function xe(o){var d=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function he(o){var d=xe(o)?"checked":"value",b=Object.getOwnPropertyDescriptor(o.constructor.prototype,d),P=""+o[d];if(!o.hasOwnProperty(d)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var L=b.get,K=b.set;return Object.defineProperty(o,d,{configurable:!0,get:function(){return L.call(this)},set:function(te){P=""+te,K.call(this,te)}}),Object.defineProperty(o,d,{enumerable:b.enumerable}),{getValue:function(){return P},setValue:function(te){P=""+te},stopTracking:function(){o._valueTracker=null,delete o[d]}}}}function De(o){o._valueTracker||(o._valueTracker=he(o))}function Se(o){if(!o)return!1;var d=o._valueTracker;if(!d)return!0;var b=d.getValue(),P="";return o&&(P=xe(o)?o.checked?"true":"false":o.value),o=P,o!==b?(d.setValue(o),!0):!1}function ke(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function ge(o,d){var b=d.checked;return $({},d,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:b??o._wrapperState.initialChecked})}function J(o,d){var b=d.defaultValue==null?"":d.defaultValue,P=d.checked!=null?d.checked:d.defaultChecked;b=le(d.value!=null?d.value:b),o._wrapperState={initialChecked:P,initialValue:b,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function Y(o,d){d=d.checked,d!=null&&v(o,"checked",d,!1)}function re(o,d){Y(o,d);var b=le(d.value),P=d.type;if(b!=null)P==="number"?(b===0&&o.value===""||o.value!=b)&&(o.value=""+b):o.value!==""+b&&(o.value=""+b);else if(P==="submit"||P==="reset"){o.removeAttribute("value");return}d.hasOwnProperty("value")?Me(o,d.type,b):d.hasOwnProperty("defaultValue")&&Me(o,d.type,le(d.defaultValue)),d.checked==null&&d.defaultChecked!=null&&(o.defaultChecked=!!d.defaultChecked)}function ce(o,d,b){if(d.hasOwnProperty("value")||d.hasOwnProperty("defaultValue")){var P=d.type;if(!(P!=="submit"&&P!=="reset"||d.value!==void 0&&d.value!==null))return;d=""+o._wrapperState.initialValue,b||d===o.value||(o.value=d),o.defaultValue=d}b=o.name,b!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,b!==""&&(o.name=b)}function Me(o,d,b){(d!=="number"||ke(o.ownerDocument)!==o)&&(b==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+b&&(o.defaultValue=""+b))}var Ze=Array.isArray;function ue(o,d,b,P){if(o=o.options,d){d={};for(var L=0;L<b.length;L++)d["$"+b[L]]=!0;for(b=0;b<o.length;b++)L=d.hasOwnProperty("$"+o[b].value),o[b].selected!==L&&(o[b].selected=L),L&&P&&(o[b].defaultSelected=!0)}else{for(b=""+le(b),d=null,L=0;L<o.length;L++){if(o[L].value===b){o[L].selected=!0,P&&(o[L].defaultSelected=!0);return}d!==null||o[L].disabled||(d=o[L])}d!==null&&(d.selected=!0)}}function Q(o,d){if(d.dangerouslySetInnerHTML!=null)throw Error(n(91));return $({},d,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function X(o,d){var b=d.value;if(b==null){if(b=d.children,d=d.defaultValue,b!=null){if(d!=null)throw Error(n(92));if(Ze(b)){if(1<b.length)throw Error(n(93));b=b[0]}d=b}d==null&&(d=""),b=d}o._wrapperState={initialValue:le(b)}}function ne(o,d){var b=le(d.value),P=le(d.defaultValue);b!=null&&(b=""+b,b!==o.value&&(o.value=b),d.defaultValue==null&&o.defaultValue!==b&&(o.defaultValue=b)),P!=null&&(o.defaultValue=""+P)}function pe(o){var d=o.textContent;d===o._wrapperState.initialValue&&d!==""&&d!==null&&(o.value=d)}function Be(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Re(o,d){return o==null||o==="http://www.w3.org/1999/xhtml"?Be(d):o==="http://www.w3.org/2000/svg"&&d==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var Qe,et=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(d,b,P,L){MSApp.execUnsafeLocalFunction(function(){return o(d,b,P,L)})}:o})(function(o,d){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=d;else{for(Qe=Qe||document.createElement("div"),Qe.innerHTML="<svg>"+d.valueOf().toString()+"</svg>",d=Qe.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;d.firstChild;)o.appendChild(d.firstChild)}});function Ye(o,d){if(d){var b=o.firstChild;if(b&&b===o.lastChild&&b.nodeType===3){b.nodeValue=d;return}}o.textContent=d}var dt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wt=["Webkit","ms","Moz","O"];Object.keys(dt).forEach(function(o){Wt.forEach(function(d){d=d+o.charAt(0).toUpperCase()+o.substring(1),dt[d]=dt[o]})});function Jt(o,d,b){return d==null||typeof d=="boolean"||d===""?"":b||typeof d!="number"||d===0||dt.hasOwnProperty(o)&&dt[o]?(""+d).trim():d+"px"}function Er(o,d){o=o.style;for(var b in d)if(d.hasOwnProperty(b)){var P=b.indexOf("--")===0,L=Jt(b,d[b],P);b==="float"&&(b="cssFloat"),P?o.setProperty(b,L):o[b]=L}}var qs=$({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ks(o,d){if(d){if(qs[o]&&(d.children!=null||d.dangerouslySetInnerHTML!=null))throw Error(n(137,o));if(d.dangerouslySetInnerHTML!=null){if(d.children!=null)throw Error(n(60));if(typeof d.dangerouslySetInnerHTML!="object"||!("__html"in d.dangerouslySetInnerHTML))throw Error(n(61))}if(d.style!=null&&typeof d.style!="object")throw Error(n(62))}}function Mr(o,d){if(o.indexOf("-")===-1)return typeof d.is=="str
37ing";switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ji=null;function Dr(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Ws=null,Fr=null,Ba=null;function jc(o){if(o=Gd(o)){if(typeof Ws!="function")throw Error(n(280));var d=o.stateNode;d&&(d=yh(d),Ws(o.stateNode,o.type,d))}}function Yo(o){Fr?Ba?Ba.push(o):Ba=[o]:Fr=o}function Lc(){if(Fr){var o=Fr,d=Ba;if(Ba=Fr=null,jc(o),d)for(o=0;o<d.length;o++)jc(d[o])}}function el(o,d){return o(d)}function Js(){}var _a=!1;function $c(o,d,b){if(_a)return o(d,b);_a=!0;try{return el(o,d,b)}finally{_a=!1,(Fr!==null||Ba!==null)&&(Js(),Lc())}}function Zs(o,d){var b=o.stateNode;if(b===null)return null;var P=yh(b);if(P===null)return null;b=P[d];e:switch(d){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(P=!P.disabled)||(o=o.type,P=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!P;break e;default:o=!1}if(o)return null;if(b&&typeof b!="function")throw Error(n(231,d,typeof b));return b}var me=!1;if(l)try{var Ee={};Object.defineProperty(Ee,"passive",{get:function(){me=!0}}),window.addEventListener("test",Ee,Ee),window.removeEventListener("test",Ee,Ee)}catch{me=!1}function Ie(o,d,b,P,L,K,te,oe,ye){var _e=Array.prototype.slice.call(arguments,3);try{d.apply(b,_e)}catch(Ve){this.onError(Ve)}}var Le=!1,tt=null,gt=!1,kt=null,ct={onError:function(o){Le=!0,tt=o}};function lt(o,d,b,P,L,K,te,oe,ye){Le=!1,tt=null,Ie.apply(ct,arguments)}function it(o,d,b,P,L,K,te,oe,ye){if(lt.apply(this,arguments),Le){if(Le){var _e=tt;Le=!1,tt=null}else throw Error(n(198));gt||(gt=!0,kt=_e)}}function ot(o){var d=o,b=o;if(o.alternate)for(;d.return;)d=d.return;else{o=d;do d=o,(d.flags&4098)!==0&&(b=d.return),o=d.return;while(o)}return d.tag===3?b:null}function _t(o){if(o.tag===13){var d=o.memoizedState;if(d===null&&(o=o.alternate,o!==null&&(d=o.memoizedState)),d!==null)return d.dehydrated}return null}function Dt(o){if(ot(o)!==o)throw Error(n(188))}function Rn(o){var d=o.alternate;if(!d){if(d=ot(o),d===null)throw Error(n(188));return d!==o?null:o}for(var b=o,P=d;;){var L=b.return;if(L===null)break;var K=L.alternate;if(K===null){if(P=L.return,P!==null){b=P;continue}break}if(L.child===K.child){for(K=L.child;K;){if(K===b)return Dt(L),o;if(K===P)return Dt(L),d;K=K.sibling}throw Error(n(188))}if(b.return!==P.return)b=L,P=K;else{for(var te=!1,oe=L.child;oe;){if(oe===b){te=!0,b=L,P=K;break}if(oe===P){te=!0,P=L,b=K;break}oe=oe.sibling}if(!te){for(oe=K.child;oe;){if(oe===b){te=!0,b=K,P=L;break}if(oe===P){te=!0,P=K,b=L;break}oe=oe.sibling}if(!te)throw Error(n(189))}}if(b.alternate!==P)throw Error(n(190))}if(b.tag!==3)throw Error(n(188));return b.stateNode.current===b?o:d}function en(o){return o=Rn(o),o!==null?jt(o):null}function jt(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var d=jt(o);if(d!==null)return d;o=o.sibling}return null}var rn=t.unstable_scheduleCallback,Ia=t.unstable_cancelCallback,Cs=t.unstable_shouldYield,be=t.unstable_requestPaint,we=t.unstable_now,Ne=t.unstable_getCurrentPriorityLevel,Ue=t.unstable_ImmediatePriority,Fe=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Ge=t.unstable_LowPriority,He=t.unstable_IdlePriority,ft=null,Nt=null;function wt(o){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(ft,o,void 0,(o.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:Tn,Tt=Math.log,Zt=Math.LN2;function Tn(o){return o>>>=0,o===0?32:31-(Tt(o)/Zt|0)|0}var fn=64,yn=4194304;function fr(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function Ja(o,d){var b=o.pendingLanes;if(b===0)return 0;var P=0,L=o.suspendedLanes,K=o.pingedLanes,te=b&268435455;if(te!==0){var oe=te&~L;oe!==0?P=fr(oe):(K&=te,K!==0&&(P=fr(K)))}else te=b&~L,te!==0?P=fr(te):K!==0&&(P=fr(K));if(P===0)return 0;if(d!==0&&d!==P&&(d&L)===0&&(L=P&-P,K=d&-d,L>=K||L===16&&(K&4194240)!==0))return d;if((P&4)!==0&&(P|=b&16),d=o.entangledLanes,d!==0)for(o=o.entanglements,d&=P;0<d;)b=31-rt(d),L=1<<b,P|=o[b],d&=~L;return P}function zc(o,d){switch(o){case 1:case 2:case 4:return d+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hc(o,d){for(var b=o.suspendedLanes,P=o.pingedLanes,L=o.expirationTimes,K=o.pendingLanes;0<K;){var te=31-rt(K),oe=1<<te,ye=L[te];ye===-1?((oe&b)===0||(oe&P)!==0)&&(L[te]=zc(oe,d)):ye<=d&&(o.expiredLanes|=oe),K&=~oe}}
vendor: 25,766 bytes, lines 37-38
37function Ur(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function As(){var o=fn;return fn<<=1,(fn&4194240)===0&&(fn=64),o}function tl(o){for(var d=[],b=0;31>b;b++)d.push(o);return d}function jr(o,d,b){o.pendingLanes|=d,d!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,d=31-rt(d),o[d]=b}function Qs(o,d){var b=o.pendingLanes&~d;o.pendingLanes=d,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=d,o.mutableReadLanes&=d,o.entangledLanes&=d,d=o.entanglements;var P=o.eventTimes;for(o=o.expirationTimes;0<b;){var L=31-rt(b),K=1<<L;d[L]=0,P[L]=-1,o[L]=-1,b&=~K}}function nl(o,d){var b=o.entangledLanes|=d;for(o=o.entanglements;b;){var P=31-rt(b),L=1<<P;L&d|o[P]&d&&(o[P]|=d),b&=~L}}var an=0;function W4(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var J4,vg,Z4,Q4,X4,wg=!1,th=[],Zi=null,Qi=null,Xi=null,_d=new Map,Id=new Map,Yi=[],$V="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Y4(o,d){switch(o){case"focusin":case"focusout":Zi=null;break;case"dragenter":case"dragleave":Qi=null;break;case"mouseover":case"mouseout":Xi=null;break;case"pointerover":case"pointerout":_d.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":Id.delete(d.pointerId)}}function Nd(o,d,b,P,L,K){return o===null||o.nativeEvent!==K?(o={blockedOn:d,domEventName:b,eventSystemFlags:P,nativeEvent:K,targetContainers:[L]},d!==null&&(d=Gd(d),d!==null&&vg(d)),o):(o.eventSystemFlags|=P,d=o.targetContainers,L!==null&&d.indexOf(L)===-1&&d.push(L),o)}function zV(o,d,b,P,L){switch(d){case"focusin":return Zi=Nd(Zi,o,d,b,P,L),!0;case"dragenter":return Qi=Nd(Qi,o,d,b,P,L),!0;case"mouseover":return Xi=Nd(Xi,o,d,b,P,L),!0;case"pointerover":var K=L.pointerId;return _d.set(K,Nd(_d.get(K)||null,o,d,b,P,L)),!0;case"gotpointercapture":return K=L.pointerId,Id.set(K,Nd(Id.get(K)||null,o,d,b,P,L)),!0}return!1}function ek(o){var d=rl(o.target);if(d!==null){var b=ot(d);if(b!==null){if(d=b.tag,d===13){if(d=_t(b),d!==null){o.blockedOn=d,X4(o.priority,function(){Z4(b)});return}}else if(d===3&&b.stateNode.current.memoizedState.isDehydrated){o.blockedOn=b.tag===3?b.stateNode.containerInfo:null;return}}}o.blockedOn=null}function nh(o){if(o.blockedOn!==null)return!1;for(var d=o.targetContainers;0<d.length;){var b=kg(o.domEventName,o.eventSystemFlags,d[0],o.nativeEvent);if(b===null){b=o.nativeEvent;var P=new b.constructor(b.type,b);Ji=P,b.target.dispatchEvent(P),Ji=null}else return d=Gd(b),d!==null&&vg(d),o.blockedOn=b,!1;d.shift()}return!0}function tk(o,d,b){nh(o)&&b.delete(d)}function HV(){wg=!1,Zi!==null&&nh(Zi)&&(Zi=null),Qi!==null&&nh(Qi)&&(Qi=null),Xi!==null&&nh(Xi)&&(Xi=null),_d.forEach(tk),Id.forEach(tk)}function Rd(o,d){o.blockedOn===d&&(o.blockedOn=null,wg||(wg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,HV)))}function Od(o){function d(L){return Rd(L,o)}if(0<th.length){Rd(th[0],o);for(var b=1;b<th.length;b++){var P=th[b];P.blockedOn===o&&(P.blockedOn=null)}}for(Zi!==null&&Rd(Zi,o),Qi!==null&&Rd(Qi,o),Xi!==null&&Rd(Xi,o),_d.forEach(d),Id.forEach(d),b=0;b<Yi.length;b++)P=Yi[b],P.blockedOn===o&&(P.blockedOn=null);for(;0<Yi.length&&(b=Yi[0],b.blockedOn===null);)ek(b),b.blockedOn===null&&Yi.shift()}var Kc=g.ReactCurrentBatchConfig,rh=!0;function KV(o,d,b,P){var L=an,K=Kc.transition;Kc.transition=null;try{an=1,Eg(o,d,b,P)}finally{an=L,Kc.transition=K}}function VV(o,d,b,P){var L=an,K=Kc.transition;Kc.transition=null;try{an=4,Eg(o,d,b,P)}finally{an=L,Kc.transition=K}}function Eg(o,d,b,P){if(rh){var L=kg(o,d,b,P);if(L===null)Lg(o,d,P,ah,b),Y4(o,P);else if(zV(L,o,d,b,P))P.stopPropagation();else if(Y4(o,P),d&4&&-1<$V.indexOf(o)){for(;L!==null;){var K=Gd(L);if(K!==null&&J4(K),K=kg(o,d,b,P),K===null&&Lg(o,d,P,ah,b),K===L)break;L=K}L!==null&&P.stopPropagation()}else Lg(o,d,P,null,b)}}var ah=null;function kg(o,d,b,P){if(ah=null,o=Dr(P),o=rl(o),o!==null)if(d=ot(o),d===null)o=null;else if(b=d.tag,b===13){if(o=_t(d),o!==null)return o;o=null}else if(b===3){if(d.stateNode.current.memoizedState.isDehydrated)return d.tag===3?d.stateNode.containerInfo:null;o=null}else d!==o&&(o=null);return ah=o,null}function nk(o){switch(o){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ne()){case Ue:return 1;case Fe:return 4;case ze:case Ge:return 16;case He:return 536870912;default:return 16}default:return 16}}var eo=null,Cg=null,sh=null;function rk(){if(sh)return sh;var o,d=Cg,b=d.length,P,L="value"in eo?eo.value:eo.textContent,K=L.length;for(o=0;o<b&&d[o]===L[o];o++);var te=b-o;for(P=1;P<=te&&d[b-P]===L[K-P];P++);return sh=L.slice(o,1<P?1-P:void 0)}function ih(o){var d=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&d===13&&(o=13)):o=d,o===10&&(o=13),32<=o||o===13?o:0}function oh(){return!0}function ak(){return!1}function ua(o){function d(b,P,L,K,te){this._reactName=b,this._targetInst=L,this.type=P,this.nativeEvent=K,this.target=te,this.currentTarget=null;for(var oe in o)o.hasOwnProperty(oe)&&(b=o[oe],this[oe]=b?b(K):K[oe]);return this.isDefaultPrevented=(K.defaultPrevented!=null?K.defaultPrevented:K.returnValue===!1)?oh:ak,this.isPropagationStopped=ak,this}return $(d.prototype,{preventDefault:function(){this.defaultPrevented=!0;var b=this.nativeEvent;b&&(b.preventDefault?b.preventDefault():typeof b.returnValue!="unknown"&&(b.returnValue=!1),this.isDefaultPrevented=oh)},stopPropagation:function(){var b=this.nativeEvent;b&&(b.stopPropagation?b.stopPropagation():typeof b.cancelBubble!="unknown"&&(b.cancelBubble=!0),this.isPropagationStopped=oh)},persist:function(){},isPersistent:oh}),d}var Vc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ag=ua(Vc),Md=$({},Vc,{view:0,detail:0}),GV=ua(Md),Pg,Tg,Dd,lh=$({},Md,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bg,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Dd&&(Dd&&o.type==="mousemove"?(Pg=o.screenX-Dd.screenX,Tg=o.screenY-Dd.screenY):Tg=Pg=0,Dd=o),Pg)},movementY:function(o){return"movementY"in o?o.movementY:Tg}}),sk=ua(lh),qV=$({},lh,{dataTransfer:0}),WV=ua(qV),JV=$({},Md,{relatedTarget:0}),Sg=ua(JV),ZV=$({},Vc,{animationName:0,elapsedTime:0,pseudoElement:0}),QV=ua(ZV),XV=$({},Vc,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),YV=ua(XV),eG=$({},Vc,{data:0}),ik=ua(eG),tG={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nG={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},rG={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aG(o){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(o):(o=rG[o])?!!d[o]:!1}function Bg(){return aG}var sG=$({},Md,{key:function(o){if(o.key){var d=tG[o.key]||o.key;if(d!=="Unidentified")return d}return o.type==="keypress"?(o=ih(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?nG[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bg,charCode:function(o){return o.type==="keypress"?ih(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?ih(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),iG=ua(sG),oG=$({},lh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ok=ua(oG),lG=$({},Md,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bg}),cG=ua(lG),uG=$({},Vc,{propertyName:0,elapsedTime:0,pseudoElement:0}),dG=ua(uG),fG=$({},lh,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),pG=ua(fG),mG=[9,13,27,32],_g=l&&"CompositionEvent"in window,Fd=null;l&&"documentMode"in document&&(Fd=document.documentMode);var hG=l&&"TextEvent"in window&&!Fd,lk=l&&(!_g||Fd&&8<Fd&&11>=Fd),ck=" ",uk=!1;function dk(o,d){switch(o){case"keyup":return mG.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fk(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Gc=!1;function yG(o,d){switch(o){case"compositionend":return fk(d);case"keypress":return d.which!==32?null:(uk=!0,ck);case"textInput":return o=d.data,o===ck&&uk?null:o;default:return null}}function bG(o,d){if(Gc)return o==="compositionend"||!_g&&dk(o,d)?(o=rk(),sh=Cg=eo=null,Gc=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1<d.char.length)return d.char;if(d.which)return String.fromCharCode(d.which)}return null;case"compositionend":return lk&&d.locale!=="ko"?null:d.data;default:return null}}var gG={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pk(o){var d=o&&o.nodeName&&o.nodeName.toLowerCase();return d==="input"?!!gG[o.type]:d==="textarea"}function mk(o,d,b,P){Yo(P),d=ph(d,"onChange"),0<d.length&&(b=new Ag("onChange","change",null,b,P),o.push({event:b,listeners:d}))}var Ud=null,jd=null;function xG(o){Nk(o,0)}function ch(o){var d=Qc(o);if(Se(d))return o}function vG(o,d){if(o==="change")return d}var hk=!1;if(l){var Ig;if(l){var Ng="oninput"in document;if(!Ng){var yk=document.createElement("div");yk.setAttribute("oninput","return;"),Ng=typeof yk.oninput=="function"}Ig=Ng}else Ig=!1;hk=Ig&&(!document.documentMode||9<document.documentMode)}function bk(){Ud&&(Ud.detachEvent("onpropertychange",gk),jd=Ud=null)}function gk(o){if(o.propertyName==="value"&&ch(jd)){var d=[];mk(d,jd,o,Dr(o)),$c(xG,d)}}function wG(o,d,b){o==="focusin"?(bk(),Ud=d,jd=b,Ud.attachEvent("onpropertychange",gk)):o==="focusout"&&bk()}function EG(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return ch(jd)}function kG(o,d){if(o==="click")return ch(d)}function CG(o,d){if(o==="input"||o==="change")return ch(d)}function AG(o,d){return o===d&&(o!==0||1/o===1/d)||o!==o&&d!==d}var Za=typeof Object.is=="function"?Object.is:AG;function Ld(o,d){if(Za(o,d))return!0;if(typeof o!="object"||o===null||typeof d!="object"||d===null)return!1;var b=Object.keys(o),P=Object.keys(d);if(b.length!==P.length)return!1;for(P=0;P<b.length;P++){var L=b[P];if(!c.call(d,L)||!Za(o[L],d[L]))return!1}return!0}function xk(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function vk(o,d){var b=xk(o);o=0;for(var P;b;){if(b.nodeType===3){if(P=o+b.textContent.length,o<=d&&P>=d)return{node:b,offset:d-o};o=P}e:{for(;b;){if(b.nextSibling){b=b.nextSibling;break e}b=b.parentNode}b=void 0}b=xk(b)}}function wk(o,d){return o&&d?o===d?!0:o&&o.nodeType===3?!1:d&&d.nodeType===3?wk(o,d.parentNode):"contains"in o?o.contains(d):o.compareDocumentPosition?!!(o.compareDocumentPosition(d)&16):!1:!1}function Ek(){for(var o=window,d=ke();d instanceof o.HTMLIFrameElement;){try{var b=typeof d.contentWindow.location.href=="string"}catch{b=!1}if(b)o=d.contentWindow;else break;d=ke(o.document)}return d}function Rg(o){var d=o&&o.nodeName&&o.nodeName.toLowerCase();return d&&(d==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||d==="textarea"||o.contentEditable==="true")}function PG(o){var d=Ek(),b=o.focusedElem,P=o.selectionRange;if(d!==b&&b&&b.ownerDocument&&wk(b.ownerDocument.documentElement,b)){if(P!==null&&Rg(b)){if(d=P.start,o=P.end,o===void 0&&(o=d),"selectionStart"in b)b.selectionStart=d,b.selectionEnd=Math.min(o,b.value.length);else if(o=(d=b.ownerDocument||document)&&d.defaultView||window,o.getSelection){o=o.getSelection();var L=b.textContent.length,K=Math.min(P.start,L);P=P.end===void 0?K:Math.min(P.end,L),!o.extend&&K>P&&(L=P,P=K,K=L),L=vk(b,K);var te=vk(b,P);L&&te&&(o.rangeCount!==1||o.anchorNode!==L.node||o.anchorOffset!==L.offset||o.focusNode!==te.node||o.focusOffset!==te.offset)&&(d=d.createRange(),d.setStart(L.node,L.offset),o.removeAllRanges(),K>P?(o.addRange(d),o.extend(te.node,te.offset)):(d.setEnd(te.node,te.offset),o.addRange(d)))}}for(d=[],o=b;o=o.parentNode;)o.nodeType===1&&d.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<d.length;b++)o=d[b],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var TG=l&&"documentMode"in document&&11>=document.documentMode,qc=null,Og=null,$d=null,Mg=!1;function kk(o,d,b){var P=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;Mg||qc==null||qc!==ke(P)||(P=qc,"selectionStart"in P&&Rg(P)?P={start:P.selectionStart,end:P.selectionEnd}:(P=(P.ownerDocument&&P.ownerDocument.defaultView||window).getSelection(),P={anchorNode:P.anchorNode,anchorOffset:P.anchorOffset,focusNode:P.focusNode,focusOffset:P.focusOffset}),$d&&Ld($d,P)||($d=P,P=ph(Og,"onSelect"),0<P.length&&(d=new Ag("onSelect","select",null,d,b),o.push({event:d,listeners:P}),d.target=qc)))}function uh(o,d){var b={};return b[o.toLowerCase()]=d.toLowerCase(),b["Webkit"+o]="webkit"+d,b["Moz"+o]="moz"+d,b}var Wc={animationend:uh("Animation","AnimationEnd"),animationiteration:uh("Animation","AnimationIteration"),animationstart:uh("Animation","AnimationStart"),transitionend:uh("Transition","TransitionEnd")},Dg={},Ck={};l&&(Ck=document.createElement("div").style,"AnimationEvent"in window||(delete Wc.animationend.animation,delete Wc.animationiteration.animation,delete Wc.animationstart.animation),"TransitionEvent"in window||delete Wc.transitionend.transition);function dh(o){if(Dg[o])return Dg[o];if(!Wc[o])return o;var d=Wc[o],b;for(b in d)if(d.hasOwnProperty(b)&&b in Ck)return Dg[o]=d[b];return o}var Ak=dh("animationend"),Pk=dh("animationiteration"),Tk=dh("animationstart"),Sk=dh("transitionend"),Bk=new Map,_k="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function to(o,d){Bk.set(o,d),s(d,[o])}for(var Fg=0;Fg<_k.length;Fg++){var Ug=_k[Fg],SG=Ug.toLowerCase(),BG=Ug[0].toUpperCase()+Ug.slice(1);to(SG,"on"+BG)}to(Ak,"onAnimationEnd"),to(Pk,"onAnimationIteration"),to(Tk,"onAnimationStart"),to("dblclick","onDoubleClick"),to("focusin","onFocus"),to("focusout","onBlur"),to(Sk,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_G=new Set("cancel close invalid load scroll toggle".split(" ").concat(zd));function Ik(o,d,b){var P=o.type||"unknown-event";o.currentTarget=b,it(P,d,void 0,o),o.currentTarget=null}function Nk(o,d){d=(d&4)!==0;for(var b=0;b<o.length;b++){var P=o[b],L=P.event;P=P.listeners;e:{var K=void 0;if(d)for(var te=P.length-1;0<=te;te--){var oe=P[te],ye=oe.instance,_e=oe.currentTarget;if(oe=oe.listener,ye!==K&&L.isPropagationStopped())break e;Ik(L,oe,_e),K=ye}else for(te=0;te<P.length;te++){if(oe=P[te],ye=oe.instance,_e=oe.currentTarget,oe=oe.listener,ye!==K&&L.isPropagationStopped())break e;Ik(L,oe,_e),K=ye}}}if(gt)throw o=kt,gt=!1,kt=null,o}function bn(o,d){var b=d[Gg];b===void 0&&(b=d[Gg]=new Set);var P=o+"__bubble";b.has(P)||(Rk(d,o,2,!1),b.add(P))}function jg(o,d,b){var P=0;d&&(P|=4),Rk(b,o,P,d)}var fh="_reactListening"+Math.random().toString(36).slice(2);function Hd(o){if(!o[fh]){o[fh]=!0,r.forEach(function(b){b!=="selectionchange"&&(_G.has(b)||jg(b,!1,o),jg(b,!0,o))});var d=o.nodeType===9?o:o.ownerDocument;d===null||d[fh]||(d[fh]=!0,jg("selectionchange",!1,d))}}function Rk(o,d,b,P){switch(nk(d)){case 1:var L=KV;break;case 4:L=VV;break;default:L=Eg}b=L.bind(null,d,b,o),L=void 0,!me||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(L=!0),P?L!==void 0?o.addEventListener(d,b,{capture:!0,passive:L}):o.addEventListener(d,b,!0):L!==void 0?o.addEventListener(d,b,{passive:L}):o.addEventListener(d,b,!1)}function Lg(o,d,b,P,L){var K=P;if((d&1)===0&&(d&2)===0&&P!==null)e:for(;;){if(P===null)return;var te=P.tag;if(te===3||te===4){var oe=P.stateNode.containerInfo;if(oe===L||oe.nodeType===8&&oe.parentNode===L)break;if(te===4)for(te=P.return;te!==null;){var ye=te.tag;if((ye===3||ye===4)&&(ye=te.stateNode.containerInfo,ye===L||ye.nodeType===8&&ye.parentNode===L))return;te=te.return}for(;oe!==null;){if(te=rl(oe),te===null)return;if(ye=te.tag,ye===5||ye===6){P=K=te;continue e}oe=oe.parentNode}}P=P.return}$c(function(){var _e=K,Ve=Dr(b),qe=[];e:{var Ke=Bk.get(o);if(Ke!==void 0){var st=Ag,mt=o;switch(o){case"keypress":if(ih(b)===0)break e;case"keydown":case"keyup":st=iG;break;case"focusin":mt="focus",st=Sg;break;case"focusout":mt="blur",st=Sg;break;case"beforeblur":case"afterblur":st=Sg;break;case"click":if(b.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":st=sk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":st=WV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":st=cG;break;case Ak:case Pk:case Tk:st=QV;break;case Sk:st=dG;break;case"scroll":st=GV;break;case"wheel":st=pG;break;case"copy":case"cut":case"paste":st=YV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":st=ok}var xt=(d&4)!==0,On=!xt&&o==="scroll",Ae=xt?Ke!==null?Ke+"Capture":null:Ke;xt=[];for(var ve=_e,Te;ve!==null;){Te=ve;var Xe=Te.stateNode;if(Te.tag===5&&Xe!==null&&(Te=Xe,Ae!==null&&(Xe=Zs(ve,Ae),Xe!=null&&xt.push(Kd(ve,Xe,Te)))),On)break;ve=ve.return}0<xt.length&&(Ke=new st(Ke,mt,null,b,Ve),qe.push({event:Ke,listeners:xt}))}}if((d&7)===0){e:{if(Ke=o==="mouseover"||o==="pointerover",st=o==="mouseout"||o==="pointerout",Ke&&b!==Ji&&(mt=b.relatedTarget||b.fromElement)&&(rl(mt)||mt[Xs]))break e;if((st||Ke)&&(Ke=Ve.window===Ve?Ve:(Ke=Ve.ownerDocument)?Ke.defaultView||Ke.parentWindow:window,st?(mt=b.relatedTarget||b.toElement,st=_e,mt=mt?rl(mt):null,mt!==null&&(On=ot(mt),mt!==On||mt.tag!==5&&mt.tag!==6)&&(mt=null)):(st=null,mt=_e),st!==mt)){if(xt=sk,Xe="onMouseLeave",Ae="onMouseEnter",ve="mouse",(o==="pointerout"||o==="pointerover")&&(xt=ok,Xe="onPointerLeave",Ae="onPointerEnter",ve="pointer"),On=st==null?Ke:Qc(st),Te=mt==null?Ke:Qc(mt),Ke=new xt(Xe,ve+"leave",st,b,Ve),Ke.target=On,Ke.relatedTarget=Te,Xe=null,rl(Ve)===_e&&(xt=new xt(Ae,ve+"enter",mt,b,Ve),xt.target=Te,xt.relatedTarget=On,Xe=xt),On=Xe,st&&mt)t:{for(xt=st,Ae=mt,ve=0,Te=xt;Te;Te=Jc(Te))ve++;for(Te=0,Xe=Ae;Xe;Xe=Jc(Xe))Te++;for(;0<ve-Te;)xt=Jc(xt),ve--;for(;0<Te-ve;)Ae=Jc(Ae),Te--;for(;ve--;){if(xt===Ae||Ae!==null&&xt===Ae.alternate)break t;xt=Jc(xt),Ae=Jc(Ae)}xt=null}else xt=null;st!==null&&Ok(qe,Ke,st,xt,!1),mt!==null&&On!==null&&Ok(qe,On,mt,xt,!0)}}e:{if(Ke=_e?Qc(_e):window,st=Ke.nodeName&&Ke.nodeName.toLowerCase(),st==="select"||st==="input"&&Ke.type==="file")var vt=vG;else if(pk(Ke))if(hk)vt=CG;else{vt=EG;var Ct=wG}else(st=Ke.nodeName)&&st.toLowerCase()==="input"&&(Ke.type==="checkbox"||Ke.type==="radio")&&(vt=kG);if(vt&&(vt=vt(o,_e))){mk(qe,vt,b,Ve);break e}Ct&&Ct(o,Ke,_e),o==="focusout"&&(Ct=Ke._wrapperState)&&Ct.controlled&&Ke.type==="number"&&Me(Ke,"number",Ke.value)}switch(Ct=_e?Qc(_e):window,o){case"focusin":(pk(Ct)||Ct.contentEditable==="true")&&(qc=Ct,Og=_e,$d=null);break;case"focusout":$d=Og=qc=null;break;case"mousedown":Mg=!0;break;case"contextmenu":case"mouseup":case"dragend":Mg=!1,kk(qe,b,Ve);break;case"selectionchange":if(TG)break;case"keydown":case"keyup":kk(qe,b,Ve)}var At;if(_g)e:{switch(o){case"compositionstart":var Bt="onCompositionStart";break e;case"compositionend":Bt="onCompositionEnd";break e;case"compositionupdate":Bt="onCompositionUpdate";break e}Bt=void 0}else Gc?dk(o,b)&&(Bt="onCompositionEnd"):o==="keydown"&&b.keyCode===229&&(Bt="onCompositionStart");Bt&&(lk&&b.locale!=="ko"&&(Gc||Bt!=="onCompositionStart"?Bt==="onCompositionEnd"&&Gc&&(At=rk()):(eo=Ve,Cg="value"in eo?eo.value:eo.textContent,Gc=!0)),Ct=ph(_e,Bt),0<Ct.length&&(Bt=new ik(Bt,o,null,b,Ve),qe.push({event:Bt,listeners:Ct}),At?Bt.data=At:(At=fk(b),At!==null&&(Bt.data=At)))),(At=hG?yG(o,b):bG(o,b))&&(_e=ph(_e,"onBeforeInput"),0<_e.length&&(Ve=new ik("onBeforeInput","beforeinput",null,b,Ve),qe.push({event:Ve,listeners:_e}),Ve.data=At))}Nk(qe,d)})}function Kd(o,d,b){return{instance:o,listener:d,currentTarget:b}}function ph(o,d){for(var b=d+"Capture",P=[];o!==null;){var L=o,K=L.stateNode;L.tag===5&&K!==null&&(L=K,K=Zs(o,b),K!=null&&P.unshift(Kd(o,K,L)),K=Zs(o,d),K!=null&&P.push(Kd(o,K,L))),o=o.return}return P}function Jc(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function Ok(o,d,b,P,L){for(var K=d._reactName,te=[];b!==null&&b!==P;){var oe=b,ye=oe.alternate,_e=oe.stateNode;if(ye!==null&&ye===P)break;oe.tag===5&&_e!==null&&(oe=_e,L?(ye=Zs(b,K),ye!=null&&te.unshift(Kd(b,ye,oe))):L||(ye=Zs(b,K),ye!=null&&te.push(Kd(b,ye,oe)))),b=b.return}te.length!==0&&o.push({event:d,listeners:te})}var IG=/\r\n?/g,NG=/\u0000|\uFFFD/g;function Mk(o){return(typeof o=="string"?o:""+o).replace(IG,`
38`).replace(NG,"")}function mh(o,d,b){if(d=Mk(d),Mk(o)!==d&&b)throw Error(n(425))}function hh(){}var $g=null,zg=null;function Hg(o,d){return o==="textarea"||o==="noscript"||typeof d.children=="string"||typeof d.children=="number"||typeof d.dangerouslySetInnerHTML=="object"&&d.dangerouslySetInnerHTML!==null&&d.dangerouslySetInnerHTML.__html!=null}var Kg=typeof setTimeout=="function"?setTimeout:void 0,RG=typeof clearTimeout=="function"?clearTimeout:void 0,Dk=typeof Promise=="function"?Promise:void 0,OG=typeof queueMicrotask=="function"?queueMicrotask:typeof Dk<"u"?function(o){return Dk.resolve(null).then(o).catch(MG)}:Kg;function MG(o){setTimeout(function(){throw o})}function Vg(o,d){var b=d,P=0;do{var L=b.nextSibling;if(o.removeChild(b),L&&L.nodeType===8)if(b=L.data,b==="/$"){if(P===0){o.removeChild(L),Od(d);return}P--}else b!=="$"&&b!=="$?"&&b!=="$!"||P++;b=L}while(b);Od(d)}function no(o){for(;o!=null;o=o.nextSibling){var d=o.nodeType;if(d===1||d===3)break;if(d===8){if(d=o.data,d==="$"||d==="$!"||d==="$?")break;if(d==="/$")return null}}return o}function Fk(o){o=o.previousSibling;for(var d=0;o;){if(o.nodeType===8){var b=o.data;if(b==="$"||b==="$!"||b==="$?"){if(d===0)return o;d--}else b==="/$"&&d++}o=o.previousSibling}return null}var Zc=Math.random().toString(36).slice(2),Ps="__reactFiber$"+Zc,Vd="__reactProps$"+Zc,Xs="__reactContainer$"+Zc,Gg="__reactEvents$"+Zc,DG="__reactListeners$"+Zc,FG="__reactHandles$"+Zc;function rl(o){var d=o[Ps];if(d)return d;for(var b=o.parentNode;b;
vendor: 5,204 bytes, line 38
38){if(d=b[Xs]||b[Ps]){if(b=d.alternate,d.child!==null||b!==null&&b.child!==null)for(o=Fk(o);o!==null;){if(b=o[Ps])return b;o=Fk(o)}return d}o=b,b=o.parentNode}return null}function Gd(o){return o=o[Ps]||o[Xs],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function Qc(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(n(33))}function yh(o){return o[Vd]||null}var qg=[],Xc=-1;function ro(o){return{current:o}}function gn(o){0>Xc||(o.current=qg[Xc],qg[Xc]=null,Xc--)}function pn(o,d){Xc++,qg[Xc]=o.current,o.current=d}var ao={},pr=ro(ao),Lr=ro(!1),al=ao;function Yc(o,d){var b=o.type.contextTypes;if(!b)return ao;var P=o.stateNode;if(P&&P.__reactInternalMemoizedUnmaskedChildContext===d)return P.__reactInternalMemoizedMaskedChildContext;var L={},K;for(K in b)L[K]=d[K];return P&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=d,o.__reactInternalMemoizedMaskedChildContext=L),L}function $r(o){return o=o.childContextTypes,o!=null}function bh(){gn(Lr),gn(pr)}function Uk(o,d,b){if(pr.current!==ao)throw Error(n(168));pn(pr,d),pn(Lr,b)}function jk(o,d,b){var P=o.stateNode;if(d=d.childContextTypes,typeof P.getChildContext!="function")return b;P=P.getChildContext();for(var L in P)if(!(L in d))throw Error(n(108,fe(o)||"Unknown",L));return $({},b,P)}function gh(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||ao,al=pr.current,pn(pr,o),pn(Lr,Lr.current),!0}function Lk(o,d,b){var P=o.stateNode;if(!P)throw Error(n(169));b?(o=jk(o,d,al),P.__reactInternalMemoizedMergedChildContext=o,gn(Lr),gn(pr),pn(pr,o)):gn(Lr),pn(Lr,b)}var Ys=null,xh=!1,Wg=!1;function $k(o){Ys===null?Ys=[o]:Ys.push(o)}function UG(o){xh=!0,$k(o)}function so(){if(!Wg&&Ys!==null){Wg=!0;var o=0,d=an;try{var b=Ys;for(an=1;o<b.length;o++){var P=b[o];do P=P(!0);while(P!==null)}Ys=null,xh=!1}catch(L){throw Ys!==null&&(Ys=Ys.slice(o+1)),rn(Ue,so),L}finally{an=d,Wg=!1}}return null}var eu=[],tu=0,vh=null,wh=0,Na=[],Ra=0,sl=null,ei=1,ti="";function il(o,d){eu[tu++]=wh,eu[tu++]=vh,vh=o,wh=d}function zk(o,d,b){Na[Ra++]=ei,Na[Ra++]=ti,Na[Ra++]=sl,sl=o;var P=ei;o=ti;var L=32-rt(P)-1;P&=~(1<<L),b+=1;var K=32-rt(d)+L;if(30<K){var te=L-L%5;K=(P&(1<<te)-1).toString(32),P>>=te,L-=te,ei=1<<32-rt(d)+L|b<<L|P,ti=K+o}else ei=1<<K|b<<L|P,ti=o}function Jg(o){o.return!==null&&(il(o,1),zk(o,1,0))}function Zg(o){for(;o===vh;)vh=eu[--tu],eu[tu]=null,wh=eu[--tu],eu[tu]=null;for(;o===sl;)sl=Na[--Ra],Na[Ra]=null,ti=Na[--Ra],Na[Ra]=null,ei=Na[--Ra],Na[Ra]=null}var da=null,fa=null,Cn=!1,Qa=null;function Hk(o,d){var b=Fa(5,null,null,0);b.elementType="DELETED",b.stateNode=d,b.return=o,d=o.deletions,d===null?(o.deletions=[b],o.flags|=16):d.push(b)}function Kk(o,d){switch(o.tag){case 5:var b=o.type;return d=d.nodeType!==1||b.toLowerCase()!==d.nodeName.toLowerCase()?null:d,d!==null?(o.stateNode=d,da=o,fa=no(d.firstChild),!0):!1;case 6:return d=o.pendingProps===""||d.nodeType!==3?null:d,d!==null?(o.stateNode=d,da=o,fa=null,!0):!1;case 13:return d=d.nodeType!==8?null:d,d!==null?(b=sl!==null?{id:ei,overflow:ti}:null,o.memoizedState={dehydrated:d,treeContext:b,retryLane:1073741824},b=Fa(18,null,null,0),b.stateNode=d,b.return=o,o.child=b,da=o,fa=null,!0):!1;default:return!1}}function Qg(o){return(o.mode&1)!==0&&(o.flags&128)===0}function Xg(o){if(Cn){var d=fa;if(d){var b=d;if(!Kk(o,d)){if(Qg(o))throw Error(n(418));d=no(b.nextSibling);var P=da;d&&Kk(o,d)?Hk(P,b):(o.flags=o.flags&-4097|2,Cn=!1,da=o)}}else{if(Qg(o))throw Error(n(418));o.flags=o.flags&-4097|2,Cn=!1,da=o}}}function Vk(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;da=o}function Eh(o){if(o!==da)return!1;if(!Cn)return Vk(o),Cn=!0,!1;var d;if((d=o.tag!==3)&&!(d=o.tag!==5)&&(d=o.type,d=d!=="head"&&d!=="body"&&!Hg(o.type,o.memoizedProps)),d&&(d=fa)){if(Qg(o))throw Gk(),Error(n(418));for(;d;)Hk(o,d),d=no(d.nextSibling)}if(Vk(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(n(317));e:{for(o=o.nextSibling,d=0;o;){if(o.nodeType===8){var b=o.data;if(b==="/$"){if(d===0){fa=no(o.nextSibling);break e}d--}else b!=="$"&&b!=="$!"&&b!=="$?"||d++}o=o.nextSibling}fa=null}}else fa=da?no(o.stateNode.nextSibling):null;return!0}function Gk(){for(var o=fa;o;)o=no(o.nextSibling)}function nu(){fa=da=null,Cn=!1}function Yg(o){Qa===null?Qa=[o]:Qa.push(o)}var jG=g.ReactCurrentBatchConfig;function qd(o,d,b){if(o=b.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(b._owner){if(b=b._owner,b){if(b.tag!==1)throw Error(n(309));var P=b.stateNode}if(!P)throw Error(n(147,o));var L=P,K=""+o;return d!==null&&d.ref!==null&&typeof d.ref=="function"&&d.ref._stringRef===K?d.ref:(d=function(te){var oe=L.refs;te===null?delete oe[K]:oe[K]=te},d._stringRef=K,d)}if(typeof o!="string")throw Error(n(284));if(!b._owner)throw Error(n(290,o))}return o}function kh(o,d){throw o=Object.prototype.toString.call(d),Error(n(31,o==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":o))}function qk(o){var d=o._init;return d(o._payload)}function Wk(o){function d(Ae,ve){if(o){var Te=Ae.deletions;Te===null?(Ae.deletions=[ve],Ae.flags|=16):Te.push(ve)}}function b(Ae,ve){if(!o)return null;for(;ve!==null;)d(Ae,ve),ve=ve.sibling;return null}function P(Ae,ve){for(Ae=new Map;ve!==null;
vendor: 10,047 bytes, line 38
38)ve.key!==null?Ae.set(ve.key,ve):Ae.set(ve.index,ve),ve=ve.sibling;return Ae}function L(Ae,ve){return Ae=mo(Ae,ve),Ae.index=0,Ae.sibling=null,Ae}function K(Ae,ve,Te){return Ae.index=Te,o?(Te=Ae.alternate,Te!==null?(Te=Te.index,Te<ve?(Ae.flags|=2,ve):Te):(Ae.flags|=2,ve)):(Ae.flags|=1048576,ve)}function te(Ae){return o&&Ae.alternate===null&&(Ae.flags|=2),Ae}function oe(Ae,ve,Te,Xe){return ve===null||ve.tag!==6?(ve=Kx(Te,Ae.mode,Xe),ve.return=Ae,ve):(ve=L(ve,Te),ve.return=Ae,ve)}function ye(Ae,ve,Te,Xe){var vt=Te.type;return vt===_?Ve(Ae,ve,Te.props.children,Xe,Te.key):ve!==null&&(ve.elementType===vt||typeof vt=="object"&&vt!==null&&vt.$$typeof===F&&qk(vt)===ve.type)?(Xe=L(ve,Te.props),Xe.ref=qd(Ae,ve,Te),Xe.return=Ae,Xe):(Xe=qh(Te.type,Te.key,Te.props,null,Ae.mode,Xe),Xe.ref=qd(Ae,ve,Te),Xe.return=Ae,Xe)}function _e(Ae,ve,Te,Xe){return ve===null||ve.tag!==4||ve.stateNode.containerInfo!==Te.containerInfo||ve.stateNode.implementation!==Te.implementation?(ve=Vx(Te,Ae.mode,Xe),ve.return=Ae,ve):(ve=L(ve,Te.children||[]),ve.return=Ae,ve)}function Ve(Ae,ve,Te,Xe,vt){return ve===null||ve.tag!==7?(ve=ml(Te,Ae.mode,Xe,vt),ve.return=Ae,ve):(ve=L(ve,Te),ve.return=Ae,ve)}function qe(Ae,ve,Te){if(typeof ve=="string"&&ve!==""||typeof ve=="number")return ve=Kx(""+ve,Ae.mode,Te),ve.return=Ae,ve;if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case A:return Te=qh(ve.type,ve.key,ve.props,null,Ae.mode,Te),Te.ref=qd(Ae,null,ve),Te.return=Ae,Te;case S:return ve=Vx(ve,Ae.mode,Te),ve.return=Ae,ve;case F:var Xe=ve._init;return qe(Ae,Xe(ve._payload),Te)}if(Ze(ve)||V(ve))return ve=ml(ve,Ae.mode,Te,null),ve.return=Ae,ve;kh(Ae,ve)}return null}function Ke(Ae,ve,Te,Xe){var vt=ve!==null?ve.key:null;if(typeof Te=="string"&&Te!==""||typeof Te=="number")return vt!==null?null:oe(Ae,ve,""+Te,Xe);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case A:return Te.key===vt?ye(Ae,ve,Te,Xe):null;case S:return Te.key===vt?_e(Ae,ve,Te,Xe):null;case F:return vt=Te._init,Ke(Ae,ve,vt(Te._payload),Xe)}if(Ze(Te)||V(Te))return vt!==null?null:Ve(Ae,ve,Te,Xe,null);kh(Ae,Te)}return null}function st(Ae,ve,Te,Xe,vt){if(typeof Xe=="string"&&Xe!==""||typeof Xe=="number")return Ae=Ae.get(Te)||null,oe(ve,Ae,""+Xe,vt);if(typeof Xe=="object"&&Xe!==null){switch(Xe.$$typeof){case A:return Ae=Ae.get(Xe.key===null?Te:Xe.key)||null,ye(ve,Ae,Xe,vt);case S:return Ae=Ae.get(Xe.key===null?Te:Xe.key)||null,_e(ve,Ae,Xe,vt);case F:var Ct=Xe._init;return st(Ae,ve,Te,Ct(Xe._payload),vt)}if(Ze(Xe)||V(Xe))return Ae=Ae.get(Te)||null,Ve(ve,Ae,Xe,vt,null);kh(ve,Xe)}return null}function mt(Ae,ve,Te,Xe){for(var vt=null,Ct=null,At=ve,Bt=ve=0,tr=null;At!==null&&Bt<Te.length;Bt++){At.index>Bt?(tr=At,At=null):tr=At.sibling;var Qt=Ke(Ae,At,Te[Bt],Xe);if(Qt===null){At===null&&(At=tr);break}o&&At&&Qt.alternate===null&&d(Ae,At),ve=K(Qt,ve,Bt),Ct===null?vt=Qt:Ct.sibling=Qt,Ct=Qt,At=tr}if(Bt===Te.length)return b(Ae,At),Cn&&il(Ae,Bt),vt;if(At===null){for(;Bt<Te.length;Bt++)At=qe(Ae,Te[Bt],Xe),At!==null&&(ve=K(At,ve,Bt),Ct===null?vt=At:Ct.sibling=At,Ct=At);return Cn&&il(Ae,Bt),vt}for(At=P(Ae,At);Bt<Te.length;Bt++)tr=st(At,Ae,Bt,Te[Bt],Xe),tr!==null&&(o&&tr.alternate!==null&&At.delete(tr.key===null?Bt:tr.key),ve=K(tr,ve,Bt),Ct===null?vt=tr:Ct.sibling=tr,Ct=tr);return o&&At.forEach(function(ho){return d(Ae,ho)}),Cn&&il(Ae,Bt),vt}function xt(Ae,ve,Te,Xe){var vt=V(Te);if(typeof vt!="function")throw Error(n(150));if(Te=vt.call(Te),Te==null)throw Error(n(151));for(var Ct=vt=null,At=ve,Bt=ve=0,tr=null,Qt=Te.next();At!==null&&!Qt.done;Bt++,Qt=Te.next()){At.index>Bt?(tr=At,At=null):tr=At.sibling;var ho=Ke(Ae,At,Qt.value,Xe);if(ho===null){At===null&&(At=tr);break}o&&At&&ho.alternate===null&&d(Ae,At),ve=K(ho,ve,Bt),Ct===null?vt=ho:Ct.sibling=ho,Ct=ho,At=tr}if(Qt.done)return b(Ae,At),Cn&&il(Ae,Bt),vt;if(At===null){for(;!Qt.done;Bt++,Qt=Te.next())Qt=qe(Ae,Qt.value,Xe),Qt!==null&&(ve=K(Qt,ve,Bt),Ct===null?vt=Qt:Ct.sibling=Qt,Ct=Qt);return Cn&&il(Ae,Bt),vt}for(At=P(Ae,At);!Qt.done;Bt++,Qt=Te.next())Qt=st(At,Ae,Bt,Qt.value,Xe),Qt!==null&&(o&&Qt.alternate!==null&&At.delete(Qt.key===null?Bt:Qt.key),ve=K(Qt,ve,Bt),Ct===null?vt=Qt:Ct.sibling=Qt,Ct=Qt);return o&&At.forEach(function(gq){return d(Ae,gq)}),Cn&&il(Ae,Bt),vt}function On(Ae,ve,Te,Xe){if(typeof Te=="object"&&Te!==null&&Te.type===_&&Te.key===null&&(Te=Te.props.children),typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case A:e:{for(var vt=Te.key,Ct=ve;Ct!==null;){if(Ct.key===vt){if(vt=Te.type,vt===_){if(Ct.tag===7){b(Ae,Ct.sibling),ve=L(Ct,Te.props.children),ve.return=Ae,Ae=ve;break e}}else if(Ct.elementType===vt||typeof vt=="object"&&vt!==null&&vt.$$typeof===F&&qk(vt)===Ct.type){b(Ae,Ct.sibling),ve=L(Ct,Te.props),ve.ref=qd(Ae,Ct,Te),ve.return=Ae,Ae=ve;break e}b(Ae,Ct);break}else d(Ae,Ct);Ct=Ct.sibling}Te.type===_?(ve=ml(Te.props.children,Ae.mode,Xe,Te.key),ve.return=Ae,Ae=ve):(Xe=qh(Te.type,Te.key,Te.props,null,Ae.mode,Xe),Xe.ref=qd(Ae,ve,Te),Xe.return=Ae,Ae=Xe)}return te(Ae);case S:e:{for(Ct=Te.key;ve!==null;){if(ve.key===Ct)if(ve.tag===4&&ve.stateNode.containerInfo===Te.containerInfo&&ve.stateNode.implementation===Te.implementation){b(Ae,ve.sibling),ve=L(ve,Te.children||[]),ve.return=Ae,Ae=ve;break e}else{b(Ae,ve);break}else d(Ae,ve);ve=ve.sibling}ve=Vx(Te,Ae.mode,Xe),ve.return=Ae,Ae=ve}return te(Ae);case F:return Ct=Te._init,On(Ae,ve,Ct(Te._payload),Xe)}if(Ze(Te))return mt(Ae,ve,Te,Xe);if(V(Te))return xt(Ae,ve,Te,Xe);kh(Ae,Te)}return typeof Te=="string"&&Te!==""||typeof Te=="number"?(Te=""+Te,ve!==null&&ve.tag===6?(b(Ae,ve.sibling),ve=L(ve,Te),ve.return=Ae,Ae=ve):(b(Ae,ve),ve=Kx(Te,Ae.mode,Xe),ve.return=Ae,Ae=ve),te(Ae)):b(Ae,ve)}return On}var ru=Wk(!0),Jk=Wk(!1),Ch=ro(null),Ah=null,au=null,ex=null;function tx(){ex=au=Ah=null}function nx(o){var d=Ch.current;gn(Ch),o._currentValue=d}function rx(o,d,b){for(;o!==null;){var P=o.alternate;if((o.childLanes&d)!==d?(o.childLanes|=d,P!==null&&(P.childLanes|=d)):P!==null&&(P.childLanes&d)!==d&&(P.childLanes|=d),o===b)break;o=o.return}}function su(o,d){Ah=o,ex=au=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&d)!==0&&(zr=!0),o.firstContext=null)}function Oa(o){var d=o._currentValue;if(ex!==o)if(o={context:o,memoizedValue:d,next:null},au===null){if(Ah===null)throw Error(n(308));au=o,Ah.dependencies={lanes:0,firstContext:o}}else au=au.next=o;return d}var ol=null;function ax(o){ol===null?ol=[o]:ol.push(o)}function Zk(o,d,b,P){var L=d.interleaved;return L===null?(b.next=b,ax(d)):(b.next=L.next,L.next=b),d.interleaved=b,ni(o,P)}function ni(o,d){o.lanes|=d;var b=o.alternate;for(b!==null&&(b.lanes|=d),b=o,o=o.return;o!==null;)o.childLanes|=d,b=o.alternate,b!==null&&(b.childLanes|=d),b=o,o=o.return;return b.tag===3?b.stateNode:null}var io=!1;function sx(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qk(o,d){o=o.updateQueue,d.updateQueue===o&&(d.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function ri(o,d){return{eventTime:o,lane:d,tag:0,payload:null,callback:null,next:null}}function oo(o,d,b){var P=o.updateQueue;if(P===null)return null;if(P=P.shared,(Vt&2)!==0){var L=P.pending;return L===null?d.next=d:(d.next=L.next,L.next=d),P.pending=d,ni(o,b)}return L=P.interleaved,L===null?(d.next=d,ax(P)):(d.next=L.next,L.next=d),P.interleaved=d,ni(o,b)}function Ph(o,d,b){if(d=d.updateQueue,d!==null&&(d=d.shared,(b&4194240)!==0)){var P=d.lanes;P&=o.pendingLanes,b|=P,d.lanes=b,nl(o,b)}}function Xk(o,d){var b=o.updateQueue,P=o.alternate;if(P!==null&&(P=P.updateQueue,b===P)){var L=null,K=null;if(b=b.firstBaseUpdate,b!==null){do{var te={eventTime:b.eventTime,lane:b.lane,tag:b.tag,payload:b.payload,callback:b.callback,next:null};K===null?L=K=te:K=K.next=te,b=b.next}while(b!==null);K===null?L=K=d:K=K.next=d}else L=K=d;b={baseState:P.baseState,firstBaseUpdate:L,lastBaseUpdate:K,shared:P.shared,effects:P.effects},o.updateQueue=b;return}o=b.lastBaseUpdate,o===null?b.firstBaseUpdate=d:o.next=d,b.lastBaseUpdate=d}function Th(o,d,b,P){var L=o.updateQueue;io=!1;var K=L.firstBaseUpdate,te=L.lastBaseUpdate,oe=L.shared.pending;if(oe!==null){L.shared.pending=null;var ye=oe,_e=ye.next;ye.next=null,te===null?K=_e:te.next=_e,te=ye;var Ve=o.alternate;Ve!==null&&(Ve=Ve.updateQueue,oe=Ve.lastBaseUpdate,oe!==te&&(oe===null?Ve.firstBaseUpdate=_e:oe.next=_e,Ve.lastBaseUpdate=ye))}if(K!==null){var qe=L.baseState;te=0,Ve=_e=ye=null,oe=K;do{var Ke=oe.lane,st=oe.eventTime;if((P&Ke)===Ke){Ve!==null&&(Ve=Ve.next={eventTime:st,lane:0,tag:oe.tag,payload:oe.payload,callback:oe.callback,next:null});e:{var mt=o,xt=oe;switch(Ke=d,st=b,xt.tag){case 1:if(mt=xt.payload,typeof mt=="function"){qe=mt.call(st,qe,Ke);break e}qe=mt;break e;case 3:mt.flags=mt.flags&-65537|128;case 0:if(mt=xt.payload,Ke=typeof mt=="function"?mt.call(st,qe,Ke):mt,Ke==null)break e;qe=$({},qe,Ke);break e;case 2:io=!0}}oe.callback!==null&&oe.lane!==0&&(o.flags|=64,Ke=L.effects,Ke===null?L.effects=[oe]:Ke.push(oe))}else st={eventTime:st,lane:Ke,tag:oe.tag,payload:oe.payload,callback:oe.callback,next:null},Ve===null?(_e=Ve=st,ye=qe):Ve=Ve.next=st,te|=Ke;if(oe=oe.next,oe===null){if(oe=L.shared.pending,oe===null)break;Ke=oe,oe=Ke.next,Ke.next=null,L.lastBaseUpdate=Ke,L.shared.pending=null}}while(!0);if(Ve===null&&(ye=qe),L.baseState=ye,L.firstBaseUpdate=_e,L.lastBaseUpdate=Ve,d=L.shared.interleaved,d!==null){L=d;do te|=L.lane,L=L.next;while(L!==d)}else K===null&&(L.shared.lanes=0);ul|=te,o.lanes=te,o.memoizedState=qe}}function Yk(o,d,b){if(o=d.effects,d.effects=null,o!==null)for(d=0;d<o.length;d++){var P=o[d],L=P.callback;if(L!==null){if(P.callback=null,P=b,typeof L!="function")throw Error(n(191,L));L.call(P)}}}var Wd={},Ts=ro(Wd),Jd=ro(Wd),Zd=ro(Wd);function ll(o){if(o===Wd)throw Error(n(174));return o}function ix(o,d){switch(pn(Zd,d),pn(Jd,o),pn(Ts,Wd),o=d.nodeType,o){case 9:case 11:d=(d=d.documentElement)?d.namespaceURI:Re(null,"");break;default:o=o===8?d.parentNode:d,d=o.namespaceURI||null,o=o.tagName,d=Re(d,o)}gn(Ts),pn(Ts,d)}
vendor: 7,824 bytes, line 38
38function iu(){gn(Ts),gn(Jd),gn(Zd)}function e7(o){ll(Zd.current);var d=ll(Ts.current),b=Re(d,o.type);d!==b&&(pn(Jd,o),pn(Ts,b))}function ox(o){Jd.current===o&&(gn(Ts),gn(Jd))}var Sn=ro(0);function Sh(o){for(var d=o;d!==null;){if(d.tag===13){var b=d.memoizedState;if(b!==null&&(b=b.dehydrated,b===null||b.data==="$?"||b.data==="$!"))return d}else if(d.tag===19&&d.memoizedProps.revealOrder!==void 0){if((d.flags&128)!==0)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===o)break;for(;d.sibling===null;){if(d.return===null||d.return===o)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}var lx=[];function cx(){for(var o=0;o<lx.length;o++)lx[o]._workInProgressVersionPrimary=null;lx.length=0}var Bh=g.ReactCurrentDispatcher,ux=g.ReactCurrentBatchConfig,cl=0,Bn=null,Kn=null,Yn=null,_h=!1,Qd=!1,Xd=0,LG=0;function mr(){throw Error(n(321))}function dx(o,d){if(d===null)return!1;for(var b=0;b<d.length&&b<o.length;b++)if(!Za(o[b],d[b]))return!1;return!0}function fx(o,d,b,P,L,K){if(cl=K,Bn=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,Bh.current=o===null||o.memoizedState===null?KG:VG,o=b(P,L),Qd){K=0;do{if(Qd=!1,Xd=0,25<=K)throw Error(n(301));K+=1,Yn=Kn=null,d.updateQueue=null,Bh.current=GG,o=b(P,L)}while(Qd)}if(Bh.current=Rh,d=Kn!==null&&Kn.next!==null,cl=0,Yn=Kn=Bn=null,_h=!1,d)throw Error(n(300));return o}function px(){var o=Xd!==0;return Xd=0,o}function Ss(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yn===null?Bn.memoizedState=Yn=o:Yn=Yn.next=o,Yn}function Ma(){if(Kn===null){var o=Bn.alternate;o=o!==null?o.memoizedState:null}else o=Kn.next;var d=Yn===null?Bn.memoizedState:Yn.next;if(d!==null)Yn=d,Kn=o;else{if(o===null)throw Error(n(310));Kn=o,o={memoizedState:Kn.memoizedState,baseState:Kn.baseState,baseQueue:Kn.baseQueue,queue:Kn.queue,next:null},Yn===null?Bn.memoizedState=Yn=o:Yn=Yn.next=o}return Yn}function Yd(o,d){return typeof d=="function"?d(o):d}function mx(o){var d=Ma(),b=d.queue;if(b===null)throw Error(n(311));b.lastRenderedReducer=o;var P=Kn,L=P.baseQueue,K=b.pending;if(K!==null){if(L!==null){var te=L.next;L.next=K.next,K.next=te}P.baseQueue=L=K,b.pending=null}if(L!==null){K=L.next,P=P.baseState;var oe=te=null,ye=null,_e=K;do{var Ve=_e.lane;if((cl&Ve)===Ve)ye!==null&&(ye=ye.next={lane:0,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null}),P=_e.hasEagerState?_e.eagerState:o(P,_e.action);else{var qe={lane:Ve,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};ye===null?(oe=ye=qe,te=P):ye=ye.next=qe,Bn.lanes|=Ve,ul|=Ve}_e=_e.next}while(_e!==null&&_e!==K);ye===null?te=P:ye.next=oe,Za(P,d.memoizedState)||(zr=!0),d.memoizedState=P,d.baseState=te,d.baseQueue=ye,b.lastRenderedState=P}if(o=b.interleaved,o!==null){L=o;do K=L.lane,Bn.lanes|=K,ul|=K,L=L.next;while(L!==o)}else L===null&&(b.lanes=0);return[d.memoizedState,b.dispatch]}function hx(o){var d=Ma(),b=d.queue;if(b===null)throw Error(n(311));b.lastRenderedReducer=o;var P=b.dispatch,L=b.pending,K=d.memoizedState;if(L!==null){b.pending=null;var te=L=L.next;do K=o(K,te.action),te=te.next;while(te!==L);Za(K,d.memoizedState)||(zr=!0),d.memoizedState=K,d.baseQueue===null&&(d.baseState=K),b.lastRenderedState=K}return[K,P]}function t7(){}function n7(o,d){var b=Bn,P=Ma(),L=d(),K=!Za(P.memoizedState,L);if(K&&(P.memoizedState=L,zr=!0),P=P.queue,yx(s7.bind(null,b,P,o),[o]),P.getSnapshot!==d||K||Yn!==null&&Yn.memoizedState.tag&1){if(b.flags|=2048,ef(9,a7.bind(null,b,P,L,d),void 0,null),er===null)throw Error(n(349));(cl&30)!==0||r7(b,d,L)}return L}function r7(o,d,b){o.flags|=16384,o={getSnapshot:d,value:b},d=Bn.updateQueue,d===null?(d={lastEffect:null,stores:null},Bn.updateQueue=d,d.stores=[o]):(b=d.stores,b===null?d.stores=[o]:b.push(o))}function a7(o,d,b,P){d.value=b,d.getSnapshot=P,i7(d)&&o7(o)}function s7(o,d,b){return b(function(){i7(d)&&o7(o)})}function i7(o){var d=o.getSnapshot;o=o.value;try{var b=d();return!Za(o,b)}catch{return!0}}function o7(o){var d=ni(o,1);d!==null&&ts(d,o,1,-1)}function l7(o){var d=Ss();return typeof o=="function"&&(o=o()),d.memoizedState=d.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yd,lastRenderedState:o},d.queue=o,o=o.dispatch=HG.bind(null,Bn,o),[d.memoizedState,o]}function ef(o,d,b,P){return o={tag:o,create:d,destroy:b,deps:P,next:null},d=Bn.updateQueue,d===null?(d={lastEffect:null,stores:null},Bn.updateQueue=d,d.lastEffect=o.next=o):(b=d.lastEffect,b===null?d.lastEffect=o.next=o:(P=b.next,b.next=o,o.next=P,d.lastEffect=o)),o}function c7(){return Ma().memoizedState}function Ih(o,d,b,P){var L=Ss();Bn.flags|=o,L.memoizedState=ef(1|d,b,void 0,P===void 0?null:P)}function Nh(o,d,b,P){var L=Ma();P=P===void 0?null:P;var K=void 0;if(Kn!==null){var te=Kn.memoizedState;if(K=te.destroy,P!==null&&dx(P,te.deps)){L.memoizedState=ef(d,b,K,P);return}}Bn.flags|=o,L.memoizedState=ef(1|d,b,K,P)}function u7(o,d){return Ih(8390656,8,o,d)}function yx(o,d){return Nh(2048,8,o,d)}function d7(o,d){return Nh(4,2,o,d)}function f7(o,d){return Nh(4,4,o,d)}function p7(o,d){if(typeof d=="function")return o=o(),d(o),function(){d(null)};if(d!=null)return o=o(),d.current=o,function(){d.current=null}}function m7(o,d,b){return b=b!=null?b.concat([o]):null,Nh(4,4,p7.bind(null,d,o),b)}function bx(){}function h7(o,d){var b=Ma();d=d===void 0?null:d;var P=b.memoizedState;return P!==null&&d!==null&&dx(d,P[1])?P[0]:(b.memoizedState=[o,d],o)}function y7(o,d){var b=Ma();d=d===void 0?null:d;var P=b.memoizedState;return P!==null&&d!==null&&dx(d,P[1])?P[0]:(o=o(),b.memoizedState=[o,d],o)}function b7(o,d,b){return(cl&21)===0?(o.baseState&&(o.baseState=!1,zr=!0),o.memoizedState=b):(Za(b,d)||(b=As(),Bn.lanes|=b,ul|=b,o.baseState=!0),d)}function $G(o,d){var b=an;an=b!==0&&4>b?b:4,o(!0);var P=ux.transition;ux.transition={};try{o(!1),d()}finally{an=b,ux.transition=P}}function g7(){return Ma().memoizedState}function zG(o,d,b){var P=fo(o);if(b={lane:P,action:b,hasEagerState:!1,eagerState:null,next:null},x7(o))v7(d,b);else if(b=Zk(o,d,b,P),b!==null){var L=Cr();ts(b,o,P,L),w7(b,d,P)}}function HG(o,d,b){var P=fo(o),L={lane:P,action:b,hasEagerState:!1,eagerState:null,next:null};if(x7(o))v7(d,L);else{var K=o.alternate;if(o.lanes===0&&(K===null||K.lanes===0)&&(K=d.lastRenderedReducer,K!==null))try{var te=d.lastRenderedState,oe=K(te,b);if(L.hasEagerState=!0,L.eagerState=oe,Za(oe,te)){var ye=d.interleaved;ye===null?(L.next=L,ax(d)):(L.next=ye.next,ye.next=L),d.interleaved=L;return}}catch{}finally{}b=Zk(o,d,L,P),b!==null&&(L=Cr(),ts(b,o,P,L),w7(b,d,P))}}function x7(o){var d=o.alternate;return o===Bn||d!==null&&d===Bn}function v7(o,d){Qd=_h=!0;var b=o.pending;b===null?d.next=d:(d.next=b.next,b.next=d),o.pending=d}function w7(o,d,b){if((b&4194240)!==0){var P=d.lanes;P&=o.pendingLanes,b|=P,d.lanes=b,nl(o,b)}}var Rh={readContext:Oa,useCallback:mr,useContext:mr,useEffect:mr,useImperativeHandle:mr,useInsertionEffect:mr,useLayoutEffect:mr,useMemo:mr,useReducer:mr,useRef:mr,useState:mr,useDebugValue:mr,useDeferredValue:mr,useTransition:mr,useMutableSource:mr,useSyncExternalStore:mr,useId:mr,unstable_isNewReconciler:!1},KG={readContext:Oa,useCallback:function(o,d){return Ss().memoizedState=[o,d===void 0?null:d],o},useContext:Oa,useEffect:u7,useImperativeHandle:function(o,d,b){return b=b!=null?b.concat([o]):null,Ih(4194308,4,p7.bind(null,d,o),b)},useLayoutEffect:function(o,d){return Ih(4194308,4,o,d)},useInsertionEffect:function(o,d){return Ih(4,2,o,d)},useMemo:function(o,d){var b=Ss();return d=d===void 0?null:d,o=o(),b.memoizedState=[o,d],o},useReducer:function(o,d,b){var P=Ss();return d=b!==void 0?b(d):d,P.memoizedState=P.baseState=d,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:d},P.queue=o,o=o.dispatch=zG.bind(null,Bn,o),[P.memoizedState,o]}
vendor: 6,408 bytes, lines 38-40
38,useRef:function(o){var d=Ss();return o={current:o},d.memoizedState=o},useState:l7,useDebugValue:bx,useDeferredValue:function(o){return Ss().memoizedState=o},useTransition:function(){var o=l7(!1),d=o[0];return o=$G.bind(null,o[1]),Ss().memoizedState=o,[d,o]},useMutableSource:function(){},useSyncExternalStore:function(o,d,b){var P=Bn,L=Ss();if(Cn){if(b===void 0)throw Error(n(407));b=b()}else{if(b=d(),er===null)throw Error(n(349));(cl&30)!==0||r7(P,d,b)}L.memoizedState=b;var K={value:b,getSnapshot:d};return L.queue=K,u7(s7.bind(null,P,K,o),[o]),P.flags|=2048,ef(9,a7.bind(null,P,K,b,d),void 0,null),b},useId:function(){var o=Ss(),d=er.identifierPrefix;if(Cn){var b=ti,P=ei;b=(P&~(1<<32-rt(P)-1)).toString(32)+b,d=":"+d+"R"+b,b=Xd++,0<b&&(d+="H"+b.toString(32)),d+=":"}else b=LG++,d=":"+d+"r"+b.toString(32)+":";return o.memoizedState=d},unstable_isNewReconciler:!1},VG={readContext:Oa,useCallback:h7,useContext:Oa,useEffect:yx,useImperativeHandle:m7,useInsertionEffect:d7,useLayoutEffect:f7,useMemo:y7,useReducer:mx,useRef:c7,useState:function(){return mx(Yd)},useDebugValue:bx,useDeferredValue:function(o){var d=Ma();return b7(d,Kn.memoizedState,o)},useTransition:function(){var o=mx(Yd)[0],d=Ma().memoizedState;return[o,d]},useMutableSource:t7,useSyncExternalStore:n7,useId:g7,unstable_isNewReconciler:!1},GG={readContext:Oa,useCallback:h7,useContext:Oa,useEffect:yx,useImperativeHandle:m7,useInsertionEffect:d7,useLayoutEffect:f7,useMemo:y7,useReducer:hx,useRef:c7,useState:function(){return hx(Yd)},useDebugValue:bx,useDeferredValue:function(o){var d=Ma();return Kn===null?d.memoizedState=o:b7(d,Kn.memoizedState,o)},useTransition:function(){var o=hx(Yd)[0],d=Ma().memoizedState;return[o,d]},useMutableSource:t7,useSyncExternalStore:n7,useId:g7,unstable_isNewReconciler:!1};function Xa(o,d){if(o&&o.defaultProps){d=$({},d),o=o.defaultProps;for(var b in o)d[b]===void 0&&(d[b]=o[b]);return d}return d}function gx(o,d,b,P){d=o.memoizedState,b=b(P,d),b=b==null?d:$({},d,b),o.memoizedState=b,o.lanes===0&&(o.updateQueue.baseState=b)}var Oh={isMounted:function(o){return(o=o._reactInternals)?ot(o)===o:!1},enqueueSetState:function(o,d,b){o=o._reactInternals;var P=Cr(),L=fo(o),K=ri(P,L);K.payload=d,b!=null&&(K.callback=b),d=oo(o,K,L),d!==null&&(ts(d,o,L,P),Ph(d,o,L))},enqueueReplaceState:function(o,d,b){o=o._reactInternals;var P=Cr(),L=fo(o),K=ri(P,L);K.tag=1,K.payload=d,b!=null&&(K.callback=b),d=oo(o,K,L),d!==null&&(ts(d,o,L,P),Ph(d,o,L))},enqueueForceUpdate:function(o,d){o=o._reactInternals;var b=Cr(),P=fo(o),L=ri(b,P);L.tag=2,d!=null&&(L.callback=d),d=oo(o,L,P),d!==null&&(ts(d,o,P,b),Ph(d,o,P))}};function E7(o,d,b,P,L,K,te){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(P,K,te):d.prototype&&d.prototype.isPureReactComponent?!Ld(b,P)||!Ld(L,K):!0}function k7(o,d,b){var P=!1,L=ao,K=d.contextType;return typeof K=="object"&&K!==null?K=Oa(K):(L=$r(d)?al:pr.current,P=d.contextTypes,K=(P=P!=null)?Yc(o,L):ao),d=new d(b,K),o.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Oh,o.stateNode=d,d._reactInternals=o,P&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=L,o.__reactInternalMemoizedMaskedChildContext=K),d}function C7(o,d,b,P){o=d.state,typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps(b,P),typeof d.UNSAFE_componentWillReceiveProps=="function"&&d.UNSAFE_componentWillReceiveProps(b,P),d.state!==o&&Oh.enqueueReplaceState(d,d.state,null)}function xx(o,d,b,P){var L=o.stateNode;L.props=b,L.state=o.memoizedState,L.refs={},sx(o);var K=d.contextType;typeof K=="object"&&K!==null?L.context=Oa(K):(K=$r(d)?al:pr.current,L.context=Yc(o,K)),L.state=o.memoizedState,K=d.getDerivedStateFromProps,typeof K=="function"&&(gx(o,d,K,b),L.state=o.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof L.getSnapshotBeforeUpdate=="function"||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(d=L.state,typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount(),d!==L.state&&Oh.enqueueReplaceState(L,L.state,null),Th(o,b,L,P),L.state=o.memoizedState),typeof L.componentDidMount=="function"&&(o.flags|=4194308)}function ou(o,d){try{var b="",P=d;do b+=ae(P),P=P.return;while(P);var L=b}catch(K){L=`
39Error generating stack: `+K.message+`
40`+K.stack}return{value:o,source:d,stack:L,digest:null}}function vx(o,d,b){return{value:o,source:null,stack:b??null,digest:d??null}}function wx(o,d){try{console.error(d.value)}catch(b){setTimeout(function(){throw b})}}var qG=typeof WeakMap=="function"?WeakMap:Map;function A7(o,d,b){b=ri(-1,b),b.tag=3,b.payload={element:null};var P=d.value;return b.callback=function(){$h||($h=!0,Dx=P),wx(o,d)},b}function P7(o,d,b){b=ri(-1,b),b.tag=3;var P=o.type.getDerivedStateFromError;if(typeof P=="function"){var L=d.value;b.payload=function(){return P(L)},b.callback=function(){wx(o,d)}}var K=o.stateNode;return K!==null&&typeof K.componentDidCatch=="function"&&(b.callback=function(){wx(o,d),typeof P!="function"&&(co===null?co=new Set([this]):co.add(this));var te=d.stack;this.componentDidCatch(d.value,{componentStack:te!==null?te:""})}),b}function T7(o,d,b){var P=o.pingCache;if(P===null){P=o.pingCache=new qG;var L=new Set;P.set(d,L)}else L=P.get(d),L===void 0&&(L=new Set,P.set(d,L));L.has(b)||(L.add(b),o=oq.bind(null,o,d,b),d.then(o,o))}function S7(o){do{var d;if((d=o.tag===13)&&(d=o.memoizedState,d=d!==null?d.dehydrated!==null:!0),d)return o;o=o.return}while(o!==null);return null}function B7(o,d,b,P,L){return(o.mode&1)===0?(o===d?o.flags|=65536:(o.flags|=128,b.flags|=131072,b.flags&=-52805,b.tag===1&&(b.alternate===null?b.tag=17:(d=ri(-1,1),d.tag=2,oo(b,d,1))),b.lanes|=1),o):(o.flags|=65536,o.lanes=L,o)}var WG=g.ReactCurrentOwner,zr=!1;function kr(o,d,b,P){d.child=o===null?Jk(d,null,b,P):ru(d,o.child,b,P)}function _7(o,d,b,P,L){b=b.render;var K=d.ref;return su(d,L),P=fx(o,d,b,P,K,L),b=px(),o!==null&&!zr?(d.updateQueue=o.updateQueue,d.flags&=-2053,o.lanes&=~L,ai(o,d,L)):(Cn&&b&&Jg(d),d.flags|=1,kr(o,d,P,L),d.child)}function I7(o,d,b,P,L){if(o===null){var K=b.type;return typeof K=="function"&&!Hx(K)&&K.defaultProps===void 0&&b.compare===null&&b.defaultProps===void 0?(d.tag=15,d.type=K,N7(o,d,K,P,L)):(o=qh(b.type,null,P,d,d.mode,L),o.ref=d.ref,o.return=d,d.child=o)}if(K=o.child,(o.lanes&L)===0){var te=K.memoizedProps;
vendor: 42,535 bytes, line 40
40if(b=b.compare,b=b!==null?b:Ld,b(te,P)&&o.ref===d.ref)return ai(o,d,L)}return d.flags|=1,o=mo(K,P),o.ref=d.ref,o.return=d,d.child=o}function N7(o,d,b,P,L){if(o!==null){var K=o.memoizedProps;if(Ld(K,P)&&o.ref===d.ref)if(zr=!1,d.pendingProps=P=K,(o.lanes&L)!==0)(o.flags&131072)!==0&&(zr=!0);else return d.lanes=o.lanes,ai(o,d,L)}return Ex(o,d,b,P,L)}function R7(o,d,b){var P=d.pendingProps,L=P.children,K=o!==null?o.memoizedState:null;if(P.mode==="hidden")if((d.mode&1)===0)d.memoizedState={baseLanes:0,cachePool:null,transitions:null},pn(cu,pa),pa|=b;else{if((b&1073741824)===0)return o=K!==null?K.baseLanes|b:b,d.lanes=d.childLanes=1073741824,d.memoizedState={baseLanes:o,cachePool:null,transitions:null},d.updateQueue=null,pn(cu,pa),pa|=o,null;d.memoizedState={baseLanes:0,cachePool:null,transitions:null},P=K!==null?K.baseLanes:b,pn(cu,pa),pa|=P}else K!==null?(P=K.baseLanes|b,d.memoizedState=null):P=b,pn(cu,pa),pa|=P;return kr(o,d,L,b),d.child}function O7(o,d){var b=d.ref;(o===null&&b!==null||o!==null&&o.ref!==b)&&(d.flags|=512,d.flags|=2097152)}function Ex(o,d,b,P,L){var K=$r(b)?al:pr.current;return K=Yc(d,K),su(d,L),b=fx(o,d,b,P,K,L),P=px(),o!==null&&!zr?(d.updateQueue=o.updateQueue,d.flags&=-2053,o.lanes&=~L,ai(o,d,L)):(Cn&&P&&Jg(d),d.flags|=1,kr(o,d,b,L),d.child)}function M7(o,d,b,P,L){if($r(b)){var K=!0;gh(d)}else K=!1;if(su(d,L),d.stateNode===null)Dh(o,d),k7(d,b,P),xx(d,b,P,L),P=!0;else if(o===null){var te=d.stateNode,oe=d.memoizedProps;te.props=oe;var ye=te.context,_e=b.contextType;typeof _e=="object"&&_e!==null?_e=Oa(_e):(_e=$r(b)?al:pr.current,_e=Yc(d,_e));var Ve=b.getDerivedStateFromProps,qe=typeof Ve=="function"||typeof te.getSnapshotBeforeUpdate=="function";qe||typeof te.UNSAFE_componentWillReceiveProps!="function"&&typeof te.componentWillReceiveProps!="function"||(oe!==P||ye!==_e)&&C7(d,te,P,_e),io=!1;var Ke=d.memoizedState;te.state=Ke,Th(d,P,te,L),ye=d.memoizedState,oe!==P||Ke!==ye||Lr.current||io?(typeof Ve=="function"&&(gx(d,b,Ve,P),ye=d.memoizedState),(oe=io||E7(d,b,oe,P,Ke,ye,_e))?(qe||typeof te.UNSAFE_componentWillMount!="function"&&typeof te.componentWillMount!="function"||(typeof te.componentWillMount=="function"&&te.componentWillMount(),typeof te.UNSAFE_componentWillMount=="function"&&te.UNSAFE_componentWillMount()),typeof te.componentDidMount=="function"&&(d.flags|=4194308)):(typeof te.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=P,d.memoizedState=ye),te.props=P,te.state=ye,te.context=_e,P=oe):(typeof te.componentDidMount=="function"&&(d.flags|=4194308),P=!1)}else{te=d.stateNode,Qk(o,d),oe=d.memoizedProps,_e=d.type===d.elementType?oe:Xa(d.type,oe),te.props=_e,qe=d.pendingProps,Ke=te.context,ye=b.contextType,typeof ye=="object"&&ye!==null?ye=Oa(ye):(ye=$r(b)?al:pr.current,ye=Yc(d,ye));var st=b.getDerivedStateFromProps;(Ve=typeof st=="function"||typeof te.getSnapshotBeforeUpdate=="function")||typeof te.UNSAFE_componentWillReceiveProps!="function"&&typeof te.componentWillReceiveProps!="function"||(oe!==qe||Ke!==ye)&&C7(d,te,P,ye),io=!1,Ke=d.memoizedState,te.state=Ke,Th(d,P,te,L);var mt=d.memoizedState;oe!==qe||Ke!==mt||Lr.current||io?(typeof st=="function"&&(gx(d,b,st,P),mt=d.memoizedState),(_e=io||E7(d,b,_e,P,Ke,mt,ye)||!1)?(Ve||typeof te.UNSAFE_componentWillUpdate!="function"&&typeof te.componentWillUpdate!="function"||(typeof te.componentWillUpdate=="function"&&te.componentWillUpdate(P,mt,ye),typeof te.UNSAFE_componentWillUpdate=="function"&&te.UNSAFE_componentWillUpdate(P,mt,ye)),typeof te.componentDidUpdate=="function"&&(d.flags|=4),typeof te.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof te.componentDidUpdate!="function"||oe===o.memoizedProps&&Ke===o.memoizedState||(d.flags|=4),typeof te.getSnapshotBeforeUpdate!="function"||oe===o.memoizedProps&&Ke===o.memoizedState||(d.flags|=1024),d.memoizedProps=P,d.memoizedState=mt),te.props=P,te.state=mt,te.context=ye,P=_e):(typeof te.componentDidUpdate!="function"||oe===o.memoizedProps&&Ke===o.memoizedState||(d.flags|=4),typeof te.getSnapshotBeforeUpdate!="function"||oe===o.memoizedProps&&Ke===o.memoizedState||(d.flags|=1024),P=!1)}return kx(o,d,b,P,K,L)}function kx(o,d,b,P,L,K){O7(o,d);var te=(d.flags&128)!==0;if(!P&&!te)return L&&Lk(d,b,!1),ai(o,d,K);P=d.stateNode,WG.current=d;var oe=te&&typeof b.getDerivedStateFromError!="function"?null:P.render();return d.flags|=1,o!==null&&te?(d.child=ru(d,o.child,null,K),d.child=ru(d,null,oe,K)):kr(o,d,oe,K),d.memoizedState=P.state,L&&Lk(d,b,!0),d.child}function D7(o){var d=o.stateNode;d.pendingContext?Uk(o,d.pendingContext,d.pendingContext!==d.context):d.context&&Uk(o,d.context,!1),ix(o,d.containerInfo)}function F7(o,d,b,P,L){return nu(),Yg(L),d.flags|=256,kr(o,d,b,P),d.child}var Cx={dehydrated:null,treeContext:null,retryLane:0};function Ax(o){return{baseLanes:o,cachePool:null,transitions:null}}function U7(o,d,b){var P=d.pendingProps,L=Sn.current,K=!1,te=(d.flags&128)!==0,oe;if((oe=te)||(oe=o!==null&&o.memoizedState===null?!1:(L&2)!==0),oe?(K=!0,d.flags&=-129):(o===null||o.memoizedState!==null)&&(L|=1),pn(Sn,L&1),o===null)return Xg(d),o=d.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((d.mode&1)===0?d.lanes=1:o.data==="$!"?d.lanes=8:d.lanes=1073741824,null):(te=P.children,o=P.fallback,K?(P=d.mode,K=d.child,te={mode:"hidden",children:te},(P&1)===0&&K!==null?(K.childLanes=0,K.pendingProps=te):K=Wh(te,P,0,null),o=ml(o,P,b,null),K.return=d,o.return=d,K.sibling=o,d.child=K,d.child.memoizedState=Ax(b),d.memoizedState=Cx,o):Px(d,te));if(L=o.memoizedState,L!==null&&(oe=L.dehydrated,oe!==null))return JG(o,d,te,P,oe,L,b);if(K){K=P.fallback,te=d.mode,L=o.child,oe=L.sibling;var ye={mode:"hidden",children:P.children};return(te&1)===0&&d.child!==L?(P=d.child,P.childLanes=0,P.pendingProps=ye,d.deletions=null):(P=mo(L,ye),P.subtreeFlags=L.subtreeFlags&14680064),oe!==null?K=mo(oe,K):(K=ml(K,te,b,null),K.flags|=2),K.return=d,P.return=d,P.sibling=K,d.child=P,P=K,K=d.child,te=o.child.memoizedState,te=te===null?Ax(b):{baseLanes:te.baseLanes|b,cachePool:null,transitions:te.transitions},K.memoizedState=te,K.childLanes=o.childLanes&~b,d.memoizedState=Cx,P}return K=o.child,o=K.sibling,P=mo(K,{mode:"visible",children:P.children}),(d.mode&1)===0&&(P.lanes=b),P.return=d,P.sibling=null,o!==null&&(b=d.deletions,b===null?(d.deletions=[o],d.flags|=16):b.push(o)),d.child=P,d.memoizedState=null,P}function Px(o,d){return d=Wh({mode:"visible",children:d},o.mode,0,null),d.return=o,o.child=d}function Mh(o,d,b,P){return P!==null&&Yg(P),ru(d,o.child,null,b),o=Px(d,d.pendingProps.children),o.flags|=2,d.memoizedState=null,o}function JG(o,d,b,P,L,K,te){if(b)return d.flags&256?(d.flags&=-257,P=vx(Error(n(422))),Mh(o,d,te,P)):d.memoizedState!==null?(d.child=o.child,d.flags|=128,null):(K=P.fallback,L=d.mode,P=Wh({mode:"visible",children:P.children},L,0,null),K=ml(K,L,te,null),K.flags|=2,P.return=d,K.return=d,P.sibling=K,d.child=P,(d.mode&1)!==0&&ru(d,o.child,null,te),d.child.memoizedState=Ax(te),d.memoizedState=Cx,K);if((d.mode&1)===0)return Mh(o,d,te,null);if(L.data==="$!"){if(P=L.nextSibling&&L.nextSibling.dataset,P)var oe=P.dgst;return P=oe,K=Error(n(419)),P=vx(K,P,void 0),Mh(o,d,te,P)}if(oe=(te&o.childLanes)!==0,zr||oe){if(P=er,P!==null){switch(te&-te){case 4:L=2;break;case 16:L=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:L=32;break;case 536870912:L=268435456;break;default:L=0}L=(L&(P.suspendedLanes|te))!==0?0:L,L!==0&&L!==K.retryLane&&(K.retryLane=L,ni(o,L),ts(P,o,L,-1))}return zx(),P=vx(Error(n(421))),Mh(o,d,te,P)}return L.data==="$?"?(d.flags|=128,d.child=o.child,d=lq.bind(null,o),L._reactRetry=d,null):(o=K.treeContext,fa=no(L.nextSibling),da=d,Cn=!0,Qa=null,o!==null&&(Na[Ra++]=ei,Na[Ra++]=ti,Na[Ra++]=sl,ei=o.id,ti=o.overflow,sl=d),d=Px(d,P.children),d.flags|=4096,d)}function j7(o,d,b){o.lanes|=d;var P=o.alternate;P!==null&&(P.lanes|=d),rx(o.return,d,b)}function Tx(o,d,b,P,L){var K=o.memoizedState;K===null?o.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:P,tail:b,tailMode:L}:(K.isBackwards=d,K.rendering=null,K.renderingStartTime=0,K.last=P,K.tail=b,K.tailMode=L)}function L7(o,d,b){var P=d.pendingProps,L=P.revealOrder,K=P.tail;if(kr(o,d,P.children,b),P=Sn.current,(P&2)!==0)P=P&1|2,d.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=d.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&j7(o,b,d);else if(o.tag===19)j7(o,b,d);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===d)break e;for(;o.sibling===null;){if(o.return===null||o.return===d)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}P&=1}if(pn(Sn,P),(d.mode&1)===0)d.memoizedState=null;else switch(L){case"forwards":for(b=d.child,L=null;b!==null;)o=b.alternate,o!==null&&Sh(o)===null&&(L=b),b=b.sibling;b=L,b===null?(L=d.child,d.child=null):(L=b.sibling,b.sibling=null),Tx(d,!1,L,b,K);break;case"backwards":for(b=null,L=d.child,d.child=null;L!==null;){if(o=L.alternate,o!==null&&Sh(o)===null){d.child=L;break}o=L.sibling,L.sibling=b,b=L,L=o}Tx(d,!0,b,null,K);break;case"together":Tx(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function Dh(o,d){(d.mode&1)===0&&o!==null&&(o.alternate=null,d.alternate=null,d.flags|=2)}function ai(o,d,b){if(o!==null&&(d.dependencies=o.dependencies),ul|=d.lanes,(b&d.childLanes)===0)return null;if(o!==null&&d.child!==o.child)throw Error(n(153));if(d.child!==null){for(o=d.child,b=mo(o,o.pendingProps),d.child=b,b.return=d;o.sibling!==null;)o=o.sibling,b=b.sibling=mo(o,o.pendingProps),b.return=d;b.sibling=null}return d.child}function ZG(o,d,b){switch(d.tag){case 3:D7(d),nu();break;case 5:e7(d);break;case 1:$r(d.type)&&gh(d);break;case 4:ix(d,d.stateNode.containerInfo);break;case 10:var P=d.type._context,L=d.memoizedProps.value;pn(Ch,P._currentValue),P._currentValue=L;break;case 13:if(P=d.memoizedState,P!==null)return P.dehydrated!==null?(pn(Sn,Sn.current&1),d.flags|=128,null):(b&d.child.childLanes)!==0?U7(o,d,b):(pn(Sn,Sn.current&1),o=ai(o,d,b),o!==null?o.sibling:null);pn(Sn,Sn.current&1);break;case 19:if(P=(b&d.childLanes)!==0,(o.flags&128)!==0){if(P)return L7(o,d,b);d.flags|=128}if(L=d.memoizedState,L!==null&&(L.rendering=null,L.tail=null,L.lastEffect=null),pn(Sn,Sn.current),P)break;return null;case 22:case 23:return d.lanes=0,R7(o,d,b)}return ai(o,d,b)}var $7,Sx,z7,H7;$7=function(o,d){for(var b=d.child;b!==null;){if(b.tag===5||b.tag===6)o.appendChild(b.stateNode);else if(b.tag!==4&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===d)break;for(;b.sibling===null;){if(b.return===null||b.return===d)return;b=b.return}b.sibling.return=b.return,b=b.sibling}},Sx=function(){},z7=function(o,d,b,P){var L=o.memoizedProps;if(L!==P){o=d.stateNode,ll(Ts.current);var K=null;switch(b){case"input":L=ge(o,L),P=ge(o,P),K=[];break;case"select":L=$({},L,{value:void 0}),P=$({},P,{value:void 0}),K=[];break;case"textarea":L=Q(o,L),P=Q(o,P),K=[];break;default:typeof L.onClick!="function"&&typeof P.onClick=="function"&&(o.onclick=hh)}ks(b,P);var te;b=null;for(_e in L)if(!P.hasOwnProperty(_e)&&L.hasOwnProperty(_e)&&L[_e]!=null)if(_e==="style"){var oe=L[_e];for(te in oe)oe.hasOwnProperty(te)&&(b||(b={}),b[te]="")}else _e!=="dangerouslySetInnerHTML"&&_e!=="children"&&_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&_e!=="autoFocus"&&(a.hasOwnProperty(_e)?K||(K=[]):(K=K||[]).push(_e,null));for(_e in P){var ye=P[_e];if(oe=L!=null?L[_e]:void 0,P.hasOwnProperty(_e)&&ye!==oe&&(ye!=null||oe!=null))if(_e==="style")if(oe){for(te in oe)!oe.hasOwnProperty(te)||ye&&ye.hasOwnProperty(te)||(b||(b={}),b[te]="");for(te in ye)ye.hasOwnProperty(te)&&oe[te]!==ye[te]&&(b||(b={}),b[te]=ye[te])}else b||(K||(K=[]),K.push(_e,b)),b=ye;else _e==="dangerouslySetInnerHTML"?(ye=ye?ye.__html:void 0,oe=oe?oe.__html:void 0,ye!=null&&oe!==ye&&(K=K||[]).push(_e,ye)):_e==="children"?typeof ye!="string"&&typeof ye!="number"||(K=K||[]).push(_e,""+ye):_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&(a.hasOwnProperty(_e)?(ye!=null&&_e==="onScroll"&&bn("scroll",o),K||oe===ye||(K=[])):(K=K||[]).push(_e,ye))}b&&(K=K||[]).push("style",b);var _e=K;(d.updateQueue=_e)&&(d.flags|=4)}},H7=function(o,d,b,P){b!==P&&(d.flags|=4)};function tf(o,d){if(!Cn)switch(o.tailMode){case"hidden":d=o.tail;for(var b=null;d!==null;)d.alternate!==null&&(b=d),d=d.sibling;b===null?o.tail=null:b.sibling=null;break;case"collapsed":b=o.tail;for(var P=null;b!==null;)b.alternate!==null&&(P=b),b=b.sibling;P===null?d||o.tail===null?o.tail=null:o.tail.sibling=null:P.sibling=null}}function hr(o){var d=o.alternate!==null&&o.alternate.child===o.child,b=0,P=0;if(d)for(var L=o.child;L!==null;)b|=L.lanes|L.childLanes,P|=L.subtreeFlags&14680064,P|=L.flags&14680064,L.return=o,L=L.sibling;else for(L=o.child;L!==null;)b|=L.lanes|L.childLanes,P|=L.subtreeFlags,P|=L.flags,L.return=o,L=L.sibling;return o.subtreeFlags|=P,o.childLanes=b,d}function QG(o,d,b){var P=d.pendingProps;switch(Zg(d),d.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hr(d),null;case 1:return $r(d.type)&&bh(),hr(d),null;case 3:return P=d.stateNode,iu(),gn(Lr),gn(pr),cx(),P.pendingContext&&(P.context=P.pendingContext,P.pendingContext=null),(o===null||o.child===null)&&(Eh(d)?d.flags|=4:o===null||o.memoizedState.isDehydrated&&(d.flags&256)===0||(d.flags|=1024,Qa!==null&&(jx(Qa),Qa=null))),Sx(o,d),hr(d),null;case 5:ox(d);var L=ll(Zd.current);if(b=d.type,o!==null&&d.stateNode!=null)z7(o,d,b,P,L),o.ref!==d.ref&&(d.flags|=512,d.flags|=2097152);else{if(!P){if(d.stateNode===null)throw Error(n(166));return hr(d),null}if(o=ll(Ts.current),Eh(d)){P=d.stateNode,b=d.type;var K=d.memoizedProps;switch(P[Ps]=d,P[Vd]=K,o=(d.mode&1)!==0,b){case"dialog":bn("cancel",P),bn("close",P);break;case"iframe":case"object":case"embed":bn("load",P);break;case"video":case"audio":for(L=0;L<zd.length;L++)bn(zd[L],P);break;case"source":bn("error",P);break;case"img":case"image":case"link":bn("error",P),bn("load",P);break;case"details":bn("toggle",P);break;case"input":J(P,K),bn("invalid",P);break;case"select":P._wrapperState={wasMultiple:!!K.multiple},bn("invalid",P);break;case"textarea":X(P,K),bn("invalid",P)}ks(b,K),L=null;for(var te in K)if(K.hasOwnProperty(te)){var oe=K[te];te==="children"?typeof oe=="string"?P.textContent!==oe&&(K.suppressHydrationWarning!==!0&&mh(P.textContent,oe,o),L=["children",oe]):typeof oe=="number"&&P.textContent!==""+oe&&(K.suppressHydrationWarning!==!0&&mh(P.textContent,oe,o),L=["children",""+oe]):a.hasOwnProperty(te)&&oe!=null&&te==="onScroll"&&bn("scroll",P)}switch(b){case"input":De(P),ce(P,K,!0);break;case"textarea":De(P),pe(P);break;case"select":case"option":break;default:typeof K.onClick=="function"&&(P.onclick=hh)}P=L,d.updateQueue=P,P!==null&&(d.flags|=4)}else{te=L.nodeType===9?L:L.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=Be(b)),o==="http://www.w3.org/1999/xhtml"?b==="script"?(o=te.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof P.is=="string"?o=te.createElement(b,{is:P.is}):(o=te.createElement(b),b==="select"&&(te=o,P.multiple?te.multiple=!0:P.size&&(te.size=P.size))):o=te.createElementNS(o,b),o[Ps]=d,o[Vd]=P,$7(o,d,!1,!1),d.stateNode=o;e:{switch(te=Mr(b,P),b){case"dialog":bn("cancel",o),bn("close",o),L=P;break;case"iframe":case"object":case"embed":bn("load",o),L=P;break;case"video":case"audio":for(L=0;L<zd.length;L++)bn(zd[L],o);L=P;break;case"source":bn("error",o),L=P;break;case"img":case"image":case"link":bn("error",o),bn("load",o),L=P;break;case"details":bn("toggle",o),L=P;break;case"input":J(o,P),L=ge(o,P),bn("invalid",o);break;case"option":L=P;break;case"select":o._wrapperState={wasMultiple:!!P.multiple},L=$({},P,{value:void 0}),bn("invalid",o);break;case"textarea":X(o,P),L=Q(o,P),bn("invalid",o);break;default:L=P}ks(b,L),oe=L;for(K in oe)if(oe.hasOwnProperty(K)){var ye=oe[K];K==="style"?Er(o,ye):K==="dangerouslySetInnerHTML"?(ye=ye?ye.__html:void 0,ye!=null&&et(o,ye)):K==="children"?typeof ye=="string"?(b!=="textarea"||ye!=="")&&Ye(o,ye):typeof ye=="number"&&Ye(o,""+ye):K!=="suppressContentEditableWarning"&&K!=="suppressHydrationWarning"&&K!=="autoFocus"&&(a.hasOwnProperty(K)?ye!=null&&K==="onScroll"&&bn("scroll",o):ye!=null&&v(o,K,ye,te))}switch(b){case"input":De(o),ce(o,P,!1);break;case"textarea":De(o),pe(o);break;case"option":P.value!=null&&o.setAttribute("value",""+le(P.value));break;case"select":o.multiple=!!P.multiple,K=P.value,K!=null?ue(o,!!P.multiple,K,!1):P.defaultValue!=null&&ue(o,!!P.multiple,P.defaultValue,!0);break;default:typeof L.onClick=="function"&&(o.onclick=hh)}switch(b){case"button":case"input":case"select":case"textarea":P=!!P.autoFocus;break e;case"img":P=!0;break e;default:P=!1}}P&&(d.flags|=4)}d.ref!==null&&(d.flags|=512,d.flags|=2097152)}return hr(d),null;case 6:if(o&&d.stateNode!=null)H7(o,d,o.memoizedProps,P);else{if(typeof P!="string"&&d.stateNode===null)throw Error(n(166));if(b=ll(Zd.current),ll(Ts.current),Eh(d)){if(P=d.stateNode,b=d.memoizedProps,P[Ps]=d,(K=P.nodeValue!==b)&&(o=da,o!==null))switch(o.tag){case 3:mh(P.nodeValue,b,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&mh(P.nodeValue,b,(o.mode&1)!==0)}K&&(d.flags|=4)}else P=(b.nodeType===9?b:b.ownerDocument).createTextNode(P),P[Ps]=d,d.stateNode=P}return hr(d),null;case 13:if(gn(Sn),P=d.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(Cn&&fa!==null&&(d.mode&1)!==0&&(d.flags&128)===0)Gk(),nu(),d.flags|=98560,K=!1;else if(K=Eh(d),P!==null&&P.dehydrated!==null){if(o===null){if(!K)throw Error(n(318));if(K=d.memoizedState,K=K!==null?K.dehydrated:null,!K)throw Error(n(317));K[Ps]=d}else nu(),(d.flags&128)===0&&(d.memoizedState=null),d.flags|=4;hr(d),K=!1}else Qa!==null&&(jx(Qa),Qa=null),K=!0;if(!K)return d.flags&65536?d:null}return(d.flags&128)!==0?(d.lanes=b,d):(P=P!==null,P!==(o!==null&&o.memoizedState!==null)&&P&&(d.child.flags|=8192,(d.mode&1)!==0&&(o===null||(Sn.current&1)!==0?Vn===0&&(Vn=3):zx())),d.updateQueue!==null&&(d.flags|=4),hr(d),null);case 4:return iu(),Sx(o,d),o===null&&Hd(d.stateNode.containerInfo),hr(d),null;case 10:return nx(d.type._context),hr(d),null;case 17:return $r(d.type)&&bh(),hr(d),null;case 19:if(gn(Sn),K=d.memoizedState,K===null)return hr(d),null;if(P=(d.flags&128)!==0,te=K.rendering,te===null)if(P)tf(K,!1);else{if(Vn!==0||o!==null&&(o.flags&128)!==0)for(o=d.child;o!==null;){if(te=Sh(o),te!==null){for(d.flags|=128,tf(K,!1),P=te.updateQueue,P!==null&&(d.updateQueue=P,d.flags|=4),d.subtreeFlags=0,P=b,b=d.child;b!==null;)K=b,o=P,K.flags&=14680066,te=K.alternate,te===null?(K.childLanes=0,K.lanes=o,K.child=null,K.subtreeFlags=0,K.memoizedProps=null,K.memoizedState=null,K.updateQueue=null,K.dependencies=null,K.stateNode=null):(K.childLanes=te.childLanes,K.lanes=te.lanes,K.child=te.child,K.subtreeFlags=0,K.deletions=null,K.memoizedProps=te.memoizedProps,K.memoizedState=te.memoizedState,K.updateQueue=te.updateQueue,K.type=te.type,o=te.dependencies,K.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),b=b.sibling;return pn(Sn,Sn.current&1|2),d.child}o=o.sibling}K.tail!==null&&we()>uu&&(d.flags|=128,P=!0,tf(K,!1),d.lanes=4194304)}else{if(!P)if(o=Sh(te),o!==null){if(d.flags|=128,P=!0,b=o.updateQueue,b!==null&&(d.updateQueue=b,d.flags|=4),tf(K,!0),K.tail===null&&K.tailMode==="hidden"&&!te.alternate&&!Cn)return hr(d),null}else 2*we()-K.renderingStartTime>uu&&b!==1073741824&&(d.flags|=128,P=!0,tf(K,!1),d.lanes=4194304);K.isBackwards?(te.sibling=d.child,d.child=te):(b=K.last,b!==null?b.sibling=te:d.child=te,K.last=te)}return K.tail!==null?(d=K.tail,K.rendering=d,K.tail=d.sibling,K.renderingStartTime=we(),d.sibling=null,b=Sn.current,pn(Sn,P?b&1|2:b&1),d):(hr(d),null);case 22:case 23:return $x(),P=d.memoizedState!==null,o!==null&&o.memoizedState!==null!==P&&(d.flags|=8192),P&&(d.mode&1)!==0?(pa&1073741824)!==0&&(hr(d),d.subtreeFlags&6&&(d.flags|=8192)):hr(d),null;case 24:return null;case 25:return null}throw Error(n(156,d.tag))}function XG(o,d){switch(Zg(d),d.tag){case 1:return $r(d.type)&&bh(),o=d.flags,o&65536?(d.flags=o&-65537|128,d):null;case 3:return iu(),gn(Lr),gn(pr),cx(),o=d.flags,(o&65536)!==0&&(o&128)===0?(d.flags=o&-65537|128,d):null;case 5:return ox(d),null;case 13:if(gn(Sn),o=d.memoizedState,o!==null&&o.dehydrated!==null){if(d.alternate===null)throw Error(n(340));nu()}return o=d.flags,o&65536?(d.flags=o&-65537|128,d):null;case 19:return gn(Sn),null;case 4:return iu(),null;case 10:return nx(d.type._context),null;case 22:case 23:return $x(),null;case 24:return null;default:return null}}var Fh=!1,yr=!1,YG=typeof WeakSet=="function"?WeakSet:Set,ut=null;function lu(o,d){var b=o.ref;if(b!==null)if(typeof b=="function")try{b(null)}catch(P){_n(o,d,P)}else b.current=null}function Bx(o,d,b){try{b()}catch(P){_n(o,d,P)}}var K7=!1;function eq(o,d){if($g=rh,o=Ek(),Rg(o)){if("selectionStart"in o)var b={start:o.selectionStart,end:o.selectionEnd};else e:{b=(b=o.ownerDocument)&&b.defaultView||window;var P=b.getSelection&&b.getSelection();if(P&&P.rangeCount!==0){b=P.anchorNode;var L=P.anchorOffset,K=P.focusNode;P=P.focusOffset;try{b.nodeType,K.nodeType}catch{b=null;break e}var te=0,oe=-1,ye=-1,_e=0,Ve=0,qe=o,Ke=null;t:for(;;){for(var st;qe!==b||L!==0&&qe.nodeType!==3||(oe=te+L),qe!==K||P!==0&&qe.nodeType!==3||(ye=te+P),qe.nodeType===3&&(te+=qe.nodeValue.length),(st=qe.firstChild)!==null;)Ke=qe,qe=st;for(;;){if(qe===o)break t;if(Ke===b&&++_e===L&&(oe=te),Ke===K&&++Ve===P&&(ye=te),(st=qe.nextSibling)!==null)break;qe=Ke,Ke=qe.parentNode}qe=st}b=oe===-1||ye===-1?null:{start:oe,end:ye}}else b=null}b=b||{start:0,end:0}}else b=null;for(zg={focusedElem:o,selectionRange:b},rh=!1,ut=d;ut!==null;)if(d=ut,o=d.child,(d.subtreeFlags&1028)!==0&&o!==null)o.return=d,ut=o;else for(;ut!==null;){d=ut;try{var mt=d.alternate;if((d.flags&1024)!==0)switch(d.tag){case 0:case 11:case 15:break;case 1:if(mt!==null){var xt=mt.memoizedProps,On=mt.memoizedState,Ae=d.stateNode,ve=Ae.getSnapshotBeforeUpdate(d.elementType===d.type?xt:Xa(d.type,xt),On);Ae.__reactInternalSnapshotBeforeUpdate=ve}break;case 3:var Te=d.stateNode.containerInfo;Te.nodeType===1?Te.textContent="":Te.nodeType===9&&Te.documentElement&&Te.removeChild(Te.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Xe){_n(d,d.return,Xe)}if(o=d.sibling,o!==null){o.return=d.return,ut=o;break}ut=d.return}return mt=K7,K7=!1,mt}function nf(o,d,b){var P=d.updateQueue;if(P=P!==null?P.lastEffect:null,P!==null){var L=P=P.next;do{if((L.tag&o)===o){var K=L.destroy;L.destroy=void 0,K!==void 0&&Bx(d,b,K)}L=L.next}while(L!==P)}}function Uh(o,d){if(d=d.updateQueue,d=d!==null?d.lastEffect:null,d!==null){var b=d=d.next;do{if((b.tag&o)===o){var P=b.create;b.destroy=P()}b=b.next}while(b!==d)}}function _x(o){var d=o.ref;if(d!==null){var b=o.stateNode;switch(o.tag){case 5:o=b;break;default:o=b}typeof d=="function"?d(o):d.current=o}}function V7(o){var d=o.alternate;d!==null&&(o.alternate=null,V7(d)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(d=o.stateNode,d!==null&&(delete d[Ps],delete d[Vd],delete d[Gg],delete d[DG],delete d[FG])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function G7(o){return o.tag===5||o.tag===3||o.tag===4}function q7(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||G7(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Ix(o,d,b){var P=o.tag;if(P===5||P===6)o=o.stateNode,d?b.nodeType===8?b.parentNode.insertBefore(o,d):b.insertBefore(o,d):(b.nodeType===8?(d=b.parentNode,d.insertBefore(o,b)):(d=b,d.appendChild(o)),b=b._reactRootContainer,b!=null||d.onclick!==null||(d.onclick=hh));else if(P!==4&&(o=o.child,o!==null))for(Ix(o,d,b),o=o.sibling;o!==null;)Ix(o,d,b),o=o.sibling}function Nx(o,d,b){var P=o.tag;if(P===5||P===6)o=o.stateNode,d?b.insertBefore(o,d):b.appendChild(o);else if(P!==4&&(o=o.child,o!==null))for(Nx(o,d,b),o=o.sibling;o!==null;)Nx(o,d,b),o=o.sibling}var sr=null,Ya=!1;function lo(o,d,b){for(b=b.child;b!==null;)W7(o,d,b),b=b.sibling}function W7(o,d,b){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(ft,b)}catch{}switch(b.tag){case 5:yr||lu(b,d);case 6:var P=sr,L=Ya;sr=null,lo(o,d,b),sr=P,Ya=L,sr!==null&&(Ya?(o=sr,b=b.stateNode,o.nodeType===8?o.parentNode.removeChild(b):o.removeChild(b)):sr.removeChild(b.stateNode));break;case 18:sr!==null&&(Ya?(o=sr,b=b.stateNode,o.nodeType===8?Vg(o.parentNode,b):o.nodeType===1&&Vg(o,b),Od(o)):Vg(sr,b.stateNode));break;case 4:P=sr,L=Ya,sr=b.stateNode.containerInfo,Ya=!0,lo(o,d,b),sr=P,Ya=L;break;case 0:case 11:case 14:case 15:if(!yr&&(P=b.updateQueue,P!==null&&(P=P.lastEffect,P!==null))){L=P=P.next;do{var K=L,te=K.destroy;K=K.tag,te!==void 0&&((K&2)!==0||(K&4)!==0)&&Bx(b,d,te),L=L.next}while(L!==P)}lo(o,d,b);break;case 1:if(!yr&&(lu(b,d),P=b.stateNode,typeof P.componentWillUnmount=="function"))try{P.props=b.memoizedProps,P.state=b.memoizedState,P.componentWillUnmount()}catch(oe){_n(b,d,oe)}lo(o,d,b);break;case 21:lo(o,d,b);break;case 22:b.mode&1?(yr=(P=yr)||b.memoizedState!==null,lo(o,d,b),yr=P):lo(o,d,b);break;default:lo(o,d,b)}}function J7(o){var d=o.updateQueue;if(d!==null){o.updateQueue=null;var b=o.stateNode;b===null&&(b=o.stateNode=new YG),d.forEach(function(P){var L=cq.bind(null,o,P);b.has(P)||(b.add(P),P.then(L,L))})}}function es(o,d){var b=d.deletions;if(b!==null)for(var P=0;P<b.length;P++){var L=b[P];try{var K=o,te=d,oe=te;e:for(;oe!==null;){switch(oe.tag){case 5:sr=oe.stateNode,Ya=!1;break e;case 3:sr=oe.stateNode.containerInfo,Ya=!0;break e;case 4:sr=oe.stateNode.containerInfo,Ya=!0;break e}oe=oe.return}if(sr===null)throw Error(n(160));W7(K,te,L),sr=null,Ya=!1;var ye=L.alternate;ye!==null&&(ye.return=null),L.return=null}catch(_e){_n(L,d,_e)}}if(d.subtreeFlags&12854)for(d=d.child;d!==null;)Z7(d,o),d=d.sibling}function Z7(o,d){var b=o.alternate,P=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(es(d,o),Bs(o),P&4){try{nf(3,o,o.return),Uh(3,o)}catch(xt){_n(o,o.return,xt)}try{nf(5,o,o.return)}catch(xt){_n(o,o.return,xt)}}break;case 1:es(d,o),Bs(o),P&512&&b!==null&&lu(b,b.return);break;case 5:if(es(d,o),Bs(o),P&512&&b!==null&&lu(b,b.return),o.flags&32){var L=o.stateNode;try{Ye(L,"")}catch(xt){_n(o,o.return,xt)}}if(P&4&&(L=o.stateNode,L!=null)){var K=o.memoizedProps,te=b!==null?b.memoizedProps:K,oe=o.type,ye=o.updateQueue;if(o.updateQueue=null,ye!==null)try{oe==="input"&&K.type==="radio"&&K.name!=null&&Y(L,K),Mr(oe,te);var _e=Mr(oe,K);for(te=0;te<ye.length;te+=2){var Ve=ye[te],qe=ye[te+1];Ve==="style"?Er(L,qe):Ve==="dangerouslySetInnerHTML"?et(L,qe):Ve==="children"?Ye(L,qe):v(L,Ve,qe,_e)}switch(oe){case"input":re(L,K);break;case"textarea":ne(L,K);break;case"select":var Ke=L._wrapperState.wasMultiple;L._wrapperState.wasMultiple=!!K.multiple;var st=K.value;st!=null?ue(L,!!K.multiple,st,!1):Ke!==!!K.multiple&&(K.defaultValue!=null?ue(L,!!K.multiple,K.defaultValue,!0):ue(L,!!K.multiple,K.multiple?[]:"",!1))}L[Vd]=K}catch(xt){_n(o,o.return,xt)}}break;case 6:if(es(d,o),Bs(o),P&4){if(o.stateNode===null)throw Error(n(162));L=o.stateNode,K=o.memoizedProps;try{L.nodeValue=K}catch(xt){_n(o,o.return,xt)}}break;case 3:if(es(d,o),Bs(o),P&4&&b!==null&&b.memoizedState.isDehydrated)try{Od(d.containerInfo)}catch(xt){_n(o,o.return,xt)}break;case 4:es(d,o),Bs(o);break;case 13:es(d,o),Bs(o),L=o.child,L.flags&8192&&(K=L.memoizedState!==null,L.stateNode.isHidden=K,!K||L.alternate!==null&&L.alternate.memoizedState!==null||(Mx=we())),P&4&&J7(o);break;case 22:if(Ve=b!==null&&b.memoizedState!==null,o.mode&1?(yr=(_e=yr)||Ve,es(d,o),yr=_e):es(d,o),Bs(o),P&8192){if(_e=o.memoizedState!==null,(o.stateNode.isHidden=_e)&&!Ve&&(o.mode&1)!==0)for(ut=o,Ve=o.child;Ve!==null;){for(qe=ut=Ve;ut!==null;){switch(Ke=ut,st=Ke.child,Ke.tag){case 0:case 11:case 14:case 15:nf(4,Ke,Ke.return);break;case 1:lu(Ke,Ke.return);var mt=Ke.stateNode;if(typeof mt.componentWillUnmount=="function"){P=Ke,b=Ke.return;try{d=P,mt.props=d.memoizedProps,mt.state=d.memoizedState,mt.componentWillUnmount()}catch(xt){_n(P,b,xt)}}break;case 5:lu(Ke,Ke.return);break;case 22:if(Ke.memoizedState!==null){Y7(qe);continue}}st!==null?(st.return=Ke,ut=st):Y7(qe)}Ve=Ve.sibling}e:for(Ve=null,qe=o;;){if(qe.tag===5){if(Ve===null){Ve=qe;try{L=qe.stateNode,_e?(K=L.style,typeof K.setProperty=="function"?K.setProperty("display","none","important"):K.display="none"):(oe=qe.stateNode,ye=qe.memoizedProps.style,te=ye!=null&&ye.hasOwnProperty("display")?ye.display:null,oe.style.display=Jt("display",te))}catch(xt){_n(o,o.return,xt)}}}else if(qe.tag===6){if(Ve===null)try{qe.stateNode.nodeValue=_e?"":qe.memoizedProps}catch(xt){_n(o,o.return,xt)}}else if((qe.tag!==22&&qe.tag!==23||qe.memoizedState===null||qe===o)&&qe.child!==null){qe.child.return=qe,qe=qe.child;continue}if(qe===o)break e;for(;qe.sibling===null;){if(qe.return===null||qe.return===o)break e;Ve===qe&&(Ve=null),qe=qe.return}Ve===qe&&(Ve=null),qe.sibling.return=qe.return,qe=qe.sibling}}break;case 19:es(d,o),Bs(o),P&4&&J7(o);break;case 21:break;default:es(d,o),Bs(o)}}function Bs(o){var d=o.flags;if(d&2){try{e:{for(var b=o.return;b!==null;){if(G7(b)){var P=b;break e}b=b.return}throw Error(n(160))}switch(P.tag){case 5:var L=P.stateNode;P.flags&32&&(Ye(L,""),P.flags&=-33);var K=q7(o);Nx(o,K,L);break;case 3:case 4:var te=P.stateNode.containerInfo,oe=q7(o);Ix(o,oe,te);break;default:throw Error(n(161))}}catch(ye){_n(o,o.return,ye)}o.flags&=-3}d&4096&&(o.flags&=-4097)}function tq(o,d,b){ut=o,Q7(o)}function Q7(o,d,b){for(var P=(o.mode&1)!==0;ut!==null;){var L=ut,K=L.child;if(L.tag===22&&P){var te=L.memoizedState!==null||Fh;if(!te){var oe=L.alternate,ye=oe!==null&&oe.memoizedState!==null||yr;oe=Fh;var _e=yr;if(Fh=te,(yr=ye)&&!_e)for(ut=L;ut!==null;)te=ut,ye=te.child,te.tag===22&&te.memoizedState!==null?eC(L):ye!==null?(ye.return=te,ut=ye):eC(L);for(;K!==null;)ut=K,Q7(K),K=K.sibling;ut=L,Fh=oe,yr=_e}X7(o)}else(L.subtreeFlags&8772)!==0&&K!==null?(K.return=L,ut=K):X7(o)}}function X7(o){for(;ut!==null;){var d=ut;if((d.flags&8772)!==0){var b=d.alternate;try{if((d.flags&8772)!==0)switch(d.tag){case 0:case 11:case 15:yr||Uh(5,d);break;case 1:var P=d.stateNode;if(d.flags&4&&!yr)if(b===null)P.componentDidMount();else{var L=d.elementType===d.type?b.memoizedProps:Xa(d.type,b.memoizedProps);P.componentDidUpdate(L,b.memoizedState,P.__reactInternalSnapshotBeforeUpdate)}var K=d.updateQueue;K!==null&&Yk(d,K,P);break;case 3:var te=d.updateQueue;if(te!==null){if(b=null,d.child!==null)switch(d.child.tag){case 5:b=d.child.stateNode;break;case 1:b=d.child.stateNode}Yk(d,te,b)}break;case 5:var oe=d.stateNode;if(b===null&&d.flags&4){b=oe;var ye=d.memoizedProps;switch(d.type){case"button":case"input":case"select":case"textarea":ye.autoFocus&&b.focus();break;case"img":ye.src&&(b.src=ye.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(d.memoizedState===null){var _e=d.alternate;if(_e!==null){var Ve=_e.memoizedState;if(Ve!==null){var qe=Ve.dehydrated;qe!==null&&Od(qe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}yr||d.flags&512&&_x(d)}catch(Ke){_n(d,d.return,Ke)}}if(d===o){ut=null;break}if(b=d.sibling,b!==null){b.return=d.return,ut=b;break}ut=d.return}}function Y7(o){for(;ut!==null;){var d=ut;if(d===o){ut=null;break}var b=d.sibling;if(b!==null){b.return=d.return,ut=b;break}ut=d.return}}function eC(o){for(;ut!==null;){var d=ut;try{switch(d.tag){case 0:case 11:case 15:var b=d.return;try{Uh(4,d)}catch(ye){_n(d,b,ye)}break;case 1:var P=d.stateNode;if(typeof P.componentDidMount=="function"){var L=d.return;try{P.componentDidMount()}catch(ye){_n(d,L,ye)}}var K=d.return;try{_x(d)}catch(ye){_n(d,K,ye)}break;case 5:var te=d.return;try{_x(d)}catch(ye){_n(d,te,ye)}}}catch(ye){_n(d,d.return,ye)}if(d===o){ut=null;break}var oe=d.sibling;if(oe!==null){oe.return=d.return,ut=oe;break}ut=d.return}}var nq=Math.ceil,jh=g.ReactCurrentDispatcher,Rx=g.ReactCurrentOwner,Da=g.ReactCurrentBatchConfig,Vt=0,er=null,Dn=null,ir=0,pa=0,cu=ro(0),Vn=0,rf=null,ul=0,Lh=0,Ox=0,af=null,Hr=null,Mx=0,uu=1/0,si=null,$h=!1,Dx=null,co=null,zh=!1,uo=null,Hh=0,sf=0,Fx=null,Kh=-1,Vh=0;function Cr(){return(Vt&6)!==0?we():Kh!==-1?Kh:Kh=we()}function fo(o){return(o.mode&1)===0?1:(Vt&2)!==0&&ir!==0?ir&-ir:jG.transition!==null?(Vh===0&&(Vh=As()),Vh):(o=an,o!==0||(o=window.event,o=o===void 0?16:nk(o.type)),o)}function ts(o,d,b,P){if(50<sf)throw sf=0,Fx=null,Error(n(185));jr(o,b,P),((Vt&2)===0||o!==er)&&(o===er&&((Vt&2)===0&&(Lh|=b),Vn===4&&po(o,ir)),Kr(o,P),b===1&&Vt===0&&(d.mode&1)===0&&(uu=we()+500,xh&&so()))}function Kr(o,d){var b=o.callbackNode;Hc(o,d);var P=Ja(o,o===er?ir:0);if(P===0)b!==null&&Ia(b),o.callbackNode=null,o.callbackPriority=0;else if(d=P&-P,o.callbackPriority!==d){if(b!=null&&Ia(b),d===1)o.tag===0?UG(nC.bind(null,o)):$k(nC.bind(null,o)),OG(function(){(Vt&6)===0&&so()}),b=null;else{switch(W4(P)){case 1:b=Ue;break;case 4:b=Fe;break;case 16:b=ze;break;case 536870912:b=He;break;default:b=ze}b=uC(b,tC.bind(null,o))}o.callbackPriority=d,o.callbackNode=b}}function tC(o,d){if(Kh=-1,Vh=0,(Vt&6)!==0)throw Error(n(327));var b=o.callbackNode;if(du()&&o.callbackNode!==b)return null;var P=Ja(o,o===er?ir:0);if(P===0)return null;if((P&30)!==0||(P&o.expiredLanes)!==0||d)d=Gh(o,P);else{d=P;var L=Vt;Vt|=2;var K=aC();(er!==o||ir!==d)&&(si=null,uu=we()+500,fl(o,d));do try{sq();break}catch(oe){rC(o,oe)}while(!0);tx(),jh.current=K,Vt=L,Dn!==null?d=0:(er=null,ir=0,d=Vn)}if(d!==0){if(d===2&&(L=Ur(o),L!==0&&(P=L,d=Ux(o,L))),d===1)throw b=rf,fl(o,0),po(o,P),Kr(o,we()),b;if(d===6)po(o,P);else{if(L=o.current.alternate,(P&30)===0&&!rq(L)&&(d=Gh(o,P),d===2&&(K=Ur(o),K!==0&&(P=K,d=Ux(o,K))),d===1))throw b=rf,fl(o,0),po(o,P),Kr(o,we()),b;switch(o.finishedWork=L,o.finishedLanes=P,d){case 0:case 1:throw Error(n(345));case 2:pl(o,Hr,si);break;case 3:if(po(o,P),(P&130023424)===P&&(d=Mx+500-we(),10<d)){if(Ja(o,0)!==0)break;if(L=o.suspendedLanes,(L&P)!==P){Cr(),o.pingedLanes|=o.suspendedLanes&L;break}o.timeoutHandle=Kg(pl.bind(null,o,Hr,si),d);break}pl(o,Hr,si);break;case 4:if(po(o,P),(P&4194240)===P)break;for(d=o.eventTimes,L=-1;0<P;){var te=31-rt(P);K=1<<te,te=d[te],te>L&&(L=te),P&=~K}if(P=L,P=we()-P,P=(120>P?120:480>P?480:1080>P?1080:1920>P?1920:3e3>P?3e3:4320>P?4320:1960*nq(P/1960))-P,10<P){o.timeoutHandle=Kg(pl.bind(null,o,Hr,si),P);break}pl(o,Hr,si);break;case 5:pl(o,Hr,si);break;default:throw Error(n(329))}}}return Kr(o,we()),o.callbackNode===b?tC.bind(null,o):null}function Ux(o,d){var b=af;return o.current.memoizedState.isDehydrated&&(fl(o,d).flags|=256),o=Gh(o,d),o!==2&&(d=Hr,Hr=b,d!==null&&jx(d)),o}function jx(o){Hr===null?Hr=o:Hr.push.apply(Hr,o)}function rq(o){for(var d=o;;){if(d.flags&16384){var b=d.updateQueue;if(b!==null&&(b=b.stores,b!==null))for(var P=0;P<b.length;P++){var L=b[P],K=L.getSnapshot;L=L.value;try{if(!Za(K(),L))return!1}catch{return!1}}}if(b=d.child,d.subtreeFlags&16384&&b!==null)b.return=d,d=b;else{if(d===o)break;for(;d.sibling===null;){if(d.return===null||d.return===o)return!0;d=d.return}d.sibling.return=d.return,d=d.sibling}}return!0}function po(o,d){for(d&=~Ox,d&=~Lh,o.suspendedLanes|=d,o.pingedLanes&=~d,o=o.expirationTimes;0<d;){var b=31-rt(d),P=1<<b;o[b]=-1,d&=~P}}function nC(o){if((Vt&6)!==0)throw Error(n(327));du();var d=Ja(o,0);if((d&1)===0)return Kr(o,we()),null;var b=Gh(o,d);if(o.tag!==0&&b===2){var P=Ur(o);P!==0&&(d=P,b=Ux(o,P))}if(b===1)throw b=rf,fl(o,0),po(o,d),Kr(o,we()),b;if(b===6)throw Error(n(345));return o.finishedWork=o.current.alternate,o.finishedLanes=d,pl(o,Hr,si),Kr(o,we()),null}function Lx(o,d){var b=Vt;Vt|=1;try{return o(d)}finally{Vt=b,Vt===0&&(uu=we()+500,xh&&so())}}function dl(o){uo!==null&&uo.tag===0&&(Vt&6)===0&&du();var d=Vt;Vt|=1;var b=Da.transition,P=an;try{if(Da.transition=null,an=1,o)return o()}finally{an=P,Da.transition=b,Vt=d,(Vt&6)===0&&so()}}function $x(){pa=cu.current,gn(cu)}function fl(o,d){o.finishedWork=null,o.finishedLanes=0;var b=o.timeoutHandle;if(b!==-1&&(o.timeoutHandle=-1,RG(b)),Dn!==null)for(b=Dn.return;b!==null;){var P=b;switch(Zg(P),P.tag){case 1:P=P.type.childContextTypes,P!=null&&bh();break;case 3:iu(),gn(Lr),gn(pr),cx();break;case 5:ox(P);break;case 4:iu();break;case 13:gn(Sn);break;case 19:gn(Sn);break;case 10:nx(P.type._context);break;case 22:case 23:$x()}b=b.return}if(er=o,Dn=o=mo(o.current,null),ir=pa=d,Vn=0,rf=null,Ox=Lh=ul=0,Hr=af=null,ol!==null){for(d=0;d<ol.length;d++)if(b=ol[d],P=b.interleaved,P!==null){b.interleaved=null;var L=P.next,K=b.pending;if(K!==null){var te=K.next;K.next=L,P.next=te}b.pending=P}ol=null}return o}function rC(o,d){do{var b=Dn;try{if(tx(),Bh.current=Rh,_h){for(var P=Bn.memoizedState;P!==null;){var L=P.queue;L!==null&&(L.pending=null),P=P.next}_h=!1}if(cl=0,Yn=Kn=Bn=null,Qd=!1,Xd=0,Rx.current=null,b===null||b.return===null){Vn=1,rf=d,Dn=null;break}e:{var K=o,te=b.return,oe=b,ye=d;if(d=ir,oe.flags|=32768,ye!==null&&typeof ye=="object"&&typeof ye.then=="function"){var _e=ye,Ve=oe,qe=Ve.tag;if((Ve.mode&1)===0&&(qe===0||qe===11||qe===15)){var Ke=Ve.alternate;Ke?(Ve.updateQueue=Ke.updateQueue,Ve.memoizedState=Ke.memoizedState,Ve.lanes=Ke.lanes):(Ve.updateQueue=null,Ve.memoizedState=null)}var st=S7(te);if(st!==null){st.flags&=-257,B7(st,te,oe,K,d),st.mode&1&&T7(K,_e,d),d=st,ye=_e;var mt=d.updateQueue;if(mt===null){var xt=new Set;xt.add(ye),d.updateQueue=xt}else mt.add(ye);break e}else{if((d&1)===0){T7(K,_e,d),zx();break e}ye=Error(n(426))}}else if(Cn&&oe.mode&1){var On=S7(te);if(On!==null){(On.flags&65536)===0&&(On.flags|=256),B7(On,te,oe,K,d),Yg(ou(ye,oe));break e}}K=ye=ou(ye,oe),Vn!==4&&(Vn=2),af===null?af=[K]:af.push(K),K=te;do{switch(K.tag){case 3:K.flags|=65536,d&=-d,K.lanes|=d;var Ae=A7(K,ye,d);Xk(K,Ae);break e;case 1:oe=ye;var ve=K.type,Te=K.stateNode;if((K.flags&128)===0&&(typeof ve.getDerivedStateFromError=="function"||Te!==null&&typeof Te.componentDidCatch=="function"&&(co===null||!co.has(Te)))){K.flags|=65536,d&=-d,K.lanes|=d;var Xe=P7(K,oe,d);Xk(K,Xe);break e}}K=K.return}while(K!==null)}iC(b)}catch(vt){d=vt,Dn===b&&b!==null&&(Dn=b=b.return);continue}break}while(!0)}function aC(){var o=jh.current;return jh.current=Rh,o===null?Rh:o}function zx(){(Vn===0||Vn===3||Vn===2)&&(Vn=4),er===null||(ul&268435455)===0&&(Lh&268435455)===0||po(er,ir)}function Gh(o,d){var b=Vt;Vt|=2;var P=aC();(er!==o||ir!==d)&&(si=null,fl(o,d));do try{aq();break}catch(L){rC(o,L)}while(!0);if(tx(),Vt=b,jh.current=P,Dn!==null)throw Error(n(261));return er=null,ir=0,Vn}function aq(){for(;Dn!==null;)sC(Dn)}function sq(){for(;Dn!==null&&!Cs();)sC(Dn)}function sC(o){var d=cC(o.alternate,o,pa);o.memoizedProps=o.pendingProps,d===null?iC(o):Dn=d,Rx.current=null}function iC(o){var d=o;do{var b=d.alternate;if(o=d.return,(d.flags&32768)===0){if(b=QG(b,d,pa),b!==null){Dn=b;return}}else{if(b=XG(b,d),b!==null){b.flags&=32767,Dn=b;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{Vn=6,Dn=null;return}}if(d=d.sibling,d!==null){Dn=d;return}Dn=d=o}while(d!==null);Vn===0&&(Vn=5)}function pl(o,d,b){var P=an,L=Da.transition;try{Da.transition=null,an=1,iq(o,d,b,P)}finally{Da.transition=L,an=P}return null}function iq(o,d,b,P){do du();while(uo!==null);if((Vt&6)!==0)throw Error(n(327));b=o.finishedWork;var L=o.finishedLanes;if(b===null)return null;if(o.finishedWork=null,o.finishedLanes=0,b===o.current)throw Error(n(177));o.callbackNode=null,o.callbackPriority=0;var K=b.lanes|b.childLanes;if(Qs(o,K),o===er&&(Dn=er=null,ir=0),(b.subtreeFlags&2064)===0&&(b.flags&2064)===0||zh||(zh=!0,uC(ze,function(){return du(),null})),K=(b.flags&15990)!==0,(b.subtreeFlags&15990)!==0||K){K=Da.transition,Da.transition=null;var te=an;an=1;var oe=Vt;Vt|=4,Rx.current=null,eq(o,b),Z7(b,o),PG(zg),rh=!!$g,zg=$g=null,o.current=b,tq(b),be(),Vt=oe,an=te,Da.transition=K}else o.current=b;if(zh&&(zh=!1,uo=o,Hh=L),K=o.pendingLanes,K===0&&(co=null),wt(b.stateNode),Kr(o,we()),d!==null)for(P=o.onRecoverableError,b=0;b<d.length;b++)L=d[b],P(L.value,{componentStack:L.stack,digest:L.digest});if($h)throw $h=!1,o=Dx,Dx=null,o;return(Hh&1)!==0&&o.tag!==0&&du(),K=o.pendingLanes,(K&1)!==0?o===Fx?sf++:(sf=0,Fx=o):sf=0,so(),null}function du(){if(uo!==null){var o=W4(Hh),d=Da.transition,b=an;try{if(Da.transition=null,an=16>o?16:o,uo===null)var P=!1;else{if(o=uo,uo=null,Hh=0,(Vt&6)!==0)throw Error(n(331));var L=Vt;for(Vt|=4,ut=o.current;ut!==null;){var K=ut,te=K.child;if((ut.flags&16)!==0){var oe=K.deletions;if(oe!==null){for(var ye=0;ye<oe.length;ye++){var _e=oe[ye];for(ut=_e;ut!==null;){var Ve=ut;switch(Ve.tag){case 0:case 11:case 15:nf(8,Ve,K)}var qe=Ve.child;if(qe!==null)qe.return=Ve,ut=qe;else for(;ut!==null;){Ve=ut;var Ke=Ve.sibling,st=Ve.return;if(V7(Ve),Ve===_e){ut=null;break}if(Ke!==null){Ke.return=st,ut=Ke;break}ut=st}}}var mt=K.alternate;if(mt!==null){var xt=mt.child;if(xt!==null){mt.child=null;do{var On=xt.sibling;xt.sibling=null,xt=On}while(xt!==null)}}ut=K}}if((K.subtreeFlags&2064)!==0&&te!==null)te.return=K,ut=te;else e:for(;ut!==null;){if(K=ut,(K.flags&2048)!==0)switch(K.tag){case 0:case 11:case 15:nf(9,K,K.return)}var Ae=K.sibling;if(Ae!==null){Ae.return=K.return,ut=Ae;break e}ut=K.return}}var ve=o.current;for(ut=ve;ut!==null;){te=ut;var Te=te.child;if((te.subtreeFlags&2064)!==0&&Te!==null)Te.return=te,ut=Te;else e:for(te=ve;ut!==null;){if(oe=ut,(oe.flags&2048)!==0)try{switch(oe.tag){case 0:case 11:case 15:Uh(9,oe)}}catch(vt){_n(oe,oe.return,vt)}if(oe===te){ut=null;break e}var Xe=oe.sibling;if(Xe!==null){Xe.return=oe.return,ut=Xe;break e}ut=oe.return}}if(Vt=L,so(),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(ft,o)}catch{}P=!0}return P}finally{an=b,Da.transition=d}}return!1}function oC(o,d,b){d=ou(b,d),d=A7(o,d,1),o=oo(o,d,1),d=Cr(),o!==null&&(jr(o,1,d),Kr(o,d))}function _n(o,d,b){if(o.tag===3)oC(o,o,b);else for(;d!==null;){if(d.tag===3){oC(d,o,b);break}else if(d.tag===1){var P=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof P.componentDidCatch=="function"&&(co===null||!co.has(P))){o=ou(b,o),o=P7(d,o,1),d=oo(d,o,1),o=Cr(),d!==null&&(jr(d,1,o),Kr(d,o));break}}d=d.return}}function oq(o,d,b){var P=o.pingCache;P!==null&&P.delete(d),d=Cr(),o.pingedLanes|=o.suspendedLanes&b,er===o&&(ir&b)===b&&(Vn===4||Vn===3&&(ir&130023424)===ir&&500>we()-Mx?fl(o,0):Ox|=b),Kr(o,d)}function lC(o,d){d===0&&((o.mode&1)===0?d=1:(d=yn,yn<<=1,(yn&130023424)===0&&(yn=4194304)));var b=Cr();o=ni(o,d),o!==null&&(jr(o,d,b),Kr(o,b))}
vendor: 4,398 bytes, line 40
40function lq(o){var d=o.memoizedState,b=0;d!==null&&(b=d.retryLane),lC(o,b)}function cq(o,d){var b=0;switch(o.tag){case 13:var P=o.stateNode,L=o.memoizedState;L!==null&&(b=L.retryLane);break;case 19:P=o.stateNode;break;default:throw Error(n(314))}P!==null&&P.delete(d),lC(o,b)}var cC;cC=function(o,d,b){if(o!==null)if(o.memoizedProps!==d.pendingProps||Lr.current)zr=!0;else{if((o.lanes&b)===0&&(d.flags&128)===0)return zr=!1,ZG(o,d,b);zr=(o.flags&131072)!==0}else zr=!1,Cn&&(d.flags&1048576)!==0&&zk(d,wh,d.index);switch(d.lanes=0,d.tag){case 2:var P=d.type;Dh(o,d),o=d.pendingProps;var L=Yc(d,pr.current);su(d,b),L=fx(null,d,P,o,L,b);var K=px();return d.flags|=1,typeof L=="object"&&L!==null&&typeof L.render=="function"&&L.$$typeof===void 0?(d.tag=1,d.memoizedState=null,d.updateQueue=null,$r(P)?(K=!0,gh(d)):K=!1,d.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,sx(d),L.updater=Oh,d.stateNode=L,L._reactInternals=d,xx(d,P,o,b),d=kx(null,d,P,!0,K,b)):(d.tag=0,Cn&&K&&Jg(d),kr(null,d,L,b),d=d.child),d;case 16:P=d.elementType;e:{switch(Dh(o,d),o=d.pendingProps,L=P._init,P=L(P._payload),d.type=P,L=d.tag=dq(P),o=Xa(P,o),L){case 0:d=Ex(null,d,P,o,b);break e;case 1:d=M7(null,d,P,o,b);break e;case 11:d=_7(null,d,P,o,b);break e;case 14:d=I7(null,d,P,Xa(P.type,o),b);break e}throw Error(n(306,P,""))}return d;case 0:return P=d.type,L=d.pendingProps,L=d.elementType===P?L:Xa(P,L),Ex(o,d,P,L,b);case 1:return P=d.type,L=d.pendingProps,L=d.elementType===P?L:Xa(P,L),M7(o,d,P,L,b);case 3:e:{if(D7(d),o===null)throw Error(n(387));P=d.pendingProps,K=d.memoizedState,L=K.element,Qk(o,d),Th(d,P,null,b);var te=d.memoizedState;if(P=te.element,K.isDehydrated)if(K={element:P,isDehydrated:!1,cache:te.cache,pendingSuspenseBoundaries:te.pendingSuspenseBoundaries,transitions:te.transitions},d.updateQueue.baseState=K,d.memoizedState=K,d.flags&256){L=ou(Error(n(423)),d),d=F7(o,d,P,b,L);break e}else if(P!==L){L=ou(Error(n(424)),d),d=F7(o,d,P,b,L);break e}else for(fa=no(d.stateNode.containerInfo.firstChild),da=d,Cn=!0,Qa=null,b=Jk(d,null,P,b),d.child=b;b;)b.flags=b.flags&-3|4096,b=b.sibling;else{if(nu(),P===L){d=ai(o,d,b);break e}kr(o,d,P,b)}d=d.child}return d;case 5:return e7(d),o===null&&Xg(d),P=d.type,L=d.pendingProps,K=o!==null?o.memoizedProps:null,te=L.children,Hg(P,L)?te=null:K!==null&&Hg(P,K)&&(d.flags|=32),O7(o,d),kr(o,d,te,b),d.child;case 6:return o===null&&Xg(d),null;case 13:return U7(o,d,b);case 4:return ix(d,d.stateNode.containerInfo),P=d.pendingProps,o===null?d.child=ru(d,null,P,b):kr(o,d,P,b),d.child;case 11:return P=d.type,L=d.pendingProps,L=d.elementType===P?L:Xa(P,L),_7(o,d,P,L,b);case 7:return kr(o,d,d.pendingProps,b),d.child;case 8:return kr(o,d,d.pendingProps.children,b),d.child;case 12:return kr(o,d,d.pendingProps.children,b),d.child;case 10:e:{if(P=d.type._context,L=d.pendingProps,K=d.memoizedProps,te=L.value,pn(Ch,P._currentValue),P._currentValue=te,K!==null)if(Za(K.value,te)){if(K.children===L.children&&!Lr.current){d=ai(o,d,b);break e}}else for(K=d.child,K!==null&&(K.return=d);K!==null;){var oe=K.dependencies;if(oe!==null){te=K.child;for(var ye=oe.firstContext;ye!==null;){if(ye.context===P){if(K.tag===1){ye=ri(-1,b&-b),ye.tag=2;var _e=K.updateQueue;if(_e!==null){_e=_e.shared;var Ve=_e.pending;Ve===null?ye.next=ye:(ye.next=Ve.next,Ve.next=ye),_e.pending=ye}}K.lanes|=b,ye=K.alternate,ye!==null&&(ye.lanes|=b),rx(K.return,b,d),oe.lanes|=b;break}ye=ye.next}}else if(K.tag===10)te=K.type===d.type?null:K.child;else if(K.tag===18){if(te=K.return,te===null)throw Error(n(341));te.lanes|=b,oe=te.alternate,oe!==null&&(oe.lanes|=b),rx(te,b,d),te=K.sibling}else te=K.child;if(te!==null)te.return=K;else for(te=K;te!==null;){if(te===d){te=null;break}if(K=te.sibling,K!==null){K.return=te.return,te=K;break}te=te.return}K=te}kr(o,d,L.children,b),d=d.child}return d;case 9:return L=d.type,P=d.pendingProps.children,su(d,b),L=Oa(L),P=P(L),d.flags|=1,kr(o,d,P,b),d.child;case 14:return P=d.type,L=Xa(P,d.pendingProps),L=Xa(P.type,L),I7(o,d,P,L,b);case 15:return N7(o,d,d.type,d.pendingProps,b);case 17:return P=d.type,L=d.pendingProps,L=d.elementType===P?L:Xa(P,L),Dh(o,d),d.tag=1,$r(P)?(o=!0,gh(d)):o=!1,su(d,b),k7(d,P,L),xx(d,P,L,b),kx(null,d,P,!0,o,b);case 19:return L7(o,d,b);case 22:return R7(o,d,b)}throw Error(n(156,d.tag))};function uC(o,d){return rn(o,d)}function uq(o,d,b,P){this.tag=o,this.key=b,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 8,876 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=P,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fa(o,d,b,P){return new uq(o,d,b,P)}function Hx(o){return o=o.prototype,!(!o||!o.isReactComponent)}function dq(o){if(typeof o=="function")return Hx(o)?1:0;if(o!=null){if(o=o.$$typeof,o===M)return 11;if(o===I)return 14}return 2}function mo(o,d){var b=o.alternate;return b===null?(b=Fa(o.tag,d,o.key,o.mode),b.elementType=o.elementType,b.type=o.type,b.stateNode=o.stateNode,b.alternate=o,o.alternate=b):(b.pendingProps=d,b.type=o.type,b.flags=0,b.subtreeFlags=0,b.deletions=null),b.flags=o.flags&14680064,b.childLanes=o.childLanes,b.lanes=o.lanes,b.child=o.child,b.memoizedProps=o.memoizedProps,b.memoizedState=o.memoizedState,b.updateQueue=o.updateQueue,d=o.dependencies,b.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},b.sibling=o.sibling,b.index=o.index,b.ref=o.ref,b}function qh(o,d,b,P,L,K){var te=2;if(P=o,typeof o=="function")Hx(o)&&(te=1);else if(typeof o=="string")te=5;else e:switch(o){case _:return ml(b.children,L,K,d);case k:te=8,L|=8;break;case R:return o=Fa(12,b,d,L|2),o.elementType=R,o.lanes=K,o;case E:return o=Fa(13,b,d,L),o.elementType=E,o.lanes=K,o;case N:return o=Fa(19,b,d,L),o.elementType=N,o.lanes=K,o;case z:return Wh(b,L,K,d);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case D:te=10;break e;case B:te=9;break e;case M:te=11;break e;case I:te=14;break e;case F:te=16,P=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return d=Fa(te,b,d,L),d.elementType=o,d.type=P,d.lanes=K,d}function ml(o,d,b,P){return o=Fa(7,o,P,d),o.lanes=b,o}function Wh(o,d,b,P){return o=Fa(22,o,P,d),o.elementType=z,o.lanes=b,o.stateNode={isHidden:!1},o}function Kx(o,d,b){return o=Fa(6,o,null,d),o.lanes=b,o}function Vx(o,d,b){return d=Fa(4,o.children!==null?o.children:[],o.key,d),d.lanes=b,d.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},d}function fq(o,d,b,P,L){this.tag=d,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tl(0),this.expirationTimes=tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tl(0),this.identifierPrefix=P,this.onRecoverableError=L,this.mutableSourceEagerHydrationData=null}function Gx(o,d,b,P,L,K,te,oe,ye){return o=new fq(o,d,b,oe,ye),d===1?(d=1,K===!0&&(d|=8)):d=0,K=Fa(3,null,null,d),o.current=K,K.stateNode=o,K.memoizedState={element:P,isDehydrated:b,cache:null,transitions:null,pendingSuspenseBoundaries:null},sx(K),o}function pq(o,d,b){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:S,key:P==null?null:""+P,children:o,containerInfo:d,implementation:b}}function dC(o){if(!o)return ao;o=o._reactInternals;e:{if(ot(o)!==o||o.tag!==1)throw Error(n(170));var d=o;do{switch(d.tag){case 3:d=d.stateNode.context;break e;case 1:if($r(d.type)){d=d.stateNode.__reactInternalMemoizedMergedChildContext;break e}}d=d.return}while(d!==null);throw Error(n(171))}if(o.tag===1){var b=o.type;if($r(b))return jk(o,b,d)}return d}function fC(o,d,b,P,L,K,te,oe,ye){return o=Gx(b,P,!0,o,L,K,te,oe,ye),o.context=dC(null),b=o.current,P=Cr(),L=fo(b),K=ri(P,L),K.callback=d??null,oo(b,K,L),o.current.lanes=L,jr(o,L,P),Kr(o,P),o}function Jh(o,d,b,P){var L=d.current,K=Cr(),te=fo(L);return b=dC(b),d.context===null?d.context=b:d.pendingContext=b,d=ri(K,te),d.payload={element:o},P=P===void 0?null:P,P!==null&&(d.callback=P),o=oo(L,d,te),o!==null&&(ts(o,L,te,K),Ph(o,L,te)),te}function Zh(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function pC(o,d){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var b=o.retryLane;o.retryLane=b!==0&&b<d?b:d}}function qx(o,d){pC(o,d),(o=o.alternate)&&pC(o,d)}function mq(){return null}var mC=typeof reportError=="function"?reportError:function(o){console.error(o)};function Wx(o){this._internalRoot=o}Qh.prototype.render=Wx.prototype.render=function(o){var d=this._internalRoot;if(d===null)throw Error(n(409));Jh(o,d,null,null)},Qh.prototype.unmount=Wx.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var d=o.containerInfo;dl(function(){Jh(null,o,null,null)}),d[Xs]=null}};function Qh(o){this._internalRoot=o}Qh.prototype.unstable_scheduleHydration=function(o){if(o){var d=Q4();o={blockedOn:null,target:o,priority:d};for(var b=0;b<Yi.length&&d!==0&&d<Yi[b].priority;b++);Yi.splice(b,0,o),b===0&&ek(o)}};function Jx(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function Xh(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function hC(){}function hq(o,d,b,P,L){if(L){if(typeof P=="function"){var K=P;P=function(){var _e=Zh(te);K.call(_e)}}var te=fC(d,P,o,0,null,!1,!1,"",hC);return o._reactRootContainer=te,o[Xs]=te.current,Hd(o.nodeType===8?o.parentNode:o),dl(),te}for(;L=o.lastChild;)o.removeChild(L);if(typeof P=="function"){var oe=P;P=function(){var _e=Zh(ye);oe.call(_e)}}var ye=Gx(o,0,!1,null,null,!1,!1,"",hC);return o._reactRootContainer=ye,o[Xs]=ye.current,Hd(o.nodeType===8?o.parentNode:o),dl(function(){Jh(d,ye,b,P)}),ye}function Yh(o,d,b,P,L){var K=b._reactRootContainer;if(K){var te=K;if(typeof L=="function"){var oe=L;L=function(){var ye=Zh(te);oe.call(ye)}}Jh(d,te,o,L)}else te=hq(b,d,o,L,P);return Zh(te)}J4=function(o){switch(o.tag){case 3:var d=o.stateNode;if(d.current.memoizedState.isDehydrated){var b=fr(d.pendingLanes);b!==0&&(nl(d,b|1),Kr(d,we()),(Vt&6)===0&&(uu=we()+500,so()))}break;case 13:dl(function(){var P=ni(o,1);if(P!==null){var L=Cr();ts(P,o,1,L)}}),qx(o,1)}},vg=function(o){if(o.tag===13){var d=ni(o,134217728);if(d!==null){var b=Cr();ts(d,o,134217728,b)}qx(o,134217728)}},Z4=function(o){if(o.tag===13){var d=fo(o),b=ni(o,d);if(b!==null){var P=Cr();ts(b,o,d,P)}qx(o,d)}},Q4=function(){return an},X4=function(o,d){var b=an;try{return an=o,d()}finally{an=b}},Ws=function(o,d,b){switch(d){case"input":if(re(o,b),d=b.name,b.type==="radio"&&d!=null){for(b=o;b.parentNode;)b=b.parentNode;for(b=b.querySelectorAll("input[name="+JSON.stringify(""+d)+'][type="radio"]'),d=0;d<b.length;d++){var P=b[d];if(P!==o&&P.form===o.form){var L=yh(P);if(!L)throw Error(n(90));Se(P),re(P,L)}}}break;case"textarea":ne(o,b);break;case"select":d=b.value,d!=null&&ue(o,!!b.multiple,d,!1)}},el=Lx,Js=dl;var yq={usingClientEntryPoint:!1,Events:[Gd,Qc,yh,Yo,Lc,Lx]},of={findFiberByHostInstance:rl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},bq={bundleType:of.bundleType,version:of.version,rendererPackageName:of.rendererPackageName,rendererConfig:of.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=en(o),o===null?null:o.stateNode},findFiberByHostInstance:of.findFiberByHostInstance||mq,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ey=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ey.isDisabled&&ey.supportsFiber)try{ft=ey.inject(bq),Nt=ey}catch{}}return Vr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yq,Vr.createPortal=function(o,d){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jx(d))throw Error(n(200));return pq(o,d,null,b)},Vr.createRoot=function(o,d){if(!Jx(o))throw Error(n(299));var b=!1,P="",L=mC;return d!=null&&(d.unstable_strictMode===!0&&(b=!0),d.identifierPrefix!==void 0&&(P=d.identifierPrefix),d.onRecoverableError!==void 0&&(L=d.onRecoverableError)),d=Gx(o,1,!1,null,null,b,!1,P,L),o[Xs]=d.current,Hd(o.nodeType===8?o.parentNode:o),new Wx(d)},Vr.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var d=o._reactInternals;if(d===void 0)throw typeof o.render=="function"?Error(n(188)):(o=Object.keys(o).join(","),Error(n(268,o)));return o=en(d),o=o===null?null:o.stateNode,o},Vr.flushSync=function(o){return dl(o)},Vr.hydrate=function(o,d,b){if(!Xh(d))throw Error(n(200));return Yh(null,o,d,!0,b)},Vr.hydrateRoot=function(o,d,b){if(!Jx(o))throw Error(n(405));var P=b!=null&&b.hydratedSources||null,L=!1,K="",te=mC;if(b!=null&&(b.unstable_strictMode===!0&&(L=!0),b.identifierPrefix!==void 0&&(K=b.
40identifierPrefix),b.onRecoverableError!==void 0&&(te=b.onRecoverableError)),d=fC(d,null,o,1,b??null,L,!1,K,te),o[Xs]=d.current,Hd(o),P)for(o=0;o<P.length;o++)b=P[o],L=b._getVersion,L=L(b._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[b,L]:d.mutableSourceEagerHydrationData.push(b,L);return new Qh(d)},Vr.render=function(o,d,b){if(!Xh(d))throw Error(n(200));return Yh(null,o,d,!1,b)},Vr.unmountComponentAtNode=function(o){if(!Xh(o))throw Error(n(40));return o._reactRootContainer?(dl(function(){Yh(null,null,o,!1,function(){o._reactRootContainer=null,o[Xs]=null})}),!0):!1},Vr.unstable_batchedUpdates=Lx,Vr.unstable_renderSubtreeIntoContainer=function(o,d,b,P){if(!Xh(b))throw Error(n(200));if(o==null||o._reactInternals===void 0)throw Error(n(38));return Yh(o,d,b,!1,P)},Vr.version="18.3.1-next-f1338f8080-20240426",Vr}var CC;function RR(){if(CC)return Yx.exports;CC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Yx.exports=Sq(),Yx.exports}var AC;function Bq(){if(AC)return ty;AC=1;var e=RR();return ty.createRoot=e.createRoot,ty.hydrateRoot=e.hydrateRoot,ty}var _q=Bq(),nd=RR();const a8=NR(nd),Iq=IR({__proto__:null,default:a8},[nd]);/**
41 * @remix-run/router v1.23.0
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},An.apply(this,arguments)}var Fn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Fn||(Fn={}));const PC="popstate";function Nq(e){e===void 0&&(e={});function t(r,a){let{pathname:s,search:i,hash:l}=r.location;return w0("",{pathname:s,search:i,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:fc(a)}return Oq(t,n,null,e)}function zt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $u(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Rq(){return Math.random().toString(36).substr(2,8)}function TC(e,t){return{usr:e.state,key:e.key,idx:t}}function w0(e,t,n,r){return n===void 0&&(n=null),An({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Uo(t):t,{state:n,key:t&&t.key||r||Rq()})}function fc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Uo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Oq(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:s=!1}=r,i=a.history,l=Fn.Pop,c=null,u=f();u==null&&(u=0,i.replaceState(An({},i.state,{idx:u}),""));function f(){return(i.state||{idx:null}).idx}function p(){l=Fn.Pop;let C=f(),T=C==null?null:C-u;u=C,c&&c({action:l,location:x.location,delta:T})}function m(C,T){l=Fn.Push;let w=w0(x.location,C,T);u=f()+1;let v=TC(w,u),g=x.createHref(w);try{i.pushState(v,"",g)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;a.location.assign(g)}s&&c&&c({action:l,location:x.location,delta:1})}function h(C,T){l=Fn.Replace;let w=w0(x.location,C,T);u=f();let v=TC(w,u),g=x.createHref(w);i.replaceState(v,"",g),s&&c&&c({action:l,location:x.location,delta:0})}function y(C){let T=a.location.origin!=="null"?a.location.origin:a.location.href,w=typeof C=="string"?C:fc(C);return w=w.replace(/ $/,"%20"),zt(T,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,T)}let x={get action(){return l},get location(){return e(a,i)},listen(C){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(PC,p),c=C,()=>{a.removeEventListener(PC,p),c=null}},createHref(C){return t(a,C)},createURL:y,encodeLocation(C){let T=y(C);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:m,replace:h,go(C){return i.go(C)}};return x}var sn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(sn||(sn={}));
vendor: 48,864 bytes, lines 49-59
49const Mq=new Set(["lazy","caseSensitive","path","id","index","children"]);function Dq(e){return e.index===!0}function kb(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((a,s)=>{let i=[...n,String(s)],l=typeof a.id=="string"?a.id:i.join("-");if(zt(a.index!==!0||!a.children,"Cannot specify children on an index route"),zt(!r[l],'Found a route id collision on id "'+l+`".  Route id's must be globally unique within Data Router usages`),Dq(a)){let c=An({},a,t(a),{id:l});return r[l]=c,c}else{let c=An({},a,t(a),{id:l,children:void 0});return r[l]=c,a.children&&(c.children=kb(a.children,t,i,r)),c}})}function Xl(e,t,n){return n===void 0&&(n="/"),ib(e,t,n,!1)}function ib(e,t,n,r){let a=typeof t=="string"?Uo(t):t,s=rd(a.pathname||"/",n);if(s==null)return null;let i=OR(e);Uq(i);let l=null;for(let c=0;l==null&&c<i.length;++c){let u=Jq(s);l=qq(i[c],u,r)}return l}function Fq(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}function OR(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let a=(s,i,l)=>{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};c.relativePath.startsWith("/")&&(zt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Oi([r,c.relativePath]),f=n.concat(c);s.children&&s.children.length>0&&(zt(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),OR(s.children,t,f,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:Vq(u,s.index),routesMeta:f})};return e.forEach((s,i)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))a(s,i);else for(let c of MR(s.path))a(s,i,c)}),t}function MR(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let i=MR(r.join("/")),l=[];return l.push(...i.map(c=>c===""?s:[s,c].join("/"))),a&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Uq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Gq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const jq=/^:[\w-]+$/,Lq=3,$q=2,zq=1,Hq=10,Kq=-2,SC=e=>e==="*";function Vq(e,t){let n=e.split("/"),r=n.length;return n.some(SC)&&(r+=Kq),t&&(r+=$q),n.filter(a=>!SC(a)).reduce((a,s)=>a+(jq.test(s)?Lq:s===""?zq:Hq),r)}function Gq(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function qq(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,a={},s="/",i=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,f=s==="/"?t:t.slice(s.length)||"/",p=BC({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},f),m=c.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=BC({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!p)return null;Object.assign(a,p.params),i.push({params:a,pathname:Oi([s,p.pathname]),pathnameBase:Xq(Oi([s,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(s=Oi([s,p.pathnameBase]))}return i}function BC(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Wq(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],i=s.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((u,f,p)=>{let{paramName:m,isOptional:h}=f;if(m==="*"){let x=l[p]||"";i=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const y=l[p];return h&&!y?u[m]=void 0:u[m]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function Wq(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),$u(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function Jq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $u(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function rd(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Zq(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Uo(e):e;return{pathname:n?n.startsWith("/")?n:Qq(n,t):t,search:Yq(r),hash:eW(a)}}function Qq(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function nv(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function DR(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function s8(e,t){let n=DR(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function i8(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=Uo(e):(a=An({},e),zt(!a.pathname||!a.pathname.includes("?"),nv("?","pathname","search",a)),zt(!a.pathname||!a.pathname.includes("#"),nv("#","pathname","hash",a)),zt(!a.search||!a.search.includes("#"),nv("#","search","hash",a)));let s=e===""||a.pathname==="",i=s?"/":a.pathname,l;if(i==null)l=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;a.pathname=m.join("/")}l=p>=0?t[p]:"/"}let c=Zq(a,l),u=i&&i!=="/"&&i.endsWith("/"),f=(s||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||f)&&(c.pathname+="/"),c}const Oi=e=>e.join("/").replace(/\/\/+/g,"/"),Xq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Yq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eW=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Cb{constructor(t,n,r,a){a===void 0&&(a=!1),this.status=t,this.statusText=n||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function E0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const FR=["post","put","patch","delete"],tW=new Set(FR),nW=["get",...FR],rW=new Set(nW),aW=new Set([301,302,303,307,308]),sW=new Set([307,308]),rv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},iW={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},cf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},o8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oW=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),UR="remix-router-transitions";function lW(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;zt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let me=e.detectErrorBoundary;a=Ee=>({hasErrorBoundary:me(Ee)})}else a=oW;let s={},i=kb(e.routes,a,void 0,s),l,c=e.basename||"/",u=e.dataStrategy||fW,f=e.patchRoutesOnNavigation,p=An({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,h=new Set,y=null,x=null,C=null,T=e.hydrationData!=null,w=Xl(i,e.history.location,c),v=!1,g=null;if(w==null&&!f){let me=Wr(404,{pathname:e.history.location.pathname}),{matches:Ee,route:Ie}=LC(i);w=Ee,g={[Ie.id]:me}}w&&!e.hydrationData&&Js(w,i,e.history.location.pathname).active&&(w=null);let A;if(w)if(w.some(me=>me.route.lazy))A=!1;else if(!w.some(me=>me.route.loader))A=!0;else if(p.v7_partialHydration){let me=e.hydrationData?e.hydrationData.loaderData:null,Ee=e.hydrationData?e.hydrationData.errors:null;if(Ee){let Ie=w.findIndex(Le=>Ee[Le.route.id]!==void 0);A=w.slice(0,Ie+1).every(Le=>!Zw(Le.route,me,Ee))}else A=w.every(Ie=>!Zw(Ie.route,me,Ee))}else A=e.hydrationData!=null;else if(A=!1,w=[],p.v7_partialHydration){let me=Js(null,i,e.history.location.pathname);me.active&&me.matches&&(v=!0,w=me.matches)}let S,_={historyAction:e.history.action,location:e.history.location,matches:w,initialized:A,navigation:rv,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},k=Fn.Pop,R=!1,D,B=!1,M=new Map,E=null,N=!1,I=!1,F=[],z=new Set,U=new Map,V=0,$=-1,O=new Map,H=new Set,Z=new Map,ee=new Map,ae=new Set,ie=new Map,fe=new Map,le;function xe(){if(m=e.history.listen(me=>{let{action:Ee,location:Ie,delta:Le}=me;if(le){le(),le=void 0;return}$u(fe.size===0||Le!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let tt=Ws({currentLocation:_.location,nextLocation:Ie,historyAction:Ee});if(tt&&Le!=null){let gt=new Promise(kt=>{le=kt});e.history.go(Le*-1),Dr(tt,{state:"blocked",location:Ie,proceed(){Dr(tt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ie}),gt.then(()=>e.history.go(Le))},reset(){let kt=new Map(_.blockers);kt.set(tt,cf),Se({blockers:kt})}});return}return Y(Ee,Ie)}),n){PW(t,M);let me=()=>TW(t,M);t.addEventListener("pagehide",me),E=()=>t.removeEventListener("pagehide",me)}return _.initialized||Y(Fn.Pop,_.location,{initialHydration:!0}),S}function he(){m&&m(),E&&E(),h.clear(),D&&D.abort(),_.fetchers.forEach((me,Ee)=>dt(Ee)),_.blockers.forEach((me,Ee)=>Ji(Ee))}function De(me){return h.add(me),()=>h.delete(me)}function Se(me,Ee){Ee===void 0&&(Ee={}),_=An({},_,me);let Ie=[],Le=[];p.v7_fetcherPersist&&_.fetchers.forEach((tt,gt)=>{tt.state==="idle"&&(ae.has(gt)?Le.push(gt):Ie.push(gt))}),ae.forEach(tt=>{!_.fetchers.has(tt)&&!U.has(tt)&&Le.push(tt)}),[...h].forEach(tt=>tt(_,{deletedFetchers:Le,viewTransitionOpts:Ee.viewTransitionOpts,flushSync:Ee.flushSync===!0})),p.v7_fetcherPersist?(Ie.forEach(tt=>_.fetchers.delete(tt)),Le.forEach(tt=>dt(tt))):Le.forEach(tt=>ae.delete(tt))}function ke(me,Ee,Ie){var Le,tt;let{flushSync:gt}=Ie===void 0?{}:Ie,kt=_.actionData!=null&&_.navigation.formMethod!=null&&cs(_.navigation.formMethod)&&_.navigation.state==="loading"&&((Le=me.state)==null?void 0:Le._isRedirect)!==!0,ct;Ee.actionData?Object.keys(Ee.actionData).length>0?ct=Ee.actionData:ct=null:kt?ct=_.actionData:ct=null;let lt=Ee.loaderData?UC(_.loaderData,Ee.loaderData,Ee.matches||[],Ee.errors):_.loaderData,it=_.blockers;it.size>0&&(it=new Map(it),it.forEach((Dt,Rn)=>it.set(Rn,cf)));let ot=R===!0||_.navigation.formMethod!=null&&cs(_.navigation.formMethod)&&((tt=me.state)==null?void 0:tt._isRedirect)!==!0;l&&(i=l,l=void 0),N||k===Fn.Pop||(k===Fn.Push?e.history.push(me,me.state):k===Fn.Replace&&e.history.replace(me,me.state));let _t;if(k===Fn.Pop){let Dt=M.get(_.location.pathname);Dt&&Dt.has(me.pathname)?_t={currentLocation:_.location,nextLocation:me}:M.has(me.pathname)&&(_t={currentLocation:me,nextLocation:_.location})}else if(B){let Dt=M.get(_.location.pathname);Dt?Dt.add(me.pathname):(Dt=new Set([me.pathname]),M.set(_.location.pathname,Dt)),_t={currentLocation:_.location,nextLocation:me}}Se(An({},Ee,{actionData:ct,loaderData:lt,historyAction:k,location:me,initialized:!0,navigation:rv,revalidation:"idle",restoreScrollPosition:el(me,Ee.matches||_.matches),preventScrollReset:ot,blockers:it}),{viewTransitionOpts:_t,flushSync:gt===!0}),k=Fn.Pop,R=!1,B=!1,N=!1,I=!1,F=[]}async function ge(me,Ee){if(typeof me=="number"){e.history.go(me);return}let Ie=Jw(_.location,_.matches,c,p.v7_prependBasename,me,p.v7_relativeSplatPath,Ee==null?void 0:Ee.fromRouteId,Ee==null?void 0:Ee.relative),{path:Le,submission:tt,error:gt}=_C(p.v7_normalizeFormMethod,!1,Ie,Ee),kt=_.location,ct=w0(_.location,Le,Ee&&Ee.state);ct=An({},ct,e.history.encodeLocation(ct));let lt=Ee&&Ee.replace!=null?Ee.replace:void 0,it=Fn.Push;lt===!0?it=Fn.Replace:lt===!1||tt!=null&&cs(tt.formMethod)&&tt.formAction===_.location.pathname+_.location.search&&(it=Fn.Replace);let ot=Ee&&"preventScrollReset"in Ee?Ee.preventScrollReset===!0:void 0,_t=(Ee&&Ee.flushSync)===!0,Dt=Ws({currentLocation:kt,nextLocation:ct,historyAction:it});if(Dt){Dr(Dt,{state:"blocked",location:ct,proceed(){Dr(Dt,{state:"proceeding",proceed:void 0,reset:void 0,location:ct}),ge(me,Ee)},reset(){let Rn=new Map(_.blockers);Rn.set(Dt,cf),Se({blockers:Rn})}});return}return await Y(it,ct,{submission:tt,pendingError:gt,preventScrollReset:ot,replace:Ee&&Ee.replace,enableViewTransition:Ee&&Ee.viewTransition,flushSync:_t})}function J(){if(Re(),Se({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){Y(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}Y(k||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:B===!0})}}async function Y(me,Ee,Ie){D&&D.abort(),D=null,k=me,N=(Ie&&Ie.startUninterruptedRevalidation)===!0,Lc(_.location,_.matches),R=(Ie&&Ie.preventScrollReset)===!0,B=(Ie&&Ie.enableViewTransition)===!0;let Le=l||i,tt=Ie&&Ie.overrideNavigation,gt=Ie!=null&&Ie.initialHydration&&_.matches&&_.matches.length>0&&!v?_.matches:Xl(Le,Ee,c),kt=(Ie&&Ie.flushSync)===!0;if(gt&&_.initialized&&!I&&gW(_.location,Ee)&&!(Ie&&Ie.submission&&cs(Ie.submission.formMethod))){ke(Ee,{matches:gt},{flushSync:kt});return}let ct=Js(gt,Le,Ee.pathname);if(ct.active&&ct.matches&&(gt=ct.matches),!gt){let{error:en,notFoundMatches:jt,route:rn}=Fr(Ee.pathname);ke(Ee,{matches:jt,loaderData:{},errors:{[rn.id]:en}},{flushSync:kt});return}D=new AbortController;let lt=pu(e.history,Ee,D.signal,Ie&&Ie.submission),it;if(Ie&&Ie.pendingError)it=[Yl(gt).route.id,{type:sn.error,error:Ie.pendingError}];else if(Ie&&Ie.submission&&cs(Ie.submission.formMethod)){let en=await re(lt,Ee,Ie.submission,gt,ct.active,{replace:Ie.replace,flushSync:kt});if(en.shortCircuited)return;if(en.pendingActionResult){let[jt,rn]=en.pendingActionResult;if(ka(rn)&&E0(rn.error)&&rn.error.status===404){D=null,ke(Ee,{matches:en.matches,loaderData:{},errors:{[jt]:rn.error}});return}}gt=en.matches||gt,it=en.pendingActionResult,tt=av(Ee,Ie.submission),kt=!1,ct.active=!1,lt=pu(e.history,lt.url,lt.signal)}let{shortCircuited:ot,matches:_t,loaderData:Dt,errors:Rn}=await ce(lt,Ee,gt,ct.active,tt,Ie&&Ie.submission,Ie&&Ie.fetcherSubmission,Ie&&Ie.replace,Ie&&Ie.initialHydration===!0,kt,it);ot||(D=null,ke(Ee,An({matches:_t||gt},jC(it),{loaderData:Dt,errors:Rn})))}async function re(me,Ee,Ie,Le,tt,gt){gt===void 0&&(gt={}),Re();let kt=CW(Ee,Ie);if(Se({navigation:kt},{flushSync:gt.flushSync===!0}),tt){let it=await _a(Le,Ee.pathname,me.signal);if(it.type==="aborted")return{shortCircuited:!0};if(it.type==="error"){let ot=Yl(it.partialMatches).route.id;return{matches:it.partialMatches,pendingActionResult:[ot,{type:sn.error,error:it.error}]}}else if(it.matches)Le=it.matches;else{let{notFoundMatches:ot,error:_t,route:Dt}=Fr(Ee.pathname);return{matches:ot,pendingActionResult:[Dt.id,{type:sn.error,error:_t}]}}}let ct,lt=s0(Le,Ee);if(!lt.route.action&&!lt.route.lazy)ct={type:sn.error,error:Wr(405,{method:me.method,pathname:Ee.pathname,routeId:lt.route.id})};else if(ct=(await pe("action",_,me,[lt],Le,null))[lt.route.id],me.signal.aborted)return{shortCircuited:!0};if(tc(ct)){let it;return gt&&gt.replace!=null?it=gt.replace:it=MC(ct.response.headers.get("Location"),new URL(me.url),c)===_.location.pathname+_.location.search,await ne(me,ct,!0,{submission:Ie,replace:it}),{shortCircuited:!0}}if(Ao(ct))throw Wr(400,{type:"defer-action"});if(ka(ct)){let it=Yl(Le,lt.route.id);return(gt&&gt.replace)!==!0&&(k=Fn.Push),{matches:Le,pendingActionResult:[it.route.id,ct]}}return{matches:Le,pendingActionResult:[lt.route.id,ct]}}async function ce(me,Ee,Ie,Le,tt,gt,kt,ct,lt,it,ot){let _t=tt||av(Ee,gt),Dt=gt||kt||zC(_t),Rn=!N&&(!p.v7_partialHydration||!lt);if(Le){if(Rn){let ft=Me(ot);Se(An({navigation:_t},ft!==void 0?{actionData:ft}:{}),{flushSync:it})}let He=await _a(Ie,Ee.pathname,me.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){let ft=Yl(He.partialMatches).route.id;return{matches:He.partialMatches,loaderData:{},errors:{[ft]:He.error}}}else if(He.matches)Ie=He.matches;else{let{error:ft,notFoundMatches:Nt,route:wt}=Fr(Ee.pathname);return{matches:Nt,loaderData:{},errors:{[wt.id]:ft}}}}let en=l||i,[jt,rn]=NC(e.history,_,Ie,Dt,Ee,p.v7_partialHydration&&lt===!0,p.v7_skipActionErrorRevalidation,I,F,z,ae,Z,H,en,c,ot);if(Ba(He=>!(Ie&&Ie.some(ft=>ft.route.id===He))||jt&&jt.some(ft=>ft.route.id===He)),$=++V,jt.length===0&&rn.length===0){let He=qs();return ke(Ee,An({matches:Ie,loaderData:{},errors:ot&&ka(ot[1])?{[ot[0]]:ot[1].error}:null},jC(ot),He?{fetchers:new Map(_.fetchers)}:{}),{flushSync:it}),{shortCircuited:!0}}if(Rn){let He={};if(!Le){He.navigation=_t;let ft=Me(ot);ft!==void 0&&(He.actionData=ft)}rn.length>0&&(He.fetchers=Ze(rn)),Se(He,{flushSync:it})}rn.forEach(He=>{Jt(He.key),He.controller&&U.set(He.key,He.controller)});let Ia=()=>rn.forEach(He=>Jt(He.key));D&&D.signal.addEventListener("abort",Ia);let{loaderResults:Cs,fetcherResults:be}=await Be(_,Ie,jt,rn,me);if(me.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",Ia),rn.forEach(He=>U.delete(He.key));let we=ny(Cs);if(we)return await ne(me,we.result,!0,{replace:ct}),{shortCircuited:!0};if(we=ny(be),we)return H.add(we.key),await ne(me,we.result,!0,{replace:ct}),{shortCircuited:!0};let{loaderData:Ne,errors:Ue}=FC(_,Ie,Cs,ot,rn,be,ie);ie.forEach((He,ft)=>{He.subscribe(Nt=>{(Nt||He.done)&&ie.delete(ft)})}),p.v7_partialHydration&&lt&&_.errors&&(Ue=An({},_.errors,Ue));let Fe=qs(),ze=ks($),Ge=Fe||ze||rn.length>0;return An({matches:Ie,loaderData:Ne,errors:Ue},Ge?{fetchers:new Map(_.fetchers)}:{})}function Me(me){if(me&&!ka(me[1]))return{[me[0]]:me[1].data};if(_.actionData)return Object.keys(_.actionData).length===0?null:_.actionData}function Ze(me){return me.forEach(Ee=>{let Ie=_.fetchers.get(Ee.key),Le=uf(void 0,Ie?Ie.data:void 0);_.fetchers.set(Ee.key,Le)}),new Map(_.fetchers)}function ue(me,Ee,Ie,Le){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Jt(me);let tt=(Le&&Le.flushSync)===!0,gt=l||i,kt=Jw(_.location,_.matches,c,p.v7_prependBasename,Ie,p.v7_relativeSplatPath,Ee,Le==null?void 0:Le.relative),ct=Xl(gt,kt,c),lt=Js(ct,gt,kt);if(lt.active&&lt.matches&&(ct=lt.matches),!ct){et(me,Ee,Wr(404,{pathname:kt}),{flushSync:tt});return}let{path:it,submission:ot,error:_t}=_C(p.v7_normalizeFormMethod,!0,kt,Le);if(_t){et(me,Ee,_t,{flushSync:tt});return}let Dt=s0(ct,it),Rn=(Le&&Le.preventScrollReset)===!0;if(ot&&cs(ot.formMethod)){Q(me,Ee,it,Dt,ct,lt.active,tt,Rn,ot);return}Z.set(me,{routeId:Ee,path:it}),X(me,Ee,it,Dt,ct,lt.active,tt,Rn,ot)}async function Q(me,Ee,Ie,Le,tt,gt,kt,ct,lt){Re(),Z.delete(me);function it(rt){if(!rt.route.action&&!rt.route.lazy){let Tt=Wr(405,{method:lt.formMethod,pathname:Ie,routeId:Ee});return et(me,Ee,Tt,{flushSync:kt}),!0}return!1}if(!gt&&it(Le))return;let ot=_.fetchers.get(me);Qe(me,AW(lt,ot),{flushSync:kt});let _t=new AbortController,Dt=pu(e.history,Ie,_t.signal,lt);if(gt){let rt=await _a(tt,new URL(Dt.url).pathname,Dt.signal,me);if(rt.type==="aborted")return;if(rt.type==="error"){et(me,Ee,rt.error,{flushSync:kt});return}else if(rt.matches){if(tt=rt.matches,Le=s0(tt,Ie),it(Le))return}else{et(me,Ee,Wr(404,{pathname:Ie}),{flushSync:kt});return}}U.set(me,_t);let Rn=V,jt=(await pe("action",_,Dt,[Le],tt,me))[Le.route.id];if(Dt.signal.aborted){U.get(me)===_t&&U.delete(me);return}if(p.v7_fetcherPersist&&ae.has(me)){if(tc(jt)||ka(jt)){Qe(me,ko(void 0));return}}else{if(tc(jt))if(U.delete(me),$>Rn){Qe(me,ko(void 0));return}else return H.add(me),Qe(me,uf(lt)),ne(Dt,jt,!1,{fetcherSubmission:lt,preventScrollReset:ct});if(ka(jt)){et(me,Ee,jt.error);return}}if(Ao(jt))throw Wr(400,{type:"defer-action"});let rn=_.navigation.location||_.location,Ia=pu(e.history,rn,_t.signal),Cs=l||i,be=_.navigation.state!=="idle"?Xl(Cs,_.navigation.location,c):_.matches;zt(be,"Didn't find any matches after fetcher action");let we=++V;O.set(me,we);let Ne=uf(lt,jt.data);_.fetchers.set(me,Ne);let[Ue,Fe]=NC(e.history,_,be,lt,rn,!1,p.v7_skipActionErrorRevalidation,I,F,z,ae,Z,H,Cs,c,[Le.route.id,jt]);Fe.filter(rt=>rt.key!==me).forEach(rt=>{let Tt=rt.key,Zt=_.fetchers.get(Tt),Tn=uf(void 0,Zt?Zt.data:void 0);_.fetchers.set(Tt,Tn),Jt(Tt),rt.controller&&U.set(Tt,rt.controller)}),Se({fetchers:new Map(_.fetchers)});let ze=()=>Fe.forEach(rt=>Jt(rt.key));_t.signal.addEventListener("abort",ze);let{loaderResults:Ge,fetcherResults:He}=await Be(_,be,Ue,Fe,Ia);if(_t.signal.aborted)return;_t.signal.removeEventListener("abort",ze),O.delete(me),U.delete(me),Fe.forEach(rt=>U.delete(rt.key));let ft=ny(Ge);if(ft)return ne(Ia,ft.result,!1,{preventScrollReset:ct});if(ft=ny(He),ft)return H.add(ft.key),ne(Ia,ft.result,!1,{preventScrollReset:ct});let{loaderData:Nt,errors:wt}=FC(_,be,Ge,void 0,Fe,He,ie);if(_.fetchers.has(me)){let rt=ko(jt.data);_.fetchers.set(me,rt)}ks(we),_.navigation.state==="loading"&&we>$?(zt(k,"Expected pending action"),D&&D.abort(),ke(_.navigation.location,{matches:be,loaderData:Nt,errors:wt,fetchers:new Map(_.fetchers)})):(Se({errors:wt,loaderData:UC(_.loaderData,Nt,be,wt),fetchers:new Map(_.fetchers)}),I=!1)}async function X(me,Ee,Ie,Le,tt,gt,kt,ct,lt){let it=_.fetchers.get(me);Qe(me,uf(lt,it?it.data:void 0),{flushSync:kt});let ot=new AbortController,_t=pu(e.history,Ie,ot.signal);if(gt){let jt=await _a(tt,new URL(_t.url).pathname,_t.signal,me);if(jt.type==="aborted")return;if(jt.type==="error"){et(me,Ee,jt.error,{flushSync:kt});return}else if(jt.matches)tt=jt.matches,Le=s0(tt,Ie);else{et(me,Ee,Wr(404,{pathname:Ie}),{flushSync:kt});return}}U.set(me,ot);let Dt=V,en=(await pe("loader",_,_t,[Le],tt,me))[Le.route.id];if(Ao(en)&&(en=await l8(en,_t.signal,!0)||en),U.get(me)===ot&&U.delete(me),!_t.signal.aborted){if(ae.has(me)){Qe(me,ko(void 0));return}if(tc(en))if($>Dt){Qe(me,ko(void 0));return}else{H.add(me),await ne(_t,en,!1,{preventScrollReset:ct});return}if(ka(en)){et(me,Ee,en.error);return}zt(!Ao(en),"Unhandled fetcher deferred data"),Qe(me,ko(en.data))}}async function ne(me,Ee,Ie,Le){let{submission:tt,fetcherSubmission:gt,preventScrollReset:kt,replace:ct}=Le===void 0?{}:Le;Ee.response.headers.has("X-Remix-Revalidate")&&(I=!0);let lt=Ee.response.headers.get("Location");zt(lt,"Expected a Location header on the redirect Response"),lt=MC(lt,new URL(me.url),c);let it=w0(_.location,lt,{_isRedirect:!0});if(n){let jt=!1;if(Ee.response.headers.has("X-Remix-Reload-Document"))jt=!0;else if(o8.test(lt)){const rn=e.history.createURL(lt);jt=rn.origin!==t.location.origin||rd(rn.pathname,c)==null}if(jt){ct?t.location.replace(lt):t.location.assign(lt);return}}D=null;let ot=ct===!0||Ee.response.headers.has("X-Remix-Replace")?Fn.Replace:Fn.Push,{formMethod:_t,formAction:Dt,formEncType:Rn}=_.navigation;!tt&&!gt&&_t&&Dt&&Rn&&(tt=zC(_.navigation));let en=tt||gt;if(sW.has(Ee.response.status)&&en&&cs(en.formMethod))await Y(ot,it,{submission:An({},en,{formAction:lt}),preventScrollReset:kt||R,enableViewTransition:Ie?B:void 0});else{let jt=av(it,tt);await Y(ot,it,{overrideNavigation:jt,fetcherSubmission:gt,preventScrollReset:kt||R,enableViewTransition:Ie?B:void 0})}}async function pe(me,Ee,Ie,Le,tt,gt){let kt,ct={};try{kt=await pW(u,me,Ee,Ie,Le,tt,gt,s,a)}catch(lt){return Le.forEach(it=>{ct[it.route.id]={type:sn.error,error:lt}}),ct}for(let[lt,it]of Object.entries(kt))if(xW(it)){let ot=it.result;ct[lt]={type:sn.redirect,response:yW(ot,Ie,lt,tt,c,p.v7_relativeSplatPath)}}else ct[lt]=await hW(it);return ct}async function Be(me,Ee,Ie,Le,tt){let gt=me.matches,kt=pe("loader",me,tt,Ie,Ee,null),ct=Promise.all(Le.map(async ot=>{if(ot.matches&&ot.match&&ot.controller){let Dt=(await pe("loader",me,pu(e.history,ot.path,ot.controller.signal),[ot.match],ot.matches,ot.key))[ot.match.route.id];return{[ot.key]:Dt}}else return Promise.resolve({[ot.key]:{type:sn.error,error:Wr(404,{pathname:ot.path})}})})),lt=await kt,it=(await ct).reduce((ot,_t)=>Object.assign(ot,_t),{});return await Promise.all([EW(Ee,lt,tt.signal,gt,me.loaderData),kW(Ee,it,Le)]),{loaderResults:lt,fetcherResults:it}}function Re(){I=!0,F.push(...Ba()),Z.forEach((me,Ee)=>{U.has(Ee)&&z.add(Ee),Jt(Ee)})}function Qe(me,Ee,Ie){Ie===void 0&&(Ie={}),_.fetchers.set(me,Ee),Se({fetchers:new Map(_.fetchers)},{flushSync:(Ie&&Ie.flushSync)===!0})}function et(me,Ee,Ie,Le){Le===void 0&&(Le={});let tt=Yl(_.matches,Ee);dt(me),Se({errors:{[tt.route.id]:Ie},fetchers:new Map(_.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function Ye(me){return ee.set(me,(ee.get(me)||0)+1),ae.has(me)&&ae.delete(me),_.fetchers.get(me)||iW}function dt(me){let Ee=_.fetchers.get(me);U.has(me)&&!(Ee&&Ee.state==="loading"&&O.has(me))&&Jt(me),Z.delete(me),O.delete(me),H.delete(me),p.v7_fetcherPersist&&ae.delete(me),z.delete(me),_.fetchers.delete(me)}function Wt(me){let Ee=(ee.get(me)||0)-1;Ee<=0?(ee.delete(me),ae.add(me),p.v7_fetcherPersist||dt(me)):ee.set(me,Ee),Se({fetchers:new Map(_.fetchers)})}function Jt(me){let Ee=U.get(me);Ee&&(Ee.abort(),U.delete(me))}function Er(me){for(let Ee of me){let Ie=Ye(Ee),Le=ko(Ie.data);_.fetchers.set(Ee,Le)}}function qs(){let me=[],Ee=!1;for(let Ie of H){let Le=_.fetchers.get(Ie);zt(Le,"Expected fetcher: "+Ie),Le.state==="loading"&&(H.delete(Ie),me.push(Ie),Ee=!0)}return Er(me),Ee}function ks(me){let Ee=[];for(let[Ie,Le]of O)if(Le<me){let tt=_.fetchers.get(Ie);zt(tt,"Expected fetcher: "+Ie),tt.state==="loading"&&(Jt(Ie),O.delete(Ie),Ee.push(Ie))}return Er(Ee),Ee.length>0}function Mr(me,Ee){let Ie=_.blockers.get(me)||cf;return fe.get(me)!==Ee&&fe.set(me,Ee),Ie}function Ji(me){_.blockers.delete(me),fe.delete(me)}function Dr(me,Ee){let Ie=_.blockers.get(me)||cf;zt(Ie.state==="unblocked"&&Ee.state==="blocked"||Ie.state==="blocked"&&Ee.state==="blocked"||Ie.state==="blocked"&&Ee.state==="proceeding"||Ie.state==="blocked"&&Ee.state==="unblocked"||Ie.state==="proceeding"&&Ee.state==="unblocked","Invalid blocker state transition: "+Ie.state+" -> "+Ee.state);let Le=new Map(_.blockers);Le.set(me,Ee),Se({blockers:Le})}function Ws(me){let{currentLocation:Ee,nextLocation:Ie,historyAction:Le}=me;if(fe.size===0)return;fe.size>1&&$u(!1,"A router only supports one blocker at a time");let tt=Array.from(fe.entries()),[gt,kt]=tt[tt.length-1],ct=_.blockers.get(gt);if(!(ct&&ct.state==="proceeding")&&kt({currentLocation:Ee,nextLocation:Ie,historyAction:Le}))return gt}function Fr(me){let Ee=Wr(404,{pathname:me}),Ie=l||i,{matches:Le,route:tt}=LC(Ie);return Ba(),{notFoundMatches:Le,route:tt,error:Ee}}function Ba(me){let Ee=[];return ie.forEach((Ie,Le)=>{(!me||me(Le))&&(Ie.cancel(),Ee.push(Le),ie.delete(Le))}),Ee}function jc(me,Ee,Ie){if(y=me,C=Ee,x=Ie||null,!T&&_.navigation===rv){T=!0;let Le=el(_.location,_.matches);Le!=null&&Se({restoreScrollPosition:Le})}return()=>{y=null,C=null,x=null}}function Yo(me,Ee){return x&&x(me,Ee.map(Le=>Fq(Le,_.loaderData)))||me.key}function Lc(me,Ee){if(y&&C){let Ie=Yo(me,Ee);y[Ie]=C()}}function el(me,Ee){if(y){let Ie=Yo(me,Ee),Le=y[Ie];if(typeof Le=="number")return Le}return null}function Js(me,Ee,Ie){if(f)if(me){if(Object.keys(me[0].params).length>0)return{active:!0,matches:ib(Ee,Ie,c,!0)}}else return{active:!0,matches:ib(Ee,Ie,c,!0)||[]};return{active:!1,matches:null}}async function _a(me,Ee,Ie,Le){if(!f)return{type:"success",matches:me};let tt=me;for(;;){let gt=l==null,kt=l||i,ct=s;try{await f({signal:Ie,path:Ee,matches:tt,fetcherKey:Le,patch:(ot,_t)=>{Ie.aborted||OC(ot,_t,kt,ct,a)}})}catch(ot){return{type:"error",error:ot,partialMatches:tt}}finally{gt&&!Ie.aborted&&(i=[...i])}if(Ie.aborted)return{type:"aborted"};let lt=Xl(kt,Ee,c);if(lt)return{type:"success",matches:lt};let it=ib(kt,Ee,c,!0);if(!it||tt.length===it.length&&tt.every((ot,_t)=>ot.route.id===it[_t].route.id))return{type:"success",matches:null};tt=it}}function $c(me){s={},l=kb(me,a,void 0,s)}function Zs(me,Ee){let Ie=l==null;OC(me,Ee,l||i,s,a),Ie&&(i=[...i],Se({}))}return S={get basename(){return c},get future(){return p},get state(){return _},get routes(){return i},get window(){return t},initialize:xe,subscribe:De,enableScrollRestoration:jc,navigate:ge,fetch:ue,revalidate:J,createHref:me=>e.history.createHref(me),encodeLocation:me=>e.history.encodeLocation(me),getFetcher:Ye,deleteFetcher:Wt,dispose:he,getBlocker:Mr,deleteBlocker:Ji,patchRoutes:Zs,_internalFetchControllers:U,_internalActiveDeferreds:ie,_internalSetRoutes:$c},S}function cW(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Jw(e,t,n,r,a,s,i,l){let c,u;if(i){c=[];for(let p of t)if(c.push(p),p.route.id===i){u=p;break}}else c=t,u=t[t.length-1];let f=i8(a||".",s8(c,s),rd(e.pathname,n)||e.pathname,l==="path");if(a==null&&(f.search=e.search,f.hash=e.hash),(a==null||a===""||a===".")&&u){let p=c8(f.search);if(u.route.index&&!p)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&p){let m=new URLSearchParams(f.search),h=m.getAll("index");m.delete("index"),h.filter(x=>x).forEach(x=>m.append("index",x));let y=m.toString();f.search=y?"?"+y:""}}return r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:Oi([n,f.pathname])),fc(f)}function _C(e,t,n,r){if(!r||!cW(r))return{path:n};if(r.formMethod&&!wW(r.formMethod))return{path:n,error:Wr(405,{method:r.formMethod})};let a=()=>({path:n,error:Wr(400,{type:"invalid-body"})}),s=r.formMethod||"get",i=e?s.toUpperCase():s.toLowerCase(),l=$R(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!cs(i))return a();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,y)=>{let[x,C]=y;return""+h+x+"="+C+`
50`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!cs(i))return a();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:l,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return a()}}}zt(typeof FormData=="function","FormData is not available in this environment");let c,u;if(r.formData)c=Qw(r.formData),u=r.formData;else if(r.body instanceof FormData)c=Qw(r.body),u=r.body;else if(r.body instanceof URLSearchParams)c=r.body,u=DC(c);else if(r.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(r.body),u=DC(c)}catch{return a()}let f={formMethod:i,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(cs(f.formMethod))return{path:n,submission:f};let p=Uo(n);return t&&p.search&&c8(p.search)&&c.append("index",""),p.search="?"+c,{path:fc(p),submission:f}}function IC(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(a=>a.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function NC(e,t,n,r,a,s,i,l,c,u,f,p,m,h,y,x){let C=x?ka(x[1])?x[1].error:x[1].data:void 0,T=e.createURL(t.location),w=e.createURL(a),v=n;s&&t.errors?v=IC(n,Object.keys(t.errors)[0],!0):x&&ka(x[1])&&(v=IC(n,x[0]));let g=x?x[1].statusCode:void 0,A=i&&g&&g>=400,S=v.filter((k,R)=>{let{route:D}=k;if(D.lazy)return!0;if(D.loader==null)return!1;if(s)return Zw(D,t.loaderData,t.errors);if(uW(t.loaderData,t.matches[R],k)||c.some(E=>E===k.route.id))return!0;let B=t.matches[R],M=k;return RC(k,An({currentUrl:T,currentParams:B.params,nextUrl:w,nextParams:M.params},r,{actionResult:C,actionStatus:g,defaultShouldRevalidate:A?!1:l||T.pathname+T.search===w.pathname+w.search||T.search!==w.search||jR(B,M)}))}),_=[];return p.forEach((k,R)=>{if(s||!n.some(N=>N.route.id===k.routeId)||f.has(R))return;let D=Xl(h,k.path,y);if(!D){_.push({key:R,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let B=t.fetchers.get(R),M=s0(D,k.path),E=!1;m.has(R)?E=!1:u.has(R)?(u.delete(R),E=!0):B&&B.state!=="idle"&&B.data===void 0?E=l:E=RC(M,An({currentUrl:T,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:g,defaultShouldRevalidate:A?!1:l})),E&&_.push({key:R,routeId:k.routeId,path:k.path,matches:D,match:M,controller:new AbortController})}),[S,_]}function Zw(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,a=n!=null&&n[e.id]!==void 0;return!r&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!a}function uW(e,t,n){let r=!t||n.route.id!==t.route.id,a=e[n.route.id]===void 0;return r||a}function jR(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function RC(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function OC(e,t,n,r,a){var s;let i;if(e){let u=r[e];zt(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),i=u.children}else i=n;let l=t.filter(u=>!i.some(f=>LR(u,f))),c=kb(l,a,[e||"_","patch",String(((s=i)==null?void 0:s.length)||"0")],r);i.push(...c)}function LR(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var a;return(a=t.children)==null?void 0:a.some(s=>LR(n,s))}):!1}async function dW(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let a=n[e.id];zt(a,"No route found in manifest");let s={};for(let i in r){let c=a[i]!==void 0&&i!=="hasErrorBoundary";$u(!c,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!c&&!Mq.has(i)&&(s[i]=r[i])}Object.assign(a,s),Object.assign(a,An({},t(a),{lazy:void 0}))}async function fW(e){let{matches:t}=e,n=t.filter(a=>a.shouldLoad);return(await Promise.all(n.map(a=>a.resolve()))).reduce((a,s,i)=>Object.assign(a,{[n[i].route.id]:s}),{})}async function pW(e,t,n,r,a,s,i,l,c,u){let f=s.map(h=>h.route.lazy?dW(h.route,c,l):void 0),p=s.map((h,y)=>{let x=f[y],C=a.some(w=>w.route.id===h.route.id);return An({},h,{shouldLoad:C,resolve:async w=>(w&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(C=!0),C?mW(t,r,h,x,w,u):Promise.resolve({type:sn.data,result:void 0}))})}),m=await e({matches:p,request:r,params:s[0].params,fetcherKey:i,context:u});try{await Promise.all(f)}catch{}return m}async function mW(e,t,n,r,a,s){let i,l,c=u=>{let f,p=new Promise((y,x)=>f=x);l=()=>f(),t.signal.addEventListener("abort",l);let m=y=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:s},...y!==void 0?[y]:[]),h=(async()=>{try{return{type:"data",result:await(a?a(x=>m(x)):m())}}catch(y){return{type:"error",result:y}}})();return Promise.race([h,p])};try{let u=n.route[e];if(r)if(u){let f,[p]=await Promise.all([c(u).catch(m=>{f=m}),r]);if(f!==void 0)throw f;i=p}else if(await r,u=n.route[e],u)i=await c(u);else if(e==="action"){let f=new URL(t.url),p=f.pathname+f.search;throw Wr(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:sn.data,result:void 0};else if(u)i=await c(u);else{let f=new URL(t.url),p=f.pathname+f.search;throw Wr(404,{pathname:p})}zt(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:sn.error,result:u}}finally{l&&t.signal.removeEventListener("abort",l)}return i}async function hW(e){let{result:t,type:n}=e;if(zR(t)){let p;try{let m=t.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?t.body==null?p=null:p=await t.json():p=await t.text()}catch(m){return{type:sn.error,error:m}}return n===sn.error?{type:sn.error,error:new Cb(t.status,t.statusText,p),statusCode:t.status,headers:t.headers}:{type:sn.data,data:p,statusCode:t.status,headers:t.headers}}if(n===sn.error){if($C(t)){var r,a;if(t.data instanceof Error){var s,i;return{type:sn.error,error:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:sn.error,error:new Cb(((r=t.init)==null?void 0:r.status)||500,void 0,t.data),statusCode:E0(t)?t.status:void 0,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:sn.error,error:t,statusCode:E0(t)?t.status:void 0}}if(vW(t)){var l,c;return{type:sn.deferred,deferredData:t,statusCode:(l=t.init)==null?void 0:l.status,headers:((c=t.init)==null?void 0:c.headers)&&new Headers(t.init.headers)}}if($C(t)){var u,f;return{type:sn.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(f=t.init)!=null&&f.headers?new Headers(t.init.headers):void 0}}return{type:sn.data,data:t}}function yW(e,t,n,r,a,s){let i=e.headers.get("Location");if(zt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!o8.test(i)){let l=r.slice(0,r.findIndex(c=>c.route.id===n)+1);i=Jw(new URL(t.url),l,a,!0,i,s),e.headers.set("Location",i)}return e}function MC(e,t,n){if(o8.test(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),s=rd(a.pathname,n)!=null;if(a.origin===t.origin&&s)return a.pathname+a.search+a.hash}return e}function pu(e,t,n,r){let a=e.createURL($R(t)).toString(),s={signal:n};if(r&&cs(r.formMethod)){let{formMethod:i,formEncType:l}=r;s.method=i.toUpperCase(),l==="application/json"?(s.headers=new Headers({"Content-Type":l}),s.body=JSON.stringify(r.json)):l==="text/plain"?s.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?s.body=Qw(r.formData):s.body=r.formData}return new Request(a,s)}function Qw(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function DC(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function bW(e,t,n,r,a){let s={},i=null,l,c=!1,u={},f=n&&ka(n[1])?n[1].error:void 0;return e.forEach(p=>{if(!(p.route.id in t))return;let m=p.route.id,h=t[m];if(zt(!tc(h),"Cannot handle redirect results in processLoaderData"),ka(h)){let y=h.error;f!==void 0&&(y=f,f=void 0),i=i||{};{let x=Yl(e,m);i[x.route.id]==null&&(i[x.route.id]=y)}s[m]=void 0,c||(c=!0,l=E0(h.error)?h.error.status:500),h.headers&&(u[m]=h.headers)}else Ao(h)?(r.set(m,h.deferredData),s[m]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!c&&(l=h.statusCode),h.headers&&(u[m]=h.headers)):(s[m]=h.data,h.statusCode&&h.statusCode!==200&&!c&&(l=h.statusCode),h.headers&&(u[m]=h.headers))}),f!==void 0&&n&&(i={[n[0]]:f},s[n[0]]=void 0),{loaderData:s,errors:i,statusCode:l||200,loaderHeaders:u}}function FC(e,t,n,r,a,s,i){let{loaderData:l,errors:c}=bW(t,n,r,i);return a.forEach(u=>{let{key:f,match:p,controller:m}=u,h=s[f];if(zt(h,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(ka(h)){let y=Yl(e.matches,p==null?void 0:p.route.id);c&&c[y.route.id]||(c=An({},c,{[y.route.id]:h.error})),e.fetchers.delete(f)}else if(tc(h))zt(!1,"Unhandled fetcher revalidation redirect");else if(Ao(h))zt(!1,"Unhandled fetcher deferred data");else{let y=ko(h.data);e.fetchers.set(f,y)}}),{loaderData:l,errors:c}}function UC(e,t,n,r){let a=An({},t);for(let s of n){let i=s.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&s.route.loader&&(a[i]=e[i]),r&&r.hasOwnProperty(i))break}return a}function jC(e){return e?ka(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Yl(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function LC(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Wr(e,t){let{pathname:n,routeId:r,method:a,type:s,message:i}=t===void 0?{}:t,l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",a&&n&&r?c="You made a "+a+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?c="defer() is not supported in actions":s==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",c='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",a&&n&&r?c="You made a "+a.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":a&&(c='Invalid request method "'+a.toUpperCase()+'"')),new Cb(e||500,l,new Error(c),!0)}function ny(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,a]=t[n];if(tc(a))return{key:r,result:a}}}function $R(e){let t=typeof e=="string"?Uo(e):e;return fc(An({},t,{hash:""}))}function gW(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function xW(e){return zR(e.result)&&aW.has(e.result.status)}function Ao(e){return e.type===sn.deferred}function ka(e){return e.type===sn.error}function tc(e){return(e&&e.type)===sn.redirect}function $C(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function vW(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function zR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function wW(e){return rW.has(e.toLowerCase())}function cs(e){return tW.has(e.toLowerCase())}async function EW(e,t,n,r,a){let s=Object.entries(t);for(let i=0;i<s.length;i++){let[l,c]=s[i],u=e.find(m=>(m==null?void 0:m.route.id)===l);if(!u)continue;let f=r.find(m=>m.route.id===u.route.id),p=f!=null&&!jR(f,u)&&(a&&a[u.route.id])!==void 0;Ao(c)&&p&&await l8(c,n,!1).then(m=>{m&&(t[l]=m)})}}async function kW(e,t,n){for(let r=0;r<n.length;r++){let{key:a,routeId:s,controller:i}=n[r],l=t[a];e.find(u=>(u==null?void 0:u.route.id)===s)&&Ao(l)&&(zt(i,"Expected an AbortController for revalidating fetcher deferred result"),await l8(l,i.signal,!0).then(u=>{u&&(t[a]=u)}))}}async function l8(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:sn.data,data:e.deferredData.unwrappedData}}catch(a){return{type:sn.error,error:a}}return{type:sn.data,data:e.deferredData.data}}}function c8(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function s0(e,t){let n=typeof t=="string"?Uo(t).search:t.search;if(e[e.length-1].route.index&&c8(n||""))return e[e.length-1];let r=DR(e);return r[r.length-1]}function zC(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:s,json:i}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function av(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function CW(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function uf(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function AW(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ko(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function PW(e,t){try{let n=e.sessionStorage.getItem(UR);if(n){let r=JSON.parse(n);for(let[a,s]of Object.entries(r||{}))s&&Array.isArray(s)&&t.set(a,new Set(s||[]))}}catch{}}function TW(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(UR,JSON.stringify(n))}catch(r){$u(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
51 * React Router v6.30.0
52 *
53 * Copyright (c) Remix Software Inc.
54 *
55 * This source code is licensed under the MIT license found in the
56 * LICENSE.md file in the root directory of this source tree.
57 *
58 * @license MIT
59 */function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ab.apply(this,arguments)}const c1=G.createContext(null),HR=G.createContext(null),Sc=G.createContext(null),u8=G.createContext(null),$i=G.createContext({outlet:null,matches:[],isDataRoute:!1}),KR=G.createContext(null);function SW(e,t){let{relative:n}=t===void 0?{}:t;om()||zt(!1);let{basename:r,navigator:a}=G.useContext(Sc),{hash:s,pathname:i,search:l}=qR(e,{relative:n}),c=i;return r!=="/"&&(c=i==="/"?r:Oi([r,i])),a.createHref({pathname:c,search:l,hash:s})}function om(){return G.useContext(u8)!=null}function u1(){return om()||zt(!1),G.useContext(u8).location}function VR(e){G.useContext(Sc).static||G.useLayoutEffect(e)}function Bc(){let{isDataRoute:e}=G.useContext($i);return e?zW():BW()}function BW(){om()||zt(!1);let e=G.useContext(c1),{basename:t,future:n,navigator:r}=G.useContext(Sc),{matches:a}=G.useContext($i),{pathname:s}=u1(),i=JSON.stringify(s8(a,n.v7_relativeSplatPath)),l=G.useRef(!1);return VR(()=>{l.current=!0}),G.useCallback(function(u,f){if(f===void 0&&(f={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let p=i8(u,JSON.parse(i),s,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Oi([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,i,s,e])}const _W=G.createContext(null);function IW(e){let t=G.useContext($i).outlet;return t&&G.createElement(_W.Provider,{value:e},t)}function GR(){let{matches:e}=G.useContext($i),t=e[e.length-1];return t?t.params:{}}function qR(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=G.useContext(Sc),{matches:a}=G.useContext($i),{pathname:s}=u1(),i=JSON.stringify(s8(a,r.v7_relativeSplatPath));return G.useMemo(()=>i8(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function NW(e,t,n,r){om()||zt(!1);let{navigator:a,static:s}=G.useContext(Sc),{matches:i}=G.useContext($i),l=i[i.length-1],c=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let f=u1(),p;p=f;let m=p.pathname||"/",h=m;if(u!=="/"){let C=u.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=!s&&n&&n.matches&&n.matches.length>0?n.matches:Xl(e,{pathname:h});return FW(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Oi([u,a.encodeLocation?a.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Oi([u,a.encodeLocation?a.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r)}function RW(){let e=$W(),t=E0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return G.createElement(G.Fragment,null,G.createElement("h2",null,"Unexpected Application 
59Error!"),G.createElement("h3",{style:{fontStyle:"italic"}},t),n?G.createElement("pre",{style:a},n):null,null)}const OW=G.createElement(RW,null);class MW extends G.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?G.createElement($i.Provider,{value:this.props.routeContext},G.createElement(KR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DW(e){let{routeContext:t,match:n,children:r}=e,a=G.useContext(c1);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),G.createElement($i.Provider,{value:t},r)}function FW(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let f=i.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);f>=0||zt(!1),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<i.length;f++){let p=i[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=f),p.route.id){let{loaderData:m,errors:h}=n,y=p.route.loader&&m[p.route.id]===void 0&&(!h||h[p.route.id]===void 0);if(p.route.lazy||y){c=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((f,p,m)=>{let h,y=!1,x=null,C=null;n&&(h=l&&p.route.id?l[p.route.id]:void 0,x=p.route.errorElement||OW,c&&(u<0&&m===0?(HW("route-fallback"),y=!0,C=null):u===m&&(y=!0,C=p.route.hydrateFallbackElement||null)));let T=t.concat(i.slice(0,m+1)),w=()=>{let v;return h?v=x:y?v=C:p.route.Component?v=G.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=f,G.createElement(DW,{match:p,routeContext:{outlet:f,matches:T,isDataRoute:n!=null},children:v})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?G.createElement(MW,{location:n.location,revalidation:n.revalidation,component:x,error:h,children:w(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):w()},null)}var WR=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(WR||{}),JR=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(JR||{});function UW(e){let t=G.useContext(c1);return t||zt(!1),t}function jW(e){let t=G.useContext(HR);return t||zt(!1),t}function LW(e){let t=G.useContext($i);return t||zt(!1),t}function ZR(e){let t=LW(),n=t.matches[t.matches.length-1];return n.route.id||zt(!1),n.route.id}function $W(){var e;let t=G.useContext(KR),n=jW(JR.UseRouteError),r=ZR();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function zW(){let{router:e}=UW(WR.UseNavigateStable),t=ZR(),n=G.useRef(!1);return VR(()=>{n.current=!0}),G.useCallback(function(a,s){s===void 0&&(s={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Ab({fromRouteId:t},s)))},[e,t])}const HC={};function HW(e,t,n){HC[e]||(HC[e]=!0)}function KW(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function VW(e){return IW(e.context)}function GW(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Fn.Pop,navigator:s,static:i=!1,future:l}=e;om()&&zt(!1);let c=t.replace(/^\/*/,"/"),u=G.useMemo(()=>({basename:c,navigator:s,static:i,future:Ab({v7_relativeSplatPath:!1},l)}),[c,l,s,i]);typeof r=="string"&&(r=Uo(r));
vendor: 4,969 bytes, lines 59-68
59let{pathname:f="/",search:p="",hash:m="",state:h=null,key:y="default"}=r,x=G.useMemo(()=>{let C=rd(f,c);return C==null?null:{location:{pathname:C,search:p,hash:m,state:h,key:y},navigationType:a}},[c,f,p,m,h,y,a]);return x==null?null:G.createElement(Sc.Provider,{value:u},G.createElement(u8.Provider,{children:n,value:x}))}new Promise(()=>{});function qW(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:G.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:G.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:G.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
60 * React Router DOM v6.30.0
61 *
62 * Copyright (c) Remix Software Inc.
63 *
64 * This source code is licensed under the MIT license found in the
65 * LICENSE.md file in the root directory of this source tree.
66 *
67 * @license MIT
68 */function k0(){return k0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k0.apply(this,arguments)}function WW(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function JW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZW(e,t){return e.button===0&&(!t||t==="_self")&&!JW(e)}const QW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],XW="6";try{window.__reactRouterVersion=XW}catch{}function YW(e,t){return lW({basename:void 0,future:k0({},void 0,{v7_prependBasename:!0}),history:Nq({window:void 0}),hydrationData:eJ(),routes:e,mapRouteProperties:qW,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function eJ(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=k0({},t,{errors:tJ(t.errors)})),t}function tJ(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new Cb(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let s=window[a.__subType];if(typeof s=="function")try{let i=new s(a.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let s=new Error(a.message);s.stack="",n[r]=s}}else n[r]=a;return n}const nJ=G.createContext({isTransitioning:!1}),rJ=G.createContext(new Map),aJ="startTransition",KC=Aq[aJ],sJ="flushSync",VC=Iq[sJ];function iJ(e){KC?KC(e):e()}function df(e){VC?VC(e):e()}class oJ{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function lJ(e){let{fallbackElement:t,router:n,future:r}=e,[a,s]=G.useState(n.state),[i,l]=G.useState(),[c,u]=G.useState({isTransitioning:!1}),[f,p]=G.useState(),[m,h]=G.useState(),[y,x]=G.useState(),C=G.useRef(new Map),{v7_startTransition:T}=r||{},w=G.useCallback(k=>{T?iJ(k):k()},[T]),v=G.useCallback((k,R)=>{let{deletedFetchers:D,flushSync:B,viewTransitionOpts:M}=R;k.fetchers.forEach((N,I)=>{N.data!==void 0&&C.current.set(I,N.data)}),D.forEach(N=>C.current.delete(N));let E=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!M||E){B?df(()=>s(k)):w(()=>s(k));return}if(B){df(()=>{m&&(f&&f.resolve(),m.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let N=n.window.document.startViewTransition(()=>{df(()=>s(k))});N.finished.finally(()=>{df(()=>{p(void 0),h(void 0),l(void 0),u({isTransitioning:!1})})}),df(()=>h(N));return}m?(f&&f.resolve(),m.skipTransition(),x({state:k,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(l(k),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,m,f,C,w]);G.useLayoutEffect(()=>n.subscribe(v),[n,v]),G.useEffect(()=>{c.isTransitioning&&!c.flushSync&&p(new oJ)},[c]),G.useEffect(()=>{if(f&&i&&n.window){let k=i,R=f.promise,D=n.window.document.startViewTransition(async()=>{w(()=>s(k)),await R});D.finished.finally(()=>{p(void 0),h(void 0),l(void 0),u({isTransitioning:!1})}),h(D)}},[w,i,f,n.window]),G.useEffect(()=>{f&&i&&a.location.key===i.location.key&&f.resolve()},[f,m,a.location,i]),G.useEffect(()=>{!c.isTransitioning&&y&&(l(y.state),u({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),x(void 0))},[c.isTransitioning,y]),G.useEffect(()=>{},[]);let g=G.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,R,D)=>n.navigate(k,{state:R,preventScrollReset:D==null?void 0:D.preventScrollReset}),replace:(k,R,D)=>n.navigate(k,{replace:!0,state:R,preventScrollReset:D==null?void 0:D.preventScrollReset})}
68),[n]),A=n.basename||"/",S=G.useMemo(()=>({router:n,navigator:g,static:!1,basename:A}),[n,g,A]),_=G.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return G.useEffect(()=>KW(r,n.future),[r,n.future]),G.createElement(G.Fragment,null,G.createElement(c1.Provider,{value:S},G.createElement(HR.Provider,{value:a},G.createElement(rJ.Provider,{value:C.current},G.createElement(nJ.Provider,{value:c},G.createElement(GW,{basename:A,location:a.location,navigationType:a.historyAction,navigator:g,future:_},a.initialized||n.future.v7_partialHydration?G.createElement(cJ,{routes:n.routes,future:n.future,state:a}):t))))),null)}const cJ=G.memo(uJ);function uJ(e){let{routes:t,future:n,state:r}=e;return NW(t,void 0,r,n)}const dJ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fJ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ry=G.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:s,replace:i,state:l,target:c,to:u,preventScrollReset:f,viewTransition:p}=t,m=WW(t,QW),{basename:h}=G.useContext(Sc),y,x=!1;if(typeof u=="string"&&fJ.test(u)&&(y=u,dJ))try{let v=new URL(window.location.href),g=u.startsWith("//")?new URL(v.protocol+u):new URL(u),A=rd(g.pathname,h);g.origin===v.origin&&A!=null?u=A+g.search+g.hash:x=!0}catch{}let C=SW(u,{relative:a}),T=pJ(u,{replace:i,state:l,target:c,preventScrollReset:f,relative:a,viewTransition:p});function w(v){r&&r(v),v.defaultPrevented||T(v)}return G.createElement("a",k0({},m,{href:y||C,onClick:x||s?r:w,ref:n,target:c}))});var GC;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(GC||(GC={}));var qC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(qC||(qC={}));function pJ(e,t){let{target:n,replace:r,state:a,preventScrollReset:s,relative:i,viewTransition:l}=t===void 0?{}:t,c=Bc(),u=u1(),f=qR(e,{relative:i});return G.useCallback(p=>{if(ZW(p,n)){p.preventDefault();let m=r!==void 0?r:fc(u)===fc(f);c(e,{replace:m,state:a,preventScrollReset:s,relative:i,viewTransition:l})}},[u,c,f,r,a,n,e,s,i,l])}function mJ(){return W.jsxs(W.Fragment,{children:[W.jsx("div",{className:"gradient-mesh"}),W.jsx(VW,{})]})}function lm(){const e=G.useRef(null);return G.useEffect(()=>{const t=e.current;if(!t)return;const n=()=>{document.documentElement.style.setProperty("--header-height",`${t.offsetHeight}px`)};n();const r=new ResizeObserver(n);return r.observe(t),()=>r.disconnect()},[]),W.jsx("header",{ref:e,className:"sticky top-0 z-50 glass border-b border-[var(--border)]",children:W.jsx("div",{className:"max-w-7xl mx-auto px-6 py-4",children:W.jsxs("div",{className:"flex items-center justify-between",children:[W.jsxs(ry,{to:"/",className:"flex items-center gap-3 group",children:[W.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center relative overflow-hidden",children:W.jsx("img",{src:"/logo.png",alt:"Veashi Logo",width:40,height:40,className:"relative z-10 object-contain"})}),W.jsxs("div",{children:[W.jsx("h1",{className:"text-xl font-bold bg-gradient-to-r from-[var(--purple-500)] to-[var(--pink-500)] bg-clip-text text-transparent group-hover:from-[var(--purple-400)] group-hover:to-[var(--pink-400)] transition-all",children:"Veashi"}),W.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"Cross-Chain Explorer"})]})]}),W.jsxs("nav",{className:"flex items-center gap-6",children:[W.jsx(ry,{to:"/",className:"text-sm font-medium text-[var(--text-secondary)] hover:text-[var(--text-primary)] transition-colors",children:"Messages"}),W.jsx(ry,{to:"/routes",className:"text-sm font-medium text-[var(--text-secondary)] hover:text-[var(--text-primary)] transition-colors",children:"Routes"}),W.jsx(ry,{to:"/vea",className:"text-sm font-medium text-[var(--text-secondary)] hover:text-[var(--text-primary)] transition-colors",children:"Vea"}),W.jsx("a",{href:"https://github.com/kleros/vea",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium text-[var(--text-secondary)] hover:text-[var(--text-primary)] transition-colors",children:"GitHub"})]})]})})})}
vendor: 1,598 bytes, lines 68-76
68var WC={exports:{}},ff={};/**
69 * @license React
70 * react-jsx-runtime.production.min.js
71 *
72 * Copyright (c) Facebook, Inc. and its affiliates.
73 *
74 * This source code is licensed under the MIT license found in the
75 * LICENSE file in the root directory of this source tree.
76 */var JC;function hJ(){if(JC)return ff;JC=1;var e=Pe,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var f,p={},m=null,h=null;u!==void 0&&(m=""+u),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(h=c.ref);for(f in c)r.call(c,f)&&!s.hasOwnProperty(f)&&(p[f]=c[f]);if(l&&l.defaultProps)for(f in c=l.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:l,key:m,ref:h,props:p,_owner:a.current}}return ff.Fragment=n,ff.jsx=i,ff.jsxs=i,ff}var ZC;function yJ(){return ZC||(ZC=1,WC.exports=hJ()),WC.exports}var We=yJ();function QR(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=QR(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Qr(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=QR(e))&&(r&&(r+=" "),r+=t);return r}const qt=typeof document<"u"?Pe.useLayoutEffect:()=>{};function jn(e){const t=G.useRef(null);return qt(()=>{t.current=e},[e]),G.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function bJ(e){let[t,n]=G.useState(e),r=G.useRef(null),a=jn(()=>
76{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}t===i.value?a():n(i.value)});qt(()=>{r.current&&a()});let s=jn(i=>{r.current=i(t),a()});return[t,s]}const d8={prefix:String(Math.round(Math.random()*1e10)),current:0},XR=Pe.createContext(d8),gJ=Pe.createContext(!1);let xJ=!!(typeof window<"u"&&window.document&&window.document.createElement),sv=new WeakMap;function vJ(e=!1){let t=G.useContext(XR),n=G.useRef(null);if(n.current===null&&!e){var r,a;let s=(a=Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let i=sv.get(s);i==null?sv.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==i.state&&(t.current=i.id,sv.delete(s))}n.current=++t.current}return n.current}function wJ(e){let t=G.useContext(XR);t===d8&&!xJ&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=vJ(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function EJ(e){let t=Pe.useId(),[n]=G.useState(jo()),r=n?"react-aria":`react-aria${d8.prefix}`;return e||`${r}-${t}`}const kJ=typeof Pe.useId=="function"?EJ:wJ;function CJ(){return!1}function AJ(){return!0}function PJ(e){return()=>{}}function jo(){return typeof Pe.useSyncExternalStore=="function"?Pe.useSyncExternalStore(PJ,CJ,AJ):G.useContext(gJ)}let TJ=!!(typeof window<"u"&&window.document&&window.document.createElement),Ru=new Map,i0;typeof FinalizationRegistry<"u"&&(i0=new FinalizationRegistry(e=>{Ru.delete(e)}));function cr(e){let[t,n]=G.useState(e),r=G.useRef(null),a=kJ(t),s=G.useRef(null);if(i0&&i0.register(s,a),TJ){const i=Ru.get(a);i&&!i.includes(r)?i.push(r):Ru.set(a,[r])}return qt(()=>{let i=a;return()=>{i0&&i0.unregister(s),Ru.delete(i)}},[a]),G.useEffect(()=>{let i=r.current;return i&&n(i),()=>{i&&(r.current=null)}}),a}function SJ(e,t){if(e===t)return e;let n=Ru.get(e);if(n)return n.forEach(a=>a.current=t),t;let r=Ru.get(t);return r?(r.forEach(a=>a.current=e),e):t}function C0(e=[]){let t=cr(),[n,r]=bJ(t),a=G.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return qt(a,[t,a,...e]),n}function Ui(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function Ft(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let s=t[a],i=r[a];typeof s=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=Ui(s,i):(a==="className"||a==="UNSAFE_className")&&typeof s=="string"&&typeof i=="string"?t[a]=Qr(s,i):a==="id"&&s&&i?t.id=SJ(s,i):t[a]=i!==void 0?i:s}}return t}function d1(...e){return e.length===1&&e[0]?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}function Lo(e){const t=G.useRef(null);return G.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}const Pb=Symbol("default");function $o({values:e,children:t}){for(let[n,r]of e)t=Pe.createElement(n.Provider,{value:r},t);return t}function ar(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:s,defaultStyle:i,values:l}=e;return G.useMemo(()=>{let c,u,f;return typeof t=="function"?c=t({...l,defaultClassName:a}):c=t,typeof n=="function"?u=n({...l,defaultStyle:i||{}}):u=n,typeof r=="function"?f=r({...l,defaultChildren:s}):r==null?f=s:f=r,{className:c??a,style:u||i?{...i,...u}:void 0,children:f??s,"data-rac":""}},[t,n,r,a,s,i,l])}function cm(e,t){let n=G.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||Pb;if(!n.slots[r]){let a=new Intl.ListFormat().format(Object.keys(n.slots).map(i=>`"${i}"`)),s=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${s} Valid slot names are ${a}.`)}return n.slots[r]}return n}function wr(e,t,n){let r=cm(n,e.slot)||{},{ref:a,...s}=r,i=Lo(G.useMemo(()=>d1(t,a),[t,a])),l=Ft(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?l.style=c=>{let u=typeof s.style=="function"?s.style(c):s.style,f={...c.defaultStyle,...u},p=typeof e.style=="function"?e.style({...c,defaultStyle:f}):e.style;return{...f,...p}}:l.style={...s.style,...e.style}),[l,i]}function f1(e=!0){let[t,n]=G.useState(e),r=G.useRef(!1),a=G.useCallback(s=>{r.current=!0,n(!!s)},[]);return qt(()=>{r.current||n(!1)},[]),[a,t]}function f8(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Tb=G.createContext(!1);function BJ(e){if(G.useContext(Tb))return Pe.createElement(Pe.Fragment,null,e.children);let t=Pe.createElement(Tb.Provider,{value:!0},e.children);return Pe.createElement("template",{"data-react-aria-hidden":!0},t)}function p1(e){let t=(n,r)=>G.useContext(Tb)?null:e(n,r);return t.displayName=e.displayName||e.name,G.forwardRef(t)}function _J(){return G.useContext(Tb)}const m1=G.createContext({}),p8=p1(function(e,t){[e,t]=wr(e,t,m1);let{elementType:n="label",...r}=e;return Pe.createElement(n,{className:"react-aria-Label",...r,ref:t})});function Ou(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function ay(e,t){let n=e,r=t.toString(),a=r.indexOf("."),s=a>=0?r.length-a:0;if(s>0){let i=Math.pow(10,s);n=Math.round(n*i)/i}return n}function ii(e,t,n,r){t=Number(t),n=Number(n);let a=(e-(isNaN(t)?0:t))%r,s=ay(Math.abs(a)*2>
76=r?e+Math.sign(a)*(r-Math.abs(a)):e-a,r);return isNaN(t)?!isNaN(n)&&s>n&&(s=Math.floor(ay(n/r,r))*r):s<t?s=t:!isNaN(n)&&s>n&&(s=t+Math.floor(ay((n-t)/r,r))*r),s=ay(s,r),s}const IJ=new Set(["id"]),NJ=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),RJ=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),OJ=/^(data-.*)$/;function $n(e,t={}){let{labelable:n,isLink:r,propNames:a}=t,s={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(IJ.has(i)||n&&NJ.has(i)||r&&RJ.has(i)||a!=null&&a.has(i)||OJ.test(i))&&(s[i]=e[i]);return s}function YR(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=cr(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function eO(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:s="label"}=e;t=cr(t);let i=cr(),l={};n?(r=r?`${i} ${r}`:i,l={id:i,htmlFor:s==="label"?t:void 0}):!r&&!a&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=YR({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:l,fieldProps:c}}const MJ=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),DJ=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function FJ(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return MJ.has(n.script)}let t=e.split("-")[0];return DJ.has(t)}const UJ=Symbol.for("react-aria.i18n.locale");function tO(){let e=typeof window<"u"&&window[UJ]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:FJ(e)?"rtl":"ltr"}}let Xw=tO(),o0=new Set;function QC(){Xw=tO();for(let e of o0)e(Xw)}function jJ(){let e=jo(),[t,n]=G.useState(Xw);return G.useEffect(()=>(o0.size===0&&window.addEventListener("languagechange",QC),o0.add(n),()=>{o0.delete(n),o0.size===0&&window.removeEventListener("languagechange",QC)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const LJ=Pe.createContext(null);function zo(){let e=jJ();return G.useContext(LJ)||e}let iv=new Map,Yw=!1;try{Yw=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Sb=!1;try{Sb=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const nO={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};let Bb=class{format(t){let n="";if(!Yw&&this.options.signDisplay!=null?n=zJ(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Sb){var r;let{unit:a,unitDisplay:s="short",locale:i}=this.resolvedOptions();if(!a)return n;let l=(r=nO[a])===null||r===void 0?void 0:r[s];
76n+=l[i]||l.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(n);return[...r.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Yw&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Sb&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=$J(t,n),this.options=n}};function $J(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Sb){var r;let{unit:i,unitDisplay:l="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=nO[i])===null||r===void 0)&&r[l]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let a=e+(t?Object.entries(t).sort((i,l)=>i[0]<l[0]?-1:1).join():"");if(iv.has(a))return iv.get(a);let s=new Intl.NumberFormat(e,t);return iv.set(a,s),s}function zJ(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let a=e.format(-n),s=e.format(n),i=a.replace(s,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(s,"!!!").replace(i,"+").replace("!!!",s)}else return e.format(n)}}function XC(e={}){let{locale:t}=zo();return G.useMemo(()=>new Bb(t,e),[t,e])}const HJ=G.createContext(null),on=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Xr=e=>e&&"window"in e&&e.window===e?e:on(e).defaultView||window;function In(e,t){return t&&e?e.contains(t):!1}const Br=(e=document)=>e.activeElement;function tn(e){return e.target}function Fs(e){if(KJ())e.focus({preventScroll:!0});else{let t=VJ(e);e.focus(),GJ(t)}}let sy=null;function KJ(){if(sy==null){sy=!1;try{document.createElement("div").focus({get preventScroll(){return sy=!0,!0}})}catch{}}return sy}function VJ(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function GJ(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function h1(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function m8(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function zi(e){let t=null;return()=>(t==null&&(t=e()),t)}const Bo=zi(function(){return m8(/^Mac/i)}),rO=zi(function(){return m8(/^iPhone/i)}),aO=zi(function(){return m8(/^iPad/i)||Bo()&&navigator.maxTouchPoints>1}),um=zi(function(){return rO()||aO()}),qJ=zi(function(){return Bo()||um()}),h8=zi(function(){return h1(/AppleWebKit/i)&&!sO()}),sO=zi(function(){return h1(/Chrome/i)}),y1=zi(function(){return h1(/Android/i)}),WJ=zi(function(){return h1(/Firefox/i)});let ku=new Map,e5=new Set;function YC(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=ku.get(r.target);a||(a=new Set,ku.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=ku.get(r.target);
76if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),ku.delete(r.target)),ku.size===0)){for(let s of e5)s();e5.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?YC():document.addEventListener("DOMContentLoaded",YC));function iO(e){requestAnimationFrame(()=>{ku.size===0?e():e5.add(e)})}function dm(){let e=G.useRef(new Map),t=G.useCallback((a,s,i,l)=>{let c=l!=null&&l.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:s,eventTarget:a,fn:c,options:l}),a.addEventListener(s,c,l)},[]),n=G.useCallback((a,s,i,l)=>{var c;let u=((c=e.current.get(i))===null||c===void 0?void 0:c.fn)||i;a.removeEventListener(s,u,l),e.current.delete(i)},[]),r=G.useCallback(()=>{e.current.forEach((a,s)=>{n(a.eventTarget,a.type,s,a.options)})},[n]);return G.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function oO(e,t){qt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function t5(e){return e.mozInputSource===0&&e.isTrusted?!0:y1()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function JJ(e){return!y1()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const y8=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],ZJ=y8.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";y8.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const QJ=y8.join(':not([hidden]):not([tabindex="-1"]),');function b8(e){return e.matches(ZJ)}function XJ(e){return e.matches(QJ)}let lO=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}};function cO(e){let t=G.useRef({isFocused:!1,observer:null});qt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=jn(r=>{e==null||e(r)});return G.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target,s=i=>{t.current.isFocused=!1,a.disabled&&n(new lO("blur",i)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let l=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let _b=!1;function eA(e){for(;e&&!b8(e);)e=e.parentElement;let t=Xr(e),n=t.document.activeElement;if(!n||n===e)return;_b=!0;let r=!1,a=f=>{(f.target===n||r)&&f.stopImmediatePropagation()},s=f=>{(f.target===n||r)&&(f.stopImmediatePropagation(),!e&&!r&&(r=!0,Fs(n),c()))},i=f=>{(f.target===e||r)&&f.stopImmediatePropagation()},l=f=>{(f.target===e||r)&&(f.stopImmediatePropagation(),r||(r=!0,Fs(n),c()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",i,!0);let c=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",i,!0),_b=!1,r=!1},u=requestAnimationFrame(c);return c}let _c=null,n5=new Set,b0=new Map,pc=!1,r5=!1;const YJ={Tab:!0,Escape:!0};function b1(e,t){for(let n of n5)n(e,t)}function eZ(e){return!(e.metaKey||!Bo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ib(e){pc=!0,eZ(e)&&(_c="keyboard",b1("keyboard",e))}function La(e){_c="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(pc=!0,b1("pointer",e))}function uO(e){t5(e)&&(pc=!0,_c="virtual")}function dO(e){e.target===window||e.target===document||_b||!e.isTrusted||(!pc&&!r5&&(_c="virtual",b1("virtual",e)),pc=!1,r5=!1)}function fO(){_b||(pc=!1,r5=!0)}function a5(e){if(typeof window>"u"||b0.get(Xr(e)))return;const t=Xr(e),n=on(e);
76let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){pc=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ib,!0),n.addEventListener("keyup",Ib,!0),n.addEventListener("click",uO,!0),t.addEventListener("focus",dO,!0),t.addEventListener("blur",fO,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",La,!0),n.addEventListener("pointermove",La,!0),n.addEventListener("pointerup",La,!0)):(n.addEventListener("mousedown",La,!0),n.addEventListener("mousemove",La,!0),n.addEventListener("mouseup",La,!0)),t.addEventListener("beforeunload",()=>{pO(e)},{once:!0}),b0.set(t,{focus:r})}const pO=(e,t)=>{const n=Xr(e),r=on(e);t&&r.removeEventListener("DOMContentLoaded",t),b0.has(n)&&(n.HTMLElement.prototype.focus=b0.get(n).focus,r.removeEventListener("keydown",Ib,!0),r.removeEventListener("keyup",Ib,!0),r.removeEventListener("click",uO,!0),n.removeEventListener("focus",dO,!0),n.removeEventListener("blur",fO,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",La,!0),r.removeEventListener("pointermove",La,!0),r.removeEventListener("pointerup",La,!0)):(r.removeEventListener("mousedown",La,!0),r.removeEventListener("mousemove",La,!0),r.removeEventListener("mouseup",La,!0)),b0.delete(n))};function tZ(e){const t=on(e);let n;return t.readyState!=="loading"?a5(e):(n=()=>{a5(e)},t.addEventListener("DOMContentLoaded",n)),()=>pO(e,n)}typeof document<"u"&&tZ();function A0(){return _c!=="pointer"}function P0(){return _c}function mO(e){_c=e,b1(e,null)}const nZ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function rZ(e,t,n){let r=on(n==null?void 0:n.target);const a=typeof window<"u"?Xr(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?Xr(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?Xr(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?Xr(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof a&&!nZ.has(r.activeElement.type)||r.activeElement instanceof s||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof l&&!YJ[n.key])}function aZ(e,t,n){a5(),G.useEffect(()=>{let r=(a,s)=>{rZ(!!(n!=null&&n.isTextInput),a,s)&&e(A0())};return n5.add(r),()=>{n5.delete(r)}},t)}function _o(e){const t=on(e),n=Br(t);if(P0()==="virtual"){let r=n;iO(()=>{Br(t)===r&&e.isConnected&&Fs(e)})}else Fs(e)}function g8(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const s=G.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),a&&a(!1),!0},[r,a]),i=cO(s),l=G.useCallback(c=>{const u=on(c.target),f=u?Br(u):Br();c.target===c.currentTarget&&f===tn(c.nativeEvent)&&(n&&n(c),a&&a(!0),i(c))},[a,n,i]);return{focusProps:{onFocus:!t&&(n||a||r)?l:void 0,onBlur:!t&&(r||a)?s:void 0}}}function tA(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function sZ(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:tA(e.onKeyDown),onKeyUp:tA(e.onKeyUp)}}}let Nb=Pe.createContext(null);function iZ(e){let t=G.useContext(Nb)||{};oO(t,e);let{ref:n,...r}=t;return r}const oZ=Pe.forwardRef(function(e,t){let{children:n,...r}=e,a=Lo(t),s={...r,ref:a};return Pe.createElement(Nb.Provider,{value:s},n)});function g1(e,t){let{focusProps:n}=g8(e),{keyboardProps:r}=sZ(e),a=Ft(n,r),s=iZ(t),i=e.isDisabled?{}:s,l=G.useRef(e.autoFocus);G.useEffect(()=>{l.current&&t.current&&_o(t.current),l.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:Ft({...a,tabIndex:c},i)}}const lZ=G.forwardRef(({children:e,...t},n)=>{n=Lo(n);let{focusableProps:r}=g1(t,n),a=Pe.Children.only(e);G.useEffect(()=>{let i=n.current;if(!i||!(i instanceof Xr(i).Element)){console.error("<Focusable> child must forward its ref to a DOM element.");return}if(!t.isDisabled&&!b8(i)){console.warn("<Focusable> child must be focusable. Please ensure the tabIndex prop is passed through.");return}if(i.localName!=="button"&&i.localName!=="input"&&i.localName!=="select"&&i.localName!=="textarea"&&i.localName!=="a"&&i.localName!=="area"&&i.localName!=="summary"&&i.localName!=="img"&&i.localName!=="svg"){let l=i.getAttribute("role");l?l!=="application"&&l!=="button"&&l!=="checkbox"&&l!=="combobox"&&l!=="gridcell"&&l!=="link"&&l!=="menuitem"&&l!=="menuitemcheckbox"&&l!=="menuitemradio"&&l!=="option"&&l!=="radio"&&l!=="searchbox"&&l!=="separator"&&l!=="slider"&&l!=="spinbutton"&&l!=="switch"&&l!=="tab"&&l!=="tabpanel"&&l!=="textbox"&&l!=="treeitem"&&l!=="img"&&l!=="meter"&&l!=="progressbar"&&console.warn(`<Focusable> child must have an interactive ARIA role. Got "${l}".`):console.warn("<Focusable> child must have an interactive ARIA role.")}},[n,t.isDisabled]);let s=parseInt(Pe.version,10)<19?a.ref:a.props.ref;return Pe.cloneElement(a,{...Ft(r,a.props),ref:d1(s,n)})});let Rb=!1,ov=0;function s5(){Rb=!0,setTimeout(()=>{Rb=!1},50)}function nA(e){e.pointerType==="touch"&&s5()}function cZ(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",nA):document.addEventListener("touchend",s5),ov++,()=>{ov--,!(ov>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",nA):document.removeEventListener("touchend",s5))}}function Ic(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:a}
76=e,[s,i]=G.useState(!1),l=G.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;G.useEffect(cZ,[]);let{addGlobalListener:c,removeAllGlobalListeners:u}=dm(),{hoverProps:f,triggerHoverEnd:p}=G.useMemo(()=>{let m=(x,C)=>{if(l.pointerType=C,a||C==="touch"||l.isHovered||!x.currentTarget.contains(x.target))return;l.isHovered=!0;let T=x.currentTarget;l.target=T,c(on(x.target),"pointerover",w=>{l.isHovered&&l.target&&!In(l.target,w.target)&&h(w,w.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:T,pointerType:C}),n&&n(!0),i(!0)},h=(x,C)=>{let T=l.target;l.pointerType="",l.target=null,!(C==="touch"||!l.isHovered||!T)&&(l.isHovered=!1,u(),r&&r({type:"hoverend",target:T,pointerType:C}),n&&n(!1),i(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=x=>{Rb&&x.pointerType==="mouse"||m(x,x.pointerType)},y.onPointerLeave=x=>{!a&&x.currentTarget.contains(x.target)&&h(x,x.pointerType)}):(y.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=x=>{!l.ignoreEmulatedMouseEvents&&!Rb&&m(x,"mouse"),l.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=x=>{!a&&x.currentTarget.contains(x.target)&&h(x,"mouse")}),{hoverProps:y,triggerHoverEnd:h}},[t,n,r,a,l,c,u]);return G.useEffect(()=>{a&&p({currentTarget:l.target},l.pointerType)},[a]),{hoverProps:f,isHovered:s}}let _u="default",i5="",ob=new WeakMap;function rA(e){if(um()){if(_u==="default"){const t=on(e);i5=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}_u="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";ob.set(e,e.style[t]),e.style[t]="none"}}function lv(e){if(um()){if(_u!=="disabled")return;_u="restoring",setTimeout(()=>{iO(()=>{if(_u==="restoring"){const t=on(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=i5||""),i5="",_u="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ob.has(e)){let t=ob.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ob.delete(e)}}const uZ=G.createContext({isNative:!0,open:fZ,useHref:e=>e});function x8(){return G.useContext(uZ)}function mc(e,t,n=!0){var r,a;let{metaKey:s,ctrlKey:i,altKey:l,shiftKey:c}=t;WJ()&&!((a=window.event)===null||a===void 0||(r=a.type)===null||r===void 0)&&r.startsWith("key")&&e.target==="_blank"&&(Bo()?s=!0:i=!0);let u=h8()&&Bo()&&!aO()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:i,altKey:l,shiftKey:c}):new MouseEvent("click",{metaKey:s,ctrlKey:i,altKey:l,shiftKey:c,bubbles:!0,cancelable:!0});mc.isOpening=n,Fs(e),e.dispatchEvent(u),mc.isOpening=!1}mc.isOpening=!1;function dZ(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function fZ(e,t){dZ(e,n=>mc(n,t))}function pZ(e){let t=x8();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}const v8=Pe.createContext({register:()=>{}});v8.displayName="PressResponderContext";function mZ(e,t){return t.get?t.get.call(e):t.value}function hO(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function hZ(e,t){var n=hO(e,t,"get");return mZ(e,n)}function yZ(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bZ(e,t,n){yZ(e,t),t.set(e,n)}function gZ(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function aA(e,t,n){var r=hO(e,t,"set");return gZ(e,r,n),n}function xZ(e){let t=G.useContext(v8);if(t){let{register:n,...r}=t;e=Ft(r,e),n()}return oO(t,e.ref),e}var iy=new WeakMap;let oy=class{continuePropagation(){aA(this,iy,!1)}get shouldStopPropagation(){return hZ(this,iy)}constructor(t,n,r,a){bZ(this,iy,{writable:!0,value:void 0}),aA(this,iy,!0);var s;let i=(s=a==null?void 0:a.target)!==null&&s!==void 0?s:r.currentTarget;const l=i==null?void 0:i.getBoundingClientRect();let c,u=0,f,p=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,p=r.clientY),l&&(f!=null&&p!=null?(c=f-l.left,u=p-l.top):(c=l.width/2,u=l.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=c,this.y=u}};const sA=Symbol("linkClicked");function w8(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:s,isDisabled:i,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:f,ref:p,...m}=xZ(e),[h,y]=G.useState(!1),x=G.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:C,removeAllGlobalListeners:T}=dm(),w=jn((k,R)=>{let D=x.current;if(i||D.didFirePressStart)return!1;let B=!0;
76if(D.isTriggeringEvent=!0,r){let M=new oy("pressstart",R,k);r(M),B=M.shouldStopPropagation}return n&&n(!0),D.isTriggeringEvent=!1,D.didFirePressStart=!0,y(!0),B}),v=jn((k,R,D=!0)=>{let B=x.current;if(!B.didFirePressStart)return!1;B.didFirePressStart=!1,B.isTriggeringEvent=!0;let M=!0;if(a){let E=new oy("pressend",R,k);a(E),M=E.shouldStopPropagation}if(n&&n(!1),y(!1),t&&D&&!i){let E=new oy("press",R,k);t(E),M&&(M=E.shouldStopPropagation)}return B.isTriggeringEvent=!1,M}),g=jn((k,R)=>{let D=x.current;if(i)return!1;if(s){D.isTriggeringEvent=!0;let B=new oy("pressup",R,k);return s(B),D.isTriggeringEvent=!1,B.shouldStopPropagation}return!0}),A=jn(k=>{let R=x.current;if(R.isPressed&&R.target){R.didFirePressStart&&R.pointerType!=null&&v(mu(R.target,k),R.pointerType,!1),R.isPressed=!1,R.isOverTarget=!1,R.activePointerId=null,R.pointerType=null,T(),f||lv(R.target);for(let D of R.disposables)D();R.disposables=[]}}),S=jn(k=>{u&&A(k)}),_=G.useMemo(()=>{let k=x.current,R={onKeyDown(B){if(cv(B.nativeEvent,B.currentTarget)&&In(B.currentTarget,tn(B.nativeEvent))){var M;lA(tn(B.nativeEvent),B.key)&&B.preventDefault();let E=!0;if(!k.isPressed&&!B.repeat){k.target=B.currentTarget,k.isPressed=!0,k.pointerType="keyboard",E=w(B,"keyboard");let N=B.currentTarget,I=F=>{cv(F,N)&&!F.repeat&&In(N,tn(F))&&k.target&&g(mu(k.target,F),"keyboard")};C(on(B.currentTarget),"keyup",Ui(I,D),!0)}E&&B.stopPropagation(),B.metaKey&&Bo()&&((M=k.metaKeyEvents)===null||M===void 0||M.set(B.key,B.nativeEvent))}else B.key==="Meta"&&(k.metaKeyEvents=new Map)},onClick(B){if(!(B&&!In(B.currentTarget,tn(B.nativeEvent)))&&B&&B.button===0&&!k.isTriggeringEvent&&!mc.isOpening){let M=!0;if(i&&B.preventDefault(),!k.ignoreEmulatedMouseEvents&&!k.isPressed&&(k.pointerType==="virtual"||t5(B.nativeEvent))){let E=w(B,"virtual"),N=g(B,"virtual"),I=v(B,"virtual");M=E&&N&&I}else if(k.isPressed&&k.pointerType!=="keyboard"){let E=k.pointerType||B.nativeEvent.pointerType||"virtual";M=v(mu(B.currentTarget,B),E,!0),k.isOverTarget=!1,A(B)}k.ignoreEmulatedMouseEvents=!1,M&&B.stopPropagation()}}},D=B=>{var M;if(k.isPressed&&k.target&&cv(B,k.target)){var E;lA(tn(B),B.key)&&B.preventDefault();let I=tn(B);v(mu(k.target,B),"keyboard",In(k.target,tn(B))),T(),B.key!=="Enter"&&E8(k.target)&&In(k.target,I)&&!B[sA]&&(B[sA]=!0,mc(k.target,B,!1)),k.isPressed=!1,(E=k.metaKeyEvents)===null||E===void 0||E.delete(B.key)}else if(B.key==="Meta"&&!((M=k.metaKeyEvents)===null||M===void 0)&&M.size){var N;let I=k.metaKeyEvents;k.metaKeyEvents=void 0;for(let F of I.values())(N=k.target)===null||N===void 0||N.dispatchEvent(new KeyboardEvent("keyup",F))}};if(typeof PointerEvent<"u"){R.onPointerDown=E=>{if(E.button!==0||!In(E.currentTarget,tn(E.nativeEvent)))return;if(JJ(E.nativeEvent)){k.pointerType="virtual";return}k.pointerType=E.pointerType;let N=!0;if(!k.isPressed){k.isPressed=!0,k.isOverTarget=!0,k.activePointerId=E.pointerId,k.target=E.currentTarget,f||rA(k.target),N=w(E,k.pointerType);let I=tn(E.nativeEvent);"releasePointerCapture"in I&&I.releasePointerCapture(E.pointerId),C(on(E.currentTarget),"pointerup",B,!1),C(on(E.currentTarget),"pointercancel",M,!1)}N&&E.stopPropagation()},R.onMouseDown=E=>{if(In(E.currentTarget,tn(E.nativeEvent))&&E.button===0){if(c){let N=eA(E.target);N&&k.disposables.push(N)}E.stopPropagation()}},R.onPointerUp=E=>{!In(E.currentTarget,tn(E.nativeEvent))||k.pointerType==="virtual"||E.button===0&&g(E,k.pointerType||E.pointerType)},R.onPointerEnter=E=>{E.pointerId===k.activePointerId&&k.target&&!k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!0,w(mu(k.target,E),k.pointerType))},R.onPointerLeave=E=>{E.pointerId===k.activePointerId&&k.target&&k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!1,v(mu(k.target,E),k.pointerType,!1),S(E))};let B=E=>{if(E.pointerId===k.activePointerId&&k.isPressed&&E.button===0&&k.target){if(In(k.target,tn(E))&&k.pointerType!=null){let N=!1,I=setTimeout(()=>{k.isPressed&&k.target instanceof HTMLElement&&(N?A(E):(Fs(k.target),k.target.click()))},80);C(E.currentTarget,"click",()=>N=!0,!0),k.disposables.push(()=>clearTimeout(I))}else A(E);k.isOverTarget=!1}},M=E=>{A(E)};R.onDragStart=E=>{In(E.currentTarget,tn(E.nativeEvent))&&A(E)}}else{R.onMouseDown=E=>{if(!(E.button!==0||!In(E.currentTarget,tn(E.nativeEvent)))){if(k.ignoreEmulatedMouseEvents){E.stopPropagation();return}if(k.isPressed=!0,k.isOverTarget=!0,k.target=E.currentTarget,k.pointerType=t5(E.nativeEvent)?"virtual":"mouse",nd.flushSync(()=>w(E,k.pointerType))&&E.stopPropagation(),c){let N=eA(E.target);N&&k.disposables.push(N)}C(on(E.currentTarget),"mouseup",B,!1)}},R.onMouseEnter=E=>{if(!In(E.currentTarget,tn(E.nativeEvent)))return;let N=!0;k.isPressed&&!k.ignoreEmulatedMouseEvents&&k.pointerType!=null&&(k.isOverTarget=!0,N=w(E,k.pointerType)),N&&E.stopPropagation()},R.onMouseLeave=E=>{if(!In(E.currentTarget,tn(E.nativeEvent)))return;let N=!0;k.isPressed&&!k.ignoreEmulatedMouseEvents&&k.pointerType!=null&&(k.isOverTarget=!1,N=v(E,k.pointerType,!1),S(E)),N&&E.stopPropagation()},R.onMouseUp=E=>{In(E.currentTarget,tn(E.nativeEvent))&&!k.ignoreEmulatedMouseEvents&&E.button===0&&g(E,k.pointerType||"mouse")};let B=E=>{if(E.button===0){if(k.ignoreEmulatedMouseEvents){k.ignoreEmulatedMouseEvents=!1;return}k.target&&k.target.contains(E.target)&&k.pointerType!=null||A(E),k.isOverTarget=!1}};R.onTouchStart=E=>{if(!In(E.currentTarget,tn(E.nativeEvent)))return;let N=vZ(E.nativeEvent);N&&(k.activePointerId=N.identifier,k.ignoreEmulatedMouseEvents=!0,k.isOverTarget=!0,k.isPressed=!0,k.target=E.currentTarget,k.pointerType="touch",f||rA(k.target),w(yo(k.target,E),k.pointerType)&&E.stopPropagation(),C(Xr(E.currentTarget),"scroll",M,!0))},R.onTouchMove=E=>{if(!In(E.currentTarget,tn(E.nativeEvent)))return;if(!k.isPressed){E.stopPropagation();return}let N=iA(E.nativeEvent,k.activePointerId),I=!0;N&&oA(N,E.currentTarget)?!k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!0,I=w(yo(k.target,E),k.pointerType)):k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!1,I=v(yo(k.target,E),k.pointerType,!1),S(yo(k.target,E))),I&&E.stopPropagation()},R.onTouchEnd=E=>{if(!In(E.currentTarget,tn(E.nativeEvent)))return;if(!k.isPressed){E.stopPropagation();return}let N=iA(E.nativeEvent,k.activePointerId),I=!0;N&&oA(N,E.currentTarget)&&k.pointerType!=null?(g(yo(k.target,E),k.pointerType),I=v(yo(k.target,E),k.pointerType)):k.isOverTarget&&k.pointerType!=null&&(I=v(yo(k.target,E),k.pointerType,!1)),I&&E.stopPropagation(),k.isPressed=!1,k.activePointerId=null,k.isOverTarget=!1,k.ignoreEmulatedMouseEvents=!0,k.target&&!f&&lv(k.target),T()},R.onTouchCancel=E=>{In(E.currentTarget,tn(E.nativeEvent))&&(E.stopPropagation(),k.isPressed&&A(yo(k.target,E)))};let M=E=>{k.isPressed&&In(tn(E),k.target)&&A({currentTarget:k.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};R.onDragStart=E=>{In(E.currentTarget,tn(E.nativeEvent))&&A(E)}}return R},[C,i,c,T,f,A,S,v,w,g]);return G.useEffect(()=>{let k=x.current;return()=>{var R;f||lv((R=k.target)!==null&&R!==void 0?R:void 0);for(let D of k.disposables)D();k.disposables=[]}},[f]),{isPressed:l||h,pressProps:Ft(m,_)}}function E8(e){return e.tagName==="A"&&e.hasAttribute("href")}function cv(e,t){const{key:n,code:r}=e,a=t,s=a.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(a instanceof Xr(a).HTMLInputElement&&!yO(a,n)||a instanceof Xr(a).HTMLTextAreaElement||a.isContentEditable)&&!((s==="link"||!s&&E8(a))&&n!=="Enter")}function vZ(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function iA(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const a=n[r];if(a.identifier===t)return a}return null}function yo(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function mu(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function wZ(e){let t=0,n=0;
76return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function EZ(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function oA(e,t){let n=t.getBoundingClientRect(),r=wZ(e);return EZ(n,r)}function kZ(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!E8(e)}function lA(e,t){return e instanceof HTMLInputElement?!yO(e,t):kZ(e)}const CZ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function yO(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":CZ.has(e.type)}function fm(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:a}=e,s=G.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=dm(),c=G.useCallback(p=>{p.currentTarget.contains(p.target)&&s.current.isFocusWithin&&!p.currentTarget.contains(p.relatedTarget)&&(s.current.isFocusWithin=!1,l(),n&&n(p),a&&a(!1))},[n,a,s,l]),u=cO(c),f=G.useCallback(p=>{if(!p.currentTarget.contains(p.target))return;const m=on(p.target),h=Br(m);if(!s.current.isFocusWithin&&h===tn(p.nativeEvent)){r&&r(p),a&&a(!0),s.current.isFocusWithin=!0,u(p);let y=p.currentTarget;i(m,"focus",x=>{if(s.current.isFocusWithin&&!In(y,x.target)){let C=new lO("blur",new m.defaultView.FocusEvent("blur",{relatedTarget:x.target}));C.target=y,C.currentTarget=y,c(C)}},{capture:!0})}},[r,a,u,i,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:c}}}function pm(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,a=G.useRef({isFocused:!1,isFocusVisible:t||A0()}),[s,i]=G.useState(!1),[l,c]=G.useState(()=>a.current.isFocused&&a.current.isFocusVisible),u=G.useCallback(()=>c(a.current.isFocused&&a.current.isFocusVisible),[]),f=G.useCallback(h=>{a.current.isFocused=h,i(h),u()},[u]);aZ(h=>{a.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:p}=g8({isDisabled:r,onFocusChange:f}),{focusWithinProps:m}=fm({isDisabled:!r,onFocusWithinChange:f});return{isFocused:s,isFocusVisible:l,focusProps:r?m:p}}function AZ(e,t){let{elementType:n="button",isDisabled:r,onPress:a,onPressStart:s,onPressEnd:i,onPressUp:l,onPressChange:c,preventFocusOnPress:u,allowFocusWhenDisabled:f,onClick:p,href:m,target:h,rel:y,type:x="button"}=e,C;n==="button"?C={type:x,disabled:r}:C={role:"button",href:n==="a"&&!r?m:void 0,target:n==="a"?h:void 0,type:n==="input"?x:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:T,isPressed:w}=w8({onPressStart:s,onPressEnd:i,onPressChange:c,onPress:a,onPressUp:l,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:v}=g1(e,t);f&&(v.tabIndex=r?-1:v.tabIndex);let g=Ft(v,T,$n(e,{labelable:!0}));return{isPressed:w,buttonProps:Ft(C,g,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],onClick:A=>{p&&(p(A),console.warn("onClick is deprecated, please use onPress"))}})}}const bO=7e3;let Rs=null;function gO(e,t="assertive",n=bO){Rs?Rs.announce(e,t,n):(Rs=new TZ,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Rs.announce(e,t,n):setTimeout(()=>{Rs!=null&&Rs.isAttached()&&(Rs==null||Rs.announce(e,t,n))},100))}function PZ(e){Rs&&Rs.clear(e)}let TZ=class{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=bO){var a,s;if(!this.node)return;let i=document.createElement("div");typeof t=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",t["aria-labelledby"])):i.textContent=t,n==="assertive"?(a=this.assertiveLog)===null||a===void 0||a.appendChild(i):(s=this.politeLog)===null||s===void 0||s.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};const SZ=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),mm=G.createContext({}),hc=p1(function(e,t){[e,t]=wr(e,t,mm),e=BZ(e);let n=e,{isPending:r}=n,{buttonProps:a,isPressed:s}=AZ(e,t),{focusProps:i,isFocused:l,isFocusVisible:c}=pm(e),{hoverProps:u,isHovered:f}=Ic({...e,isDisabled:e.isDisabled||r}),p={isHovered:f,isPressed:(n.isPressed||s)&&!r,isFocused:l,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},m=ar({...e,values:p,defaultClassName:"react-aria-Button"}),h=cr(a.id),y=cr(),x=a["aria-labelledby"];r&&(x?x=`${x} ${y}`:a["aria-label"]&&(x=`${h} ${y}`));let C=G.useRef(r);return G.useEffect(()=>{let T={"aria-labelledby":x||h};(!C.current&&l&&r||C.current&&l&&!r)&&gO(T,"assertive"),C.current=r},[r,l,x,h]),Pe.createElement("button",{...$n(e,{propNames:SZ}),...Ft(a,i,u),...m,type:a.type==="submit"&&r?"button":a.type,id:h,ref:t,"aria-labelledby":x,slot:e.slot||void 0,"aria-disabled":r?"true":a["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":l||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},Pe.createElement(HJ.Provider,{value:{id:y}},m.children))});function BZ(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}const k8="-",_Z=e=>{const t=NZ(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(k8);return s[0]===""&&s.length!==1&&s.shift(),xO(s,t)||IZ(a)},getConflictingClassGroupIds:(a,s)=>{const i=n[a]||[];return s&&r[a]?[...i,...r[a]]:i}}},xO=(e,t)=>
vendor: 13,444 bytes, line 76
76{var n;if(e.length===0)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),s=a?xO(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(k8);return(n=t.validators.find(({validator:l})=>l(i)))==null?void 0:n.classGroupId},cA=/^\[(.+)\]$/,IZ=e=>{if(cA.test(e)){const t=cA.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},NZ=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)o5(n[a],r,a,t);return r},o5=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:uA(t,a);s.classGroupId=n;return}if(typeof a=="function"){if(RZ(a)){o5(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,i])=>{o5(i,uA(t,s),n,r)})})},uA=(e,t)=>{let n=e;return t.split(k8).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},RZ=e=>e.isThemeGetter,OZ=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return a(s,i),i},set(s,i){n.has(s)?n.set(s,i):a(s,i)}}},l5="!",c5=":",MZ=c5.length,DZ=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const s=[];let i=0,l=0,c=0,u;for(let y=0;y<a.length;y++){let x=a[y];if(i===0&&l===0){if(x===c5){s.push(a.slice(c,y)),c=y+MZ;continue}if(x==="/"){u=y;continue}}x==="["?i++:x==="]"?i--:x==="("?l++:x===")"&&l--}const f=s.length===0?a:a.substring(c),p=FZ(f),m=p!==f,h=u&&u>c?u-c:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const a=t+c5,s=r;r=i=>i.startsWith(a)?s(i.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=s=>n({className:s,parseClassName:a})}return r},FZ=e=>e.endsWith(l5)?e.substring(0,e.length-1):e.startsWith(l5)?e.substring(1):e,UZ=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const r=[];let a=[];return n.forEach(s=>{s[0]==="["||t[s]?(r.push(...a.sort(),s),a=[]):a.push(s)}),r.push(...a.sort()),r}},jZ=e=>({cache:OZ(e.cacheSize),parseClassName:DZ(e),sortModifiers:UZ(e),..._Z(e)}),LZ=/\s+/,$Z=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:s}=t,i=[],l=e.trim().split(LZ);let c="";for(let u=l.length-1;u>=0;u-=1){const f=l[u],{isExternal:p,modifiers:m,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:x}=n(f);if(p){c=f+(c.length>0?" "+c:c);continue}let C=!!x,T=r(C?y.substring(0,x):y);if(!T){if(!C){c=f+(c.length>0?" "+c:c);continue}if(T=r(y),!T){c=f+(c.length>0?" "+c:c);continue}C=!1}const w=s(m).join(":"),v=h?w+l5:w,g=v+T;if(i.includes(g))continue;i.push(g);const A=a(T,C);for(let S=0;S<A.length;++S){const _=A[S];i.push(v+_)}c=f+(c.length>0?" "+c:c)}return c};function zZ(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=vO(t))&&(r&&(r+=" "),r+=n);return r}const vO=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=vO(e[r]))&&(n&&(n+=" "),n+=t);return n};function HZ(e,...t){let n,r,a,s=i;function i(c){const u=t.reduce((f,p)=>p(f),e());return n=jZ(u),r=n.cache.get,a=n.cache.set,s=l,l(c)}function l(c){const u=r(c);if(u)return u;const f=$Z(c,n);return a(c,f),f}return function(){return s(zZ.apply(null,arguments))}}const nr=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},wO=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,EO=/^\((?:(\w[\w-]*):)?(.+)\)$/i,KZ=/^\d+\/\d+$/,VZ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GZ=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qZ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,WZ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,JZ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hu=e=>KZ.test(e),$t=e=>!!e&&!Number.isNaN(Number(e)),hl=e=>!!e&&Number.isInteger(Number(e)),dA=e=>e.endsWith("%")&&$t(e.slice(0,-1)),bo=e=>VZ.test(e),ZZ=()=>!0,QZ=e=>GZ.test(e)&&!qZ.test(e),C8=()=>!1,XZ=e=>WZ.test(e),YZ=e=>JZ.test(e),eQ=e=>!yt(e)&&!bt(e),tQ=e=>ad(e,AO,C8),yt=e=>wO.test(e),yl=e=>ad(e,PO,QZ),uv=e=>ad(e,fQ,$t),nQ=e=>ad(e,kO,C8),rQ=e=>ad(e,CO,YZ),aQ=e=>ad(e,C8,XZ),bt=e=>EO.test(e),ly=e=>sd(e,PO),sQ=e=>sd(e,pQ),iQ=e=>sd(e,kO),oQ=e=>sd(e,AO),lQ=e=>sd(e,CO),cQ=e=>sd(e,mQ,!0),ad=(e,t,n)=>{const r=wO.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},sd=(e,t,n=!1)=>{const r=EO.exec(e);return r?r[1]?t(r[1]):n:!1},kO=e=>e==="position",uQ=new Set(["image","url"]),CO=e=>uQ.has(e),dQ=new Set(["length","size","percentage"]),AO=e=>dQ.has(e),PO=e=>e==="length",fQ=e=>e==="number",pQ=e=>e==="family-name",mQ=e=>e==="shadow",hQ=()=>{const e=nr("color"),t=nr("font"),n=nr("text"),r=nr("font-weight"),a=nr("tracking"),s=nr("leading"),i=nr("breakpoint"),l=nr("container"),c=nr("spacing"),u=nr("radius"),f=nr("shadow"),p=nr("inset-shadow"),m=nr("drop-shadow"),h=nr("blur"),y=nr("perspective"),x=nr("aspect"),C=nr("ease"),T=nr("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],g=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],S=()=>[bt,yt,c],_=()=>[hu,"full","auto",...S()],k=()=>[hl,"none","subgrid",bt,yt],R=()=>["auto",{span:["full",hl,bt,yt]},bt,yt],D=()=>[hl,"auto",bt,yt],B=()=>["auto","min","max","fr",bt,yt],M=()=>["start","end","center","between","around","evenly","stretch","baseline"],E=()=>["start","end","center","stretch"],N=()=>["auto",...S()],I=()=>[hu,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],F=()=>[e,bt,yt],z=()=>[dA,yl],U=()=>["","none","full",u,bt,yt],V=()=>["",$t,ly,yl],$=()=>["solid","dashed","dotted","double"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["","none",h,bt,yt],Z=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",bt,yt],ee=()=>["none",$t,bt,yt],ae=()=>["none",$t,bt,yt],ie=()=>[$t,bt,yt],fe=()=>[hu,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[bo],breakpoint:[bo],color:[ZZ],container:[bo],"drop-shadow":[bo],ease:["in","out","in-out"],font:[eQ],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[bo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[bo],shadow:[bo],spacing:["px",$t],text:[bo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",hu,yt,bt,x]}],container:["container"],columns:[{columns:[$t,yt,bt,l]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...v(),yt,bt]}],overflow:[{overflow:g()}],"overflow-x":[{"overflow-x":g()}],"overflow-y":[{"overflow-y":g()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[hl,"auto",bt,yt]}],basis:[{basis:[hu,"full","auto",l,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$t,hu,"auto","initial","none",yt]}],grow:[{grow:["",$t,bt,yt]}],shrink:[{shrink:["",$t,bt,yt]}],order:[{order:[hl,"first","last","none",bt,yt]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...E(),"baseline"]}],"align-self":[{self:["auto",...E(),"baseline"]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[l,"screen",...I()]}],"min-w":[{"min-w":[l,"screen","none",...I()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...I()]}],h:[{h:["screen",...I()]}],"min-h":[{"min-h":["screen","none",...I()]}],"max-h":[{"max-h":["screen",...I()]}],"font-size":[{text:["base",n,ly,yl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,bt,uv]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dA,yt]}],"font-family":[{font:[sQ,yt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,bt,yt]}],"line-clamp":[{"line-clamp":[$t,"none",bt,uv]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",bt,yt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",bt,yt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[$t,"from-font","auto",bt,yl]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[$t,"auto",bt,yt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",bt,yt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",bt,yt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...v(),iQ,nQ]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",oQ,tQ]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hl,bt,yt],radial:["",bt,yt],conic:[hl,bt,yt]},lQ,rQ]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}
vendor: 4,190 bytes, line 76
76],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$t,bt,yt]}],"outline-w":[{outline:["",$t,ly,yl]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",f,cQ,aQ]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",bt,yt,p]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[$t,yl]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":F()}],opacity:[{opacity:[$t,bt,yt]}],"mix-blend":[{"mix-blend":[...O(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":O()}],filter:[{filter:["","none",bt,yt]}],blur:[{blur:H()}],brightness:[{brightness:[$t,bt,yt]}],contrast:[{contrast:[$t,bt,yt]}],"drop-shadow":[{"drop-shadow":["","none",m,bt,yt]}],grayscale:[{grayscale:["",$t,bt,yt]}],"hue-rotate":[{"hue-rotate":[$t,bt,yt]}],invert:[{invert:["",$t,bt,yt]}],saturate:[{saturate:[$t,bt,yt]}],sepia:[{sepia:["",$t,bt,yt]}],"backdrop-filter":[{"backdrop-filter":["","none",bt,yt]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[$t,bt,yt]}],"backdrop-contrast":[{"backdrop-contrast":[$t,bt,yt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$t,bt,yt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$t,bt,yt]}],"backdrop-invert":[{"backdrop-invert":["",$t,bt,yt]}],"backdrop-opacity":[{"backdrop-opacity":[$t,bt,yt]}],"backdrop-saturate":[{"backdrop-saturate":[$t,bt,yt]}],"backdrop-sepia":[{"backdrop-sepia":["",$t,bt,yt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",bt,yt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$t,"initial",bt,yt]}],ease:[{ease:["linear","initial",C,bt,yt]}],delay:[{delay:[$t,bt,yt]}],animate:[{animate:["none",T,bt,yt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,bt,yt]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[bt,yt,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",bt,yt]}],"field-sizing":[{"field-sizing":["fixed","content"]}
76],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",bt,yt]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[$t,ly,yl,uv]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},yQ=HZ(hQ),Xt=(...e)=>yQ(Qr(e)),bQ=({text:e,isDisabled:t,isLoading:n,variant:r})=>{const a=r==="secondary";return We.jsx("p",{className:Xt("button-text","text-klerosUIComponentsWhiteBackground text-center text-base leading-[22px] font-semibold whitespace-pre",n&&["invisible"],a&&["text-klerosUIComponentsPrimaryBlue"],t&&["text-klerosUIComponentsStroke"]),children:e})},gQ=e=>G.createElement("svg",{viewBox:"0 0 46 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},G.createElement("path",{d:"M14.5448 3.99219L35.6043 4.93228L44.1305 23.852L32.1017 41.1434L10.9277 39.7891L2.24707 19.2898L14.5448 3.99219ZM29.9842 14.898L14.7217 21.5577L27.7702 31.6335L29.9842 14.898ZM28.2172 11.5608L16.0199 6.3158L13.4577 17.3437L28.2172 11.5608ZM25.1256 34.1687L11.8695 24.7152L12.1902 37.5252L25.1256 34.1687ZM42.0131 23.8103L32.9798 14.6556L30.5955 32.2596L42.0131 23.8103ZM28.2336 36.2278L17.0538 39.146L30.2012 39.9868L28.2336 36.2278ZM40.2478 27.9637L30.4615 35.2445L32.4061 39.0399L40.2478 27.9637ZM35.6188 7.57573L33.7181 11.4728L40.7931 18.6553L35.6188 7.57573ZM33.2506 5.71087L20.8267 5.20721L31.0749 9.68396L33.2506 5.71087ZM12.7306 7.513L4.02846 18.4872L9.84654 19.7179L12.7306 7.513ZM9.49572 21.8707L3.64961 20.6345L9.74957 34.9866L9.49572 21.8707Z"})),xQ=({isDisabled:e,variant:t})=>{const n=t==="primary"||t===void 0,r=t==="secondary",a=t==="tertiary";return We.jsx(gQ,{className:Xt("button-loading","absolute h-[22px]","fill-klerosUIComponentsStroke animate-breathing",(n||a)&&["fill-klerosUIComponentsWhiteBackgroun
76d"],r&&["fill-klerosUIComponentsPrimaryBlue"],e&&["fill-klerosUIComponentsStroke"])})},vQ=({Icon:e,icon:t,isDisabled:n,isLoading:r,variant:a})=>{const s=a==="secondary";return t?r?We.jsx("span",{className:Xt("button-svg","mr-2 size-4","invisible"),"aria-hidden":!0}):t:e&&We.jsx(e,{className:Xt("button-svg","mr-2 size-4","fill-klerosUIComponentsWhiteBackground",r&&["invisible"],s&&["fill-klerosUIComponentsPrimaryBlue"],n&&["fill-klerosUIComponentsStroke"])})};function Ho({text:e,variant:t,Icon:n,icon:r,isLoading:a,className:s,isDisabled:i,...l}){const c=t==="primary"||t===void 0,u=t==="secondary",f=t==="tertiary";return We.jsxs(hc,{className:Xt("relative box-border size-fit","flex flex-row items-center justify-center","rounded-base hover:cursor-pointer","ease-ease transition-[background] duration-(--klerosUIComponentsTransitionSpeed)","pressed:scale-95 transform transition-transform",l.small?"px-6 py-1.5":"px-8 py-[11.5px]",c&&["bg-klerosUIComponentsPrimaryBlue hover:bg-klerosUIComponentsSecondaryBlue"],u&&["bg-klerosUIComponentsWhiteBackground hover:bg-klerosUIComponentsMediumBlue","border-klerosUIComponentsPrimaryBlue border",l.small?"px-[23px] py-[5px]":"px-[31px] py-[10.5px]"],f&&["bg-klerosUIComponentsSecondaryPurple hover:bg-klerosUIComponentsPrimaryPurple"],i&&["bg-klerosUIComponentsLightGrey hover:bg-klerosUIComponentsLightGrey hover:cursor-not-allowed",u&&"border-klerosUIComponentsStroke border"],s),variant:t,isLoading:a,isDisabled:i,...l,children:[a&&We.jsx(xQ,{isDisabled:i,variant:t}),We.jsx(vQ,{icon:r,Icon:n,isDisabled:i,isLoading:a,variant:t}),We.jsx(bQ,{isLoading:a,isDisabled:i,variant:t,text:e})]})}function wQ({hover:e,round:t,className:n,...r}){return We.jsx("div",{className:Xt("bg-klerosUIComponentsWhiteBackground box-border h-[200px] w-[328px]","border-klerosUIComponentsStroke hover-short-transition shadow-default border",e&&"hover:bg-klerosUIComponentsLightGrey hover:cursor-pointer",t?"rounded-[18px]":"rounded-base",n),...r,children:r.children})}function EQ(e,t,n,r){return e.createTreeWalker(t,n,r)}function kQ(e){const t=Xr(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a=n!=="none"&&r!=="hidden"&&r!=="collapse";if(a){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:i,visibility:l}=s(e);a=i!=="none"&&l!=="hidden"&&l!=="collapse"}return a}function CQ(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function TO(e,t){return e.nodeName!=="#comment"&&kQ(e)&&CQ(e,t)&&(!e.parentElement||TO(e.parentElement,e))}const fA=Pe.createContext(null),u5="react-aria-focus-scope-restore";let mn=null;
vendor: 5,284 bytes, line 76
76function SO(e){let{children:t,contain:n,restoreFocus:r,autoFocus:a}=e,s=G.useRef(null),i=G.useRef(null),l=G.useRef([]),{parentNode:c}=G.useContext(fA)||{},u=G.useMemo(()=>new f5({scopeRef:l}),[l]);qt(()=>{let m=c||Un.root;if(Un.getTreeNode(m.scopeRef)&&mn&&!Ob(mn,m.scopeRef)){let h=Un.getTreeNode(mn);h&&(m=h)}m.addChild(u),Un.addNode(u)},[u,c]),qt(()=>{let m=Un.getTreeNode(l);m&&(m.contain=!!n)},[n]),qt(()=>{var m;let h=(m=s.current)===null||m===void 0?void 0:m.nextSibling,y=[],x=C=>C.stopPropagation();for(;h&&h!==i.current;)y.push(h),h.addEventListener(u5,x),h=h.nextSibling;return l.current=y,()=>{for(let C of y)C.removeEventListener(u5,x)}},[t]),BQ(l,r,n),PQ(l,n),_Q(l,r,n),SQ(l,a),G.useEffect(()=>{const m=Br(on(l.current?l.current[0]:void 0));let h=null;if(Ha(m,l.current)){for(let y of Un.traverse())y.scopeRef&&Ha(m,y.scopeRef.current)&&(h=y);h===Un.getTreeNode(l)&&(mn=h.scopeRef)}},[l]),qt(()=>()=>{var m,h,y;let x=(y=(h=Un.getTreeNode(l))===null||h===void 0||(m=h.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&y!==void 0?y:null;(l===mn||Ob(l,mn))&&(!x||Un.getTreeNode(x))&&(mn=x),Un.removeTreeNode(l)},[l]);let f=G.useMemo(()=>AQ(l),[]),p=G.useMemo(()=>({focusManager:f,parentNode:u}),[u,f]);return Pe.createElement(fA.Provider,{value:p},Pe.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,Pe.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function AQ(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:a,wrap:s,accept:i}=t;var l;let c=r||Br(on((l=n[0])!==null&&l!==void 0?l:void 0)),u=n[0].previousElementSibling,f=nc(n),p=Ii(f,{tabbable:a,accept:i},n);p.currentNode=Ha(c,n)?c:u;let m=p.nextNode();return!m&&s&&(p.currentNode=u,m=p.nextNode()),m&&_i(m,!0),m},focusPrevious(t={}){let n=e.current,{from:r,tabbable:a,wrap:s,accept:i}=t;var l;let c=r||Br(on((l=n[0])!==null&&l!==void 0?l:void 0)),u=n[n.length-1].nextElementSibling,f=nc(n),p=Ii(f,{tabbable:a,accept:i},n);p.currentNode=Ha(c,n)?c:u;let m=p.previousNode();return!m&&s&&(p.currentNode=u,m=p.previousNode()),m&&_i(m,!0),m},focusFirst(t={}){let n=e.current,{tabbable:r,accept:a}=t,s=nc(n),i=Ii(s,{tabbable:r,accept:a},n);i.currentNode=n[0].previousElementSibling;let l=i.nextNode();return l&&_i(l,!0),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:a}=t,s=nc(n),i=Ii(s,{tabbable:r,accept:a},n);i.currentNode=n[n.length-1].nextElementSibling;let l=i.previousNode();return l&&_i(l,!0),l}}}function nc(e){return e[0].parentElement}function l0(e){let t=Un.getTreeNode(mn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function PQ(e,t){let n=G.useRef(void 0),r=G.useRef(void 0);qt(()=>{let a=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=on(a?a[0]:void 0);let i=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!l0(e)||u.isComposing)return;let f=Br(s),p=e.current;if(!p||!Ha(f,p))return;let m=nc(p),h=Ii(m,{tabbable:!0},p);if(!f)return;h.currentNode=f;let y=u.shiftKey?h.previousNode():h.nextNode();y||(h.currentNode=u.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,y=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),y&&_i(y,!0)},l=u=>{(!mn||Ob(mn,e))&&Ha(tn(u),e.current)?(mn=e,n.current=tn(u)):l0(e)&&!Po(tn(u),e)?n.current?n.current.focus():mn&&mn.current&&d5(mn.current):l0(e)&&(n.current=tn(u))},c=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let f=P0(),p=(f==="virtual"||f===null)&&y1()&&sO(),m=Br(s);if(!p&&m&&l0(e)&&!Po(m,e)){mn=e;let y=tn(u);if(y&&y.isConnected){var h;n.current=y,(h=n.current)===null||h===void 0||h.focus()}else mn.current&&d5(mn.current)}})};return s.addEventListener("keydown",i,!1),s.addEventListener("focusin",l,!1),a==null||a.forEach(u=>u.addEventListener("focusin",l,!1)),a==null||a.forEach(u=>u.addEventListener("focusout",c,!1)),()=>{s.removeEventListener("keydown",i,!1),s.removeEventListener("focusin",l,!1),a==null||a.forEach(u=>u.removeEventListener("focusin",l,!1)),a==null||a.forEach(u=>u.removeEventListener("focusout",c,!1))}},[e,t]),qt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function BO(e){return Po(e)}function Ha(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Po(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Un.traverse(Un.getTreeNode(t)))if(n&&Ha(e,n.current))return!0;return!1}function TQ(e){return Po(e,mn)}function Ob(e,t){var n;let r=(n=Un.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function _i(e,t=!1){if(e!=null&&!t)try{_o(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function _O(e,t=!0){let n=e[0].previousElementSibling,r=nc(e),a=Ii(r,{tabbable:t},e);a.currentNode=n;let s=a.nextNode();return t&&!s&&(r=nc(e),a=Ii(r,{tabbable:!1},e),a.currentNode=n,s=a.nextNode()),s}function d5(e,t=!0){_i(_O(e,t))}function SQ(e,t){const n=Pe.useRef(t);G.useEffect(()=>{if(n.current){mn=e;const r=on(e.current?e.current[0]:void 0);!Ha(Br(r),mn.current)&&e.current&&d5(e.current)}n.current=!1},[e])}function BQ(e,t,n){qt(()=>{if(t||n)return;let r=e.current;const a=on(r?r[0]:void 0);let s=i=>{let l=tn(i);Ha(l,e.current)?mn=e:BO(l)||(mn=null)};return a.addEventListener("focusin",s,!1),r==null||r.forEach(i=>
76i.addEventListener("focusin",s,!1)),()=>{a.removeEventListener("focusin",s,!1),r==null||r.forEach(i=>i.removeEventListener("focusin",s,!1))}},[e,t,n])}function pA(e){let t=Un.getTreeNode(mn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function _Q(e,t,n){const r=G.useRef(typeof document<"u"?Br(on(e.current?e.current[0]:void 0)):null);qt(()=>{let a=e.current;const s=on(a?a[0]:void 0);if(!t||n)return;let i=()=>{(!mn||Ob(mn,e))&&Ha(Br(s),e.current)&&(mn=e)};return s.addEventListener("focusin",i,!1),a==null||a.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{s.removeEventListener("focusin",i,!1),a==null||a.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,n]),qt(()=>{const a=on(e.current?e.current[0]:void 0);if(!t)return;let s=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!l0(e)||i.isComposing)return;let l=a.activeElement;if(!Po(l,e)||!pA(e))return;let c=Un.getTreeNode(e);if(!c)return;let u=c.nodeToRestore,f=Ii(a.body,{tabbable:!0});f.currentNode=l;let p=i.shiftKey?f.previousNode():f.nextNode();if((!u||!u.isConnected||u===a.body)&&(u=void 0,c.nodeToRestore=void 0),(!p||!Po(p,e))&&u){f.currentNode=u;do p=i.shiftKey?f.previousNode():f.nextNode();while(Po(p,e));i.preventDefault(),i.stopPropagation(),p?_i(p,!0):BO(u)?_i(u,!0):l.blur()}};return n||a.addEventListener("keydown",s,!0),()=>{n||a.removeEventListener("keydown",s,!0)}},[e,t,n]),qt(()=>{const a=on(e.current?e.current[0]:void 0);if(!t)return;let s=Un.getTreeNode(e);if(s){var i;return s.nodeToRestore=(i=r.current)!==null&&i!==void 0?i:void 0,()=>{let l=Un.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,u=Br(a);if(t&&c&&(u&&Po(u,e)||u===a.body&&pA(e))){let f=Un.clone();requestAnimationFrame(()=>{if(a.activeElement===a.body){let p=f.getTreeNode(e);for(;p;){if(p.nodeToRestore&&p.nodeToRestore.isConnected){mA(p.nodeToRestore);return}p=p.parent}for(p=f.getTreeNode(e);p;){if(p.scopeRef&&p.scopeRef.current&&Un.getTreeNode(p.scopeRef)){let m=_O(p.scopeRef.current,!0);mA(m);return}p=p.parent}}})}}}},[e,t])}function mA(e){e.dispatchEvent(new CustomEvent(u5,{bubbles:!0,cancelable:!0}))&&_i(e)}function Ii(e,t,n){let r=t!=null&&t.tabbable?XJ:b8,a=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=on(a),i=EQ(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var c;return!(t==null||(c=t.from)===null||c===void 0)&&c.contains(l)?NodeFilter.FILTER_REJECT:r(l)&&TO(l)&&(!n||Ha(l,n))&&(!(t!=null&&t.accept)||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}let IQ=class IO{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let s=new f5({scopeRef:t});a.addChild(s),s.parent=a,this.fastMap.set(t,s),r&&(s.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ha(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(s=>r&&r.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new IO;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new f5({scopeRef:null}),this.fastMap.set(null,this.root)}},f5=class{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}},Un=new IQ;function T0(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function NO(e,t){let n=e;for(T0(n,t)&&(n=n.parentElement);n&&!T0(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}const NQ=Symbol.for("react-aria.i18n.locale"),RQ=Symbol.for("react-aria.i18n.strings");let pf,RO=class OO{getStringForLocale(t,n){let r=this.getStringsForLocale(n)[t];if(!r)throw new Error(`Could not find intl message ${t} in ${n} locale`);return r}getStringsForLocale(t){let n=this.strings[t];return n||(n=OQ(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[NQ];if(pf===void 0){let a=window[RQ];if(!a)return null;pf={};for(let s in a)pf[s]=new OO({[n]:a[s]},n)}let r=pf==null?void 0:pf[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}};function OQ(e,t,n="en-US"){if(t[e])return t[e];let r=MQ(e);if(t[r])return t[r];for(let a in t)if(a.startsWith(r+"-"))return t[a];return t[n]}function MQ(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const hA=new Map,yA=new Map;let DQ=class{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let a=n["="+t];if(a)return typeof a=="function"?a():a;let s=this.locale+":"+r,i=hA.get(s);i||(i=new Intl.PluralRules(this.locale,{type:r}),hA.set(s,i));let l=i.select(t);return a=n[l]||n.other,typeof a=="function"?a():a}number(t){let n=yA.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),yA.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}};const bA=new WeakMap;function FQ(e){let t=bA.get(e);return t||(t=new RO(e),bA.set(e,t)),t}function UQ(e,t){return t&&RO.getGlobalDictionaryForPackage(t)||FQ(e)}function id(e,t){let{locale:n}=zo(),r=UQ(e,t);return G.useMemo(()=>new DQ(n,r),[n,r])}const gA={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function MO(e={}){let{style:t,isFocusable:n}=e,[r,a]=G.useState(!1),{focusWithinProps:s}=fm({isDisabled:!n,onFocusWithinChange:l=>a(l)}),i=G.useMemo(()=>r?t:t?{...gA,...t}:gA,[r]);return{visuallyHiddenProps:{...s,style:i}}}function jQ(e){let{children:t,elementType:n="div",isFocusable:r,style:a,...s}=e,{visuallyHiddenProps:i}=MO(e);return Pe.createElement(n,Ft(s,i),t)}G.createContext(null);G.createContext(null);G.createContext(null);G.createContext(null);G.createContext(null);const LQ=G.createContext({});function $Q({children:e}){let t=G.useMemo(()=>({register:()=>{}}),[]);return Pe.createElement(v8.Provider,{value:t},e)}function zQ(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:a}=e,s=G.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=jn(c=>{n&&cy(c,t)&&(a&&a(c),s.current.isPointerDown=!0)}),l=jn(c=>{n&&n(c)});G.useEffect(()=>
76{let c=s.current;if(r)return;const u=t.current,f=on(u);if(typeof PointerEvent<"u"){let p=m=>{c.isPointerDown&&cy(m,t)&&l(m),c.isPointerDown=!1};return f.addEventListener("pointerdown",i,!0),f.addEventListener("pointerup",p,!0),()=>{f.removeEventListener("pointerdown",i,!0),f.removeEventListener("pointerup",p,!0)}}else{let p=h=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&cy(h,t)&&l(h),c.isPointerDown=!1},m=h=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&cy(h,t)&&l(h),c.isPointerDown=!1};return f.addEventListener("mousedown",i,!0),f.addEventListener("mouseup",p,!0),f.addEventListener("touchstart",i,!0),f.addEventListener("touchend",m,!0),()=>{f.removeEventListener("mousedown",i,!0),f.removeEventListener("mouseup",p,!0),f.removeEventListener("touchstart",i,!0),f.removeEventListener("touchend",m,!0)}}},[t,r,i,l])}function cy(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const _s=[];function DO(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:a,isDismissable:s=!1,isKeyboardDismissDisabled:i=!1,shouldCloseOnInteractOutside:l}=e;G.useEffect(()=>{if(a&&!_s.includes(t))return _s.push(t),()=>{let y=_s.indexOf(t);y>=0&&_s.splice(y,1)}},[a,t]);let c=()=>{_s[_s.length-1]===t&&n&&n()},u=y=>{(!l||l(y.target))&&_s[_s.length-1]===t&&(y.stopPropagation(),y.preventDefault())},f=y=>{(!l||l(y.target))&&(_s[_s.length-1]===t&&(y.stopPropagation(),y.preventDefault()),c())},p=y=>{y.key==="Escape"&&!i&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),c())};zQ({ref:t,onInteractOutside:s&&a?f:void 0,onInteractOutsideStart:u});let{focusWithinProps:m}=fm({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||TQ(y.relatedTarget)||(!l||l(y.relatedTarget))&&(n==null||n())}}),h=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:p,...m},underlayProps:{onPointerDown:h}}}const dv=typeof document<"u"&&window.visualViewport,HQ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let uy=0,fv;function FO(e={}){let{isDisabled:t}=e;qt(()=>{if(!t)return uy++,uy===1&&(um()?fv=VQ():fv=KQ()),()=>{uy--,uy===0&&fv()}},[t])}function KQ(){return Ui(Iu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Iu(document.documentElement,"overflow","hidden"))}function VQ(){let e,t,n=u=>{e=NO(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Iu(e,"overscrollBehavior","contain"))},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},a=()=>{t&&t()},s=u=>{let f=u.target;GQ(f)&&(l(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",dv&&(dv.height<window.innerHeight?requestAnimationFrame(()=>{xA(f)}):dv.addEventListener("resize",()=>xA(f),{once:!0}))}))},i=null,l=()=>{if(i)return;let u=()=>{window.scrollTo(0,0)},f=window.pageXOffset,p=window.pageYOffset;i=Ui(mf(window,"scroll",u),Iu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Iu(document.documentElement,"overflow","hidden"),Iu(document.body,"marginTop",`-${p}px`),()=>{window.scrollTo(f,p)}),window.scrollTo(0,0)},c=Ui(mf(document,"touchstart",n,{passive:!1,capture:!0}),mf(document,"touchmove",r,{passive:!1,capture:!0}),mf(document,"touchend",a,{passive:!1,capture:!0}),mf(document,"focus",s,!0));return()=>{t==null||t(),i==null||i(),c()}}function Iu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function mf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function xA(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=NO(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let a=r.getBoundingClientRect().top,s=n.getBoundingClientRect().top;s>a+n.clientHeight&&(r.scrollTop+=s-a)}n=r.parentElement}}function GQ(e){return e instanceof HTMLInputElement&&!HQ.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var UO={};UO={dismiss:"تجاهل"};var jO={};jO={dismiss:"Отхвърляне"};var LO={};LO={dismiss:"Odstranit"};var $O={};$O={dismiss:"Luk"};var zO={};zO={dismiss:"Schließen"};var HO={};HO={dismiss:"Απόρριψη"};var KO={};KO={dismiss:"Dismiss"};var VO={};VO={dismiss:"Descartar"};var GO={};GO={dismiss:"Lõpeta"};var qO={};qO={dismiss:"Hylkää"};var WO={};WO={dismiss:"Rejeter"};var JO={};JO={dismiss:"התעלם"};var ZO={};ZO={dismiss:"Odbaci"};var QO={};QO={dismiss:"Elutasítás"};var XO={};XO={dismiss:"Ignora"};var YO={};YO={dismiss:"閉じる"};var eM={};eM={dismiss:"무시"};var tM={};tM={dismiss:"Atmesti"};var nM={};nM={dismiss:"Nerādīt"};var rM={};rM={dismiss:"Lukk"};var aM={};aM={dismiss:"Negeren"};var sM={};sM={dismiss:"Zignoruj"};var iM={};iM={dismiss:"Descartar"};var oM={};oM={dismiss:"Dispensar"};var lM={};lM={dismiss:"Revocare"};var cM={};cM={dismiss:"Пропустить"};var uM={};uM={dismiss:"Zrušiť"};var dM={};dM={dismiss:"Opusti"};var fM={};fM={dismiss:"Odbaci"};var pM={};pM={dismiss:"Avvisa"};var mM={};mM={dismiss:"Kapat"};var hM={};hM={dismiss:"Скасувати"};var yM={};yM={dismiss:"取消"};var bM={};bM={dismiss:"關閉"};var gM={};gM={"ar-AE":UO,"bg-BG":jO,"cs-CZ":LO,"da-DK":$O,"de-DE":zO,"el-GR":HO,"en-US":KO,"es-ES":VO,"et-EE":GO,"fi-FI":qO,"fr-FR":WO,"he-IL":JO,"hr-HR":ZO,"hu-HU":QO,"it-IT":XO,"ja-JP":YO,"ko-KR":eM,"lt-LT":tM,"lv-LV":nM,"nb-NO":rM,"nl-NL":aM,"pl-PL":sM,"pt-BR":iM,"pt-PT":oM,"ro-RO":lM,"ru-RU":cM,"sk-SK":uM,"sl-SI":dM,"sr-SP":fM,"sv-SE":pM,"tr-TR":mM,"uk-UA":hM,"zh-CN":yM,"zh-TW":bM};
76function qQ(e){return e&&e.__esModule?e.default:e}function p5(e){let{onDismiss:t,...n}=e,r=id(qQ(gM),"@react-aria/overlays"),a=YR(n,r.format("dismiss")),s=()=>{t&&t()};return Pe.createElement(jQ,null,Pe.createElement("button",{...a,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}const WQ=G.createContext({});function JQ(){var e;return(e=G.useContext(WQ))!==null&&e!==void 0?e:{}}const xM=Pe.createContext(null);function m5(e){let t=jo(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[a,s]=G.useState(!1),i=G.useMemo(()=>({contain:a,setContain:s}),[a,s]),{getContainer:l}=JQ();if(!e.portalContainer&&l&&(n=l()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=Pe.createElement(SO,{restoreFocus:!0,contain:(e.shouldContainFocus||a)&&!r},c)),c=Pe.createElement(xM.Provider,{value:i},Pe.createElement($Q,null,c)),a8.createPortal(c,n)}function vM(){let e=G.useContext(xM),t=e==null?void 0:e.setContain;qt(()=>{t==null||t(!0)},[t])}function ZQ(e,t){let{role:n="dialog"}=e,r=C0();r=e["aria-label"]?void 0:r;let a=G.useRef(!1);return G.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){_o(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(a.current=!0,t.current&&(t.current.blur(),_o(t.current)),a.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),vM(),{dialogProps:{...$n(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{a.current&&s.stopPropagation()}},titleProps:{id:r}}}const QQ=G.createContext(null),od=G.createContext(null),XQ=G.forwardRef(function(e,t){let n=e["aria-labelledby"];[e,t]=wr(e,t,QQ);let{dialogProps:r,titleProps:a}=ZQ({...e,"aria-labelledby":n},t),s=G.useContext(od);!r["aria-label"]&&!r["aria-labelledby"]&&(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let i=ar({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(s==null?void 0:s.close)||(()=>{})}});return Pe.createElement("section",{...$n(e),...r,...i,ref:t,slot:e.slot||void 0},Pe.createElement($o,{values:[[LQ,{slots:{[Pb]:{},title:{...a,level:2}}}],[mm,{slots:{[Pb]:{},close:{onPress:()=>s==null?void 0:s.close()}}}]]},i.children))});function ld(e,t,n){let[r,a]=G.useState(e||t),s=G.useRef(e!==void 0),i=e!==void 0;G.useEffect(()=>{let u=s.current;u!==i&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),s.current=i},[i]);let l=i?e:r,c=G.useCallback((u,...f)=>{let p=(m,...h)=>{n&&(Object.is(l,m)||n(m,...h)),i||(l=m)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),a((m,...h)=>{let y=u(i?l:m,...h);return p(y,...f),i?m:y})):(i||a(u),p(u,...f))},[i,l,n]);return[l,c]}function x1(e,t=!0){let[n,r]=G.useState(!0),a=n&&t;return qt(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let s of e.current.getAnimations())s instanceof CSSTransition&&s.cancel()},[e,a]),wM(e,a,G.useCallback(()=>r(!1),[])),a}function Mb(e,t){let[n,r]=G.useState(t?"open":"closed");switch(n){case"open":t||r("exiting");break;case"closed":case"exiting":t&&r("open");break}let a=n==="exiting";return wM(e,a,G.useCallback(()=>{r(s=>s==="exiting"?"closed":s)},[])),a}function wM(e,t,n){qt(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let r=e.current.getAnimations();if(r.length===0){n();return}let a=!1;return Promise.all(r.map(s=>s.finished)).then(()=>{a||nd.flushSync(()=>{n()})}).catch(()=>{}),()=>{a=!0}}},[e,t,n])}function v1(e){let[t,n]=ld(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=G.useCallback(()=>{n(!0)},[n]),a=G.useCallback(()=>{n(!1)},[n]),s=G.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:a,toggle:s}}let hf=new WeakMap,qr=[];function EM(e,t=document.body){let n=new Set(e),r=new Set,a=c=>{for(let m of c.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(m);let u=m=>{if(n.has(m)||m.parentElement&&r.has(m.parentElement)&&m.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(m.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),p=u(c);if(p===NodeFilter.FILTER_ACCEPT&&s(c),p!==NodeFilter.FILTER_REJECT){let m=f.nextNode();for(;m!=null;)s(m),m=f.nextNode()}},s=c=>{var u;let f=(u=hf.get(c))!==null&&u!==void 0?u:0;c.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&c.setAttribute("aria-hidden","true"),r.add(c),hf.set(c,f+1))};qr.length&&qr[qr.length-1].disconnect(),a(t);let i=new MutationObserver(c=>{for(let u of c)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(f=>
76f.contains(u.target))){for(let f of u.removedNodes)f instanceof Element&&(n.delete(f),r.delete(f));for(let f of u.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?n.add(f):f instanceof Element&&a(f)}});i.observe(t,{childList:!0,subtree:!0});let l={visibleNodes:n,hiddenNodes:r,observe(){i.observe(t,{childList:!0,subtree:!0})},disconnect(){i.disconnect()}};return qr.push(l),()=>{i.disconnect();for(let c of r){let u=hf.get(c);u!=null&&(u===1?(c.removeAttribute("aria-hidden"),hf.delete(c)):hf.set(c,u-1))}l===qr[qr.length-1]?(qr.pop(),qr.length&&qr[qr.length-1].observe()):qr.splice(qr.indexOf(l),1)}}function YQ(e){let t=qr[qr.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}let Os=typeof document<"u"&&window.visualViewport;function eX(){let e=jo(),[t,n]=G.useState(()=>e?{width:0,height:0}:vA());return G.useEffect(()=>{let r=()=>{n(a=>{let s=vA();return s.width===a.width&&s.height===a.height?a:s})};return Os?Os.addEventListener("resize",r):window.addEventListener("resize",r),()=>{Os?Os.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function vA(){return{width:Os&&(Os==null?void 0:Os.width)||window.innerWidth,height:Os&&(Os==null?void 0:Os.height)||window.innerHeight}}function tX(e,t,n){let{overlayProps:r,underlayProps:a}=DO({...e,isOpen:t.isOpen,onClose:t.close},n);return FO({isDisabled:!t.isOpen}),vM(),G.useEffect(()=>{if(t.isOpen&&n.current)return EM([n.current])},[t.isOpen,n]),{modalProps:Ft(r),underlayProps:a}}const nX=G.createContext(null),A8=G.createContext(null),rX=G.forwardRef(function(e,t){if(G.useContext(A8))return Pe.createElement(wA,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:a,defaultOpen:s,onOpenChange:i,children:l,isEntering:c,isExiting:u,UNSTABLE_portalContainer:f,shouldCloseOnInteractOutside:p,...m}=e;return Pe.createElement(kM,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:a,defaultOpen:s,onOpenChange:i,isEntering:c,isExiting:u,UNSTABLE_portalContainer:f,shouldCloseOnInteractOutside:p},Pe.createElement(wA,{...m,modalRef:t},l))});function aX(e,t){[e,t]=wr(e,t,nX);let n=G.useContext(od),r=v1(e),a=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,s=Lo(t),i=G.useRef(null),l=Mb(s,a.isOpen),c=Mb(i,a.isOpen),u=l||c||e.isExiting||!1,f=jo();return!a.isOpen&&!u||f?null:Pe.createElement(sX,{...e,state:a,isExiting:u,overlayRef:s,modalRef:i})}const kM=G.forwardRef(aX);function sX({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:a,underlayProps:s}=tX(t,r,n),i=x1(t.overlayRef)||t.isEntering||!1,l=ar({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:i,isExiting:t.isExiting,state:r}}),c=eX(),u={...l.style,"--visual-viewport-height":c.height+"px"};return Pe.createElement(m5,{isExiting:t.isExiting,portalContainer:e},Pe.createElement("div",{...Ft($n(t),s),...l,style:u,ref:t.overlayRef,"data-entering":i||void 0,"data-exiting":t.isExiting||void 0},Pe.createElement($o,{values:[[A8,{modalProps:a,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[od,r]]},l.children)))}function wA(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:a}=G.useContext(A8),s=G.useContext(od),i=G.useMemo(()=>d1(e.modalRef,n),[e.modalRef,n]),l=Lo(i),c=x1(l),u=ar({...e,defaultClassName:"react-aria-Modal",values:{isEntering:c,isExiting:r,state:s}});return Pe.createElement("div",{...Ft($n(e),t),...u,ref:l,"data-entering":c||void 0,"data-exiting":r||void 0},a&&Pe.createElement(p5,{onDismiss:s.close}),u.children)}function iX({className:e,modalOverlayClassname:t,children:n,ariaLabel:r,...a}){return We.jsx(kM,{className:Xt("fixed top-0 left-0 isolate","z-20 h-(--visual-viewport-height) w-full bg-black/[50%] backdrop-blur-md","flex items-center justify-center","entering:animate-[fadeIn_100ms_ease-out] exiting:animate-[fadeOut_100ms_ease-in]",t),...a,children:We.jsx(rX,{...a,children:We.jsx(XQ,{"aria-label":r??"Modal",className:Xt("bg-klerosUIComponentsWhiteBackground h-[200px] w-[328px] outline-none","rounded-base box-border",e),children:n})})})}const cd=G.createContext({}),CM=G.forwardRef(function(e,t){[e,t]=wr(e,t,cd);let{elementType:n="span",...r}=e;return Pe.createElement(n,{className:"react-aria-Text",...r,ref:t})});function AM(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:s,fieldProps:i}=eO(e),l=C0([!!t,!!n,r,a]),c=C0([!!t,!!n,r,a]);return i=Ft(i,{"aria-describedby":[l,c,e["aria-describedby"]].filter(
76Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:i,descriptionProps:{id:l},errorMessageProps:{id:c}}}const hm=G.createContext(null),P8=G.forwardRef(function(e,t){let n=G.useContext(hm);return n!=null&&n.isInvalid?Pe.createElement(oX,{...e,ref:t}):null}),oX=G.forwardRef((e,t)=>{let n=G.useContext(hm),r=$n(e),a=ar({...e,defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.length===0?void 0:n.validationErrors.join(" "),values:n});return a.children==null?null:Pe.createElement(CM,{slot:"errorMessage",...r,...a,ref:t})}),PM={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},TM={...PM,customError:!0,valid:!1},yf={isInvalid:!1,validationDetails:PM,validationErrors:[]},lX=G.createContext({}),h5="__formValidationState"+Date.now();function T8(e){if(e[h5]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:s}=e[h5];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:s}}return cX(e)}function cX(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:s,validate:i,validationBehavior:l="aria"}=e;n&&(t||(t=n==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:TM}:null,u=G.useMemo(()=>{if(!i||a==null)return null;let k=uX(i,a);return EA(k)},[i,a]);
76s!=null&&s.validationDetails.valid&&(s=void 0);let f=G.useContext(lX),p=G.useMemo(()=>r?Array.isArray(r)?r.flatMap(k=>y5(f[k])):y5(f[r]):[],[f,r]),[m,h]=G.useState(f),[y,x]=G.useState(!1);f!==m&&(h(f),x(!1));let C=G.useMemo(()=>EA(y?[]:p),[y,p]),T=G.useRef(yf),[w,v]=G.useState(yf),g=G.useRef(yf),A=()=>{if(!S)return;_(!1);let k=u||s||T.current;pv(k,g.current)||(g.current=k,v(k))},[S,_]=G.useState(!1);return G.useEffect(A),{realtimeValidation:c||C||u||s||yf,displayValidation:l==="native"?c||C||w:c||C||u||s||w,updateValidation(k){l==="aria"&&!pv(w,k)?v(k):T.current=k},resetValidation(){let k=yf;pv(k,g.current)||(g.current=k,v(k)),l==="native"&&_(!1),x(!0)},commitValidation(){l==="native"&&_(!0),x(!0)}}}function y5(e){return e?Array.isArray(e)?e:[e]:[]}function uX(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return y5(n)}return[]}function EA(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:TM}:null}function pv(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}const S8=G.createContext(null);var SM={};SM={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var BM={};BM={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var _M={};_M={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var IM={};IM={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var NM={};NM={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var RM={};RM={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var OM={};OM={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var MM={};MM={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var DM={};DM={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var FM={};FM={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var UM={};UM={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var jM={};jM={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var LM={};LM={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var $M={};$M={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var zM={};zM={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var HM={};HM={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var KM={};KM={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var VM={};VM={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var GM={};GM={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var qM={};qM={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var WM={};WM={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var JM={};JM={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var ZM={};ZM={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var QM={};QM={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var XM={};XM={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var YM={};YM={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var eD={};eD={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var tD={};tD={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var nD={};nD={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var rD={};rD={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var aD={};aD={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var sD={};sD={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var iD={};iD={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var oD={};oD={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var lD={};lD={"ar-AE":SM,"bg-BG":BM,"cs-CZ":_M,"da-DK":IM,"de-DE":NM,"el-GR":RM,"en-US":OM,"es-ES":MM,"et-EE":DM,"fi-FI":FM,"fr-FR":UM,"he-IL":jM,"hr-HR":LM,"hu-HU":$M,"it-IT":zM,"ja-JP":HM,"ko-KR":KM,"lt-LT":VM,"lv-LV":GM,"nb-NO":qM,"nl-NL":WM,"pl-PL":JM,"pt-BR":ZM,"pt-PT":QM,"ro-RO":XM,"ru-RU":YM,"sk-SK":eD,"sl-SI":tD,"sr-SP":nD,"sv
76-SE":rD,"tr-TR":aD,"uk-UA":sD,"zh-CN":iD,"zh-TW":oD};function c0(e,t,n,r){let a=jn(n),s=n==null;G.useEffect(()=>{if(s||!e.current)return;let i=e.current;return i.addEventListener(t,a,r),()=>{i.removeEventListener(t,a,r)}},[e,t,r,s,a])}function dX(e,t){const n=[];for(;e&&e!==document.documentElement;)T0(e,t)&&n.push(e),e=e.parentElement;return n}function cD(e,t){let n=kA(e,t,"left"),r=kA(e,t,"top"),a=t.offsetWidth,s=t.offsetHeight,i=e.scrollLeft,l=e.scrollTop,{borderTopWidth:c,borderLeftWidth:u,scrollPaddingTop:f,scrollPaddingRight:p,scrollPaddingBottom:m,scrollPaddingLeft:h}=getComputedStyle(e),y=i+parseInt(u,10),x=l+parseInt(c,10),C=y+e.clientWidth,T=x+e.clientHeight,w=parseInt(f,10)||0,v=parseInt(m,10)||0,g=parseInt(p,10)||0,A=parseInt(h,10)||0;n<=i+A?i=n-parseInt(u,10)-A:n+a>C-g&&(i+=n+a-C+g),r<=x+w?l=r-parseInt(c,10)-w:r+s>T-v&&(l+=r+s-T+v),e.scrollLeft=i,e.scrollTop=l}function kA(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let a=0;for(;t.offsetParent&&(a+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[r];break}t=t.offsetParent}return a}function CA(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow==="hidden"){let l=dX(e);for(let c of l)cD(c,e)}else{var n;let{left:l,top:c}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:u,top:f}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-f)>1){var r,a,s;t==null||(a=t.containingElement)===null||a===void 0||(r=a.scrollIntoView)===null||r===void 0||r.call(a,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}let fX=0;const mv=new Map;function pX(e){let[t,n]=G.useState();return qt(()=>{if(!e)return;let r=mv.get(e);if(r)n(r.element.id);else{let a=`react-aria-description-${fX++}`;n(a);let s=document.createElement("div");s.id=a,s.style.display="none",s.textContent=e,document.body.appendChild(s),r={refCount:0,element:s},mv.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),mv.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function AA(e,t){const n=G.useRef(!0),r=G.useRef(null);qt(()=>(n.current=!0,()=>{n.current=!1}),[]),qt(()=>{n.current?n.current=!1:(!r.current||t.some((a,s)=>!Object.is(a,r[s])))&&e(),r.current=t},t)}const mX="react-aria-clear-focus",hX="react-aria-focus";function Cu(e){return Bo()?e.metaKey:e.ctrlKey}let yX=class uD{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new uD(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}constructor(t,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=t,this.key=n}},bX=class dD{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),a=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;a;)yield a,a=a.nextKey!=null?n.get(a.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}UNSTABLE_filter(t){let n=new dD,r=null;for(let a of this)if(a.type==="section"&&a.hasChildNodes){let s=a.clone(),i=null;for(let l of this.getChildren(a.key))if(PA(l,t,this,n)){let c=l.clone();i==null&&(s.firstChildKey=c.key),n.firstKey==null&&(n.firstKey=s.key),i&&i.parentKey===c.parentKey?(i.nextKey=c.key,c.prevKey=i.key):c.prevKey=null,c.nextKey=null,n.addNode(c),i=c}i&&(i.type!=="header"?(s.lastChildKey=i.key,r==null?s.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=s.key,s.prevKey=r.key),s.nextKey=null,r=s,n.addNode(s)):(n.firstKey===s.key&&(n.firstKey=null),n.removeNode(i.key)))}else if(a.type==="separator"){let s=a.clone();s.nextKey=null,(r==null?void 0:r.type)==="section"&&(r.nextKey=s.key,s.prevKey=r.key,r=s,n.addNode(s))}else{let s=a.clone();PA(s,t,this,n)&&(n.firstKey==null&&(n.firstKey=s.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===s.parentKey?(r.nextKey=s.key,s.prevKey=r.key):s.prevKey=null,
76s.nextKey=null,n.addNode(s),r=s)}if((r==null?void 0:r.type)==="separator"&&r.nextKey===null){let a;r.prevKey!=null&&(a=n.getItem(r.prevKey),a.nextKey=null),n.removeNode(r.key),r=a}return n.lastKey=(r==null?void 0:r.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}};function PA(e,t,n,r){if(e.type==="subdialogtrigger"||e.type==="submenutrigger"){let a=[...n.getChildren(e.key)][0];if(a&&t(a.textValue)){let s=a.clone();return r.addNode(s),!0}else return!1}else return e.type==="header"?!0:t(e.textValue)}let fD=class{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let n=t.nextSibling;for(;n;)n.index--,n=n.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}},TA=class b5 extends fD{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof b5?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,n,r,a;let s=this.ownerDocument.getMutableNode(this);s.index=this.index,s.level=this.level,s.parentKey=this.parentNode instanceof b5?this.parentNode.node.key:null;var i;s.prevKey=(i=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&i!==void 0?i:null;var l;s.nextKey=(l=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&l!==void 0?l:null,s.hasChildNodes=!!this.firstChild;var c;s.firstChildKey=(c=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&c!==void 0?c:null;var u;if(s.lastChildKey=(u=(a=this.lastChild)===null||a===void 0?void 0:a.node.key)!==null&&u!==void 0?u:null,(s.colSpan!=null||s.colIndex!=null)&&this.nextSibling){var f,p;let m=((f=s.colIndex)!==null&&f!==void 0?f:s.index)+((p=s.colSpan)!==null&&p!==void 0?p:1);if(m!==this.nextSibling.node.colIndex){let h=this.ownerDocument.getMutableNode(this.nextSibling);h.colIndex=m}}}setProps(t,n,r,a){let s=this.ownerDocument.getMutableNode(this),{value:i,textValue:l,id:c,...u}=t;if(u.ref=n,s.props=u,s.rendered=r,s.render=a,s.value=i,s.textValue=l||(typeof u.children=="string"?u.children:"")||t["aria-label"]||"",c!=null&&c!==s.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");s.key=c}u.colSpan!=null&&(s.colSpan=u.colSpan),this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new yX(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}},gX=class extends fD{get isConnected(){return this.isMounted}createElement(t){return new TA(t,this)}getMutableNode(t){let n=t.node;return this.mutatedNodes.has(t)||(n=t.node.clone(),this.mutatedNodes.add(t),t.node=n),this.markDirty(t),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let n=this.getMutableCollection();if(!n.getItem(t.node.key)){n.addNode(t.node);for(let r of t)this.addNode(r)}this.markDirty(t)}removeNode(t){for(let n of t)this.removeNode(n);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof TA&&s.isConnected&&s.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,n;let s=this.getMutableCollection();for(let i of this.mutatedNodes)i.isConnected&&s.addNode(i.node);this.mutatedNodes.clear();var r,a;s.commit((r=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(a=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&a!==void 0?a:null,this.isSSR)}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}};function pD(e){let{children:t,items:n,idScope:r,addIdAndValue:a,dependencies:s=[]}=e,i=G.useMemo(()=>new WeakMap,s);return G.useMemo(()=>
76{if(n&&typeof t=="function"){let u=[];for(let f of n){let p=i.get(f);if(!p){p=t(f);var l,c;let m=(c=(l=p.props.id)!==null&&l!==void 0?l:f.key)!==null&&c!==void 0?c:f.id;if(m==null)throw new Error("Could not determine key for item");r&&(m=r+":"+m),p=G.cloneElement(p,a?{key:m,id:m,value:f}:{key:m}),i.set(f,p)}u.push(p)}return u}else if(typeof t!="function")return t},[t,n,i,r,a])}const xX=500;function mD(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:a,threshold:s=xX,accessibilityDescription:i}=e;const l=G.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:u}=dm(),{pressProps:f}=w8({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),l.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),on(m.target).activeElement!==m.target&&Fs(m.target),a&&a({...m,type:"longpress"}),l.current=void 0},s),m.pointerType==="touch")){let h=y=>{y.preventDefault()};c(m.target,"contextmenu",h,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{u(m.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(m){l.current&&clearTimeout(l.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),p=pX(a&&!t?i:void 0);return{longPressProps:Ft(f,p)}}var SA={exports:{}},hv={};/**
77 * @license React
78 * use-sync-external-store-shim.production.js
79 *
80 * Copyright (c) Meta Platforms, Inc. and affiliates.
81 *
82 * This source code is licensed under the MIT license found in the
83 * LICENSE file in the root directory of this source tree.
84 */var BA;function vX(){if(BA)return hv;BA=1;var e=Pe;function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function l(p,m){var h=m(),y=r({inst:{value:h,getSnapshot:m}}),x=y[0].inst,C=y[1];return s(function(){x.value=h,x.getSnapshot=m,c(x)&&C({inst:x})},[p,h,m]),a(function(){return c(x)&&C({inst:x}),p(function(){c(x)&&C({inst:x})})},[p]),i(h),h}function c(p){var m=p.getSnapshot;p=p.value;try{var h=m();return!n(p,h)}catch{return!0}}function u(p,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return hv.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,hv}var _A;function wX(){return _A||(_A=1,SA.exports=vX()),SA.exports}var EX=wX();const hD=G.createContext(!1),S0=G.createContext(null);function yD(e){if(G.useContext(S0))return e.content;let{collection:t,document:n}=PX(e.createCollection);return Pe.createElement(Pe.Fragment,null,Pe.createElement(BJ,null,Pe.createElement(S0.Provider,{value:n},e.content)),Pe.createElement(kX,{render:e.children,collection:t}))}function kX({collection:e,render:t}){return t(e)}function CX(e,t,n){let r=jo(),a=G.useRef(r);a.current=r;let s=G.useCallback(()=>a.current?n():t(),[t,n]);return EX.useSyncExternalStore(e,s)}const AX=typeof Pe.useSyncExternalStore=="function"?Pe.useSyncExternalStore:CX;function PX(e){let[t]=G.useState(()=>new gX((e==null?void 0:e())||new bX)),n=G.useCallback(i=>t.subscribe(i),[t]),r=G.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),a=G.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),s=AX(n,r,a);return qt(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:s,document:t}}const g5=G.createContext(null);function TX(e,t,n,r,a,s){let i=G.useCallback(c=>{c==null||c.setProps(t,n,r,s)},[t,n,r,s]),l=G.useContext(g5);if(l){let c=l.ownerDocument.nodesByProps.get(t);return c||(c=l.ownerDocument.createElement(e),c.setProps(t,n,r,s),l.appendChild(c),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,c)),a?Pe.createElement(g5.Provider,{value:c},a):null}return Pe.createElement(e,{ref:i},a)}function SX(e,t){let n=({node:a})=>t(a.props,a.props.ref,a),r=G.forwardRef((a,s)=>{let i=G.useContext(Nb);if(!G.useContext(hD)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(a,s)}return TX(e,a,s,"children"in a?a.children:null,null,l=>Pe.createElement(Nb.Provider,{value:i},Pe.createElement(n,{node:l})))});return r.displayName=t.name,r}function BX(e){return pD({...e,addIdAndValue:!0})}const IA=G.createContext(null);function bD(e){let t=G.useContext(IA),n=((t==null?void 0:t.dependencies)||[]).concat(e.depen
84dencies),r=e.idScope||(t==null?void 0:t.idScope),a=BX({...e,idScope:r,dependencies:n});return G.useContext(S0)&&(a=Pe.createElement(_X,null,a)),t=G.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),Pe.createElement(IA.Provider,{value:t},a)}function _X({children:e}){let t=G.useContext(S0),n=G.useMemo(()=>Pe.createElement(S0.Provider,{value:null},Pe.createElement(hD.Provider,{value:!0},e)),[e]);return jo()?Pe.createElement(g5.Provider,{value:t},n):nd.createPortal(n,t)}function gD(e){let t=RX(on(e));t!==e&&(t&&IX(t,e),e&&NX(e,t))}function IX(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function NX(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function RX(e){let t=Br(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}function x5(e){return qJ()?e.altKey:e.ctrlKey}function lb(e,t){var n,r;let a=`[data-key="${CSS.escape(String(t))}"]`,s=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return s&&(a=`[data-collection="${CSS.escape(s)}"]${a}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(a)}const xD=new WeakMap;function OX(e){let t=cr();return xD.set(e,t),t}function MX(e){return xD.get(e)}const DX=1e3;function vD(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,a=G.useRef({search:"",timeout:void 0}).current,s=i=>{let l=FX(i.key);if(!(!l||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target))){if(l===" "&&a.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),a.search+=l,t.getKeyForSearch!=null){let c=t.getKeyForSearch(a.search,n.focusedKey);c==null&&(c=t.getKeyForSearch(a.search)),c!=null&&(n.setFocusedKey(c),r&&r(c))}clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},DX)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function FX(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function UX(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:a=!1,shouldFocusWrap:s=!1,disallowEmptySelection:i=!1,disallowSelectAll:l=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:m,scrollRef:h=r,linkBehavior:y="action"}=e,{direction:x}=zo(),C=x8(),T=I=>{var F;if(I.altKey&&I.key==="Tab"&&I.preventDefault(),!(!((F=r.current)===null||F===void 0)&&F.contains(I.target)))return;const z=(he,De)=>{if(he!=null){if(t.isLink(he)&&y==="selection"&&c&&!x5(I)){nd.flushSync(()=>{t.setFocusedKey(he,De)});let Se=lb(r,he),ke=t.getItemProps(he);Se&&C.open(Se,I,ke.href,ke.routerOptions);return}if(t.setFocusedKey(he,De),t.isLink(he)&&y==="override")return;I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(he):c&&!x5(I)&&t.replaceSelection(he)}};switch(I.key){case"ArrowDown":if(n.getKeyBelow){var U,V,$;let he=t.focusedKey!=null?(U=n.getKeyBelow)===null||U===void 0?void 0:U.call(n,t.focusedKey):(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n);he==null&&s&&(he=($=n.getFirstKey)===null||$===void 0?void 0:$.call(n,t.focusedKey)),he!=null&&(I.preventDefault(),z(he))}break;case"ArrowUp":if(n.getKeyAbove){var O,H,Z;let he=t.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,t.focusedKey):(H=n.getLastKey)===null||H===void 0?void 0:H.call(n);he==null&&s&&(he=(Z=n.getLastKey)===null||Z===void 0?void 0:Z.call(n,t.focusedKey)),he!=null&&(I.preventDefault(),z(he))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ee,ae,ie;let he=t.focusedKey!=null?(ee=n.getKeyLeftOf)===null||ee===void 0?void 0:ee.call(n,t.focusedKey):null;he==null&&s&&(he=x==="rtl"?(ae=n.getFirstKey)===null||ae===void 0?void 0:ae.call(n,t.focusedKey):(ie=n.getLastKey)===null||ie===void 0?void 0:ie.call(n,t.focusedKey)),he!=null&&(I.preventDefault(),z(he,x==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var fe,le,xe;let he=t.focusedKey!=null?(fe=n.getKeyRightOf)===null||fe===void 0?void 0:fe.call(n,t.focusedKey):null;he==null&&s&&(he=x==="rtl"?(le=n.getLastKey)===null||le===void 0?void 0:le.call(n,t.focu
84sedKey):(xe=n.getFirstKey)===null||xe===void 0?void 0:xe.call(n,t.focusedKey)),he!=null&&(I.preventDefault(),z(he,x==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&I.shiftKey)return;I.preventDefault();let he=n.getFirstKey(t.focusedKey,Cu(I));t.setFocusedKey(he),he!=null&&(Cu(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(he):c&&t.replaceSelection(he))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&I.shiftKey)return;I.preventDefault();let he=n.getLastKey(t.focusedKey,Cu(I));t.setFocusedKey(he),he!=null&&(Cu(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(he):c&&t.replaceSelection(he))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let he=n.getKeyPageBelow(t.focusedKey);he!=null&&(I.preventDefault(),z(he))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let he=n.getKeyPageAbove(t.focusedKey);he!=null&&(I.preventDefault(),z(he))}break;case"a":Cu(I)&&t.selectionMode==="multiple"&&l!==!0&&(I.preventDefault(),t.selectAll());break;case"Escape":!i&&t.selectedKeys.size!==0&&(I.stopPropagation(),I.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(I.shiftKey)r.current.focus();else{let he=Ii(r.current,{tabbable:!0}),De,Se;do Se=he.lastChild(),Se&&(De=Se);while(Se);De&&!De.contains(document.activeElement)&&Fs(De)}break}}},w=G.useRef({top:0,left:0});c0(h,"scroll",m?void 0:()=>{var I,F,z,U;w.current={top:(z=(I=h.current)===null||I===void 0?void 0:I.scrollTop)!==null&&z!==void 0?z:0,left:(U=(F=h.current)===null||F===void 0?void 0:F.scrollLeft)!==null&&U!==void 0?U:0}});let v=I=>{if(t.isFocused){I.currentTarget.contains(I.target)||t.setFocused(!1);return}if(I.currentTarget.contains(I.target)){if(t.setFocused(!0),t.focusedKey==null){var F,z;let $=H=>{H!=null&&(t.setFocusedKey(H),c&&!t.isSelected(H)&&t.replaceSelection(H))},O=I.relatedTarget;var U,V;O&&I.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?$((U=t.lastSelectedKey)!==null&&U!==void 0?U:(F=n.getLastKey)===null||F===void 0?void 0:F.call(n)):$((V=t.firstSelectedKey)!==null&&V!==void 0?V:(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n))}else!m&&h.current&&(h.current.scrollTop=w.current.top,h.current.scrollLeft=w.current.left);if(t.focusedKey!=null&&h.current){let $=lb(r,t.focusedKey);$ instanceof HTMLElement&&(!$.contains(document.activeElement)&&!f&&Fs($),P0()==="keyboard"&&CA($,{containingElement:r.current}))}}},g=I=>{I.currentTarget.contains(I.relatedTarget)||t.setFocused(!1)},A=G.useRef(!1);c0(r,hX,f?I=>{let{detail:F}=I;I.stopPropagation(),t.setFocused(!0),(F==null?void 0:F.focusStrategy)==="first"&&(A.current=!0)}:void 0);let S=jn(()=>{var I,F;let z=(F=(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n))!==null&&F!==void 0?F:null;z==null?(gD(r.current),t.collection.size>0&&(A.current=!1)):(t.setFocusedKey(z),A.current=!1)});AA(()=>{A.current&&S()},[t.collection,S]);let _=jn(()=>{t.collection.size>0&&(A.current=!1)});AA(()=>{_()},[t.focusedKey,_]),c0(r,mX,f?I=>{var F;I.stopPropagation(),t.setFocused(!1),!((F=I.detail)===null||F===void 0)&&F.clearFocusKey&&t.setFocusedKey(null)}:void 0);const k=G.useRef(a),R=G.useRef(!1);G.useEffect(()=>{if(k.current){var I,F;let V=null;var z;a==="first"&&(V=(z=(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n))!==null&&z!==void 0?z:null);var U;a==="last"&&(V=(U=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n))!==null&&U!==void 0?U:null);let $=t.selectedKeys;if($.size){for(let O of $)if(t.canSelectItem(O)){V=O;break}}t.setFocused(!0),t.setFocusedKey(V),V==null&&!f&&r.current&&_o(r.current),t.collection.size>0&&(k.current=!1,R.current=!0)}});let D=G.useRef(t.focusedKey);G.useEffect(()=>
84{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||R.current)&&h.current&&r.current){let I=P0(),F=lb(r,t.focusedKey);if(!(F instanceof HTMLElement))return;(I==="keyboard"||R.current)&&(cD(h.current,F),I!=="virtual"&&CA(F,{containingElement:r.current}))}!f&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&_o(r.current),D.current=t.focusedKey,R.current=!1}),c0(r,"react-aria-focus-scope-restore",I=>{I.preventDefault(),t.setFocused(!0)});let B={onKeyDown:T,onFocus:v,onBlur:g,onMouseDown(I){h.current===I.target&&I.preventDefault()}},{typeSelectProps:M}=vD({keyboardDelegate:n,selectionManager:t});u||(B=Ft(M,B));let E;f||(E=t.focusedKey==null?0:-1);let N=OX(t.collection);return{collectionProps:Ft(B,{tabIndex:E,"data-collection":N})}}function jX(e){let{id:t,selectionManager:n,key:r,ref:a,shouldSelectOnPressUp:s,shouldUseVirtualFocus:i,focus:l,isDisabled:c,onAction:u,allowsDifferentPressOrigin:f,linkBehavior:p="action"}=e,m=x8();t=cr(t);let h=U=>{if(U.pointerType==="keyboard"&&x5(U))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(p==="selection"&&a.current){let V=n.getItemProps(r);m.open(a.current,U,V.href,V.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(p==="override"||p==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):U&&U.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||U&&(Cu(U)||U.pointerType==="touch"||U.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};G.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(i?gD(a.current):l?l():document.activeElement!==a.current&&a.current&&_o(a.current))},[a,r,n.focusedKey,n.childFocusStrategy,n.isFocused,i]),c=c||n.isDisabled(r);let y={};!i&&!c?y={tabIndex:r===n.focusedKey?0:-1,onFocus(U){U.target===a.current&&n.setFocusedKey(r)}}:c&&(y.onMouseDown=U=>{U.preventDefault()});let x=n.isLink(r)&&p==="override",C=n.isLink(r)&&p!=="selection"&&p!=="none",T=!c&&n.canSelectItem(r)&&!x,w=(u||C)&&!c,v=w&&(n.selectionBehavior==="replace"?!T:!T||n.isEmpty),g=w&&T&&n.selectionBehavior==="replace",A=v||g,S=G.useRef(null),_=A&&T,k=G.useRef(!1),R=G.useRef(!1),D=U=>{if(u&&u(),C&&a.current){let V=n.getItemProps(r);m.open(a.current,U,V.href,V.routerOptions)}},B={};s?(B.onPressStart=U=>{S.current=U.pointerType,k.current=_,U.pointerType==="keyboard"&&(!A||RA())&&h(U)},f?(B.onPressUp=v?void 0:U=>{U.pointerType==="mouse"&&T&&h(U)},B.onPress=v?D:U=>{U.pointerType!=="keyboard"&&U.pointerType!=="mouse"&&T&&h(U)}):B.onPress=U=>{if(v||g&&U.pointerType!=="mouse"){if(U.pointerType==="keyboard"&&!NA())return;D(U)}else U.pointerType!=="keyboard"&&T&&h(U)}):(B.onPressStart=U=>{S.current=U.pointerType,k.current=_,R.current=v,T&&(U.pointerType==="mouse"&&!v||U.pointerType==="keyboard"&&(!w||RA()))&&h(U)},B.onPress=U=>{(U.pointerType==="touch"||U.pointerType==="pen"||U.pointerType==="virtual"||U.pointerType==="keyboard"&&A&&NA()||U.pointerType==="mouse"&&R.current)&&(A?D(U):T&&h(U))}),y["data-collection"]=MX(n.collection),y["data-key"]=r,B.preventFocusOnPress=i,i&&(B=Ft(B,{onPressStart(U){U.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(U){U.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:M,isPressed:E}=w8(B),N=g?U=>{S.current==="mouse"&&(U.stopPropagation(),U.preventDefault(),D(U))}:void 0,{longPressProps:I}=mD({isDisabled:!_,onLongPress(U){U.pointerType==="touch"&&(h(U),n.setSelectionBehavior("toggle"))}}),F=U=>{S.current==="touch"&&k.current&&U.preventDefault()},z=n.isLink(r)?U=>{mc.isOpening||U.preventDefault()}:void 0;return{itemProps:Ft(y,T||v||i?M:{},_?I:{},{onDoubleClick:N,onDragStartCapture:F,onClick:z,id:t},i?{onMouseDown:U=>U.preventDefault()}:void 0),isPressed:E,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:T,hasAction:A}}function NA(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function RA(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}let LX=class{build(t,n){return this.context=n,OA(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(Pe.isValidElement(n)&&n.type===Pe.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let a=0;for(let s of r)yield*this.getFullNode({value:s,index:a},{renderer:n}),a++}else{let a=[];
84Pe.Children.forEach(n,i=>{i&&a.push(i)});let s=0;for(let i of a){let l=this.getFullNode({element:i,index:s},{});for(let c of l)s++,yield c}}}getKey(t,n,r,a){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${a}${n.key}`;let s=n.value;if(s!=null){var i;let l=(i=s.key)!==null&&i!==void 0?i:s.id;if(l==null)throw new Error("No key found for item");return l}return a?`${a}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,a){if(Pe.isValidElement(t.element)&&t.element.type===Pe.Fragment){let C=[];Pe.Children.forEach(t.element.props.children,w=>{C.push(w)});var s;let T=(s=t.index)!==null&&s!==void 0?s:0;for(const w of C)yield*this.getFullNode({element:w,index:T++},n,r,a);return}let i=t.element;if(!i&&t.value&&n&&n.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=a?a.key:null,yield C;return}i=n.renderer(t.value)}if(Pe.isValidElement(i)){let C=i.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let g=i.type;throw new Error(`Unknown element <${g}> in collection.`)}let T=C.getCollectionNode(i.props,this.context);var l;let w=(l=t.index)!==null&&l!==void 0?l:0,v=T.next();for(;!v.done&&v.value;){let g=v.value;t.index=w;var c;let A=(c=g.key)!==null&&c!==void 0?c:null;A==null&&(A=g.element?null:this.getKey(i,t,n,r));let S=[...this.getFullNode({...g,key:A,index:w,wrapper:$X(t.wrapper,g.wrapper)},this.getChildState(n,g),r?`${r}${i.key}`:i.key,a)];for(let _ of S){var u,f;_.value=(f=(u=g.value)!==null&&u!==void 0?u:t.value)!==null&&f!==void 0?f:null,_.value&&this.cache.set(_.value,_);var p;if(t.type&&_.type!==t.type)throw new Error(`Unsupported type <${yv(_.type)}> in <${yv((p=a==null?void 0:a.type)!==null&&p!==void 0?p:"unknown parent type")}>. Only <${yv(t.type)}> is supported.`);w++,yield _}v=T.next(S)}return}if(t.key==null||t.type==null)return;let m=this;var h,y;let x={type:t.type,props:t.props,key:t.key,parentKey:a?a.key:null,value:(h=t.value)!==null&&h!==void 0?h:null,level:a?a.level+1:0,index:t.index,rendered:t.rendered,textValue:(y=t.textValue)!==null&&y!==void 0?y:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:OA(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let T of t.childNodes()){T.key!=null&&(T.key=`${x.key}${T.key}`);let w=m.getFullNode({...T,index:C},m.getChildState(n,T),x.key,x);for(let v of w)C++,yield v}})};yield x}constructor(){this.cache=new WeakMap}};function OA(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function $X(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function yv(e){return e[0].toUpperCase()+e.slice(1)}function zX(e,t,n){let r=G.useMemo(()=>new LX,[]),{children:a,items:s,collection:i}=e;return G.useMemo(()=>{if(i)return i;let l=r.build({children:a,items:s},n);return t(l)},[r,a,s,i,n,t])}function wD(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function HX(e){return KX(e)}function KX(e,t){for(let n of e)return n}function bv(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...MA(e,t),t],a=[...MA(e,n),n],s=r.slice(0,a.length).findIndex((i,l)=>i!==a[l]);return s!==-1?(t=r[s],n=a[s],t.index-n.index):r.findIndex(i=>i===n)>=0?1:(a.findIndex(i=>i===t)>=0,-1)}function MA(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}let Pi=class ED extends Set{constructor(t,n,r){super(t),t instanceof ED?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function VX(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function GX(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:a="toggle",disabledBehavior:s="all"}=e,i=G.useRef(!1),[,l]=G.useState(!1),c=G.useRef(null),u=G.useRef(null),[,f]=G.useState(null),p=G.useMemo(()=>DA(e.selectedKeys),[e.selectedKeys]),m=G.useMemo(()=>DA(e.defaultSelectedKeys,new Pi),[e.defaultSelectedKeys]),[h,y]=ld(p,m,e.onSelectionChange),x=G.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,T]=G.useState(a);a==="replace"&&C==="toggle"&&typeof h=="object"&&h.size===0&&T("replace");let w=G.useRef(a);return G.useEffect(()=>{a!==w.current&&(T(a),w.current=a)},[a]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:T,get isFocused(){return i.current},setFocused(v){i.current=v,l(v)},get focusedKey(){return c.current},get childFocusStrategy(){return u.current},setFocusedKey(v,g="first"){c.current=v,u.current=g,f(v)},selectedKeys:h,setSelectedKeys(v){(r||!VX(v,h))&&y(v)},disabledKeys:x,disabledBehavior:s}}function DA(e,t){return e?e==="all"?"all":new Pi(e):t}let qX=class kD{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;
84if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let a=this.collection.getItem(r);(!t||a&&bv(this.collection,a,t)<0)&&(t=a)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let a=this.collection.getItem(r);(!t||a&&bv(this.collection,a,t)>0)&&(t=a)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Pi([n],n,n);else{let i=this.state.selectedKeys;var a;let l=(a=i.anchorKey)!==null&&a!==void 0?a:n;r=new Pi(i,l,n);var s;for(let c of this.getKeyRange(l,(s=i.currentKey)!==null&&s!==void 0?s:n))r.delete(c);for(let c of this.getKeyRange(n,l))this.canSelectItem(c)&&r.add(c)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),a=this.collection.getItem(n);return r&&a?bv(this.collection,r,a)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let a=[],s=t;for(;s!=null;){let i=this.collection.getItem(s);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&a.push(s),s===n)return a;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new Pi(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new Pi([n],n,n):new Pi;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Pi;for(let r of t){let a=this.getKey(r);if(a!=null&&(n.add(a),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var a;let i=this.collection.getItem(r);(i==null?void 0:i.type)==="item"&&t.push(r);var s;i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n((s=(a=HX(wD(i,this.collection)))===null||a===void 0?void 0:a.key)!==null&&s!==void 0?s:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Pi)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new kD(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var a;this.allowsCellSelection=(a=r==null?void 0:r.allowsCellSelection)!==null&&a!==void 0?a:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}};const WX=G.createContext(null),JX={CollectionRoot({collection:e,renderDropIndicator:t}){return FA(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return FA(e,t,n)}};function FA(e,t,n){return pD({items:t?e.getChildren(t.key):e,depen
84dencies:[n],children(r){var a;let s=r.render(r);if(!n||r.type!=="item")return s;let i=r.key,l=e.getKeyAfter(i);return Pe.createElement(Pe.Fragment,null,n({type:"item",key:i,dropPosition:"before"}),s,(l==null||((a=e.getItem(l))===null||a===void 0?void 0:a.type)!=="item")&&n({type:"item",key:i,dropPosition:"after"}))}})}const B8=G.createContext(JX);let gv=new Map;function _8(e){let{locale:t}=zo(),n=t+(e?Object.entries(e).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(gv.has(n))return gv.get(n);let r=new Intl.Collator(t,e);return gv.set(n,r),r}let UA=class{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?lb(this.ref,t):null;if(!r)return null;let a=n.getBoundingClientRect(),s=r.getBoundingClientRect();return{x:s.left-a.left+n.scrollLeft,y:s.top-a.top+n.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,a,s;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(a=t==null?void 0:t.offsetWidth)!==null&&a!==void 0?a:0,height:(s=t==null?void 0:t.offsetHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}},I8=class{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let a=this.collection.getItem(r);if((a==null?void 0:a.type)==="item"&&!this.isDisabled(a))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let a=t,s=this.layoutDelegate.getItemRect(a);if(!s||a==null)return null;let i=s;do{if(a=n(a),a==null)break;s=this.layoutDelegate.getItemRect(a)}while(s&&r(i,s)&&a!=null);return a}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!T0(n))return this.getFirstKey();let a=t;if(this.orientation==="horizontal"){let s=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>s&&a!=null;)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let s=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>s&&a!=null;
84)a=this.getKeyAbove(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!T0(n))return this.getLastKey();let a=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<s&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<s&&a!=null;)a=this.getKeyBelow(a),r=a==null?null:this.layoutDelegate.getItemRect(a)}return a??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,a=n||this.getFirstKey();for(;a!=null;){let s=r.getItem(a);if(!s)return null;let i=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(i,t)===0)return a;a=this.getNextKey(a)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new UA(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new UA(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function ZX(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:a,keyboardDelegate:s,layoutDelegate:i}=e,l=_8({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,u=G.useMemo(()=>s||new I8({collection:n,disabledKeys:r,disabledBehavior:c,ref:a,collator:l,layoutDelegate:i}),[s,i,n,r,a,l,c]),{collectionProps:f}=UX({...e,ref:a,selectionManager:t,keyboardDelegate:u});return{listProps:f}}let jA=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let l of i.childNodes)n(l)};for(let i of t)n(i);let r=null,a=0;for(let[i,l]of this.keyMap)r?(r.nextKey=i,l.prevKey=r.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=a++),r=l,r.nextKey=void 0;var s;this.lastKey=(s=r==null?void 0:r.key)!==null&&s!==void 0?s:null}};function CD(e){let{filter:t,layoutDelegate:n}=e,r=GX(e),a=G.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=G.useCallback(u=>t?new jA(t(u)):new jA(u),[t]),i=G.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=zX(e,s,i),c=G.useMemo(()=>new qX(l,r,{layoutDelegate:n}),[l,r,n]);return AD(l,c),{collection:l,disabledKeys:a,selectionManager:c}}function QX(e,t){let n=G.useMemo(()=>t?e.collection.UNSTABLE_filter(t):e.collection,[e.collection,t]),r=e.selectionManager.withCollection(n);return AD(n,r),{collection:n,selectionManager:r,disabledKeys:e.disabledKeys}}function AD(e,t){const n=G.useRef(null);G.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const f=n.current.getItem(t.focusedKey),p=[...n.current.getKeys()].map(T=>{const w=n.current.getItem(T);return(w==null?void 0:w.type)==="item"?w:null}).filter(T=>T!==null),m=[...e.getKeys()].map(T=>{const w=e.getItem(T);return(w==null?void 0:w.type)==="item"?w:null}).filter(T=>T!==null);var r,a;const h=((r=p==null?void 0:p.length)!==null&&r!==void 0?r:0)-((a=m==null?void 0:m.length)!==null&&a!==void 0?a:0);var s,i,l;let y=Math.min(h>1?Math.max(((s=f==null?void 0:f.index)!==null&&s!==void 0?s:0)-h+1,0):(i=f==null?void 0:f.index)!==null&&i!==void 0?i:0,((l=m==null?void 0:m.length)!==null&&l!==void 0?l:0)-1),x=null,C=!1;for(;y>=0;){if(!t.isDisabled(m[y].key)){x=m[y];break}if(y<m.length-1&&!C)y++;
84else{C=!0;var c,u;y>((c=f==null?void 0:f.index)!==null&&c!==void 0?c:0)&&(y=(u=f==null?void 0:f.index)!==null&&u!==void 0?u:0),y--}}t.setFocusedKey(x?x.key:null)}n.current=e},[e,t])}const N8=new WeakMap;function XX(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function YX(e,t){let n=N8.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${XX(t)}`}function eY(e,t,n){let r=$n(e,{labelable:!0}),a=e.selectionBehavior||"toggle",s=e.linkBehavior||(a==="replace"?"action":"override");a==="toggle"&&s==="action"&&(s="override");let{listProps:i}=ZX({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:l}=fm({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),c=cr(e.id);N8.set(t,{id:c,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s});let{labelProps:u,fieldProps:f}=eO({...e,id:c,labelElementType:"span"});return{labelProps:u,listBoxProps:Ft(r,l,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Ft(f,i)})}}const LA=new WeakMap;function tY(e){let t=LA.get(e);if(t!=null)return t;let n=0,r=a=>{for(let s of a)s.type==="section"?r(wD(s,e)):n++};return r(e),LA.set(e,n),n}function nY(e,t,n){var r,a;let{key:s}=e,i=N8.get(t);var l;let c=(l=e.isDisabled)!==null&&l!==void 0?l:t.selectionManager.isDisabled(s);var u;let f=(u=e.isSelected)!==null&&u!==void 0?u:t.selectionManager.isSelected(s);var p;let m=(p=e.shouldSelectOnPressUp)!==null&&p!==void 0?p:i==null?void 0:i.shouldSelectOnPressUp;var h;let y=(h=e.shouldFocusOnHover)!==null&&h!==void 0?h:i==null?void 0:i.shouldFocusOnHover;var x;let C=(x=e.shouldUseVirtualFocus)!==null&&x!==void 0?x:i==null?void 0:i.shouldUseVirtualFocus;var T;let w=(T=e.isVirtualized)!==null&&T!==void 0?T:i==null?void 0:i.isVirtualized,v=C0(),g=C0(),A={role:"option","aria-disabled":c||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?f:void 0};Bo()&&h8()||(A["aria-label"]=e["aria-label"],A["aria-labelledby"]=v,A["aria-describedby"]=g);let S=t.collection.getItem(s);if(w){let z=Number(S==null?void 0:S.index);A["aria-posinset"]=Number.isNaN(z)?void 0:z+1,A["aria-setsize"]=tY(t.collection)}let _=i!=null&&i.onAction?()=>{var z;return i==null||(z=i.onAction)===null||z===void 0?void 0:z.call(i,s)}:void 0,k=YX(t,s),{itemProps:R,isPressed:D,isFocused:B,hasAction:M,allowsSelection:E}=jX({selectionManager:t.selectionManager,key:s,ref:n,shouldSelectOnPressUp:m,allowsDifferentPressOrigin:m&&y,shouldUseVirtualFocus:C,isDisabled:c,onAction:_||!(S==null||(r=S.props)===null||r===void 0)&&r.onAction?Ui(S==null||(a=S.props)===null||a===void 0?void 0:a.onAction,_):void 0,linkBehavior:i==null?void 0:i.linkBehavior,id:k}),{hoverProps:N}=Ic({isDisabled:c||!y,onHoverStart(){A0()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),I=$n(S==null?void 0:S.props);delete I.id;let F=pZ(S==null?void 0:S.props);return{optionProps:{...A,...Ft(I,R,N,F),id:k},labelProps:{id:v},descriptionProps:{id:g},isFocused:B,isFocusVisible:B&&t.selectionManager.isFocused&&A0(),isSelected:f,isDisabled:c,isPressed:D,allowsSelection:E,hasAction:M}}function rY(e){let{heading:t,"aria-label":n}=e,r=cr();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const aY=G.createContext(null),w1=G.createContext({}),PD=G.createContext(null),sY=G.forwardRef(function(e,t){let{render:n}=G.useContext(PD);return Pe.createElement(Pe.Fragment,null,n(e,t))});function TD(e,t){var n;let r=e==null?void 0:e.renderDropIndicator,a=e==null||(n=e.isVirtualDragging)===null||n===void 0?void 0:n.call(e),s=G.useCallback(i=>{if(a||t!=null&&t.isDropTarget(i))return r?r(i):Pe.createElement(sY,{target:i})},[t==null?void 0:t.target,a,r]);return e!=null&&e.useDropIndicator?s:void 0}function iY(e,t,n){var r,a;let s=e.focusedKey,i=null;if(!(t==null||(r=t.isVirtualDragging)===null||r===void 0)&&r.call(t)&&(n==null||(a=n.target)===null||a===void 0?void 0:a.type)==="item"){i=n.target.key;var l;n.target.dropPosition==="after"&&(i=(l=n.collection.getKeyAfter(i))!==null&&l!==void 0?l:i)}return G.useMemo(()=>new Set([s,i].filter(c=>c!=null)),[s,i])}const oY=G.createContext({}),lY=G.createContext({}),R8=G.createContext(null),ym=G.createContext(null),cY=G.forwardRef(function(e,t){[e,t]=wr(e,t,R8);let n=G.useContext(ym);return n?Pe.createElement(SD,{state:n,props:e,listBoxRef:t}):Pe.createElement(yD,{content:Pe.createElement(bD,e)},r=>Pe.createElement(uY,{props:e,listBoxRef:t,collection:r}))});function uY({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=G.useContext(B8),a=CD({...e,layoutDelegate:r});return Pe.createElement(SD,{state:a,props:e,listBoxRef:t})}function SD({state:e,props:t,listBoxRef:n}){let{filter:r,collectionProps:a,collectionRef:s}=G.useContext(aY)||{};t=G.useMemo(()=>a?{...t,...a}:t,[t,a]);let{dragAndDropHooks:i,layout:l="stack",orientation:c="vertical"}=t;n=Lo(G.useMemo(()=>d1(n,s!==void 0?s:null),[s,n]));let u=QX(e,r),{collection:f,selectionManager:p}=u,m=!!(i!=null&&i.useDraggableCollectionState),h=!!(i!=null&&i.useDroppableCollectionState),{direction:y}=zo(),{disabledBehavior:x,disabledKeys:C}=p,T=_8({usage:"search",sensitivity:"base"}),{isVirtualized:w,layoutDelegate:v,dropTargetDelegate:g,CollectionRoot:A}=G.useContext(B8),S=G.useMemo(()=>t.keyboardDelegate||new I8({collection:f,collator:T,ref:n,disabledKeys:C,disabledBehavior:x,layout:l,orientation:c,direction:y,layoutDelegate:v}),[f,T,n,x,C,c,y,t.keyboardDelegate,l,v]),{listBoxProps:_}=eY({...t,shouldSelectOnPressUp:m||t.shouldSelectOnPressUp,keyboardDelegate:S,isVirtualized:w},u,n),k=G.useRef(m),R=G.useRef(h);G.useEffect(()=>{k.current!==m&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),R.current!==h&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[m,h]);let D,B,M,E=!1,N=null,I=G.useRef(null);if(m&&i){D=i.useDraggableCollectionState({collection:f,selectionManager:p,preview:i.renderDragPreview?I:void 0}),i.useDraggableCollection({},D,n);let H=i.DragPreview;N=i.renderDragPreview?Pe.createElement(H,{ref:I},i.renderDragPreview):null}if(h&&i){B=i.useDroppableCollectionState({collection:f,selectionManager:p});let H=i.dropTargetDelegate||g||new i.ListDropTargetDelegate(f,n,{orientation:c,layout:l,direction:y});M=i.useDroppableCollection({keyboardDelegate:S,dropTargetDelegate:H},B,n),E=B.isDropTarget({type:"root"})}let{focusProps:F,isFocused:z,isFocusVisible:U}=pm(),V={isDropTarget:E,isEmpty:u.collection.size===0,isFocused:z,isFocusVisible:U,layout:t.layout||"stack",state:u},$=ar({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:V}),O=null;return u.collection.size===0&&t.renderEmptyState&&(O=Pe.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(V))),Pe.createElement(SO,null,Pe.createElement("div",{...$n(t),...Ft(_,F,M==null?void 0:M.collectionProps),...$,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":E||void 0,"data-empty":u.collection.size===0||void 0,"data-focused":z||void 0,"data-focus-visible":U||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},Pe.createElement($o,{values:[[R8,t],[ym,u],[w1,{dragAndDropHooks:i,dragState:D,dropState:B}],[lY,{elementType:"div"}],[PD,{render:pY}],[WX,{name:"ListBoxSection",render:dY}]]},Pe.createElement(A,{collection:f,scrollRef:n,persistedKeys:iY(p,i,B),renderDropIndicator:TD(i,B)})),O,N))}function dY(e,t,n,r="react-aria-ListBoxSection"){let a=G.useContext(ym),{dragAndDropHooks:s,dropState:i}=G.useContext(w1),{CollectionBranch:l}=G.useContext(B8),[c,u]=f1();var f;let{headingProps:p,groupProps:m}=rY({heading:u,"aria-label":(f=e["aria-label"])!==null&&f!==void 0?f:void 0}),h=ar({defaultClassName:r,className:e.className,style:e.style,values:{}});return Pe.createElement("section",{...$n(e),...m,...h,ref:t},Pe.createElement(oY.Provider,{value:{...p,ref:c}},Pe.createElement(l,{collection:a.collection,parent:n,renderDropIndicator:TD(s,i)})))}const fY=SX("item",function(e,t,n){let r=Lo(t),a=G.useContext(ym),{dragAndDropHooks:s,dragState:i,dropState:l}=G.useContext(w1),{optionProps:c,labelProps:u,descriptionProps:f,...p}=nY({key:n.key,"aria-label":e==null?void 0:e["aria-label"]},a,r),{hoverProps:m,isHovered:h}=Ic({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),y=null;i&&s&&(y=s.useDraggableItem({key:n.key},i));let x=null;l&&s&&(x=s.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},l,r));let C=i&&i.isDragging(n.key),T=ar({...e,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:h,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior,allowsDragging:!!i,isDragging:C,isDropTarget:x==null?void 0:x.isDropTarget}});G.useEffect(()=>{n.textValue||console.warn("A `textValue` prop is required for <ListBoxItem>
84 elements with non-plain text children in order to support accessibility features such as type to select.")},[n.textValue]);let w=e.href?"a":"div";return Pe.createElement(w,{...Ft(c,m,y==null?void 0:y.dragProps,x==null?void 0:x.dropProps),...T,ref:r,"data-allows-dragging":!!i||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":C||void 0,"data-drop-target":(x==null?void 0:x.isDropTarget)||void 0,"data-selection-mode":a.selectionManager.selectionMode==="none"?void 0:a.selectionManager.selectionMode},Pe.createElement($o,{values:[[cd,{slots:{[Pb]:u,label:u,description:f}}]]},T.children))});function pY(e,t){t=Lo(t);let{dragAndDropHooks:n,dropState:r}=G.useContext(w1),{dropIndicatorProps:a,isHidden:s,isDropTarget:i}=n.useDropIndicator(e,r,t);return s?null:Pe.createElement(hY,{...e,dropIndicatorProps:a,isDropTarget:i,ref:t})}function mY(e,t){let{dropIndicatorProps:n,isDropTarget:r,...a}=e,s=ar({...a,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return Pe.createElement("div",{...n,...s,role:"option",ref:t,"data-drop-target":r||void 0})}const hY=G.forwardRef(mY);function yY(){return typeof window.ResizeObserver<"u"}function v5(e){const{ref:t,box:n,onResize:r}=e;G.useEffect(()=>{let a=t==null?void 0:t.current;if(a)if(yY()){const s=new window.ResizeObserver(i=>{i.length&&r()});return s.observe(a,{box:n}),()=>{a&&s.unobserve(a)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}const Ms={top:"top",bottom:"top",left:"left",right:"left"},Db={top:"bottom",bottom:"top",left:"right",right:"left"},bY={top:"left",left:"top"},w5={top:"height",left:"width"},BD={width:"totalWidth",height:"totalHeight"},dy={};let ma=typeof document<"u"?window.visualViewport:null;function $A(e){let t=0,n=0,r=0,a=0,s=0,i=0,l={};var c;let u=((c=ma==null?void 0:ma.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let y=document.documentElement;r=y.clientWidth,a=y.clientHeight;var f;t=(f=ma==null?void 0:ma.width)!==null&&f!==void 0?f:r;var p;n=(p=ma==null?void 0:ma.height)!==null&&p!==void 0?p:a,l.top=y.scrollTop||e.scrollTop,l.left=y.scrollLeft||e.scrollLeft,ma&&(s=ma.offsetTop,i=ma.offsetLeft)}else({width:t,height:n,top:s,left:i}=Mu(e)),l.top=e.scrollTop,l.left=e.scrollLeft,r=t,a=n;if(h8()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){l.top=0,l.left=0;var m;s=(m=ma==null?void 0:ma.pageTop)!==null&&m!==void 0?m:0;var h;i=(h=ma==null?void 0:ma.pageLeft)!==null&&h!==void 0?h:0}return{width:t,height:n,totalWidth:r,totalHeight:a,scroll:l,top:s,left:i}}function gY(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function zA(e,t,n,r,a,s,i){var l;let c=(l=a.scroll[e])!==null&&l!==void 0?l:0,u=r[w5[e]],f=r.scroll[Ms[e]]+s,p=u+r.scroll[Ms[e]]-s,m=t-c+i[e]-r[Ms[e]],h=t-c+n+i[e]-r[Ms[e]];return m<f?f-m:h>p?Math.max(p-h,f-m):0}function xY(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function HA(e){if(dy[e])return dy[e];let[t,n]=e.split(" "),r=Ms[t]||"right",a=bY[r];Ms[n]||(n="center");let s=w5[r],i=w5[a];return dy[e]={placement:t,crossPlacement:n,axis:r,crossAxis:a,size:s,crossSize:i},dy[e]}function xv(e,t,n,r,a,s,i,l,c,u){let{placement:f,crossPlacement:p,axis:m,crossAxis:h,size:y,crossSize:x}=r,C={};var T;C[h]=(T=e[h])!==null&&T!==void 0?T:0;var w,v,g,A;p==="center"?C[h]+=(((w=e[x])!==null&&w!==void 0?w:0)-((v=n[x])!==null&&v!==void 0?v:0))/2:p!==h&&(C[h]+=((g=e[x])!==null&&g!==void 0?g:0)-((A=n[x])!==null&&A!==void 0?A:0)),C[h]+=s;const S=e[h]-n[x]+c+u,_=e[h]+e[x]-c-u;if(C[h]=Ou(C[h],S,_),f===m){const k=l?i[y]:t[BD[y]];C[Db[m]]=Math.floor(k-e[m]+a)}else C[m]=Math.floor(e[m]+e[y]+a);return C}function vY(e,t,n,r,a,s,i,l){const c=r?n.height:t[BD.height];var u;let f=e.top!=null?n.top+e.top:n.top+(c-((u=e.bottom)!==null&&u!==void 0?u:0)-i);var p,m,h,y,x,C;let T=l!=="top"?Math.max(0,t.height+t.top+((p=t.scroll.top)!==null&&p!==void 0?p:0)-f-(((m=a.top)!==null&&m!==void 0?m:0)+((h=a.bottom)!==null&&h!==void 0?h:0)+s)):Math.max(0,f+i-(t.top+((y=t.scroll.top)!==null&&y!==void 0?y:0))-(((x=a.top)!==null&&x!==void 0?x:0)+((C=a.bottom)!==null&&C!==void 0?C:0)+s));return Math.min(t.height-s*2,T)}function KA(e,t,n,r,a,s){let{placement:i,axis:l,size:c}=s;var u,f;if(i===l)return Math.max(0,n[l]-e[l]-((u=e.scroll[l])!==null&&u!==void 0?u:0)+t[l]-((f=r[l])!==null&&f!==void 0?f:0)-r[Db[l]]-a);var p;return Math.max(0,e[c]+e[l]+e.scroll[l]-t[l]-n[l]-n[c]-((p=r[l])!==null&&p!==void 0?p:0)-r[Db[l]]-a)}function wY(e,t,n,r,a,s,i,l,c,u,f,p,m,h,y,x){let C=HA(e),{size:T,crossAxis:w,crossSize:v,placement:g,crossPlacement:A}=C,S=xv(t,l,n,C,f,p,u,m,y,x),_=f,k=KA(l,u,t,a,s+f,C);if(i&&r[T]>k){let ee=HA(`${Db[g]} ${A}`),ae=xv(t,l,n,ee,f,p,u,m,y,x);KA(l,u,t,a,s+f,ee)>k&&(C=ee,S=ae,_=f)}let R="bottom";C.axis==="top"?C.placement==="top"?R="top":C.placement==="bottom"&&(R="bottom"):C.crossAxis==="top"&&(C.crossPlacement==="top"?R="bottom":C.crossPlacement==="bottom"&&(R="top"));let D=zA(w,S[w],n[v],l,c,s,u);S[w]+=D;let B=vY(S,l,u,m,a,s,n.height,R);
84h&&h<B&&(B=h),n.height=Math.min(n.height,B),S=xv(t,l,n,C,_,p,u,m,y,x),D=zA(w,S[w],n[v],l,c,s,u),S[w]+=D;let M={},E=t[w]+.5*t[v]-S[w]-a[Ms[w]];const N=y/2+x;var I,F,z,U;const V=Ms[w]==="left"?((I=a.left)!==null&&I!==void 0?I:0)+((F=a.right)!==null&&F!==void 0?F:0):((z=a.top)!==null&&z!==void 0?z:0)+((U=a.bottom)!==null&&U!==void 0?U:0),$=n[v]-V-y/2-x,O=t[w]+y/2-(S[w]+a[Ms[w]]),H=t[w]+t[v]-y/2-(S[w]+a[Ms[w]]),Z=Ou(E,O,H);return M[w]=Ou(Z,N,$),{position:S,maxHeight:B,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:C.placement}}function EY(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:a,padding:s,shouldFlip:i,boundaryElement:l,offset:c,crossOffset:u,maxHeight:f,arrowSize:p=0,arrowBoundaryOffset:m=0}=e,h=r instanceof HTMLElement?kY(r):document.documentElement,y=h===document.documentElement;const x=window.getComputedStyle(h).position;let C=!!x&&x!=="static",T=y?Mu(n):VA(n,h);if(!y){let{marginTop:M,marginLeft:E}=window.getComputedStyle(n);T.top+=parseInt(M,10)||0,T.left+=parseInt(E,10)||0}let w=Mu(r),v=xY(r);var g,A;w.width+=((g=v.left)!==null&&g!==void 0?g:0)+((A=v.right)!==null&&A!==void 0?A:0);var S,_;w.height+=((S=v.top)!==null&&S!==void 0?S:0)+((_=v.bottom)!==null&&_!==void 0?_:0);let k=gY(a),R=$A(l),D=$A(h),B=l.tagName==="BODY"?Mu(h):VA(h,l);return h.tagName==="HTML"&&l.tagName==="BODY"&&(D.scroll.top=0,D.scroll.left=0),wY(t,T,w,k,v,s,i,R,D,B,c,u,C,f,p,m)}function Mu(e){let{top:t,left:n,width:r,height:a}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:i,clientTop:l,clientLeft:c}=document.documentElement;return{top:t+s-l,left:n+i-c,width:r,height:a}}function VA(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:a,left:s,width:i,height:l}=e.getBoundingClientRect();r={top:a,left:s,width:i,height:l}}else{r=Mu(e);let a=Mu(t),s=window.getComputedStyle(t);a.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=a.top,r.left-=a.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function kY(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!GA(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!GA(t);)t=t.parentElement;return t||document.documentElement}function GA(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const _D=new WeakMap;function CY(e){let{triggerRef:t,isOpen:n,onClose:r}=e;G.useEffect(()=>{if(!n||r===null)return;let a=s=>{let i=s.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let l=r||_D.get(t.current);l&&l()};return window.addEventListener("scroll",a,!0),()=>{window.removeEventListener("scroll",a,!0)}},[n,r,t])}let Gr=typeof document<"u"?window.visualViewport:null;function ID(e){let{direction:t}=zo(),{arrowSize:n=0,targetRef:r,overlayRef:a,scrollRef:s=a,placement:i="bottom",containerPadding:l=12,shouldFlip:c=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:f=0,crossOffset:p=0,shouldUpdatePosition:m=!0,isOpen:h=!0,onClose:y,maxHeight:x,arrowBoundaryOffset:C=0}=e,[T,w]=G.useState(null),v=[m,i,a.current,r.current,s.current,l,c,u,f,p,h,t,x,C,n],g=G.useRef(Gr==null?void 0:Gr.scale);G.useEffect(()=>{h&&(g.current=Gr==null?void 0:Gr.scale)},[h]);let A=G.useCallback(()=>{if(m===!1||!h||!a.current||!r.current||!u||(Gr==null?void 0:Gr.scale)!==g.current)return;let D=null;if(s.current&&s.current.contains(document.activeElement)){var B;let U=(B=document.activeElement)===null||B===void 0?void 0:B.getBoundingClientRect(),V=s.current.getBoundingClientRect();var M;if(D={type:"top",offset:((M=U==null?void 0:U.top)!==null&&M!==void 0?M:0)-V.top},D.offset>V.height/2){D.type="bottom";var E;D.offset=((E=U==null?void 0:U.bottom)!==null&&E!==void 0?E:0)-V.bottom}}let N=a.current;if(!x&&a.current){var I;N.style.top="0px",N.style.bottom="";var F;
84N.style.maxHeight=((F=(I=window.visualViewport)===null||I===void 0?void 0:I.height)!==null&&F!==void 0?F:window.innerHeight)+"px"}let z=EY({placement:PY(i,t),overlayNode:a.current,targetNode:r.current,scrollNode:s.current||a.current,padding:l,shouldFlip:c,boundaryElement:u,offset:f,crossOffset:p,maxHeight:x,arrowSize:n,arrowBoundaryOffset:C});if(z.position){if(N.style.top="",N.style.bottom="",N.style.left="",N.style.right="",Object.keys(z.position).forEach(U=>N.style[U]=z.position[U]+"px"),N.style.maxHeight=z.maxHeight!=null?z.maxHeight+"px":"",D&&document.activeElement&&s.current){let U=document.activeElement.getBoundingClientRect(),V=s.current.getBoundingClientRect(),$=U[D.type]-V[D.type];s.current.scrollTop+=$-D.offset}w(z)}},v);qt(A,v),AY(A),v5({ref:a,onResize:A}),v5({ref:r,onResize:A});let S=G.useRef(!1);qt(()=>{let D,B=()=>{S.current=!0,clearTimeout(D),D=setTimeout(()=>{S.current=!1},500),A()},M=()=>{S.current&&B()};return Gr==null||Gr.addEventListener("resize",B),Gr==null||Gr.addEventListener("scroll",M),()=>{Gr==null||Gr.removeEventListener("resize",B),Gr==null||Gr.removeEventListener("scroll",M)}},[A]);let _=G.useCallback(()=>{S.current||y==null||y()},[y,S]);CY({triggerRef:r,isOpen:h,onClose:y&&_});var k,R;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...T==null?void 0:T.position,maxHeight:(k=T==null?void 0:T.maxHeight)!==null&&k!==void 0?k:"100vh"}},placement:(R=T==null?void 0:T.placement)!==null&&R!==void 0?R:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:T==null?void 0:T.arrowOffsetLeft,top:T==null?void 0:T.arrowOffsetTop}},updatePosition:A}}function AY(e){qt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function PY(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const O8=G.createContext({placement:"bottom"}),TY=G.forwardRef(function(e,t){[e,t]=wr(e,t,O8);let n=e.placement,r={position:"absolute",transform:n==="top"||n==="bottom"?"translateX(-50%)":"translateY(-50%)"};n!=null&&(r[n]="100%");let a=ar({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:n}});return a.style&&Object.keys(a.style).forEach(s=>a.style[s]===void 0&&delete a.style[s]),Pe.createElement("div",{...e,...a,style:{...r,...a.style},ref:t,"data-placement":n})});function SY(e,t){let{triggerRef:n,popoverRef:r,groupRef:a,isNonModal:s,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l,...c}=e,u=c.trigger==="SubmenuTrigger",{overlayProps:f,underlayProps:p}=DO({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!s||u,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},a??r),{overlayProps:m,arrowProps:h,placement:y}=ID({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:s&&!u?t.close:null});return FO({isDisabled:s||!t.isOpen}),qt(()=>{if(t.isOpen&&r.current){var x,C;return s?YQ((x=a==null?void 0:a.current)!==null&&x!==void 0?x:r.current):EM([(C=a==null?void 0:a.current)!==null&&C!==void 0?C:r.current])}},[s,t.isOpen,r,a]),{popoverProps:Ft(f,m),arrowProps:h,underlayProps:p,placement:y}}const ND=G.createContext(null),qA=G.createContext(null),BY=G.forwardRef(function(e,t){[e,t]=wr(e,t,ND);let n=G.useContext(od),r=v1(e),a=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,s=Mb(t,a.isOpen)||e.isExiting||!1,i=_J(),{direction:l}=zo();if(i){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),Pe.createElement(Pe.Fragment,null,c)}return a&&!a.isOpen&&!s?null:Pe.createElement(_Y,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:s,dir:l})});function _Y({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){let a=G.useRef(null),[s,i]=G.useState(0),l=G.useRef(null),c=G.useContext(qA),u=c&&r.trigger==="SubmenuTrigger";qt(()=>{a.current&&e.isOpen&&i(a.current.getBoundingClientRect().width)},[e.isOpen,a]);var f;let{popoverProps:p,underlayProps:m,arrowProps:h,placement:y}=SY({...r,offset:(f=r.offset)!==null&&f!==void 0?f:8,arrowSize:s,groupRef:u?c:l},e),x=r.popoverRef,C=x1(x,!!y)||r.isEntering||!1,T=ar({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:y,isEntering:C,isExiting:t}}),w=!r.isNonModal||r.trigger==="SubmenuTrigger",[v,g]=G.useState(!1);qt(()=>{x.current&&g(w&&!x.current.querySelector("[role=dialog]"))},[x,w]),G.useEffect(()=>{v&&x.current&&!x.current.contains(document.activeElement)&&_o(x.current)},[v,x]);
84let A={...p.style,...T.style},S=Pe.createElement("div",{...Ft($n(r),p),...T,role:v?"dialog":void 0,tabIndex:v?-1:void 0,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"],ref:x,slot:r.slot||void 0,style:A,dir:r.dir,"data-trigger":r.trigger,"data-placement":y,"data-entering":C||void 0,"data-exiting":t||void 0},!r.isNonModal&&Pe.createElement(p5,{onDismiss:e.close}),Pe.createElement(O8.Provider,{value:{...h,placement:y,ref:a}},T.children),Pe.createElement(p5,{onDismiss:e.close}));if(!u)return Pe.createElement(m5,{...r,shouldContainFocus:v,isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&Pe.createElement("div",{"data-testid":"underlay",...m,style:{position:"fixed",inset:0}}),Pe.createElement("div",{ref:l,style:{display:"contents"}},Pe.createElement(qA.Provider,{value:l},S)));var _;return Pe.createElement(m5,{...r,shouldContainFocus:v,isExiting:t,portalContainer:(_=n??(c==null?void 0:c.current))!==null&&_!==void 0?_:void 0},S)}function IY(e){var t;let[n,r]=ld(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),a=G.useMemo(()=>n!=null?[n]:[],[n]),{collection:s,disabledKeys:i,selectionManager:l}=CD({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:a,onSelectionChange:u=>{if(u==="all")return;var f;let p=(f=u.values().next().value)!==null&&f!==void 0?f:null;p===n&&e.onSelectionChange&&e.onSelectionChange(p),r(p)}}),c=n!=null?s.getItem(n):null;return{collection:s,disabledKeys:i,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:c}}function M8(e,t,n){let r=G.useRef(t),a=jn(()=>{n&&n(r.current)});G.useEffect(()=>{var s;let i=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return i==null||i.addEventListener("reset",a),()=>{i==null||i.removeEventListener("reset",a)}},[e,a])}function RD(e,t,n){let{validationBehavior:r,focus:a}=e;qt(()=>{if(r==="native"&&n!=null&&n.current&&!n.current.disabled){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(RY(n.current))}});let s=jn(()=>{t.resetValidation()}),i=jn(c=>{var u;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&n&&f&&OY(f)===n.current){var p;a?a():(p=n.current)===null||p===void 0||p.focus(),mO("keyboard")}c.preventDefault()}),l=jn(()=>{t.commitValidation()});G.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let u=c.form;return c.addEventListener("invalid",i),c.addEventListener("change",l),u==null||u.addEventListener("reset",s),()=>{c.removeEventListener("invalid",i),c.removeEventListener("change",l),u==null||u.removeEventListener("reset",s)}},[n,i,l,s,r])}function NY(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function RY(e){return{isInvalid:!e.validity.valid,validationDetails:NY(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function OY(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function MY(e,t,n){let{type:r}=e,{isOpen:a}=t;G.useEffect(()=>{n&&n.current&&_D.set(n.current,t.close)});let s;r==="menu"?s=!0:r==="listbox"&&(s="listbox");let i=cr();return{triggerProps:{"aria-haspopup":s,"aria-expanded":a,"aria-controls":a?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}var OD={};OD={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var MD={};MD={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var DD={};DD={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var FD={};FD={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var UD={};UD={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var jD={};jD={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var LD={};LD={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var $D={};$D={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var zD={};zD={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var HD={};HD={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var KD={};KD={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var VD={};VD={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var GD={};GD={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var qD={};qD={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var WD={};WD={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var JD={};JD={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var ZD={};ZD={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var QD={};QD={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var XD={};XD={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var YD={};YD={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var eF={};eF={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var tF={};tF={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var nF={};nF={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var rF={};rF={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var aF={};aF={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var sF={};sF={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var iF={};iF={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var oF={};oF={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var lF={};lF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var cF={};cF={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var uF={};uF={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var dF={};dF={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var fF={};fF={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var pF={};pF={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var mF={};mF={"ar-AE":OD,"bg-BG":MD,"cs-CZ":DD,"da-DK":FD,"de-DE":UD,"el-GR":jD,"en-US":LD,"es-ES":$D,"et-EE":zD,"fi-FI":HD,"fr-FR":KD,"he-IL":VD,"hr-HR":GD,"hu-HU":qD,"it-IT":WD,"ja-JP":JD,"ko-KR":ZD,"lt-LT":QD,"lv-LV":XD,"nb-NO":YD,"nl-NL":eF,"pl-PL":tF,"pt-BR":nF,"pt-PT":rF,"ro-RO":aF,"ru-RU":sF,"sk-SK":iF,"sl-SI":oF,"sr-SP":lF,"sv-SE":cF,"tr-TR":uF,"uk-UA":dF,"zh-CN":fF,"zh-TW":pF};
84function DY(e){return e&&e.__esModule?e.default:e}function FY(e,t,n){let{type:r="menu",isDisabled:a,trigger:s="press"}=e,i=cr(),{triggerProps:l,overlayProps:c}=MY({type:r},t,n),u=h=>{if(!a&&!(s==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(s==="longPress")return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},f=id(DY(mF),"@react-aria/menu"),{longPressProps:p}=mD({isDisabled:a||s!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!a&&(Fs(h.target),t.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!a&&t.toggle()}};return delete l.onPress,{menuTriggerProps:{...l,...s==="press"?m:p,id:i,onKeyDown:u},menuProps:{...c,"aria-labelledby":i,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const hF=new WeakMap;function UY(e,t,n){let{keyboardDelegate:r,isDisabled:a,isRequired:s,name:i,validationBehavior:l="aria"}=e,c=_8({usage:"search",sensitivity:"base"}),u=G.useMemo(()=>r||new I8(t.collection,t.disabledKeys,n,c),[r,t.collection,t.disabledKeys,c]),{menuTriggerProps:f,menuProps:p}=FY({isDisabled:a,type:"listbox"},t,n),m=k=>{switch(k.key){case"ArrowLeft":{var R,D;k.preventDefault();let E=t.selectedKey!=null?(R=u.getKeyAbove)===null||R===void 0?void 0:R.call(u,t.selectedKey):(D=u.getFirstKey)===null||D===void 0?void 0:D.call(u);E&&t.setSelectedKey(E);break}case"ArrowRight":{var B,M;k.preventDefault();let E=t.selectedKey!=null?(B=u.getKeyBelow)===null||B===void 0?void 0:B.call(u,t.selectedKey):(M=u.getFirstKey)===null||M===void 0?void 0:M.call(u);E&&t.setSelectedKey(E);break}}},{typeSelectProps:h}=vD({keyboardDelegate:u,selectionManager:t.selectionManager,onTypeSelect(k){t.setSelectedKey(k)}}),{isInvalid:y,validationErrors:x,validationDetails:C}=t.displayValidation,{labelProps:T,fieldProps:w,descriptionProps:v,errorMessageProps:g}=AM({...e,labelElementType:"span",isInvalid:y,errorMessage:e.errorMessage||x});h.onKeyDown=h.onKeyDownCapture,delete h.onKeyDownCapture;let A=$n(e,{labelable:!0}),S=Ft(h,f,w),_=cr();return hF.set(t,{isDisabled:a,isRequired:s,name:i,validationBehavior:l}),{labelProps:{...T,onClick:()=>{if(!e.isDisabled){var k;(k=n.current)===null||k===void 0||k.focus(),mO("keyboard")}}},triggerProps:Ft(A,{...S,isDisabled:a,onKeyDown:Ui(S.onKeyDown,m,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[_,S["aria-labelledby"],S["aria-label"]&&!S["aria-labelledby"]?S.id:null].filter(Boolean).join(" "),onFocus(k){t.isFocused||(e.onFocus&&e.onFocus(k),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(k){t.isOpen||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:_},menuProps:{...p,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:k=>{k.currentTarget.contains(k.relatedTarget)||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[w["aria-labelledby"],S["aria-label"]&&!w["aria-labelledby"]?S.id:null].filter(Boolean).join(" ")},descriptionProps:v,errorMessageProps:g,isInvalid:y,validationErrors:x,validationDetails:C}}function jY(e,t,n){let r=hF.get(t)||{},{autoComplete:a,name:s=r.name,isDisabled:i=r.isDisabled}=e,{validationBehavior:l,isRequired:c}=r,{visuallyHiddenProps:u}=MO();M8(e.selectRef,t.selectedKey,t.setSelectedKey),RD({validationBehavior:l,focus:()=>{var p;return(p=n.current)===null||p===void 0?void 0:p.focus()}},t,e.selectRef);var f;return{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:a,disabled:i,required:l==="native"&&c,name:s,value:(f=t.selectedKey)!==null&&f!==void 0?f:void 0,onChange:p=>t.setSelectedKey(p.target.value)}}}function LY(e){let{state:t,triggerRef:n,label:r,name:a,isDisabled:s}=e,i=G.useRef(null),{containerProps:l,selectProps:c}=jY({...e,selectRef:i},t,n);var u;return t.collection.size<=300?Pe.createElement("div",{...l,"data-testid":"hidden-select-container"},Pe.createElement("label",null,r,Pe.createElement("select",{...c,ref:i},Pe.createElement("option",null),[...t.collection.getKeys()].map(f=>{let p=t.collection.getItem(f);if(p&&p.type==="item")return Pe.createElement("option",{key:p.key,value:p.key},p.textValue)})))):a?Pe.createElement("input",{type:"hidden",autoComplete:c.autoComplete,name:a,disabled:s,value:(u=t.selectedKey)!==null&&u!==void 0?u:""}):null}function $Y(e){let t=v1(e),[n,r]=G.useState(null),a=IY({...e,onSelectionChange:c=>{e.onSelectionChange!=null&&e.onSelectionChange(c),t.close(),s.commitValidation()}}),s=T8({...e,value:a.selectedKey}),[i,l]=G.useState(!1);
84return{...s,...a,...t,focusStrategy:n,open(c=null){a.collection.size!==0&&(r(c),t.open())},toggle(c=null){a.collection.size!==0&&(r(c),t.toggle())},isFocused:i,setFocused:l}}function zY(e){return e&&e.__esModule?e.default:e}const D8=G.createContext(null),F8=G.createContext(null),HY=G.forwardRef(function(e,t){[e,t]=wr(e,t,D8);let{children:n,isDisabled:r=!1,isInvalid:a=!1,isRequired:s=!1}=e,i=G.useMemo(()=>typeof n=="function"?n({isOpen:!1,isDisabled:r,isInvalid:a,isRequired:s,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,r,a,s]);return Pe.createElement(yD,{content:i},l=>Pe.createElement(KY,{props:e,collection:l,selectRef:t}))});function KY({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=cm(S8)||{};var a,s;let i=(s=(a=e.validationBehavior)!==null&&a!==void 0?a:r)!==null&&s!==void 0?s:"native",l=$Y({...e,collection:n,children:void 0,validationBehavior:i}),{isFocusVisible:c,focusProps:u}=pm({within:!0}),f=G.useRef(null),[p,m]=f1(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:h,triggerProps:y,valueProps:x,menuProps:C,descriptionProps:T,errorMessageProps:w,...v}=UY({...f8(e),label:m,validationBehavior:i},l,f),[g,A]=G.useState(null),S=G.useCallback(()=>{f.current&&A(f.current.offsetWidth+"px")},[f]);v5({ref:f,onResize:S});let _=G.useMemo(()=>({isOpen:l.isOpen,isFocused:l.isFocused,isFocusVisible:c,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1,isRequired:e.isRequired||!1}
84),[l.isOpen,l.isFocused,c,e.isDisabled,v.isInvalid,e.isRequired]),k=ar({...e,values:_,defaultClassName:"react-aria-Select"}),R=$n(e);delete R.id;let D=G.useRef(null);return Pe.createElement($o,{values:[[D8,e],[F8,l],[yF,x],[m1,{...h,ref:p,elementType:"span"}],[mm,{...y,ref:f,isPressed:l.isOpen}],[od,l],[ND,{trigger:"Select",triggerRef:f,scrollRef:D,placement:"bottom start",style:{"--trigger-width":g},"aria-labelledby":C["aria-labelledby"]}],[R8,{...C,ref:D}],[ym,l],[cd,{slots:{description:T,errorMessage:w}}],[hm,v]]},Pe.createElement("div",{...R,...k,...u,ref:t,slot:e.slot||void 0,"data-focused":l.isFocused||void 0,"data-focus-visible":c||void 0,"data-open":l.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":v.isInvalid||void 0,"data-required":e.isRequired||void 0}),Pe.createElement(LY,{autoComplete:e.autoComplete,state:l,triggerRef:f,label:m,name:e.name,isDisabled:e.isDisabled}))}const yF=G.createContext(null),E5=G.forwardRef(function(e,t){var n,r;[e,t]=wr(e,t,yF);let a=G.useContext(F8),{placeholder:s}=cm(D8),i=a.selectedKey!=null?a.collection.getItem(a.selectedKey):null,l=i==null?void 0:i.props.children;typeof l=="function"&&(l=l({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let c=id(zY(lD),"react-aria-components");var u,f,p;let m=ar({...e,defaultChildren:(u=l??s)!==null&&u!==void 0?u:c.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(f=(n=a.selectedItem)===null||n===void 0?void 0:n.value)!==null&&f!==void 0?f:null,selectedText:(p=(r=a.selectedItem)===null||r===void 0?void 0:r.textValue)!==null&&p!==void 0?p:null,isPlaceholder:!i}}),h=$n(e);return Pe.createElement("span",{ref:t,...h,...m,"data-placeholder":!i||void 0},Pe.createElement(cd.Provider,{value:void 0},m.children))}),bF=e=>G.createElement("svg",{viewBox:"0 0 12 8",xmlns:"http://www.w3.org/2000/svg",...e},G.createElement("path",{d:"M11.5975 0.25H0.402501C0.0667189 0.25 -0.120773 0.604531 0.0871726 0.846567L5.68467 7.33721C5.84489 7.523 6.1534 7.523 6.31533 7.33721L11.9128 0.846567C12.1208 0.604531 11.9333 0.25 11.5975 0.25Z"})),VY=({isOpen:e,small:t,placeholder:n,...r})=>We.jsx(hc,{className:Qr("rounded-base p-1","flex cursor-pointer items-center disabled:cursor-not-allowed","focus:shadow-input outline-none"),...r,children:({isHovered:a,isDisabled:s})=>We.jsxs(We.Fragment,{children:[t?We.jsx("small",{className:Xt("hover-short-transition","text-klerosUIComponentsPrimaryBlue text-sm font-semibold",a&&"text-klerosUIComponentsSecondaryBlue",s&&"text-klerosUIComponentsSecondaryText"),children:We.jsx(E5,{children:({isPlaceholder:i,selectedText:l})=>i?n:l})}):We.jsx("span",{className:Xt("hover-short-transition","text-klerosUIComponentsPrimaryBlue text-2xl font-semibold",a&&"text-klerosUIComponentsSecondaryText",s&&"text-klerosUIComponentsSecondaryText"),children:We.jsx(E5,{children:({isPlaceholder:i,selectedText:l})=>i?n:l})}),We.jsx(bF,{className:Xt("hover-short-transition fill-klerosUIComponentsPrimaryBlue ease-ease ml-2 transition",t?"size-2":"size-4",e&&"rotate-180",a&&"fill-klerosUIComponentsSecondaryBlue",s&&"fill-klerosUIComponentsSecondaryText")})," "]})});function gF({color:e,className:t}){return We.jsx("div",{style:{background:e},className:Xt("box-border size-2 rounded-full",t)})}const GY=({placeholder:e,isPlaceholder:t,selectedItem:n})=>{if(t||!n)return We.jsx("div",{className:"flex items-center py-[9.5px] pr-4 pl-3.25",children:We.jsx("p",{className:"text-klerosUIComponentsSecondaryText text-base",children:e??"Select"})});const{Icon:r,icon:a,text:s,dot:i}=n;return We.jsxs("div",{className:"flex items-center py-[9.5px] pr-4 pl-3.25",children:[a??(r&&We.jsx(r,{className:"max-h-4 min-h-3 max-w-4 min-w-3"})),i&&We.jsx(gF,{className:"mr-2",color:i}),We.jsx("p",{className:"text-klerosUIComponentsPrimaryText text-base",children:s})]})},qY=({placeholder:e,...t})=>{const n=G.useContext(F8);return We.jsxs(hc,{className:Xt("bg-klerosUIComponentsWhiteBackground hover:bg-klerosUIComponentsMediumBlue","hover-long-transition border-klerosUIComponentsStroke rounded-base box-border w-60 border","flex items-center justify-between pr-4","focus:shadow-input outline-none","disabled:hover:bg-klerosUIComponentsWhiteBackgroun
84d cursor-pointer disabled:cursor-not-allowed"),...t,children:[We.jsx(E5,{children:r=>We.jsx(GY,{...r,placeholder:e})}),We.jsx(bF,{className:Qr("hover-short-transition fill-klerosUIComponentsStroke ease-ease ml-2 size-4 transition",(n==null?void 0:n.isOpen)&&"rotate-180")})]})};var Yr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vv={exports:{}},wv,WA;function WY(){if(WA)return wv;WA=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wv=e,wv}var Ev,JA;function JY(){if(JA)return Ev;JA=1;var e=WY();function t(){}function n(){}return n.resetWarningCache=t,Ev=function(){function r(i,l,c,u,f,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function a(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Ev}var ZA;function ZY(){return ZA||(ZA=1,vv.exports=JY()()),vv.exports}var QY=ZY();const bf=bm(QY);var QA={},fy,XA;function dr(){if(XA)return fy;XA=1;var e=function(t){return t&&t.Math==Math&&t};return fy=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Yr=="object"&&Yr)||(function(){return this})()||fy||Function("return this")(),fy}var kv={},YA,e9;function En(){return e9||(e9=1,YA=function(e){try{return!!e()}catch{return!0}}),YA}var Cv,t9;function xs(){if(t9)return Cv;t9=1;var e=En();return Cv=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Cv}var Av,n9;function E1(){if(n9)return Av;n9=1;var e=En();return Av=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Av}var Pv,r9;function Ga(){if(r9)return Pv;r9=1;var e=E1(),t=Function.prototype.call;return Pv=e?t.bind(t):function(){return t.apply(t,arguments)},Pv}var Tv={},a9;function xF(){if(a9)return Tv;a9=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return Tv.f=n?function(r){var a=t(this,r);return!!a&&a.enumerable}:e,Tv}var s9,i9;function k1(){return i9||(i9=1,s9=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),s9}var Sv,o9;function kn(){if(o9)return Sv;o9=1;var e=E1(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return Sv=e?r:function(a){return function(){return n.apply(a,arguments)}},Sv}var Bv,l9;function Ko(){if(l9)return Bv;l9=1;var e=kn(),t=e({}.toString),n=e("".slice);return Bv=function(r){return n(t(r),8,-1)},Bv}var _v,c9;function C1(){if(c9)return _v;c9=1;var e=kn(),t=En(),n=Ko(),r=Object,a=e("".split);return _v=t(function(){return!r("z").propertyIsEnumerable(0)})?function(s){return n(s)=="String"?a(s,""):r(s)}:r,_v}var u9,d9;function Nc(){return d9||(d9=1,u9=function(e){return e==null}),u9}var Iv,f9;function ud(){if(f9)return Iv;f9=1;var e=Nc(),t=TypeError;return Iv=function(n){if(e(n))throw t("Can't call method on "+n);return n},Iv}var Nv,p9;function dd(){if(p9)return Nv;p9=1;var e=C1(),t=ud();return Nv=function(n){return e(t(n))},Nv}var Rv,m9;function vF(){if(m9)return Rv;m9=1;var e=typeof document=="object"&&document.all,t=typeof e>"u"&&e!==void 0;return Rv={all:e,IS_HTMLDDA:t},Rv}var Ov,h9;function zn(){if(h9)return Ov;h9=1;var e=vF(),t=e.all;return Ov=e.IS_HTMLDDA?function(n){return typeof n=="function"||n===t}:function(n){return typeof n=="function"},Ov}var Mv,y9;function Ta(){if(y9)return Mv;y9=1;var e=zn(),t=vF(),n=t.all;return Mv=t.IS_HTMLDDA?function(r){return typeof r=="object"?r!==null:e(r)||r===n}:function(r){return typeof r=="object"?r!==null:e(r)},Mv}var Dv,b9;function A1(){if(b9)return Dv;b9=1;var e=dr(),t=zn(),n=function(r){return t(r)?r:void 0};return Dv=function(r,a){return arguments.length<2?n(e[r]):e[r]&&e[r][a]},Dv}var Fv,g9;
84function U8(){if(g9)return Fv;g9=1;var e=kn();return Fv=e({}.isPrototypeOf),Fv}var x9,v9;function XY(){return v9||(v9=1,x9=typeof navigator<"u"&&String(navigator.userAgent)||""),x9}var Uv,w9;function j8(){if(w9)return Uv;w9=1;var e=dr(),t=XY(),n=e.process,r=e.Deno,a=n&&n.versions||r&&r.version,s=a&&a.v8,i,l;return s&&(i=s.split("."),l=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!l&&t&&(i=t.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=t.match(/Chrome\/(\d+)/),i&&(l=+i[1]))),Uv=l,Uv}var jv,E9;function wF(){if(E9)return jv;E9=1;var e=j8(),t=En(),n=dr(),r=n.String;return jv=!!Object.getOwnPropertySymbols&&!t(function(){var a=Symbol();return!r(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&e&&e<41}),jv}var Lv,k9;function EF(){if(k9)return Lv;k9=1;var e=wF();return Lv=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Lv}var $v,C9;function kF(){if(C9)return $v;C9=1;var e=A1(),t=zn(),n=U8(),r=EF(),a=Object;return $v=r?function(s){return typeof s=="symbol"}:function(s){var i=e("Symbol");return t(i)&&n(i.prototype,a(s))},$v}var zv,A9;function L8(){if(A9)return zv;A9=1;var e=String;return zv=function(t){try{return e(t)}catch{return"Object"}},zv}var Hv,P9;function gm(){if(P9)return Hv;P9=1;var e=zn(),t=L8(),n=TypeError;return Hv=function(r){if(e(r))return r;throw n(t(r)+" is not a function")},Hv}var Kv,T9;function xm(){if(T9)return Kv;T9=1;var e=gm(),t=Nc();return Kv=function(n,r){var a=n[r];return t(a)?void 0:e(a)},Kv}var Vv,S9;
84function YY(){if(S9)return Vv;S9=1;var e=Ga(),t=zn(),n=Ta(),r=TypeError;return Vv=function(a,s){var i,l;if(s==="string"&&t(i=a.toString)&&!n(l=e(i,a))||t(i=a.valueOf)&&!n(l=e(i,a))||s!=="string"&&t(i=a.toString)&&!n(l=e(i,a)))return l;throw r("Can't convert object to primitive value")},Vv}var Gv={exports:{}},B9,_9;function P1(){return _9||(_9=1,B9=!1),B9}var qv,I9;function $8(){if(I9)return qv;I9=1;var e=dr(),t=Object.defineProperty;return qv=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch{e[n]=r}return r},qv}var Wv,N9;function z8(){if(N9)return Wv;N9=1;var e=dr(),t=$8(),n="__core-js_shared__",r=e[n]||t(n,{});return Wv=r,Wv}var R9;function H8(){if(R9)return Gv.exports;R9=1;var e=P1(),t=z8();return(Gv.exports=function(n,r){return t[n]||(t[n]=r!==void 0?r:{})})("versions",[]).push({version:"3.31.1",mode:e?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"}),Gv.exports}var Jv,O9;function fd(){if(O9)return Jv;O9=1;var e=ud(),t=Object;return Jv=function(n){return t(e(n))},Jv}var Zv,M9;function vs(){if(M9)return Zv;M9=1;var e=kn(),t=fd(),n=e({}.hasOwnProperty);return Zv=Object.hasOwn||function(r,a){return n(t(r),a)},Zv}var Qv,D9;function K8(){if(D9)return Qv;D9=1;var e=kn(),t=0,n=Math.random(),r=e(1 .toString);return Qv=function(a){return"Symbol("+(a===void 0?"":a)+")_"+r(++t+n,36)},Qv}var Xv,F9;function Nr(){if(F9)return Xv;F9=1;var e=dr(),t=H8(),n=vs(),r=K8(),a=wF(),s=EF(),i=e.Symbol,l=t("wks"),c=s?i.for||i:i&&i.withoutSetter||r;return Xv=function(u){return n(l,u)||(l[u]=a&&n(i,u)?i[u]:c("Symbol."+u)),l[u]},Xv}var Yv,U9;function eee(){if(U9)return Yv;U9=1;var e=Ga(),t=Ta(),n=kF(),r=xm(),a=YY(),s=Nr(),i=TypeError,l=s("toPrimitive");return Yv=function(c,u){if(!t(c)||n(c))return c;var f=r(c,l),p;if(f){if(u===void 0&&(u="default"),p=e(f,c,u),!t(p)||n(p))return p;throw i("Can't convert object to primitive value")}return u===void 0&&(u="number"),a(c,u)},Yv}var e2,j9;function V8(){if(j9)return e2;j9=1;var e=eee(),t=kF();return e2=function(n){var r=e(n,"string");return t(r)?r:r+""},e2}var t2,L9;function G8(){if(L9)return t2;L9=1;var e=dr(),t=Ta(),n=e.document,r=t(n)&&t(n.createElement);return t2=function(a){return r?n.createElement(a):{}},t2}var n2,$9;function CF(){if($9)return n2;$9=1;var e=xs(),t=En(),n=G8();return n2=!e&&!t(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!=7}),n2}var z9;function AF(){if(z9)return kv;z9=1;var e=xs(),t=Ga(),n=xF(),r=k1(),a=dd(),s=V8(),i=vs(),l=CF(),c=Object.getOwnPropertyDescriptor;return kv.f=e?c:function(u,f){if(u=a(u),f=s(f),l)try{return c(u,f)}catch{}if(i(u,f))return r(!t(n.f,u,f),u[f])},kv}var r2={},a2,H9;function PF(){if(H9)return a2;H9=1;var e=xs(),t=En();return a2=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),a2}var s2,K9;function Sa(){if(K9)return s2;K9=1;var e=Ta(),t=String,n=TypeError;return s2=function(r){if(e(r))return r;throw n(t(r)+" is not an object")},s2}var V9;function Hs(){if(V9)return r2;V9=1;var e=xs(),t=CF(),n=PF(),r=Sa(),a=V8(),s=TypeError,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c="enumerable",u="configurable",f="writable";return r2.f=e?n?function(p,m,h){if(r(p),m=a(m),r(h),typeof p=="function"&&m==="prototype"&&"value"in h&&f in h&&!h[f]){var y=l(p,m);y&&y[f]&&(p[m]=h.value,h={configurable:u in h?h[u]:y[u],enumerable:c in h?h[c]:y[c],writable:!1})}return i(p,m,h)}:i:function(p,m,h){if(r(p),m=a(m),r(h),t)try{return i(p,m,h)}catch{}if("get"in h||"set"in h)throw s("Accessors not supported");return"value"in h&&(p[m]=h.value),p},r2}var i2,G9;function vm(){if(G9)return i2;G9=1;var e=xs(),t=Hs(),n=k1();return i2=e?function(r,a,s){return t.f(r,a,n(1,s))}:function(r,a,s){return r[a]=s,r},i2}var o2={exports:{}},l2,q9;function q8(){if(q9)return l2;q9=1;var e=xs(),t=vs(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,a=t(n,"name"),s=a&&(function(){}).name==="something",i=a&&(!e||e&&r(n,"name").configurable);return l2={EXISTS:a,PROPER:s,CONFIGURABLE:i},l2}var c2,W9;function TF(){if(W9)return c2;W9=1;var e=kn(),t=zn(),n=z8(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(a){return r(a)}),c2=n.inspectSource,c2}var u2,J9;function SF(){if(J9)return u2;J9=1;var e=dr(),t=zn(),n=e.WeakMap;return u2=t(n)&&/native code/.test(String(n)),u2}var d2,Z9;function W8(){if(Z9)return d2;Z9=1;var e=H8(),t=K8(),n=e("keys");return d2=function(r){return n[r]||(n[r]=t(r))},d2}var Q9,X9;function T1(){return X9||(X9=1,Q9={}),Q9}var f2,Y9;function pd(){if(Y9)return f2;Y9=1;var e=SF(),t=dr(),n=Ta(),r=vm(),a=vs(),s=z8(),i=W8(),l=T1(),c="Object already initialized",u=t.TypeError,f=t.WeakMap,p,m,h,y=function(w){return h(w)?m(w):p(w,{})},x=function(w){return function(v){var g;if(!n(v)||(g=m(v)).type!==w)throw u("Incompatible receiver, "+w+" required");return g}};if(e||s.state){var C=s.state||(s.state=new f);C.get=C.get,C.has=C.has,C.set=C.set,p=function(w,v){if(C.has(w))throw u(c);return v.facade=w,C.set(w,v),v},m=function(w){return C.get(w)||{}},h=function(w){return C.has(w)}}else{var T=i("state");l[T]=!0,p=function(w,v){if(a(w,T))throw u(c);return v.facade=w,r(w,T,v),v},m=function(w){return a(w,T)?w[T]:{}},h=function(w){return a(w,T)}}
84return f2={set:p,get:m,has:h,enforce:y,getterFor:x},f2}var eP;function BF(){if(eP)return o2.exports;eP=1;var e=kn(),t=En(),n=zn(),r=vs(),a=xs(),s=q8().CONFIGURABLE,i=TF(),l=pd(),c=l.enforce,u=l.get,f=String,p=Object.defineProperty,m=e("".slice),h=e("".replace),y=e([].join),x=a&&!t(function(){return p(function(){},"length",{value:8}).length!==8}),C=String(String).split("String"),T=o2.exports=function(w,v,g){m(f(v),0,7)==="Symbol("&&(v="["+h(f(v),/^Symbol\(([^)]*)\)/,"$1")+"]"),g&&g.getter&&(v="get "+v),g&&g.setter&&(v="set "+v),(!r(w,"name")||s&&w.name!==v)&&(a?p(w,"name",{value:v,configurable:!0}):w.name=v),x&&g&&r(g,"arity")&&w.length!==g.arity&&p(w,"length",{value:g.arity});try{g&&r(g,"constructor")&&g.constructor?a&&p(w,"prototype",{writable:!1}):w.prototype&&(w.prototype=void 0)}catch{}var A=c(w);return r(A,"source")||(A.source=y(C,typeof v=="string"?v:"")),w};return Function.prototype.toString=T(function(){return n(this)&&u(this).source||i(this)},"toString"),o2.exports}var p2,tP;function Rc(){if(tP)return p2;tP=1;var e=zn(),t=Hs(),n=BF(),r=$8();return p2=function(a,s,i,l){l||(l={});var c=l.enumerable,u=l.name!==void 0?l.name:s;if(e(i)&&n(i,u,l),l.global)c?a[s]=i:r(s,i);else{try{l.unsafe?a[s]&&(c=!0):delete a[s]}catch{}c?a[s]=i:t.f(a,s,{value:i,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return a},p2}var m2={},h2,nP;function tee(){if(nP)return h2;nP=1;var e=Math.ceil,t=Math.floor;return h2=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},h2}var y2,rP;function S1(){if(rP)return y2;rP=1;var e=tee();return y2=function(t){var n=+t;return n!==n||n===0?0:e(n)},y2}var b2,aP;function _F(){if(aP)return b2;aP=1;var e=S1(),t=Math.max,n=Math.min;return b2=function(r,a){var s=e(r);return s<0?t(s+a,0):n(s,a)},b2}var g2,sP;function J8(){if(sP)return g2;sP=1;var e=S1(),t=Math.min;return g2=function(n){return n>0?t(e(n),9007199254740991):0},g2}var x2,iP;function wm(){if(iP)return x2;iP=1;var e=J8();return x2=function(t){return e(t.length)},x2}var v2,oP;function nee(){if(oP)return v2;oP=1;var e=dd(),t=_F(),n=wm(),r=function(a){return function(s,i,l){var c=e(s),u=n(c),f=t(l,u),p;if(a&&i!=i){for(;u>f;)if(p=c[f++],p!=p)return!0}else for(;u>f;f++)if((a||f in c)&&c[f]===i)return a||f||0;return!a&&-1}};return v2={includes:r(!0),indexOf:r(!1)},v2}var w2,lP;function IF(){if(lP)return w2;lP=1;var e=kn(),t=vs(),n=dd(),r=nee().indexOf,a=T1(),s=e([].push);return w2=function(i,l){var c=n(i),u=0,f=[],p;for(p in c)!t(a,p)&&t(c,p)&&s(f,p);for(;l.length>u;)t(c,p=l[u++])&&(~r(f,p)||s(f,p));return f},w2}var cP,uP;function Z8(){return uP||(uP=1,cP=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),cP}var dP;function Q8(){if(dP)return m2;dP=1;var e=IF(),t=Z8(),n=t.concat("length","prototype");return m2.f=Object.getOwnPropertyNames||function(r){return e(r,n)},m2}var fP={},pP;function NF(){return pP||(pP=1,fP.f=Object.getOwnPropertySymbols),fP}var E2,mP;function ree(){if(mP)return E2;mP=1;var e=A1(),t=kn(),n=Q8(),r=NF(),a=Sa(),s=t([].concat);return E2=e("Reflect","ownKeys")||function(i){var l=n.f(a(i)),c=r.f;return c?s(l,c(i)):l},E2}var k2,hP;function aee(){if(hP)return k2;hP=1;var e=vs(),t=ree(),n=AF(),r=Hs();return k2=function(a,s,i){for(var l=t(s),c=r.f,u=n.f,f=0;f<l.length;f++){var p=l[f];!e(a,p)&&!(i&&e(i,p))&&c(a,p,u(s,p))}},k2}var C2,yP;function RF(){if(yP)return C2;yP=1;var e=En(),t=zn(),n=/#|\.prototype\./,r=function(c,u){var f=s[a(c)];return f==l?!0:f==i?!1:t(u)?e(u):!!u},a=r.normalize=function(c){return String(c).replace(n,".").toLowerCase()},s=r.data={},i=r.NATIVE="N",l=r.POLYFILL="P";return C2=r,C2}var A2,bP;function Vo(){if(bP)return A2;bP=1;var e=dr(),t=AF().f,n=vm(),r=Rc(),a=$8(),s=aee(),i=RF();return A2=function(l,c){var u=l.target,f=l.global,p=l.stat,m,h,y,x,C,T;if(f?h=e:p?h=e[u]||a(u,{}):h=(e[u]||{}).prototype,h)for(y in c){if(C=c[y],l.dontCallGetSet?(T=t(h,y),x=T&&T.value):x=h[y],m=i(f?y:u+(p?".":"#")+y,l.forced),!m&&x!==void 0){if(typeof C==typeof x)continue;s(C,x)}(l.sham||x&&x.sham)&&n(C,"sham",!0),r(h,y,C,l)}},A2}var P2,gP;function X8(){if(gP)return P2;gP=1;var e=Nr(),t=e("toStringTag"),n={};return n[t]="z",P2=String(n)==="[object z]",P2}var T2,xP;function B1(){if(xP)return T2;xP=1;var e=X8(),t=zn(),n=Ko(),r=Nr(),a=r("toStringTag"),s=Object,i=n((function(){return arguments})())=="Arguments",l=function(c,u){try{return c[u]}catch{}};return T2=e?n:function(c){var u,f,p;return c===void 0?"Undefined":c===null?"Null":typeof(f=l(u=s(c),a))=="string"?f:i?n(u):(p=n(u))=="Object"&&t(u.callee)?"Arguments":p},T2}var S2,vP;function Oc(){if(vP)return S2;vP=1;var e=B1(),t=String;return S2=function(n){if(e(n)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return t(n)},S2}var wP,EP;function OF(){return EP||(EP=1,wP=`	
85\v\f\r                 \u2028\u2029\uFEFF`),wP}var B2,kP;function see(){if(kP)return B2;kP=1;var e=kn(),t=ud(),n=Oc(),r=OF(),a=e("".replace),s=RegExp("^["+r+"]+"),i=RegExp("(^|[^"+r+"])["+r+"]+$"),l=function(c){return function(u){var f=n(t(u));return c&1&&(f=a(f,s,"")),c&2&&(f=a(f,i,"$1")),f}};return B2={start:l(1),end:l(2),trim:l(3)},B2}var _2,CP;function iee(){if(CP)return _2;CP=1;var e=dr(),t=En(),n=kn(),r=Oc(),a=see().trim,s=OF(),i=e.parseInt,l=e.Symbol,c=l&&l.iterator,u=/^[+-]?0x/i,f=n(u.exec),p=i(s+"08")!==8||i(s+"0x16")!==22||c&&!t(function(){i(Object(c))});return _2=p?function(m,h){var y=a(r(m));return i(y,h>>>0||(f(u,y)?16:10))}:i,_2}var AP;function oee(){if(AP)return QA;AP=1;var e=Vo(),t=iee();return e({global:!0,forced:parseInt!=t},{parseInt:t}),QA}oee();var PP={},I2,TP;function MF(){if(TP)return I2;TP=1;var e=IF(),t=Z8();return I2=Object.keys||function(n){return e(n,t)},I2}var N2,SP;function lee(){if(SP)return N2;SP=1;var e=xs(),t=kn(),n=Ga(),r=En(),a=MF(),s=NF(),i=xF(),l=fd(),c=C1(),u=Object.assign,f=Object.defineProperty,p=t([].concat);return N2=!u||r(function(){if(e&&u({b:1},u(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var m={},h={},y=Symbol(),x="abcdefghijklmnopqrst";return m[y]=7,x.split("").forEach(function(C){h[C]=C}),u({},m)[y]!=7||a(u({},h)).join("")!=x})?function(m,h){for(var y=l(m),x=arguments.length,C=1,T=s.f,w=i.f;x>C;)for(var v=c(arguments[C++]),g=T?p(a(v),T(v)):a(v),A=g.length,S=0,_;A>S;)_=g[S++],(!e||n(w,v,_))&&(y[_]=v[_]);return y}:u,N2}var BP;function cee(){if(BP)return PP;BP=1;var e=Vo(),t=lee();return e({target:"Object",stat:!0,arity:2,forced:Object.assign!==t},{assign:t}),PP}cee();var _P={},R2,IP;function DF(){if(IP)return R2;IP=1;var e=Ko(),t=kn();return R2=function(n){if(e(n)==="Function")return t(n)},R2}var O2,NP;function FF(){if(NP)return O2;NP=1;var e=DF(),t=gm(),n=E1(),r=e(e.bind);return O2=function(a,s){return t(a),s===void 0?a:n?r(a,s):function(){return a.apply(s,arguments)}},O2}var M2,RP;function uee(){if(RP)return M2;RP=1;var e=Ko();return M2=Array.isArray||function(t){return e(t)=="Array"},M2}var D2,OP;function dee(){if(OP)return D2;OP=1;var e=kn(),t=En(),n=zn(),r=B1(),a=A1(),s=TF(),i=function(){},l=[],c=a("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=e(u.exec),p=!u.exec(i),m=function(y){if(!n(y))return!1;try{return c(i,l,y),!0}catch{return!1}},h=function(y){if(!n(y))return!1;switch(r(y)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(u,s(y))}catch{return!0}};return h.sham=!0,D2=!c||t(function(){var y;return m(m.call)||!m(Object)||!m(function(){y=!0})||y})?h:m,D2}var F2,MP;function fee(){if(MP)return F2;MP=1;var e=uee(),t=dee(),n=Ta(),r=Nr(),a=r("species"),s=Array;return F2=function(i){var l;return e(i)&&(l=i.constructor,t(l)&&(l===s||e(l.prototype))?l=void 0:n(l)&&(l=l[a],l===null&&(l=void 0))),l===void 0?s:l},F2}var U2,DP;function pee(){if(DP)return U2;DP=1;var e=fee();return U2=function(t,n){return new(e(t))(n===0?0:n)},U2}var j2,FP;function UF(){if(FP)return j2;FP=1;var e=FF(),t=kn(),n=C1(),r=fd(),a=wm(),s=pee(),i=t([].push),l=function(c){var u=c==1,f=c==2,p=c==3,m=c==4,h=c==6,y=c==7,x=c==5||h;return function(C,T,w,v){for(var g=r(C),A=n(g),S=e(T,w),_=a(A),k=0,R=v||s,D=u?R(C,_):f||y?R(C,0):void 0,B,M;_>k;k++)if((x||k in A)&&(B=A[k],M=S(B,k,g),c))if(u)D[k]=M;else if(M)switch(c){case 3:return!0;case 5:return B;case 6:return k;case 2:i(D,B)}else switch(c){case 4:return!1;case 7:i(D,B)}return h?-1:p||m?m:D}};return j2={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)},j2}var L2,UP;function mee(){if(UP)return L2;UP=1;var e=En(),t=Nr(),n=j8(),r=t("species");return L2=function(a){return n>=51||!e(function(){var s=[],i=s.constructor={};return i[r]=function(){return{foo:1}
85},s[a](Boolean).foo!==1})},L2}var jP;function hee(){if(jP)return _P;jP=1;var e=Vo(),t=UF().filter,n=mee(),r=n("filter");return e({target:"Array",proto:!0,forced:!r},{filter:function(a){return t(this,a,arguments.length>1?arguments[1]:void 0)}}),_P}hee();var LP={},$2,$P;function yee(){if($P)return $2;$P=1;var e=X8(),t=B1();return $2=e?{}.toString:function(){return"[object "+t(this)+"]"},$2}var zP;function bee(){if(zP)return LP;zP=1;var e=X8(),t=Rc(),n=yee();return e||t(Object.prototype,"toString",n,{unsafe:!0}),LP}bee();var z2={},HP;function gee(){if(HP)return z2;HP=1;var e=xs(),t=PF(),n=Hs(),r=Sa(),a=dd(),s=MF();return z2.f=e&&!t?Object.defineProperties:function(i,l){r(i);for(var c=a(l),u=s(l),f=u.length,p=0,m;f>p;)n.f(i,m=u[p++],c[m]);return i},z2}var H2,KP;function xee(){if(KP)return H2;KP=1;var e=A1();return H2=e("document","documentElement"),H2}var K2,VP;function _1(){if(VP)return K2;VP=1;var e=Sa(),t=gee(),n=Z8(),r=T1(),a=xee(),s=G8(),i=W8(),l=">",c="<",u="prototype",f="script",p=i("IE_PROTO"),m=function(){},h=function(w){return c+f+l+w+c+"/"+f+l},y=function(w){w.write(h("")),w.close();var v=w.parentWindow.Object;return w=null,v},x=function(){var w=s("iframe"),v="java"+f+":",g;return w.style.display="none",a.appendChild(w),w.src=String(v),g=w.contentWindow.document,g.open(),g.write(h("document.F=Object")),g.close(),g.F},C,T=function(){try{C=new ActiveXObject("htmlfile")}catch{}T=typeof document<"u"?document.domain&&C?y(C):x():y(C);for(var w=n.length;w--;)delete T[u][n[w]];return T()};return r[p]=!0,K2=Object.create||function(w,v){var g;return w!==null?(m[u]=e(w),g=new m,m[u]=null,g[p]=w):g=T(),v===void 0?g:t.f(g,v)},K2}var V2,GP;function vee(){if(GP)return V2;GP=1;var e=Nr(),t=_1(),n=Hs().f,r=e("unscopables"),a=Array.prototype;return a[r]==null&&n(a,r,{configurable:!0,value:t(null)}),V2=function(s){a[r][s]=!0},V2}var qP,WP;function Em(){return WP||(WP=1,qP={}),qP}var G2,JP;function wee(){if(JP)return G2;JP=1;var e=En();return G2=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),G2}var q2,ZP;function jF(){if(ZP)return q2;ZP=1;var e=vs(),t=zn(),n=fd(),r=W8(),a=wee(),s=r("IE_PROTO"),i=Object,l=i.prototype;return q2=a?i.getPrototypeOf:function(c){var u=n(c);if(e(u,s))return u[s];var f=u.constructor;return t(f)&&u instanceof f?f.prototype:u instanceof i?l:null},q2}var W2,QP;function LF(){if(QP)return W2;QP=1;var e=En(),t=zn(),n=Ta(),r=_1(),a=jF(),s=Rc(),i=Nr(),l=P1(),c=i("iterator"),u=!1,f,p,m;[].keys&&(m=[].keys(),"next"in m?(p=a(a(m)),p!==Object.prototype&&(f=p)):u=!0);var h=!n(f)||e(function(){var y={};return f[c].call(y)!==y});return h?f={}:l&&(f=r(f)),t(f[c])||s(f,c,function(){return this}),W2={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:u},W2}var J2,XP;function Y8(){if(XP)return J2;XP=1;var e=Hs().f,t=vs(),n=Nr(),r=n("toStringTag");return J2=function(a,s,i){a&&!i&&(a=a.prototype),a&&!t(a,r)&&e(a,r,{configurable:!0,value:s})},J2}var Z2,YP;function Eee(){if(YP)return Z2;YP=1;var e=LF().IteratorPrototype,t=_1(),n=k1(),r=Y8(),a=Em(),s=function(){return this};return Z2=function(i,l,c,u){var f=l+" Iterator";return i.prototype=t(e,{next:n(+!u,c)}),r(i,f,!1,!0),a[f]=s,i},Z2}var Q2,eT;function kee(){if(eT)return Q2;eT=1;var e=kn(),t=gm();return Q2=function(n,r,a){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[a]))}catch{}},Q2}var X2,tT;function Cee(){if(tT)return X2;tT=1;var e=zn(),t=String,n=TypeError;return X2=function(r){if(typeof r=="object"||e(r))return r;throw n("Can't set "+t(r)+" as a prototype")},X2}var Y2,nT;function $F(){if(nT)return Y2;nT=1;var e=kee(),t=Sa(),n=Cee();return Y2=Object.setPrototypeOf||("__proto__"in{}?(function(){var r=!1,a={},s;try{s=e(Object.prototype,"__proto__","set"),s(a,[]),r=a instanceof Array}catch{}return function(i,l){return t(i),n(l),r?s(i,l):i.__proto__=l,i}})():void 0),Y2}var e6,rT;function zF(){if(rT)return e6;rT=1;var e=Vo(),t=Ga(),n=P1(),r=q8(),a=zn(),s=Eee(),i=jF(),l=$F(),c=Y8(),u=vm(),f=Rc(),p=Nr(),m=Em(),h=LF(),y=r.PROPER,x=r.CONFIGURABLE,C=h.IteratorPrototype,T=h.BUGGY_SAFARI_ITERATORS,w=p("iterator"),v="keys",g="values",A="entries",S=function(){return this};return e6=function(_,k,R,D,B,M,E){s(R,k,D);var N=function(ee){if(ee===B&&V)return V;if(!T&&ee in z)return z[ee];switch(ee){case v:return function(){return new R(this,ee)};case g:return function(){return new R(this,ee)};case A:return function(){return new R(this,ee)}}return function(){return new R(this)}},I=k+" Iterator",F=!1,z=_.prototype,U=z[w]||z["@@iterator"]||B&&z[B],V=!T&&U||N(B),$=k=="Array"&&z.entries||U,O,H,Z;if($&&(O=i($.call(new _)),O!==Object.prototype&&O.next&&(!n&&i(O)!==C&&(l?l(O,C):a(O[w])||f(O,w,S)),c(O,I,!0,!0),n&&(m[I]=S))),y&&B==g&&U&&U.name!==g&&(!n&&x?u(z,"name",g):(F=!0,V=function(){return t(U,this)})),B)if(H={values:N(g),keys:M?V:N(v),entries:N(A)},E)for(Z in H)(T||F||!(Z in z))&&f(z,Z,H[Z]);else e({target:k,proto:!0,forced:T||F},H);return(!n||E)&&z[w]!==V&&f(z,w,V,{name:B}),m[k]=V,H},e6}var aT,sT;function HF(){return sT||(sT=1,aT=function(e,t){return{value:e,done:t}}),aT}var t6,iT;function KF(){if(iT)return t6;iT=1;var e=dd(),t=vee(),n=Em(),r=pd(),a=Hs().f,s=zF(),i=HF(),l=P1(),c=xs(),u="Array Iterator",f=r.set,p=r.getterFor(u);t6=s(Array,"Array",function(h,y){f(this,{type:u,target:e(h),index:0,kind:y})},function(){var h=p(this),y=h.target,x=h.kind,C=h.index++;return!y||C>=y.length?(h.target=void 0,i(void 0,!0)):x=="keys"?i(C,!1):x=="values"?i(y[C],!1):i([C,y[C]],!1)},"values");var m=n.Arguments=n.Array;
85if(t("keys"),t("values"),t("entries"),!l&&c&&m.name!=="values")try{a(m,"name",{value:"values"})}catch{}return t6}KF();var oT={},n6,lT;function VF(){if(lT)return n6;lT=1;var e=kn(),t=S1(),n=Oc(),r=ud(),a=e("".charAt),s=e("".charCodeAt),i=e("".slice),l=function(c){return function(u,f){var p=n(r(u)),m=t(f),h=p.length,y,x;return m<0||m>=h?c?"":void 0:(y=s(p,m),y<55296||y>56319||m+1===h||(x=s(p,m+1))<56320||x>57343?c?a(p,m):y:c?i(p,m,m+2):(y-55296<<10)+(x-56320)+65536)}};return n6={codeAt:l(!1),charAt:l(!0)},n6}var cT;function Aee(){if(cT)return oT;cT=1;var e=VF().charAt,t=Oc(),n=pd(),r=zF(),a=HF(),s="String Iterator",i=n.set,l=n.getterFor(s);return r(String,"String",function(c){i(this,{type:s,string:t(c),index:0})},function(){var c=l(this),u=c.string,f=c.index,p;return f>=u.length?a(void 0,!0):(p=e(u,f),c.index+=p.length,a(p,!1))}),oT}Aee();var Pee={},uT={},r6,dT;function GF(){if(dT)return r6;dT=1;var e=En();return r6=!e(function(){return Object.isExtensible(Object.preventExtensions({}))}),r6}var a6,fT;function qF(){if(fT)return a6;fT=1;var e=Rc();return a6=function(t,n,r){for(var a in n)e(t,a,n[a],r);return t},a6}var s6={exports:{}},i6={},o6,pT;function Tee(){if(pT)return o6;pT=1;var e=V8(),t=Hs(),n=k1();return o6=function(r,a,s){var i=e(a);i in r?t.f(r,i,n(0,s)):r[i]=s},o6}var l6,mT;function See(){if(mT)return l6;mT=1;var e=_F(),t=wm(),n=Tee(),r=Array,a=Math.max;return l6=function(s,i,l){for(var c=t(s),u=e(i,c),f=e(l===void 0?c:l,c),p=r(a(f-u,0)),m=0;u<f;u++,m++)n(p,m,s[u]);return p.length=m,p},l6}var hT;function Bee(){if(hT)return i6;hT=1;var e=Ko(),t=dd(),n=Q8().f,r=See(),a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(i){try{return n(i)}catch{return r(a)}};return i6.f=function(i){return a&&e(i)=="Window"?s(i):n(t(i))},i6}var c6,yT;function _ee(){if(yT)return c6;yT=1;var e=En();return c6=e(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),c6}var u6,bT;function Iee(){if(bT)return u6;bT=1;var e=En(),t=Ta(),n=Ko(),r=_ee(),a=Object.isExtensible,s=e(function(){});return u6=s||r?function(i){return!t(i)||r&&n(i)=="ArrayBuffer"?!1:a?a(i):!0}:a,u6}var gT;function eE(){if(gT)return s6.exports;gT=1;var e=Vo(),t=kn(),n=T1(),r=Ta(),a=vs(),s=Hs().f,i=Q8(),l=Bee(),c=Iee(),u=K8(),f=GF(),p=!1,m=u("meta"),h=0,y=function(g){s(g,m,{value:{objectID:"O"+h++,weakData:{}}})},x=function(g,A){if(!r(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!a(g,m)){if(!c(g))return"F";if(!A)return"E";y(g)}return g[m].objectID},C=function(g,A){if(!a(g,m)){if(!c(g))return!0;if(!A)return!1;y(g)}return g[m].weakData},T=function(g){return f&&p&&c(g)&&!a(g,m)&&y(g),g},w=function(){v.enable=function(){},p=!0;var g=i.f,A=t([].splice),S={};S[m]=1,g(S).length&&(i.f=function(_){for(var k=g(_),R=0,D=k.length;R<D;R++)if(k[R]===m){A(k,R,1);break}return k},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},v=s6.exports={enable:w,fastKey:x,getWeakData:C,onFreeze:T};return n[m]=!0,s6.exports}var d6,xT;function Nee(){if(xT)return d6;xT=1;var e=Nr(),t=Em(),n=e("iterator"),r=Array.prototype;return d6=function(a){return a!==void 0&&(t.Array===a||r[n]===a)},d6}var f6,vT;function WF(){if(vT)return f6;vT=1;var e=B1(),t=xm(),n=Nc(),r=Em(),a=Nr(),s=a("iterator");return f6=function(i){if(!n(i))return t(i,s)||t(i,"@@iterator")||r[e(i)]},f6}var p6,wT;function Ree(){if(wT)return p6;wT=1;var e=Ga(),t=gm(),n=Sa(),r=L8(),a=WF(),s=TypeError;return p6=function(i,l){var c=arguments.length<2?a(i):l;if(t(c))return n(e(c,i));throw s(r(i)+" is not iterable")},p6}var m6,ET;function Oee(){if(ET)return m6;ET=1;var e=Ga(),t=Sa(),n=xm();return m6=function(r,a,s){var i,l;t(r);try{if(i=n(r,"return"),!i){if(a==="throw")throw s;return s}i=e(i,r)}catch(c){l=!0,i=c}if(a==="throw")throw s;if(l)throw i;return t(i),s},m6}var h6,kT;function JF(){if(kT)return h6;kT=1;var e=FF(),t=Ga(),n=Sa(),r=L8(),a=Nee(),s=wm(),i=U8(),l=Ree(),c=WF(),u=Oee(),f=TypeError,p=function(h,y){this.stopped=h,this.result=y},m=p.prototype;return h6=function(h,y,x){var C=x&&x.that,T=!!(x&&x.AS_ENTRIES),w=!!(x&&x.IS_RECORD),v=!!(x&&x.IS_ITERATOR),g=!!(x&&x.INTERRUPTED),A=e(y,C),S,_,k,R,D,B,M,E=function(I){return S&&u(S,"normal",I),new p(!0,I)},N=function(I){return T?(n(I),g?A(I[0],I[1],E):A(I[0],I[1])):g?A(I,E):A(I)};if(w)S=h.iterator;else if(v)S=h;else{if(_=c(h),!_)throw f(r(h)+" is not iterable");if(a(_)){for(k=0,R=s(h);R>k;k++)if(D=N(h[k]),D&&i(m,D))return D;return new p(!1)}S=l(h,_)}for(B=w?h.next:S.next;!(M=t(B,S)).done;){try{D=N(M.value)}catch(I){u(S,"throw",I)}if(typeof D=="object"&&D&&i(m,D))return D}return new p(!1)},h6}var y6,CT;function ZF(){if(CT)return y6;CT=1;var e=U8(),t=TypeError;return y6=function(n,r){if(e(r,n))return n;throw t("Incorrect invocation")},y6}var b6,AT;function Mee(){if(AT)return b6;AT=1;var e=Nr(),t=e("iterator"),n=!1;try{var r=0,a={next:function(){return{done:!!r++}},return:function(){n=!0}};a[t]=function(){return this},Array.from(a,function(){throw 2})}catch{}
vendor: 4,133 bytes, line 85
85return b6=function(s,i){if(!i&&!n)return!1;var l=!1;try{var c={};c[t]=function(){return{next:function(){return{done:l=!0}}}},s(c)}catch{}return l},b6}var g6,PT;function Dee(){if(PT)return g6;PT=1;var e=zn(),t=Ta(),n=$F();return g6=function(r,a,s){var i,l;return n&&e(i=a.constructor)&&i!==s&&t(l=i.prototype)&&l!==s.prototype&&n(r,l),r},g6}var x6,TT;function Fee(){if(TT)return x6;TT=1;var e=Vo(),t=dr(),n=kn(),r=RF(),a=Rc(),s=eE(),i=JF(),l=ZF(),c=zn(),u=Nc(),f=Ta(),p=En(),m=Mee(),h=Y8(),y=Dee();return x6=function(x,C,T){var w=x.indexOf("Map")!==-1,v=x.indexOf("Weak")!==-1,g=w?"set":"add",A=t[x],S=A&&A.prototype,_=A,k={},R=function(F){var z=n(S[F]);a(S,F,F=="add"?function(U){return z(this,U===0?0:U),this}:F=="delete"?function(U){return v&&!f(U)?!1:z(this,U===0?0:U)}:F=="get"?function(U){return v&&!f(U)?void 0:z(this,U===0?0:U)}:F=="has"?function(U){return v&&!f(U)?!1:z(this,U===0?0:U)}:function(U,V){return z(this,U===0?0:U,V),this})},D=r(x,!c(A)||!(v||S.forEach&&!p(function(){new A().entries().next()})));if(D)_=T.getConstructor(C,x,w,g),s.enable();else if(r(x,!0)){var B=new _,M=B[g](v?{}:-0,1)!=B,E=p(function(){B.has(1)}),N=m(function(F){new A(F)}),I=!v&&p(function(){for(var F=new A,z=5;z--;)F[g](z,z);return!F.has(-0)});N||(_=C(function(F,z){l(F,S);var U=y(new A,F,_);return u(z)||i(z,U[g],{that:U,AS_ENTRIES:w}),U}),_.prototype=S,S.constructor=_),(E||I)&&(R("delete"),R("has"),w&&R("get")),(I||M)&&R(g),v&&S.clear&&delete S.clear}return k[x]=_,e({global:!0,constructor:!0,forced:_!=A},k),h(_,x),v||T.setStrong(_,x,w),_},x6}var v6,ST;function Uee(){if(ST)return v6;ST=1;var e=kn(),t=qF(),n=eE().getWeakData,r=ZF(),a=Sa(),s=Nc(),i=Ta(),l=JF(),c=UF(),u=vs(),f=pd(),p=f.set,m=f.getterFor,h=c.find,y=c.findIndex,x=e([].splice),C=0,T=function(g){return g.frozen||(g.frozen=new w)},w=function(){this.entries=[]},v=function(g,A){return h(g.entries,function(S){return S[0]===A})};return w.prototype={get:function(g){var A=v(this,g);if(A)return A[1]},has:function(g){return!!v(this,g)},set:function(g,A){var S=v(this,g);S?S[1]=A:this.entries.push([g,A])},delete:function(g){var A=y(this.entries,function(S){return S[0]===g});return~A&&x(this.entries,A,1),!!~A}},v6={getConstructor:function(g,A,S,_){var k=g(function(M,E){r(M,R),p(M,{type:A,id:C++,frozen:void 0}),s(E)||l(E,M[_],{that:M,AS_ENTRIES:S})}),R=k.prototype,D=m(A),B=function(M,E,N){var I=D(M),F=n(a(E),!0);return F===!0?T(I).set(E,N):F[I.id]=N,M};return t(R,{delete:function(M){var E=D(this);if(!i(M))return!1;var N=n(M);return N===!0?T(E).delete(M):N&&u(N,E.id)&&delete N[E.id]},has:function(M){var E=D(this);if(!i(M))return!1;var N=n(M);return N===!0?T(E).has(M):N&&u(N,E.id)}}),t(R,S?{get:function(M){var E=D(this);if(i(M)){var N=n(M);return N===!0?T(E).get(M):N?N[E.id]:void 0}},set:function(M,E){return B(this,M,E)}}:{add:function(M){return B(this,M,!0)}}),k}},v6}var BT;function jee(){if(BT)return uT;BT=1;var e=GF(),t=dr(),n=kn(),r=qF(),a=eE(),s=Fee(),i=Uee(),l=Ta(),c=pd().enforce,u=En(),f=SF(),p=Object,m=Array.isArray,h=p.isExtensible,y=p.isFrozen,x=p.isSealed,C=p.freeze,T=p.seal,w={},v={},g=!t.ActiveXObject&&"ActiveXObject"in t,A,S=function(N){return function(){return N(this,arguments.length?arguments[0]:void 0)}},_=s("WeakMap",S,i),k=_.prototype,R=n(k.set),D=function(){return e&&u(function(){var N=C([]);return R(new _,N,1),!y(N)})};if(f)if(g){A=i.getConstructor(S,"WeakMap",!0),a.enable();var B=n(k.delete),M=n(k.has),E=n(k.get);r(k,{delete:function(N){if(l(N)&&!h(N)){var I=c(this);return I.frozen||(I.frozen=new A),B(this,N)||I.frozen.delete(N)}return B(this,N)},has:function(N){if(l(N)&&!h(N)){var I=c(this);return I.frozen||(I.frozen=new A),M(this,N)||I.frozen.has(N)}return M(this,N)},get:function(N){if(l(N)&&!h(N)){var I=c(this);return I.frozen||(I.frozen=new A),M(this,N)?E(this,N):I.frozen.get(N)}return E(this,N)},set:function(N,I){if(l(N)&&!h(N)){var F=c(this);F.frozen||(F.frozen=new A),M(this,N)?R(this,N,I):F.frozen.set(N,I)}else R(this,N,I);return this}})}else D()&&r(k,{set:function(N,I){var F;return m(N)&&(y(N)?F=w:x(N)&&(F=v)),R(this,N,I),F==w&&C(N),F==v&&T(N),this}});return uT}var _T;function Lee(){return _T||(_T=1,jee()),Pee}
85Lee();var IT={},NT,RT;function $ee(){return RT||(RT=1,NT={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),NT}var w6,OT;function zee(){if(OT)return w6;OT=1;var e=G8(),t=e("span").classList,n=t&&t.constructor&&t.constructor.prototype;return w6=n===Object.prototype?void 0:n,w6}var MT;function Hee(){if(MT)return IT;MT=1;var e=dr(),t=$ee(),n=zee(),r=KF(),a=vm(),s=Nr(),i=s("iterator"),l=s("toStringTag"),c=r.values,u=function(p,m){if(p){if(p[i]!==c)try{a(p,i,c)}catch{p[i]=c}if(p[l]||a(p,l,m),t[m]){for(var h in r)if(p[h]!==r[h])try{a(p,h,r[h])}catch{p[h]=r[h]}}}};for(var f in t)u(e[f]&&e[f].prototype,f);return u(n,"DOMTokenList"),IT}Hee();var E6,DT;function Kee(){if(DT)return E6;DT=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,i=/^0o[0-7]+$/i,l=parseInt,c=typeof Yr=="object"&&Yr&&Yr.Object===Object&&Yr,u=typeof self=="object"&&self&&self.Object===Object&&self,f=c||u||Function("return this")(),p=Object.prototype,m=p.toString,h=Math.max,y=Math.min,x=function(){return f.Date.now()};function C(S,_,k){var R,D,B,M,E,N,I=0,F=!1,z=!1,U=!0;if(typeof S!="function")throw new TypeError(e);_=A(_)||0,w(k)&&(F=!!k.leading,z="maxWait"in k,B=z?h(A(k.maxWait)||0,_):B,U="trailing"in k?!!k.trailing:U);function V(le){var xe=R,he=D;return R=D=void 0,I=le,M=S.apply(he,xe),M}function $(le){return I=le,E=setTimeout(Z,_),F?V(le):M}function O(le){var xe=le-N,he=le-I,De=_-xe;return z?y(De,B-he):De}function H(le){var xe=le-N,he=le-I;return N===void 0||xe>=_||xe<0||z&&he>=B}function Z(){var le=x();if(H(le))return ee(le);E=setTimeout(Z,O(le))}function ee(le){return E=void 0,U&&R?V(le):(R=D=void 0,M)}function ae(){E!==void 0&&clearTimeout(E),I=0,R=N=D=E=void 0}function ie(){return E===void 0?M:ee(x())}function fe(){var le=x(),xe=H(le);if(R=arguments,D=this,N=le,xe){if(E===void 0)return $(N);if(z)return E=setTimeout(Z,_),V(N)}return E===void 0&&(E=setTimeout(Z,_)),M}return fe.cancel=ae,fe.flush=ie,fe}function T(S,_,k){var R=!0,D=!0;if(typeof S!="function")throw new TypeError(e);return w(k)&&(R="leading"in k?!!k.leading:R,D="trailing"in k?!!k.trailing:D),C(S,_,{leading:R,maxWait:_,trailing:D})}function w(S){var _=typeof S;return!!S&&(_=="object"||_=="function")}function v(S){return!!S&&typeof S=="object"}function g(S){return typeof S=="symbol"||v(S)&&m.call(S)==n}function A(S){if(typeof S=="number")return S;if(g(S))return t;if(w(S)){var _=typeof S.valueOf=="function"?S.valueOf():S;S=w(_)?_+"":_}if(typeof S!="string")return S===0?S:+S;S=S.replace(r,"");var k=s.test(S);return k||i.test(S)?l(S.slice(2),k?2:8):a.test(S)?t:+S}return E6=T,E6}var Vee=Kee();const FT=bm(Vee);var k6,UT;function Gee(){if(UT)return k6;UT=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,i=/^0o[0-7]+$/i,l=parseInt,c=typeof Yr=="object"&&Yr&&Yr.Object===Object&&Yr,u=typeof self=="object"&&self&&self.Object===Object&&self,f=c||u||Function("return this")(),p=Object.prototype,m=p.toString,h=Math.max,y=Math.min,x=function(){return f.Date.now()};function C(A,S,_){var k,R,D,B,M,E,N=0,I=!1,F=!1,z=!0;if(typeof A!="function")throw new TypeError(e);S=g(S)||0,T(_)&&(I=!!_.leading,F="maxWait"in _,D=F?h(g(_.maxWait)||0,S):D,z="trailing"in _?!!_.trailing:z);function U(fe){var le=k,xe=R;return k=R=void 0,N=fe,B=A.apply(xe,le),B}function V(fe){return N=fe,M=setTimeout(H,S),I?U(fe):B}function $(fe){var le=fe-E,xe=fe-N,he=S-le;return F?y(he,D-xe):he}function O(fe){var le=fe-E,xe=fe-N;return E===void 0||le>=S||le<0||F&&xe>=D}function H(){var fe=x();if(O(fe))return Z(fe);M=setTimeout(H,$(fe))}function Z(fe){return M=void 0,z&&k?U(fe):(k=R=void 0,B)}
85function ee(){M!==void 0&&clearTimeout(M),N=0,k=E=R=M=void 0}function ae(){return M===void 0?B:Z(x())}function ie(){var fe=x(),le=O(fe);if(k=arguments,R=this,E=fe,le){if(M===void 0)return V(E);if(F)return M=setTimeout(H,S),U(E)}return M===void 0&&(M=setTimeout(H,S)),B}return ie.cancel=ee,ie.flush=ae,ie}function T(A){var S=typeof A;return!!A&&(S=="object"||S=="function")}function w(A){return!!A&&typeof A=="object"}function v(A){return typeof A=="symbol"||w(A)&&m.call(A)==n}function g(A){if(typeof A=="number")return A;if(v(A))return t;if(T(A)){var S=typeof A.valueOf=="function"?A.valueOf():A;A=T(S)?S+"":S}if(typeof A!="string")return A===0?A:+A;A=A.replace(r,"");var _=s.test(A);return _||i.test(A)?l(A.slice(2),_?2:8):a.test(A)?t:+A}return k6=C,k6}var qee=Gee();const jT=bm(qee);var C6,LT;function Wee(){if(LT)return C6;LT=1;var e="Expected a function",t="__lodash_hash_undefined__",n="[object Function]",r="[object GeneratorFunction]",a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,i=typeof Yr=="object"&&Yr&&Yr.Object===Object&&Yr,l=typeof self=="object"&&self&&self.Object===Object&&self,c=i||l||Function("return this")();function u(Y,re){return Y==null?void 0:Y[re]}function f(Y){var re=!1;if(Y!=null&&typeof Y.toString!="function")try{re=!!(Y+"")}catch{}return re}var p=Array.prototype,m=Function.prototype,h=Object.prototype,y=c["__core-js_shared__"],x=(function(){var Y=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return Y?"Symbol(src)_1."+Y:""})(),C=m.toString,T=h.hasOwnProperty,w=h.toString,v=RegExp("^"+C.call(T).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g=p.splice,A=le(c,"Map"),S=le(Object,"create");function _(Y){var re=-1,ce=Y?Y.length:0;for(this.clear();++re<ce;){var Me=Y[re];this.set(Me[0],Me[1])}}function k(){this.__data__=S?S(null):{}}function R(Y){return this.has(Y)&&delete this.__data__[Y]}function D(Y){var re=this.__data__;if(S){var ce=re[Y];return ce===t?void 0:ce}return T.call(re,Y)?re[Y]:void 0}function B(Y){var re=this.__data__;return S?re[Y]!==void 0:T.call(re,Y)}function M(Y,re){var ce=this.__data__;return ce[Y]=S&&re===void 0?t:re,this}_.prototype.clear=k,_.prototype.delete=R,_.prototype.get=D,_.prototype.has=B,_.prototype.set=M;function E(Y){var re=-1,ce=Y?Y.length:0;for(this.clear();++re<ce;){var Me=Y[re];this.set(Me[0],Me[1])}}function N(){this.__data__=[]}function I(Y){var re=this.__data__,ce=ae(re,Y);if(ce<0)return!1;var Me=re.length-1;return ce==Me?re.pop():g.call(re,ce,1),!0}function F(Y){var re=this.__data__,ce=ae(re,Y);return ce<0?void 0:re[ce][1]}function z(Y){return ae(this.__data__,Y)>-1}function U(Y,re){var ce=this.__data__,Me=ae(ce,Y);return Me<0?ce.push([Y,re]):ce[Me][1]=re,this}E.prototype.clear=N,E.prototype.delete=I,E.prototype.get=F,E.prototype.has=z,E.prototype.set=U;function V(Y){var re=-1,ce=Y?Y.length:0;for(this.clear();++re<ce;){var Me=Y[re];this.set(Me[0],Me[1])}}function $(){this.__data__={hash:new _,map:new(A||E),string:new _}}function O(Y){return fe(this,Y).delete(Y)}function H(Y){return fe(this,Y).get(Y)}function Z(Y){return fe(this,Y).has(Y)}function ee(Y,re){return fe(this,Y).set(Y,re),this}V.prototype.clear=$,V.prototype.delete=O,V.prototype.get=H,V.prototype.has=Z,V.prototype.set=ee;function ae(Y,re){for(var ce=Y.length;ce--;)if(ke(Y[ce][0],re))return ce;return-1}function ie(Y){if(!J(Y)||he(Y))return!1;var re=ge(Y)||f(Y)?v:s;return re.test(De(Y))}function fe(Y,re){var ce=Y.__data__;return xe(re)?ce[typeof re=="string"?"string":"hash"]:ce.map}function le(Y,re){var ce=u(Y,re);return ie(ce)?ce:void 0}function xe(Y){var re=typeof Y;return re=="string"||re=="number"||re=="symbol"||re=="boolean"?Y!=="__proto__":Y===null}function he(Y){return!!x&&x in Y}function De(Y){if(Y!=null){try{return C.call(Y)}catch{}try{return Y+""}catch{}}return""}function Se(Y,re){if(typeof Y!="function"||re&&typeof re!="function")throw new TypeError(e);var ce=function(){var Me=arguments,Ze=re?re.apply(this,Me):Me[0],ue=ce.cache;if(ue.has(Ze))return ue.get(Ze);var Q=Y.apply(this,Me);return ce.cache=ue.set(Ze,Q),Q};return ce.cache=new(Se.Cache||V),ce}Se.Cache=V;function ke(Y,re){return Y===re||Y!==Y&&re!==re}
vendor: 4,315 bytes, line 85
85function ge(Y){var re=J(Y)?w.call(Y):"";return re==n||re==r}function J(Y){var re=typeof Y;return!!Y&&(re=="object"||re=="function")}return C6=Se,C6}var Jee=Wee();const Zee=bm(Jee);var oc=[],Qee=function(){return oc.some(function(e){return e.activeTargets.length>0})},Xee=function(){return oc.some(function(e){return e.skippedTargets.length>0})},$T="ResizeObserver loop completed with undelivered notifications.",Yee=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:$T}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=$T),window.dispatchEvent(e)},B0;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(B0||(B0={}));var lc=function(e){return Object.freeze(e)},ete=(function(){function e(t,n){this.inlineSize=t,this.blockSize=n,lc(this)}return e})(),QF=(function(){function e(t,n,r,a){return this.x=t,this.y=n,this.width=r,this.height=a,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,lc(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,a=t.top,s=t.right,i=t.bottom,l=t.left,c=t.width,u=t.height;return{x:n,y:r,top:a,right:s,bottom:i,left:l,width:c,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),tE=function(e){return e instanceof SVGElement&&"getBBox"in e},XF=function(e){if(tE(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var a=e,s=a.offsetWidth,i=a.offsetHeight;return!(s||i||e.getClientRects().length)},zT=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},tte=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},g0=typeof window<"u"?window:{},py=new WeakMap,HT=/auto|scroll/,nte=/^tb|vertical/,rte=/msie|trident/i.test(g0.navigator&&g0.navigator.userAgent),Is=function(e){return parseFloat(e||"0")},Du=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new ete((n?t:e)||0,(n?e:t)||0)},KT=lc({devicePixelContentBoxSize:Du(),borderBoxSize:Du(),contentBoxSize:Du(),contentRect:new QF(0,0,0,0)}),YF=function(e,t){if(t===void 0&&(t=!1),py.has(e)&&!t)return py.get(e);if(XF(e))return py.set(e,KT),KT;var n=getComputedStyle(e),r=tE(e)&&e.ownerSVGElement&&e.getBBox(),a=!rte&&n.boxSizing==="border-box",s=nte.test(n.writingMode||""),i=!r&&HT.test(n.overflowY||""),l=!r&&HT.test(n.overflowX||""),c=r?0:Is(n.paddingTop),u=r?0:Is(n.paddingRight),f=r?0:Is(n.paddingBottom),p=r?0:Is(n.paddingLeft),m=r?0:Is(n.borderTopWidth),h=r?0:Is(n.borderRightWidth),y=r?0:Is(n.borderBottomWidth),x=r?0:Is(n.borderLeftWidth),C=p+u,T=c+f,w=x+h,v=m+y,g=l?e.offsetHeight-v-e.clientHeight:0,A=i?e.offsetWidth-w-e.clientWidth:0,S=a?C+w:0,_=a?T+v:0,k=r?r.width:Is(n.width)-S-A,R=r?r.height:Is(n.height)-_-g,D=k+C+A+w,B=R+T+g+v,M=lc({devicePixelContentBoxSize:Du(Math.round(k*devicePixelRatio),Math.round(R*devicePixelRatio),s),borderBoxSize:Du(D,B,s),contentBoxSize:Du(k,R,s),contentRect:new QF(p,c,k,R)});return py.set(e,M),M},eU=function(e,t,n){var r=YF(e,n),a=r.borderBoxSize,s=r.contentBoxSize,i=r.devicePixelContentBoxSize;switch(t){case B0.DEVICE_PIXEL_CONTENT_BOX:return i;case B0.BORDER_BOX:return a;default:return s}},ate=(function(){function e(t){var n=YF(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=lc([n.borderBoxSize]),this.contentBoxSize=lc([n.contentBoxSize]),this.devicePixelContentBoxSize=lc([n.devicePixelContentBoxSize])}return e})(),tU=function(e){if(XF(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ste=function(){var e=1/0,t=[];oc.forEach(function(s){if(s.activeTargets.length!==0){var i=[];s.activeTargets.forEach(function(l){var c=new ate(l.target),u=tU(l.target);i.push(c),l.lastReportedSize=eU(l.target,l.observedBox),u<e&&(e=u)}),t.push(function(){s.callback.call(s.observer,i,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var a=r[n];a()}return e},VT=function(e){oc.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEac
85h(function(n){n.isActive()&&(tU(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},ite=function(){var e=0;for(VT(e);Qee();)e=ste(),VT(e);return Xee()&&Yee(),e>0},A6,nU=[],ote=function(){return nU.splice(0).forEach(function(e){return e()})},lte=function(e){if(!A6){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return ote()}).observe(n,r),A6=function(){n.textContent="".concat(t?t--:t++)}}nU.push(e),A6()},cte=function(e){lte(function(){requestAnimationFrame(e)})},cb=0,ute=function(){return!!cb},dte=250,fte={attributes:!0,characterData:!0,childList:!0,subtree:!0},GT=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],qT=function(e){return e===void 0&&(e=0),Date.now()+e},P6=!1,pte=(function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=dte),!P6){P6=!0;var r=qT(t);cte(function(){var a=!1;try{a=ite()}finally{if(P6=!1,t=r-qT(),!ute())return;a?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,fte)};document.body?n():g0.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),GT.forEach(function(n){return g0.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),GT.forEach(function(n){return g0.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e})(),k5=new pte,WT=function(e){!cb&&e>0&&k5.start(),cb+=e,!cb&&k5.stop()},mte=function(e){return!tE(e)&&!tte(e)&&getComputedStyle(e).display==="inline"},hte=(function(){function e(t,n){this.target=t,this.observedBox=n||B0.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=eU(this.target,this.observedBox,!0);return mte(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),yte=(function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e})(),my=new WeakMap,JT=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},hy=(function(){function e(){}return e.connect=function(t,n){var r=new yte(t,n);my.set(t,r)},e.observe=function(t,n,r){var a=my.get(t),s=a.observationTargets.length===0;JT(a.observationTargets,n)<0&&(s&&oc.push(a),a.observationTargets.push(new hte(n,r&&r.box)),WT(1),k5.schedule())},e.unobserve=function(t,n){var r=my.get(t),a=JT(r.observationTargets,n),s=r.observationTargets.length===1;a>=0&&(s&&oc.splice(oc.indexOf(r),1),r.observationTargets.splice(a,1),WT(-1))},e.disconnect=function(t){var n=this,r=my.get(t);r.observationTargets.slice().forEach(function(a){return n.unobserve(t,a.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e})(),bte=(function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");hy.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!zT(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");hy.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!zT(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");hy.unobserve(this,t)},e.prototype.disconnect=function(){hy.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})(),T6,ZT;function gte(){if(ZT)return T6;ZT=1;var e=!!(typeof window<"u"&&window.document&&window.document.createElement);return T6=e,T6}var xte=gte();const rU=bm(xte);var QT={},S6,XT;function vte(){if(XT)return S6;XT=1;var e=gm(),t=fd(),n=C1(),r=wm(),a=TypeError,s=function(i){return function(l,c,u,f){e(c);var p=t(l),m=n(p),h=r(p),y=i?h-1:0,x=i?-1:1;if(u<2)for(;;){if(y in m){f=m[y],y+=x;break}
85if(y+=x,i?y<0:h<=y)throw a("Reduce of empty array with no initial value")}for(;i?y>=0:h>y;y+=x)y in m&&(f=c(f,m[y],y,p));return f}};return S6={left:s(!1),right:s(!0)},S6}var B6,YT;function wte(){if(YT)return B6;YT=1;var e=En();return B6=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})},B6}var _6,eS;function Ete(){if(eS)return _6;eS=1;var e=Ko();return _6=typeof process<"u"&&e(process)=="process",_6}var tS;function kte(){if(tS)return QT;tS=1;var e=Vo(),t=vte().left,n=wte(),r=j8(),a=Ete(),s=!a&&r>79&&r<83,i=s||!n("reduce");return e({target:"Array",proto:!0,forced:i},{reduce:function(l){var c=arguments.length;return t(this,l,c,c>1?arguments[1]:void 0)}}),QT}kte();var nS={},I6,rS;function Cte(){if(rS)return I6;rS=1;var e=Sa();return I6=function(){var t=e(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n},I6}var N6,aS;function Ate(){if(aS)return N6;aS=1;var e=En(),t=dr(),n=t.RegExp,r=e(function(){var i=n("a","y");return i.lastIndex=2,i.exec("abcd")!=null}),a=r||e(function(){return!n("a","y").sticky}),s=r||e(function(){var i=n("^r","gy");return i.lastIndex=2,i.exec("str")!=null});return N6={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:r},N6}var R6,sS;function Pte(){if(sS)return R6;sS=1;var e=En(),t=dr(),n=t.RegExp;return R6=e(function(){var r=n(".","s");return!(r.dotAll&&r.exec(`
86`)&&r.flags==="s")}),R6}var O6,iS;function Tte(){if(iS)return O6;iS=1;var e=En(),t=dr(),n=t.RegExp;return O6=e(function(){var r=n("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"}),O6}var M6,oS;function nE(){if(oS)return M6;oS=1;var e=Ga(),t=kn(),n=Oc(),r=Cte(),a=Ate(),s=H8(),i=_1(),l=pd().get,c=Pte(),u=Tte(),f=s("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,h=t("".charAt),y=t("".indexOf),x=t("".replace),C=t("".slice),T=(function(){var A=/a/,S=/b*/g;return e(p,A,"a"),e(p,S,"a"),A.lastIndex!==0||S.lastIndex!==0})(),w=a.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,g=T||v||w||c||u;return g&&(m=function(A){var S=this,_=l(S),k=n(A),R=_.raw,D,B,M,E,N,I,F;if(R)return R.lastIndex=S.lastIndex,D=e(m,R,k),S.lastIndex=R.lastIndex,D;var z=_.groups,U=w&&S.sticky,V=e(r,S),$=S.source,O=0,H=k;if(U&&(V=x(V,"y",""),y(V,"g")===-1&&(V+="g"),H=C(k,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&h(k,S.lastIndex-1)!==`
87`)&&($="(?: "+$+")",H=" "+H,O++),B=new RegExp("^(?:"+$+")",V)),v&&(B=new RegExp("^"+$+"$(?!\\s)",V)),T&&(M=S.lastIndex),E=e(p,U?B:S,H),U?E?(E.input=C(E.input,O),E[0]=C(E[0],O),E.index=S.lastIndex,S.lastIndex+=E[0].length):S.lastIndex=0:T&&E&&(S.lastIndex=S.global?E.index+E[0].length:M),v&&E&&E.length>1&&e(f,E[0],B,function(){for(N=1;N<arguments.length-2;N++)arguments[N]===void 0&&(E[N]=void 0)}),E&&z)for(E.groups=I=i(null),N=0;N<z.length;N++)F=z[N],I[F[0]]=E[F[1]];return E}),M6=m,M6}var lS;function aU(){if(lS)return nS;lS=1;var e=Vo(),t=nE();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),nS}aU();var cS={},D6,uS;function sU(){if(uS)return D6;uS=1,aU();var e=DF(),t=Rc(),n=nE(),r=En(),a=Nr(),s=vm(),i=a("species"),l=RegExp.prototype;return D6=function(c,u,f,p){var m=a(c),h=!r(function(){var T={};return T[m]=function(){return 7},""[c](T)!=7}),y=h&&!r(function(){var T=!1,w=/a/;return c==="split"&&(w={},w.constructor={},w.constructor[i]=function(){return w},w.flags="",w[m]=/./[m]),w.exec=function(){return T=!0,null},w[m](""),!T});if(!h||!y||f){var x=e(/./[m]),C=u(m,""[c],function(T,w,v,g,A){var S=e(T),_=w.exec;return _===n||_===l.exec?h&&!A?{done:!0,value:x(w,v,g)}:{done:!0,value:S(v,w,g)}:{done:!1}});t(String.prototype,c,C[0]),t(l,m,C[1])}p&&s(l[m],"sham",!0)},D6}var F6,dS;function iU(){if(dS)return F6;dS=1;var e=VF().charAt;return F6=function(t,n,r){return n+(r?e(t,n).length:1)},F6}var U6,fS;function oU(){if(fS)return U6;fS=1;var e=Ga(),t=Sa(),n=zn(),r=Ko(),a=nE(),s=TypeError;return U6=function(i,l){var c=i.exec;if(n(c)){var u=e(c,i,l);return u!==null&&t(u),u}if(r(i)==="RegExp")return e(a,i,l);throw s("RegExp#exec called on incompatible receiver")},U6}var pS;function Ste(){if(pS)return cS;pS=1;var e=Ga(),t=sU(),n=Sa(),r=Nc(),a=J8(),s=Oc(),i=ud(),l=xm(),c=iU(),u=oU();return t("match",function(f,p,m){return[function(h){var y=i(this),x=r
87(h)?void 0:l(h,f);return x?e(x,h,y):new RegExp(h)[f](s(y))},function(h){var y=n(this),x=s(h),C=m(p,y,x);if(C.done)return C.value;if(!y.global)return u(y,x);var T=y.unicode;y.lastIndex=0;for(var w=[],v=0,g;(g=u(y,x))!==null;){var A=s(g[0]);w[v]=A,A===""&&(y.lastIndex=c(x,a(y.lastIndex),T)),v++}return v===0?null:w}]}),cS}Ste();var mS={},j6,hS;function Bte(){if(hS)return j6;hS=1;var e=BF(),t=Hs();return j6=function(n,r,a){return a.get&&e(a.get,r,{getter:!0}),a.set&&e(a.set,r,{setter:!0}),t.f(n,r,a)},j6}var yS;function _te(){if(yS)return mS;yS=1;var e=xs(),t=q8().EXISTS,n=kn(),r=Bte(),a=Function.prototype,s=n(a.toString),i=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=n(i.exec),c="name";return e&&!t&&r(a,c,{configurable:!0,get:function(){try{return l(i,s(this))[1]}catch{return""}}}),mS}_te();var bS={},L6,gS;function Ite(){if(gS)return L6;gS=1;var e=E1(),t=Function.prototype,n=t.apply,r=t.call;return L6=typeof Reflect=="object"&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),L6}var $6,xS;function Nte(){if(xS)return $6;xS=1;var e=kn(),t=fd(),n=Math.floor,r=e("".charAt),a=e("".replace),s=e("".slice),i=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;return $6=function(c,u,f,p,m,h){var y=f+c.length,x=p.length,C=l;return m!==void 0&&(m=t(m),C=i),a(h,C,function(T,w){var v;switch(r(w,0)){case"$":return"$";case"&":return c;case"`":return s(u,0,f);case"'":return s(u,y);case"<":v=m[s(w,1,-1)];break;default:var g=+w;if(g===0)return T;if(g>x){var A=n(g/10);return A===0?T:A<=x?p[A-1]===void 0?r(w,1):p[A-1]+r(w,1):T}v=p[g-1]}return v===void 0?"":v})},$6}var vS;function Rte(){if(vS)return bS;vS=1;var e=Ite(),t=Ga(),n=kn(),r=sU(),a=En(),s=Sa(),i=zn(),l=Nc(),c=S1(),u=J8(),f=Oc(),p=ud(),m=iU(),h=xm(),y=Nte(),x=oU(),C=Nr(),T=C("replace"),w=Math.max,v=Math.min,g=n([].concat),A=n([].push),S=n("".indexOf),_=n("".slice),k=function(M){return M===void 0?M:String(M)},R=(function(){return"a".replace(/./,"$0")==="$0"})(),D=(function(){return/./[T]?/./[T]("a","$0")==="":!1})(),B=!a(function(){var M=/./;return M.exec=function(){var E=[];return E.groups={a:"7"},E},"".replace(M,"$<a>")!=="7"});return r("replace",function(M,E,N){var I=D?"$":"$0";return[function(F,z){var U=p(this),V=l(F)?void 0:h(F,T);return V?t(V,F,U,z):t(E,f(U),F,z)},function(F,z){var U=s(this),V=f(F);if(typeof z=="string"&&S(z,I)===-1&&S(z,"$<")===-1){var $=N(E,U,V,z);if($.done)return $.value}var O=i(z);O||(z=f(z));var H=U.global;if(H){var Z=U.unicode;U.lastIndex=0}for(var ee=[];;){var ae=x(U,V);if(ae===null||(A(ee,ae),!H))break;var ie=f(ae[0]);ie===""&&(U.lastIndex=m(V,u(U.lastIndex),Z))}for(var fe="",le=0,xe=0;xe<ee.length;xe++){ae=ee[xe];for(var he=f(ae[0]),De=w(v(c(ae.index),V.length),0),Se=[],ke=1;ke<ae.length;ke++)A(Se,k(ae[ke]));var ge=ae.groups;if(O){var J=g([he],Se,De,V);ge!==void 0&&A(J,ge);var Y=f(e(z,void 0,J))}else Y=y(he,V,De,Se,ge,z);De>=le&&(fe+=_(V,le,De)+Y,le=De+he.length)}return fe+_(V,le)}]},!B||!R||D),bS}Rte();function go(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function ub(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Au=null,wS=null;rU&&window.addEventListener("resize",function(){wS!==window.devicePixelRatio&&(wS=window.devicePixelRatio,Au=null)});function ES(e){if(Au===null){var t=ub(e);if(typeof t>"u")return Au=0,Au;var n=t.body,r=t.createElement("div");r.classList.add("simplebar-hide-scrollbar"),n.appendChild(r);var a=r.getBoundingClientRect().right;n.removeChild(r),Au=a}return Au}var Fb=(function(){function e(n,r){var a=this;this.onScroll=function(){var s=go(a.el);a.scrollXTicking||(s.requestAnimationFrame(a.scrollX),a.scrollXTicking=!0),a.scrollYTicking||(s.requestAnimationFrame(a.scrollY),a.scrollYTicking=!0)},this.scrollX=function(){a.axis.x.isOverflowing&&(a.showScrollbar("x"),a.positionScrollbar("x")),a.scrollXTicking=!1},this.scrollY=function(){a.axis.y.isOverflowing&&(a.showScrollbar("y"),a.positionScrollbar("y")),a.scrollYTicking=!1},this.onMouseEnter=function(){a.showScrollbar("x"),a.showScrollbar("y")},this.onMouseMove=function(s){a.mouseX=s.clientX,a.mouseY=s.clientY,(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&a.onMouseMoveForAxis("x"),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&a.onMouseMoveForAxis("y")}
87,this.onMouseLeave=function(){a.onMouseMove.cancel(),(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&a.onMouseLeaveForAxis("x"),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&a.onMouseLeaveForAxis("y"),a.mouseX=-1,a.mouseY=-1},this.onWindowResize=function(){a.scrollbarWidth=a.getScrollbarWidth(),a.hideNativeScrollbar()},this.hideScrollbars=function(){a.axis.x.track.rect=a.axis.x.track.el.getBoundingClientRect(),a.axis.y.track.rect=a.axis.y.track.el.getBoundingClientRect(),a.isWithinBounds(a.axis.y.track.rect)||(a.axis.y.scrollbar.el.classList.remove(a.classNames.visible),a.axis.y.isVisible=!1),a.isWithinBounds(a.axis.x.track.rect)||(a.axis.x.scrollbar.el.classList.remove(a.classNames.visible),a.axis.x.isVisible=!1)},this.onPointerEvent=function(s){var i,l;a.axis.x.track.rect=a.axis.x.track.el.getBoundingClientRect(),a.axis.y.track.rect=a.axis.y.track.el.getBoundingClientRect(),(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&(i=a.isWithinBounds(a.axis.x.track.rect)),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&(l=a.isWithinBounds(a.axis.y.track.rect)),(i||l)&&(s.preventDefault(),s.stopPropagation(),s.type==="mousedown"&&(i&&(a.axis.x.scrollbar.rect=a.axis.x.scrollbar.el.getBoundingClientRect(),a.isWithinBounds(a.axis.x.scrollbar.rect)?a.onDragStart(s,"x"):a.onTrackClick(s,"x")),l&&(a.axis.y.scrollbar.rect=a.axis.y.scrollbar.el.getBoundingClientRect(),a.isWithinBounds(a.axis.y.scrollbar.rect)?a.onDragStart(s,"y"):a.onTrackClick(s,"y"))))},this.drag=function(s){var i,l=a.axis[a.draggedAxis].track,c=l.rect[a.axis[a.draggedAxis].sizeAttr],u=a.axis[a.draggedAxis].scrollbar,f=a.contentWrapperEl[a.axis[a.draggedAxis].scrollSizeAttr],p=parseInt(a.elStyles[a.axis[a.draggedAxis].sizeAttr],10);s.preventDefault(),s.stopPropagation(),a.draggedAxis==="y"?i=s.pageY:i=s.pageX;var m=i-l.rect[a.axis[a.draggedAxis].offsetAttr]-a.axis[a.draggedAxis].dragOffset,h=m/(c-u.size),y=h*(f-p);a.draggedAxis==="x"&&(y=a.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?y-(c+u.size):y,y=a.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-y:y),a.contentWrapperEl[a.axis[a.draggedAxis].scrollOffsetAttr]=y},this.onEndDrag=function(s){var i=ub(a.el),l=go(a.el);s.preventDefault(),s.stopPropagation(),a.el.classList.remove(a.classNames.dragging),i.removeEventListener("mousemove",a.drag,!0),i.removeEventListener("mouseup",a.onEndDrag,!0),a.removePreventClickId=l.setTimeout(function(){i.removeEventListener("click",a.preventClick,!0),i.removeEventListener("dblclick",a.preventClick,!0),a.removePreventClickId=null})},this.preventClick=function(s){s.preventDefault(),s.stopPropagation()},this.el=n,this.minScrollbarWidth=20,this.options=Object.assign({},e.defaultOptions,r),this.classNames=Object.assign({},e.defaultOptions.classNames,this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,!e.instances.has(this.el)&&(this.recalculate=FT(this.recalculate.bind(this),64),this.onMouseMove=FT(this.onMouseMove.bind(this),64),this.hideScrollbars=jT(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=jT(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=Zee(e.getRtlHelpers),this.init())}e.getRtlHelpers=function(){var n=document.createElement("div");n.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var r=n.firstElementChild;document.body.appendChild(r);var a=r.firstElementChild;r.scrollLeft=0;var s=e.getOffset(r),i=e.getOffset(a);r.scrollLeft=999;var l=e.getOffset(a);return{isRtlScrollingInverted:s.left!==i.left&&i.left-l.left!==0,isRtlScrollbarInverted:s.left!==i.left}},e.getOffset=function(n){var r=n.getBoundingClientRect(),a=ub(n),s=go(n);return{top:r.top+(s.pageYOffset||a.documentElement.scrollTop),left
87:r.left+(s.pageXOffset||a.documentElement.scrollLeft)}};var t=e.prototype;return t.init=function(){e.instances.set(this.el,this),rU&&(this.initDOM(),this.setAccessibilityAttributes(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.initDOM=function(){var n=this;if(Array.prototype.filter.call(this.el.children,function(s){return s.classList.contains(n.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var r=document.createElement("div"),a=document.createElement("div");r.classList.add(this.classNames.track),a.classList.add(this.classNames.scrollbar),r.appendChild(a),this.axis.x.track.el=r.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=r.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},t.setAccessibilityAttributes=function(){var n=this.options.ariaLabel||"scrollable content";this.contentWrapperEl.setAttribute("tabindex","0"),this.contentWrapperEl.setAttribute("role","region"),this.contentWrapperEl.setAttribute("aria-label",n)},t.initListeners=function(){var n=this,r=go(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(l){n.el.addEventListener(l,n.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(l){n.el.addEventListener(l,n.onPointerEvent,{capture:!0,passive:!0})}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize);
87var a=!1,s=null,i=r.ResizeObserver||bte;this.resizeObserver=new i(function(){!a||s!==null||(s=r.requestAnimationFrame(function(){n.recalculate(),s=null}))}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){a=!0}),this.mutationObserver=new r.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},t.recalculate=function(){var n=go(this.el);this.elStyles=n.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.heightAutoObserverEl.offsetHeight<=1,a=this.heightAutoObserverEl.offsetWidth<=1,s=this.contentEl.offsetWidth,i=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var u=this.contentEl.scrollHeight,f=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=a?s+"px":"auto",this.placeholderEl.style.height=u+"px";var p=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=f>s,this.axis.y.isOverflowing=u>p,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var m=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&f>i-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>p-m,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},t.getScrollbarSize=function(n){if(n===void 0&&(n="y"),!this.axis[n].isOverflowing)return 0;var r=this.contentEl[this.axis[n].scrollSizeAttr],a=this.axis[n].track.el[this.axis[n].offsetSizeAttr],s,i=a/r;return s=Math.max(~~(i*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},t.positionScrollbar=function(n){if(n===void 0&&(n="y"),!!this.axis[n].isOverflowing){var r=this.contentWrapperEl[this.axis[n].scrollSizeAttr],a=this.axis[n].track.el[this.axis[n].offsetSizeAttr],s=parseInt(this.elStyles[this.axis[n].sizeAttr],10),i=this.axis[n].scrollbar,l=this.contentWrapperEl[this.axis[n].scrollOffsetAttr];l=n==="x"&&this.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-l:l;var c=l/(r-s),u=~~((a-i.size)*c);u=n==="x"&&this.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?u+(a-i.size):u,i.el.style.transform=n==="x"?"translate3d("+u+"px, 0, 0)":"translate3d(0, "+u+"px, 0)"}},t.toggleTrackVisibility=function(n){n===void 0&&(n="y");var r=this.axis[n].track.el,a=this.axis[n].scrollbar.el;this.axis[n].isOverflowing||this.axis[n].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[n].overflowAttr]="scroll"):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[n].overflowAttr]="hidden"),this.axis[n].isOverflowing?a.style.display="block":a.style.display="none"},t.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},t.onMouseMoveForAxis=function(n){n===void 0&&(n="y"),this.axis[n].track.rect=this.axis[n].track.el.getBoundingClientRect(),this.axis[n].scrollbar.rect=this.axis[n].scrollbar.el.getBoundingClientRect();var r=this.isWithinBounds(this.axis[n].scrollbar.rect);r?this.axis[n].scrollbar.el.classList.add(this.classNames.hover):this.axis[n].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[n].track.rect)?(this.showScrollbar(n),this.axis[n].track.el.classList.add(this.classNames.hover)):this.axis[n].track.el.classList.remove(this.classNames.hover)},t.onMouseLeaveForAxis=function(n){n===void 0&&(n="y"),this.axis[n].track.el.classList.remove(this.classNames.hover),this.axis[n].scrollbar.el.classList.remove(this.classNames.hover)},t.showScrollbar=function(n){n===void 0&&(n="y");var r=this.axis[n].scrollbar.el;this.axis[n].isVisible||(r.classList.add(this.classNames.visible),this.axis[n].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},t.onDragStart=function(n,r){r===void 0&&(r="y");var a=ub(this.el),s=go(this.el),i=this.axis[r].scrollbar,l=r==="y"?n.pageY:n.pageX;this.axis[r].dragOffset=l-i.rect[this.axis[r].offsetAttr],this.draggedAxis=r,this.el.classList.add(this.classNames.dragging),a.addEventListener("mousemove",this.drag,!0),a.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(a.addEventListener("click",this.preventClick,!0),a.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.onTrackClick=function(n,r){var a=this;if(r===void 0&&(r="y"),!!this.options.clickOnTrack){var s=go(this.el);this.axis[r].scrollbar.rect=this.axis[r].scrollbar.el.getBoundingClientRect();var i=this.axis[r].scrollbar,l=i.rect[this.axis[r].offsetAttr],c=parseInt(this.elStyles[this.axis[r].sizeAttr],10),u=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],f=r==="y"?this.mouseY-l:this.mouseX-l,p=f<0?-1:1,m=p===-1?u-c:u+c,h=function y(){if(p===-1){if(u>m){var x;u-=a.options.clickOnTrackSpeed,a.contentWrapperEl.scrollTo((x={},x[a.axis[r].offsetAttr]=u,x)),s.requestAnimationFrame(y)}}else if(u<m){var C;u+=a.options.clickOnTrackSpeed,a.contentWrapperEl.scrollTo((C={},C[a.axis[r].offsetAttr]=u,C)),s.requestAnimationFrame(y)}};h()}},t.getContentElement=function(){return this.contentEl},t.getScrollElement=function(){return this.contentWrapperEl},t.getScrollbarWidth=function(){try{return getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:ES(this.el)}catch{return ES(this.el)}},t.removeListeners=function(){var n=this,r=go(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(a){n.el.removeEventListener(a,n.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(a){n.el.removeEventListener(a,n.onPointerEvent,{capture:!0,passive:!0})}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),r.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},t.unMount=function(){this.removeListeners(),e.instances.delete(this.el)},t.isWithinBounds=function(n){return this.mouseX>=n.left&&this.mouseX<=n.left+n.width&&this.mouseY>=n.top&&this.mouseY<=n.top+n.height},t.findChild=function(n,r){var a=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;return Array.prototype.filter.call(n.children,function(s){return a.call(s,r)})[0]},e})();
87Fb.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3};Fb.instances=new WeakMap;function kS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kS(Object(n),!0).forEach(function(r){Ote(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ote(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ub(){return Ub=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ub.apply(this,arguments)}function Mte(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Dte(e,t){if(e==null)return{};var n=Mte(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var Fte=["children","scrollableNodeProps","tag"],Ute=function(e){var t=Array.prototype.reduce.call(e,function(n,r){var a=r.name.match(/data-simplebar-(.+)/);if(a){var s=a[1].replace(/\W+(.)/g,function(i,l){return l.toUpperCase()});switch(r.value){case"true":n[s]=!0;break;case"false":n[s]=!1;break;case void 0:n[s]=!0;break;default:n[s]=r.value}}return n},{});return t},rE=Pe.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,a=r===void 0?{}:r,s=e.tag,i=s===void 0?"div":s,l=Dte(e,Fte),c=i,u,f=G.useRef(),p=G.useRef(),m=G.useRef(),h={},y={},x=[];return Object.keys(l).forEach(function(C){Object.prototype.hasOwnProperty.call(Fb.defaultOptions,C)?h[C]=l[C]:C.match(/data-simplebar-(.+)/)&&C!=="data-simplebar-direction"?x.push({name:C,value:l[C]}):y[C]=l[C]}),x.length&&console.warn(`simplebar-react: this way of passing options is deprecated. Pass it like normal props instead:
88        'data-simplebar-auto-hide="false"' —> 'autoHide="false"'
89      `),G.useEffect(function(){return f=a.ref||f,p.current&&(u=new Fb(p.current,yy(yy(yy(yy({},Ute(x)),h),f&&{scrollableNode:f.current}),m.current&&{contentNode:m.current})),typeof t=="function"?t(u):t&&(t.current=u)),function(){u.unMount(),u=null,typeof t=="function"&&t(null)}},[]),Pe.createElement(c,Ub({ref:p,"data-simplebar":!0},y),Pe.createElement("div",{className:"simplebar-wrapper"},Pe.createElement("div",{className:"simplebar-height-auto-observer-wrapper"},Pe.createElement("div",{className:"simplebar-height-auto-observer"})),Pe.createElement("div",{className:"simplebar-mask"},Pe.createElement("div",{className:"simplebar-offset"},typeof n=="function"?n({scrollableNodeRef:f,contentNodeRef:m}):Pe.createElement("div",Ub({},a,{className:"simplebar-content-wrapper".concat(a.className?" ".concat(a.className):"")}),Pe.createElement("div",{className:"simplebar-content"},n)))),Pe.createElement("div",{className:"simplebar-placeholder"})),Pe.createElement("div",{className:"simplebar-track simplebar-horizontal"},Pe.createElement("div",{className:"simplebar-scrollbar"})),Pe.createElement("div",{className:"simplebar-track simplebar-vertical"},Pe.createElement("div",{className:"simplebar-scrollbar"})))});rE.displayName="SimpleBar";rE.propTypes={children:bf.oneOfType([bf.node,bf.func]),scrollableNodeProps:bf.object,tag:bf.string};function jte({children:e,className:t,...n}){return We.jsx(rE,{className:Xt("[&_.simplebar-scrollbar]:before:!bg-klerosUIComponentsPrimaryBlue","[&_.simplebar-visible]:before:!opacity-100","[&_.simplebar-mask]:!bg-klerosUIComponentsWhiteBackgroun
89d",t),...n,children:e})}const Lte=({text:e,Icon:t,icon:n,dot:r,...a})=>We.jsx(fY,{className:Xt("hover-short-transition box-border cursor-pointer outline-none","flex items-center py-[10.5px] pr-4 pl-3.25","hover:bg-klerosUIComponentsMediumBlue focus:bg-klerosUIComponentsMediumBlue","selected:bg-klerosUIComponentsMediumBlue","selected:border-l-klerosUIComponentsPrimaryBlue selected:border-l-3","disabled:bg-klerosUIComponentsStroke disabled:cursor-not-allowed"),...a,textValue:e,children:({isDisabled:s})=>We.jsxs(We.Fragment,{children:[n??(t&&We.jsx(t,{className:"max-h-4 min-h-3 max-w-4 min-w-3"})),r&&We.jsx(gF,{className:"mr-2",color:r}),We.jsx("p",{className:Qr("text-base",s?"text-klerosUIComponentsSecondaryText":"text-klerosUIComponentsPrimaryText"),children:e})]})}),$te=({isOpen:e,items:t,className:n})=>We.jsx(BY,{className:Xt("bg-klerosUIComponentsWhiteBackground rounded-base border-klerosUIComponentsStroke border","shadow-default focus:outline-klerosUIComponentsPrimaryBlue box-border overflow-hidden outline-none","origin-top transform transition",e?"entering:animate-scale-in scale-y-100":"exiting:animate-scale-out scale-y-0",n),children:We.jsx(jte,{className:"max-h-87.5 w-59.5",children:We.jsx(cY,{id:"listbox",className:Qr("bg-klerosUIComponentsWhiteBackground box-border w-59.5","cols-[repeat(auto-fill,_minmax(0,_45px))] grid grow py-4"),children:We.jsx(bD,{items:t,children:r=>We.jsx(Lte,{...r})})})})});function zte({label:e,smallButton:t,simpleButton:n,items:r,callback:a,placeholder:s,className:i,dropdownClassName:l,...c}){const u=G.useCallback(f=>{const p=r.find(m=>m.id===f);p&&a(p)},[r,a]);return We.jsx(HY,{className:Xt("flex flex-col gap-1",i),...c,onSelectionChange:u,"aria-label":e??"Select",children:({isOpen:f})=>We.jsxs(We.Fragment,{children:[e&&We.jsx(p8,{className:Qr("text-klerosUIComponentsPrimaryText text-sm"),children:e}),n?We.jsx(VY,{isOpen:f,placeholder:s,small:t}):We.jsx(qY,{placeholder:s}),We.jsx(P8,{className:"text-klerosUIComponentsError text-sm"}),We.jsx($te,{isOpen:f,items:r,className:l})]})})}const CS=e=>G.createElement("svg",{width:7,height:11,viewBox:"0 0 7 11",xmlns:"http://www.w3.org/2000/svg",...e},G.createElement("path",{d:"M6.37502 1.14263V0.10736C6.37502 0.0176274 6.27189 -0.0319262 6.20225 0.0229845L0.164751 4.73861C0.113454 4.7785 0.0719468 4.82958 0.0433946 4.88796C0.0148424 4.94633 0 5.01046 0 5.07544C0 5.14042 0.0148424 5.20455 0.0433946 5.26292C0.0719468 5.3213 0.113454 5.37238 0.164751 5.41227L6.20225 10.1279C6.27323 10.1828 6.37502 10.1333 6.37502 10.0435V9.00825C6.37502 8.94263 6.34422 8.87968 6.29332 8.8395L1.47189 5.07611L6.29332 1.31138C6.34422 1.2712 6.37502 1.20825 6.37502 1.14263V1.14263Z"})),Hte=e=>G.createElement("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e},G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8C0 3.58214 3.58214 0 8 0C12.4179 0 16 3.58214 16 8C16 12.4179 12.4179 16 8 16C3.58214 16 0 12.4179 0 8ZM1.35714 8C1.35714 11.6679 4.33214 14.6429 8 14.6429C11.6679 14.6429 14.6429 11.6679 14.6429 8C14.6429 4.33214 11.6679 1.35714 8 1.35714C4.33214 1.35714 1.35714 4.33214 1.35714 8ZM10.5017 5.16016H11.3392C11.4553 5.16016 11.5232 5.2923 11.4535 5.38694L7.6928 10.6012C7.64024 10.6746 7.57095 10.7344 7.49067 10.7756C7.4104 10.8168 7.32145 10.8384 7.2312 10.8384C7.14095 10.8384 7.052 10.8168 6.97172 10.7756C6.89144 10.7344 6.82215 10.6746 6.76959 10.6012L4.54459 7.51551C4.47673 7.42087 4.54459 7.28873 4.66066 7.28873H5.49816C5.68209 7.28873 5.85352 7.37801 5.96066 7.52623L7.23209 9.29051L10.0392 5.39766C10.1464 5.24766 10.3196 5.16016 10.5017 5.16016Z"})),Kte=e=>G.createElement("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e},G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8C0 3.58214 3.58214 0 8 0C12.4179 0 16 3.58214 16 8C16 12.4179 12.4179 16 8 16C3.58214 16 0 12.4179 0 8ZM1.35714 8C1.35714 11.6679 4.33214 14.6429 8 14.6429C11.6679 14.6429 14.6429 11.6679 14.6429 8C14.6429 4.33214 11.6679 1.35714 8 1.35714C4.33214 1.35714 1.35714 4.33214 1.35714 8ZM7.39363 11.7489C7.23288 11.5882 7.14258 11.3702 7.14258 11.1429C7.14258 10.9155 7.23288 10.6975 7.39363 10.5368C7.55437 10.376 7.77239 10.2857 7.99972 10.2857C8.22705 10.2857 8.44507 10.376 8.60581 10.5368C8.76656 10.6975 8.85686 10.9155 8.85686 11.1429C8.85686 11.3702 8.76656 11.5882 8.60581 11.7489C8.44507 11.9
89097 8.22705 12 7.99972 12C7.77239 12 7.55437 11.9097 7.39363 11.7489ZM8.42829 9.14286H7.57115C7.49258 9.14286 7.42829 9.07857 7.42829 9V4.14286C7.42829 4.06429 7.49258 4 7.57115 4H8.42829C8.50686 4 8.57115 4.06429 8.57115 4.14286V9C8.57115 9.07857 8.50686 9.14286 8.42829 9.14286Z"})),Vte=e=>G.createElement("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e},G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8C0 3.58214 3.58214 0 8 0C12.4179 0 16 3.58214 16 8C16 12.4179 12.4179 16 8 16C3.58214 16 0 12.4179 0 8ZM1.35714 8C1.35714 11.6679 4.33214 14.6429 8 14.6429C11.6679 14.6429 14.6429 11.6679 14.6429 8C14.6429 4.33214 11.6679 1.35714 8 1.35714C4.33214 1.35714 1.35714 4.33214 1.35714 8ZM10.9533 5.03302C11.0319 5.03302 11.0962 5.0973 11.0962 5.17587C11.0962 5.2098 11.0855 5.24373 11.064 5.26873L8.74082 8.03659L11.0605 10.8027C11.0819 10.8294 11.0944 10.8616 11.0944 10.8955C11.0944 10.9759 11.0301 11.0384 10.9515 11.0384L9.77296 11.033L7.99975 8.91873L6.22654 11.0348L5.04618 11.0402C4.96761 11.0402 4.90332 10.9759 4.90332 10.8973C4.9037 10.8634 4.91567 10.8306 4.93725 10.8044L7.26046 8.03837L4.93725 5.27052C4.91582 5.24373 4.90332 5.21159 4.90332 5.17766C4.90332 5.0973 4.96761 5.0348 5.04618 5.0348L6.22654 5.04016L7.99975 7.15444L9.77475 5.03837L10.9533 5.03302Z"})),Gte=e=>G.createElement("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e},G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8C0 3.58214 3.58214 0 8 0C12.4179 0 16 3.58214 16 8C16 12.4179 12.4179 16 8 16C3.58214 16 0 12.4179 0 8ZM1.35714 8C1.35714 11.6679 4.33214 14.6429 8 14.6429C11.6679 14.6429 14.6429 11.6679 14.6429 8C14.6429 4.33214 11.6679 1.35714 8 1.35714C4.33214 1.35714 1.35714 4.33214 1.35714 8ZM7.39363 5.46323C7.23288 5.30249 7.14258 5.08447 7.14258 4.85714C7.14258 4.62981 7.23288 4.4118 7.39363 4.25105C7.55437 4.09031 7.77239 4 7.99972 4C8.22705 4 8.44507 4.09031 8.60581 4.25105C8.76656 4.4118 8.85686 4.62981 8.85686 4.85714C8.85686 5.08447 8.76656 5.30249 8.60581 5.46323C8.44507 5.62398 8.22705 5.71429 7.99972 5.71429C7.77239 5.71429 7.55437 5.62398 7.39363 5.46323ZM7.57115 6.85714H8.42829C8.50686 6.85714 8.57115 6.92143 8.57115 7V11.8571C8.57115 11.9357 8.50686 12 8.42829 12H7.57115C7.49258 12 7.42829 11.9357 7.42829 11.8571V7C7.42829 6.92143 7.49258 6.85714 7.57115 6.85714Z"})),qte=e=>G.createElement("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"#000000",...e},G.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:0}),G.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),G.createElement("g",{id:"SVGRepo_iconCarrier"},G.createElement("title",null,"triangle-filled"),G.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},G.createElement("g",{id:"drop",fill:"#000000",transform:"translate(32.000000, 42.666667)"},G.createElement("path",{d:"M246.312928,5.62892705 C252.927596,9.40873724 258.409564,14.8907053 262.189374,21.5053731 L444.667042,340.84129 C456.358134,361.300701 449.250007,387.363834 428.790595,399.054926 C422.34376,402.738832 415.04715,404.676552 407.622001,404.676552 L42.6666667,404.676552 C19.1025173,404.676552 7.10542736e-15,385.574034 7.10542736e-15,362.009885 C7.10542736e-15,354.584736 1.93772021,347.288125 5.62162594,340.84129 L188.099293,21.5053731 C199.790385,1.04596203 225.853517,-6.06216498 246.312928,5.62892705 Z",id:"Combined-Shape"}))))),Wte=e=>G.createElement("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"#000000",transform:"matrix(1, 0, 0, -1, 0, 0)",...e},G.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:0}),G.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),G.createElement("g",{id:"SVGRepo_iconCarrier"},G.createElement("title",null,"triangle-filled"),G.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},G.createElement("g",{id:"drop",fill:"#000000",transform:"translate(32.000000, 42.666667)"},G.createElement("path",{d:"M246.312928,5.62892705 C252.927596,9.40873724 258.409564,14.89
8907053 262.189374,21.5053731 L444.667042,340.84129 C456.358134,361.300701 449.250007,387.363834 428.790595,399.054926 C422.34376,402.738832 415.04715,404.676552 407.622001,404.676552 L42.6666667,404.676552 C19.1025173,404.676552 7.10542736e-15,385.574034 7.10542736e-15,362.009885 C7.10542736e-15,354.584736 1.93772021,347.288125 5.62162594,340.84129 L188.099293,21.5053731 C199.790385,1.04596203 225.853517,-6.06216498 246.312928,5.62892705 Z",id:"Combined-Shape"}))))),aE=G.createContext({}),C5=G.forwardRef(function(e,t){[e,t]=wr(e,t,aE);let{isDisabled:n,isInvalid:r,onHoverStart:a,onHoverChange:s,onHoverEnd:i,...l}=e,{hoverProps:c,isHovered:u}=Ic({onHoverStart:a,onHoverChange:s,onHoverEnd:i,isDisabled:n}),{isFocused:f,isFocusVisible:p,focusProps:m}=pm({within:!0});n??(n=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let h=ar({...e,values:{isHovered:u,isFocusWithin:f,isFocusVisible:p,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var y,x;return Pe.createElement("div",{...Ft(l,m,c),...h,ref:t,role:(y=e.role)!==null&&y!==void 0?y:"group",slot:(x=e.slot)!==null&&x!==void 0?x:void 0,"data-focus-within":f||void 0,"data-hovered":u||void 0,"data-focus-visible":p||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},h.children)}),jb=G.createContext({});let Jte=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...a}=e;return a};const lU=p1(function(e,t){[e,t]=wr(e,t,jb);let{hoverProps:n,isHovered:r}=Ic(e),{isFocused:a,isFocusVisible:s,focusProps:i}=pm({isTextInput:!0,autoFocus:e.autoFocus}),l=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",c=ar({...e,values:{isHovered:r,isFocused:a,isFocusVisible:s,isDisabled:e.disabled||!1,isInvalid:l},defaultClassName:"react-aria-Input"});return Pe.createElement("input",{...Ft(Jte(e),i,n),...c,ref:t,"data-focused":a||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":s||void 0,"data-invalid":l||void 0})}),Zte=new RegExp("^.*\\(.*\\).*$"),Qte=["latn","arab","hanidec","deva","beng"];class cU{parse(t){return z6(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return z6(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return z6(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const AS=new Map;function z6(e,t,n){let r=PS(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let a of Qte)if(a!==r.options.numberingSystem){let s=PS(e+(e.includes("-u-")?"-nu-":"-u-nu-")+a,t);if(s.isValidPartialNumber(n))return s}}return r}function PS(e,t){let n=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():""),r=AS.get(n);return r||(r=new Xte(e,t),AS.set(n,r)),r}let Xte=class{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=by(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let i=n.indexOf("-");n=n.replace("-","");let l=n.indexOf(".");l===-1&&(l=n.length),n=n.replace(".",""),l-2===0?n=`0.${n}`:l-2===-1?n=`0.0${n}`:l-2===-2?n="0.00":n=`${n.slice(0,l-2)}.${n.slice(l-2)}`,i>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var a,s;let i={...this.options,style:"decimal",minimumFractionDigits:Math.min(((a=this.options.minimumFractionDigits)!==null&&a!==void 0?a:0)+2,20),maximumFractionDigits:Math.min(((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)+2,20)};return new cU(this.locale,i).parse(new Bb(this.locale,i).format(r))}return this.options.currencySign==="accounting"&&Zte.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=by(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=by(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>
890&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=by(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=ene(t,this.formatter,this.options,n);var r,a;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}};const TS=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Yte=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function ene(e,t,n,r){var a,s,i,l;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),u=c.formatToParts(-10000.111),f=c.formatToParts(10000.111),p=Yte.map(k=>c.formatToParts(k));var m;let h=(m=(a=u.find(k=>k.type==="minusSign"))===null||a===void 0?void 0:a.value)!==null&&m!==void 0?m:"-",y=(s=f.find(k=>k.type==="plusSign"))===null||s===void 0?void 0:s.value;!y&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(y="+");let x=(i=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(k=>k.type==="decimal"))===null||i===void 0?void 0:i.value,C=(l=u.find(k=>k.type==="group"))===null||l===void 0?void 0:l.value,T=u.filter(k=>!TS.has(k.type)).map(k=>SS(k.value)),w=p.flatMap(k=>k.filter(R=>!TS.has(R.type)).map(R=>SS(R.value))),v=[...new Set([...T,...w])].sort((k,R)=>R.length-k.length),g=v.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${v.join("|")}|[\\p{White_Space}]`,"gu"),A=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),S=new Map(A.map((k,R)=>[k,R])),_=new RegExp(`[${A.join("")}]`,"g");return{minusSign:h,plusSign:y,decimal:x,group:C,literals:g,numeral:_,index:k=>String(S.get(k))}}function by(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function SS(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var uU={};uU={Empty:"فارغ"};var dU={};dU={Empty:"Изпразни"};var fU={};fU={Empty:"Prázdné"};var pU={};pU={Empty:"Tom"};var mU={};mU={Empty:"Leer"};var hU={};hU={Empty:"Άδειο"};var yU={};yU={Empty:"Empty"};var bU={};bU={Empty:"Vacío"};var gU={};gU={Empty:"Tühjenda"};var xU={};xU={Empty:"Tyhjä"};var vU={};vU={Empty:"Vide"};var wU={};wU={Empty:"ריק"};var EU={};EU={Empty:"Prazno"};var kU={};kU={Empty:"Üres"};var CU={};CU={Empty:"Vuoto"};var AU={};AU={Empty:"空"};var PU={};PU={Empty:"비어 있음"};var TU={};TU={Empty:"Tuščias"};var SU={};SU={Empty:"Tukšs"};var BU={};BU={Empty:"Tom"};var _U={};_U={Empty:"Leeg"};var IU={};IU={Empty:"Pusty"};var NU={};NU={Empty:"Vazio"};var RU={};RU={Empty:"Vazio"};var OU={};OU={Empty:"Gol"};var MU={};MU={Empty:"Не заполнено"};var DU={};DU={Empty:"Prázdne"};var FU={};FU={Empty:"Prazen"};var UU={};UU={Empty:"Prazno"};var jU={};jU={Empty:"Tomt"};var LU={};LU={Empty:"Boş"};var $U={};$U={Empty:"Пусто"};var zU={};zU={Empty:"空"};var HU={};HU={Empty:"空白"};var KU={};KU={"ar-AE":uU,"bg-BG":dU,"cs-CZ":fU,"da-DK":pU,"de-DE":mU,"el-GR":hU,"en-US":yU,"es-ES":bU,"et-EE":gU,"fi-FI":xU,"fr-FR":vU,"he-IL":wU,"hr-HR":EU,"hu-HU":kU,"it-IT":CU,"ja-JP":AU,"ko-KR":PU,"lt-LT":TU,"lv-LV":SU,"nb-NO":BU,"nl-NL":_U,"pl-PL":IU,"pt-BR":NU,"pt-PT":RU,"ro-RO":OU,"ru-RU":MU,"sk-SK":DU,"sl-SI":FU,"sr-SP":UU,"sv-SE":jU,"tr-TR":LU,"uk-UA":$U,"zh-CN":zU,"zh-TW":HU};function tne(e){return e&&e.__esModule?e.default:e}function nne(e){const t=G.useRef(void 0);let{value:n,textValue:r,minValue:a,maxValue:s,isDisabled:i,isReadOnly:l,isRequired:c,onIncrement:u,onIncrementPage:f,onDecrement:p,onDecrementPage:m,onDecrementToMin:h,onIncrementToMax:y}=e;const x=id(tne(KU),"@react-aria/spinbutton"),C=()=>clearTimeout(t.current);G.useEffect(()=>()=>C(),[]);let T=B=>{if(!(B.ctrlKey||B.metaKey||B.shiftKey||B.altKey||l))switch(B.key){case"PageUp":if(f){B.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":u&&(B.preventDefault(),u==null||u());break;case"PageDown":if(m){B.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":p&&(B.preventDefault(),p==null||p());break;case"Home":h&&(B.preventDefault(),h==null||h());break;case"End":y&&(B.preventDefault(),y==null||y());break}},w=G.useRef(!1),v=()=>{w.current=!0},g=()=>{w.current=!1},A=r===""?x.format("Empty"):(r||`${n}`).replace("-","−");G.useEffect(()=>{w.current&&(PZ("assertive"),gO(A,"assertive"))},[A]);const S=jn(B=>{C(),u==null||u(),t.current=window.setTimeout(()=>{(s===void 0||isNaN(s)||n===void 0||isNaN(n)||n<s)&&S(60)},B)}),_=jn(B=>{C(),p==null||p(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n>a)&&_(60)},B)});let k=B=>{B.preventDefault()},{addGlobalListener:R,removeAllGlobalListeners:D}=dm();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":A,"aria-valuemin":a,"aria-valuemax":s,"aria-disabled":i||void 0,"aria-readonly":l||void 0,"aria-required":c||void 0,onKeyDown:T,onFocus:v,onBlur:g},incrementButtonProps:{onPressStart:()=>{S(400),R(window,"contextmenu",k)},onPressEnd:()=>{C(),D()},onFocus:v,onBlur:g},decrementButtonProps:{onPressStart:()=>{_(400),R(window,"contextmenu",k)},onPressEnd:()=>{C(),D()},onFocus:v,onBlur:g}}}function VU(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:s=!1,type:i="text",validationBehavior:l="aria"}=e,[c,u]=ld(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=g1(e,t),p=T8({...e,value:c}
89),{isInvalid:m,validationErrors:h,validationDetails:y}=p.displayValidation,{labelProps:x,fieldProps:C,descriptionProps:T,errorMessageProps:w}=AM({...e,isInvalid:m,errorMessage:e.errorMessage||h}),v=$n(e,{labelable:!0});const g={type:i,pattern:e.pattern};return M8(t,c,u),RD(e,p,t),G.useEffect(()=>{if(t.current instanceof Xr(t.current).HTMLTextAreaElement){let A=t.current;Object.defineProperty(A,"defaultValue",{get:()=>A.value,set:()=>{},configurable:!0})}},[t]),{labelProps:x,inputProps:Ft(v,n==="input"?g:void 0,{disabled:r,readOnly:s,required:a&&l==="native","aria-required":a&&l==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:c,onChange:A=>u(A.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(Pe.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...C}),descriptionProps:T,errorMessageProps:w,isInvalid:m,validationErrors:h,validationDetails:y}}function rne(e,t){let{onScroll:n,isDisabled:r}=e,a=G.useCallback(s=>{s.ctrlKey||(s.preventDefault(),s.stopPropagation(),n&&n({deltaX:s.deltaX,deltaY:s.deltaY}))},[n]);c0(t,"wheel",r?void 0:a)}function ane(e){let{minValue:t,maxValue:n,step:r,formatOptions:a,value:s,defaultValue:i=NaN,onChange:l,locale:c,isDisabled:u,isReadOnly:f}=e;s===null&&(s=NaN),s!==void 0&&!isNaN(s)&&(r!==void 0&&!isNaN(r)?s=ii(s,t,n,r):s=Ou(s,t,n)),isNaN(i)||(r!==void 0&&!isNaN(r)?i=ii(i,t,n,r):i=Ou(i,t,n));let[p,m]=ld(s,isNaN(i)?NaN:i,l),[h,y]=G.useState(()=>isNaN(p)?"":new Bb(c,a).format(p)),x=G.useMemo(()=>new cU(c,a),[c,a]),C=G.useMemo(()=>x.getNumberingSystem(h),[x,h]),T=G.useMemo(()=>new Bb(c,{...a,numberingSystem:C}),[c,a,C]),w=G.useMemo(()=>T.resolvedOptions(),[T]),v=G.useCallback(O=>isNaN(O)||O===null?"":T.format(O),[T]),g=T8({...e,value:p}),A=r!==void 0&&!isNaN(r)?r:1;w.style==="percent"&&(r===void 0||isNaN(r))&&(A=.01);let[S,_]=G.useState(p),[k,R]=G.useState(c),[D,B]=G.useState(a);(!Object.is(p,S)||c!==k||a!==D)&&(y(v(p)),_(p),R(c),B(a));let M=G.useMemo(()=>x.parse(h),[x,h]),E=()=>
89{if(!h.length){m(NaN),y(s===void 0?"":v(p));return}if(isNaN(M)){y(v(p));return}let O;r===void 0||isNaN(r)?O=Ou(M,t,n):O=ii(M,t,n,r),O=x.parse(v(O)),m(O),y(v(s===void 0?O:p))},N=(O,H=0)=>{let Z=M;if(isNaN(Z)){let ee=isNaN(H)?0:H;return ii(ee,t,n,A)}else{let ee=ii(Z,t,n,A);return O==="+"&&ee>Z||O==="-"&&ee<Z?ee:ii(H6(O,Z,A),t,n,A)}},I=()=>{let O=N("+",t);O===p&&y(v(O)),m(O),g.commitValidation()},F=()=>{let O=N("-",n);O===p&&y(v(O)),m(O),g.commitValidation()},z=()=>{n!=null&&(m(ii(n,t,n,A)),g.commitValidation())},U=()=>{t!=null&&(m(t),g.commitValidation())},V=G.useMemo(()=>!u&&!f&&(isNaN(M)||n===void 0||isNaN(n)||ii(M,t,n,A)>M||H6("+",M,A)<=n),[u,f,t,n,A,M]),$=G.useMemo(()=>!u&&!f&&(isNaN(M)||t===void 0||isNaN(t)||ii(M,t,n,A)<M||H6("-",M,A)>=t),[u,f,t,n,A,M]);return{...g,validate:O=>x.isValidPartialNumber(O,t,n),increment:I,incrementToMax:z,decrement:F,decrementToMin:U,canIncrement:V,canDecrement:$,minValue:t,maxValue:n,numberValue:M,setNumberValue:m,setInputValue:y,inputValue:h,commit:E}}function H6(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const a=t.toString().split("."),s=n.toString().split("."),i=a[1]&&a[1].length||0,l=s[1]&&s[1].length||0,c=Math.pow(10,Math.max(i,l));t=Math.round(t*c),n=Math.round(n*c),r=e==="+"?t+n:t-n,r/=c}return r}function BS(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function sne(e,t,n){let r=jn(p=>{let m=n.current;if(!m)return;let h=null;switch(p.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":h=m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteContentForward":h=m.selectionEnd===m.selectionStart?m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd+1):m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteContentBackward":h=m.selectionEnd===m.selectionStart?m.value.slice(0,m.selectionStart-1)+m.value.slice(m.selectionStart):m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":h=m.value.slice(m.selectionStart);break;default:p.data!=null&&(h=m.value.slice(0,m.selectionStart)+p.data+m.value.slice(m.selectionEnd));break}(h==null||!t.validate(h))&&p.preventDefault()});G.useEffect(()=>{if(!BS()||!n.current)return;let p=n.current;return p.addEventListener("beforeinput",r,!1),()=>{p.removeEventListener("beforeinput",r,!1)}},[n,r]);let a=BS()?null:p=>{let m=p.target.value.slice(0,p.target.selectionStart)+p.data+p.target.value.slice(p.target.selectionEnd);t.validate(m)||p.preventDefault()},{labelProps:s,inputProps:i,descriptionProps:l,errorMessageProps:c,...u}=VU(e,n),f=G.useRef(null);return{inputProps:Ft(i,{onBeforeInput:a,onCompositionStart(){let{value:p,selectionStart:m,selectionEnd:h}=n.current;f.current={value:p,selectionStart:m,selectionEnd:h}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:p,selectionStart:m,selectionEnd:h}=f.current;n.current.value=p,n.current.setSelectionRange(m,h),t.setInputValue(p)}}}),labelProps:s,descriptionProps:l,errorMessageProps:c,...u}}var GU={};GU={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var qU={};qU={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var WU={};WU={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var JU={};JU={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var ZU={};ZU={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var QU={};QU={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var XU={};XU={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var YU={};YU={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var ej={};ej={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var tj={};tj={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var nj={};nj={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var rj={};rj={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var aj={};aj={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var sj={};sj={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var ij={};ij={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var oj={};oj={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var lj={};lj={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var cj={};cj={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var uj={};uj={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var dj={};dj={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var fj={};fj={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var pj={};pj={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var mj={};mj={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var hj={};hj={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var yj={};yj={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var bj={};bj={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var gj={};gj={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var xj={};xj={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var vj={};vj={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var wj={};wj={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Ej={};Ej={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var kj={};kj={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var Cj={};Cj={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var Aj={};Aj={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};var Pj={};Pj={"ar-AE":GU,"bg-BG":qU,"cs-CZ":WU,"da-DK":JU,"de-DE":ZU,"el-GR":QU,"en-US":XU,"es-ES":YU,"et-EE":ej,"fi-FI":tj,"fr-FR":nj,"he-IL":rj,"hr-HR":aj,"hu-HU":sj,"it-IT":ij,"ja-JP":oj,"ko-KR":lj,"lt-LT":cj,"lv-LV":uj,"nb-NO":dj,"nl-NL":fj,"pl-PL":pj,"pt-BR":mj,"pt-PT":hj,"ro-RO":yj,"ru-RU":bj,"sk-SK":gj,"sl-SI":xj,"sr-SP":vj,"sv-SE":wj,"tr-TR":Ej,"uk-UA":kj,"zh-CN":Cj,"zh-TW":Aj};
89function ine(e){return e&&e.__esModule?e.default:e}function one(e,t,n){let{id:r,decrementAriaLabel:a,incrementAriaLabel:s,isDisabled:i,isReadOnly:l,isRequired:c,minValue:u,maxValue:f,autoFocus:p,label:m,formatOptions:h,onBlur:y=()=>{},onFocus:x,onFocusChange:C,onKeyDown:T,onKeyUp:w,description:v,errorMessage:g,isWheelDisabled:A,...S}=e,{increment:_,incrementToMax:k,decrement:R,decrementToMin:D,numberValue:B,inputValue:M,commit:E,commitValidation:N}=t;const I=id(ine(Pj),"@react-aria/numberfield");let F=cr(r),{focusProps:z}=g8({onBlur(){E()}}),U=XC(h),V=G.useMemo(()=>U.resolvedOptions(),[U]),$=XC({...h,currencySign:void 0}),O=G.useMemo(()=>isNaN(B)?"":$.format(B),[$,B]),{spinButtonProps:H,incrementButtonProps:Z,decrementButtonProps:ee}=nne({isDisabled:i,isReadOnly:l,isRequired:c,maxValue:f,minValue:u,onIncrement:_,onIncrementToMax:k,onDecrement:R,onDecrementToMin:D,value:B,textValue:O}),[ae,ie]=G.useState(!1),{focusWithinProps:fe}=fm({isDisabled:i,onFocusWithinChange:ie}),le=G.useCallback(dt=>{Math.abs(dt.deltaY)<=Math.abs(dt.deltaX)||(dt.deltaY>0?_():dt.deltaY<0&&R())},[R,_]);rne({onScroll:le,isDisabled:A||i||l||!ae},n);var xe;let he=((xe=V.maximumFractionDigits)!==null&&xe!==void 0?xe:0)>0,De=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,Se="numeric";rO()?De?Se="text":he&&(Se="decimal"):y1()&&(De?Se="numeric":he&&(Se="decimal"));let ke=dt=>{t.validate(dt)&&t.setInputValue(dt)},ge=$n(e),J=G.useCallback(dt=>{dt.key==="Enter"?(E(),N()):dt.continuePropagation()},[E,N]),{isInvalid:Y,validationErrors:re,validationDetails:ce}=t.displayValidation,{labelProps:Me,inputProps:Ze,descriptionProps:ue,errorMessageProps:Q}=sne({...S,...ge,name:void 0,label:m,autoFocus:p,isDisabled:i,isReadOnly:l,isRequired:c,validate:void 0,[h5]:t,value:M,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:F,type:"text",inputMode:Se,onChange:ke,onBlur:y,onFocus:x,onFocusChange:C,onKeyDown:G.useMemo(()=>Ui(J,T),[J,T]),onKeyUp:w,description:v,errorMessage:g},t,n);M8(n,t.numberValue,t.setNumberValue);let X=Ft(H,z,Ze,{role:null,"aria-roledescription":um()?null:I.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(X["aria-required"]=void 0);let ne=dt=>{var Wt;document.activeElement!==n.current&&(dt.pointerType==="mouse"?(Wt=n.current)===null||Wt===void 0||Wt.focus():dt.target.focus())},pe=e["aria-label"]||(typeof e.label=="string"?e.label:""),Be;pe||(Be=e.label!=null?Me.id:e["aria-labelledby"]);let Re=cr(),Qe=cr(),et=Ft(Z,{"aria-label":s||I.format("increase",{fieldLabel:pe}).trim(),id:Be&&!s?Re:null,"aria-labelledby":Be&&!s?`${Re} ${Be}`:null,"aria-controls":F,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:ne}),Ye=Ft(ee,{"aria-label":a||I.format("decrease",{fieldLabel:pe}).trim(),id:Be&&!a?Qe:null,"aria-labelledby":Be&&!a?`${Qe} ${Be}`:null,"aria-controls":F,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:ne});return{groupProps:{...fe,role:"group","aria-disabled":i,"aria-invalid":Y?"true":void 0},labelProps:Me,inputProps:X,incrementButtonProps:et,decrementButtonProps:Ye,errorMessageProps:Q,descriptionProps:ue,isInvalid:Y,validationErrors:re,validationDetails:ce}}const lne=G.createContext(null),cne=G.createContext(null),une=G.forwardRef(function(e,t){[e,t]=wr(e,t,lne);let{validationBehavior:n}=cm(S8)||{};var r,a;let s=(a=(r=e.validationBehavior)!==null&&r!==void 0?r:n)!==null&&a!==void 0?a:"native",{locale:i}=zo(),l=ane({...e,locale:i,validationBehavior:s}),c=G.useRef(null),[u,f]=f1(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:p,groupProps:m,inputProps:h,incrementButtonProps:y,decrementButtonProps:x,descriptionProps:C,errorMessageProps:T,...w}=one({...f8(e),label:f,validationBehavior:s},l,c),v=ar({...e,values:{state:l,isDisabled:e.isDisabled||!1,isInvalid:w.isInvalid||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-NumberField"}),g=$n(e);return delete g.id,Pe.createElement($o,{values:[[cne,l],[aE,m],[jb,{...h,ref:c}],[m1,{...p,ref:u}],[mm,{slots:{increment:y,decrement:x}}],[cd,{slots:{description:C,errorMessage:T}}],[hm,w]]},Pe.createElement("div",{...g,...v,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-required":e.isRequired||void 0,"data-invalid":w.isInvalid||void 0}),e.name&&Pe.createElement("input",{type:"hidden",name:e.name,value:isNaN(l.numberValue)?"":l.numberValue}))});function _S({variant:e,message:t,Icon:n,className:r,placeholder:a,label:s,isDisabled:i,inputProps:l,showFieldError:c,fieldErrorProps:u,...f}){return We.jsxs(une,{className:Xt("flex w-[278px] flex-col",r),isDisabled:i,...f,children:[s&&We.jsx(p8,{className:"text-klerosUIComponentsSecondaryText mb-1 text-sm",children:s}),We.jsx(C5,{className:"input-wrapper relative box-border h-[45px] w-full",children:({isHovered:p})=>We.jsxs(We.Fragment,{children:[We.jsx(lU,{placeholder:a,...l,className:Xt("hover-medium-blue hover-short-transition bg-klerosUIComponentsWhiteBackgroun
89d size-full","rounded-base border-klerosUIComponentsStroke text-klerosUIComponentsPrimaryText border text-base","placeholder:text-klerosUIComponentsSecondaryText placeholder:opacity-50","focus:border-klerosUIComponentsPrimaryBlue focus:shadow-input focus:rounded-base focus:outline-none","focus:invalid:border-klerosUIComponentsError focus:invalid:shadow-klerosUIComponentsError","py-3.5 pr-7.5 pl-4",{"pr-13":e&&e!=="info","pr-16":n},{"border-klerosUIComponentsWarning":e==="warning","border-klerosUIComponentsError":e==="error","border-klerosUIComponentsSuccess":e==="success"},"invalid:border-klerosUIComponentsError",l==null?void 0:l.className)}),We.jsxs(C5,{className:Xt("animate-fade-in absolute top-0 right-3 hidden h-full w-3.5",p&&!i&&"flex flex-col items-center justify-center gap-1",{"right-9":e&&e!=="info","right-12":n}),children:[We.jsx(hc,{className:Qr("rounded-base hover:bg-klerosUIComponentsStroke size-3.5 cursor-pointer border-none bg-transparent","flex items-center justify-center","disabled:cursor-default"),slot:"increment",children:({isDisabled:m})=>We.jsx(qte,{className:Qr("size-2",m?"[&_path]:fill-klerosUIComponentsStroke":"[&_path]:fill-klerosUIComponentsSecondaryText")})}),We.jsx(hc,{className:Qr("rounded-base hover:bg-klerosUIComponentsStroke size-3.5 cursor-pointer border-none bg-transparent","flex items-center justify-center","disabled:cursor-default"),slot:"decrement",children:({isDisabled:m})=>We.jsx(Wte,{className:Qr("size-2",m?"[&_path]:fill-klerosUIComponentsStroke":"[&_path]:fill-klerosUIComponentsSecondaryText")})})]}),e==="success"&&We.jsx(Hte,{className:"fill-klerosUIComponentsSuccess absolute top-3.5 right-4 size-4"}),e==="warning"&&We.jsx(Kte,{className:"fill-klerosUIComponentsWarning absolute top-3.5 right-4 size-4"}),e==="error"&&We.jsx(Vte,{className:"fill-klerosUIComponentsError absolute top-3.5 right-4 size-4"}),n&&We.jsx("div",{className:Xt("bg-klerosUIComponentsLightBlue absolute top-0.25 right-0.25 h-10.75 w-11","border-l-klerosUIComponentsStroke rounded-r-base border-l","flex items-center justify-center"),children:We.jsx(n,{className:"size-6"})})]})}),t&&We.jsxs(CM,{className:Xt("relative mt-1.25 flex items-center","text-klerosUIComponentsSecondaryText text-justify text-sm break-words",{"text-klerosUIComponentsSuccess":e==="success","text-klerosUIComponentsError":e==="error","text-klerosUIComponentsWarning":e==="warning"}),slot:"description",children:[e==="info"&&We.jsx(Gte,{className:"fill-klerosUIComponentsSecondaryText mr-2 max-w-4 min-w-4"}),t]}),c&&We.jsx(P8,{...u,className:Xt("text-klerosUIComponentsError mt-1 text-sm break-words",u==null?void 0:u.className),children:u==null?void 0:u.children})]})}var Tj={};Tj={"Clear search":"مسح البحث"};var Sj={};Sj={"Clear search":"Изчистване на търсене"};var Bj={};Bj={"Clear search":"Vymazat hledání"};var _j={};_j={"Clear search":"Ryd søgning"};var Ij={};Ij={"Clear search":"Suche zurücksetzen"};var Nj={};Nj={"Clear search":"Απαλοιφή αναζήτησης"};var Rj={};Rj={"Clear search":"Clear search"};var Oj={};Oj={"Clear search":"Borrar búsqueda"};var Mj={};Mj={"Clear search":"Tühjenda otsing"};var Dj={};Dj={"Clear search":"Tyhjennä haku"};var Fj={};Fj={"Clear search":"Effacer la recherche"};var Uj={};Uj={"Clear search":"נקה חיפוש"};var jj={};jj={"Clear search":"Obriši pretragu"};var Lj={};Lj={"Clear search":"Keresés törlése"};var $j={};$j={"Clear search":"Cancella ricerca"};var zj={};zj={"Clear search":"検索をクリア"};var Hj={};Hj={"Clear search":"검색 지우기"};var Kj={};Kj={"Clear search":"Išvalyti iešką"};var Vj={};Vj={"Clear search":"Notīrīt meklēšanu"};var Gj={};Gj={"Clear search":"Tøm søk"};var qj={};qj={"Clear search":"Zoekactie wissen"};var Wj={};Wj={"Clear search":"Wyczyść zawartość wyszukiwania"};var Jj={};Jj={"Clear search":"Limpar pesquisa"};var Zj={};Zj={"Clear search":"Limpar pesquisa"};var Qj={};Qj={"Clear search":"Ştergeţi căutarea"};var Xj={};Xj={"Clear search":"Очистить поиск"};var Yj={};Yj={"Clear search":"Vymazať vyhľadávanie"};var eL={};eL={"Clear search":"Počisti iskanje"};var tL={};tL={"Clear search":"Obriši pretragu"};var nL={};nL={"Clear search":"Rensa sökning"};var rL={};rL={"Clear search":"Aramayı temizle"};var aL={};aL={"Clear search":"Очистити пошук"};var sL={};sL={"Clear search":"清除搜索"};var iL={};iL={"Clear search":"清除搜尋條件"};var oL={};oL={"ar-AE":Tj,"bg-BG":Sj,"cs-CZ":Bj,"da-DK":_j,"de-DE":Ij,"el-GR":Nj,"en-US":Rj,"es-ES":Oj,"et-EE":Mj,"fi-FI":Dj,"fr-FR":Fj,"he-IL":Uj,"hr-HR":jj,"hu-HU":Lj,"it-IT":$j,"ja-JP":zj,"ko-KR":Hj,"lt-LT":Kj,"lv-LV":Vj,"nb-NO":Gj,"nl-NL":qj,"pl-PL":Wj,"pt-BR":Jj,"pt-PT":Zj,"ro-RO":Qj,"ru-RU":Xj,"sk-SK":Yj,"sl-SI":eL,"sr-SP":tL,"sv-SE":nL,"tr-TR":rL,"uk-UA":aL,"zh-CN":sL,"zh-TW":iL};
89function dne(e){return e&&e.__esModule?e.default:e}function fne(e,t,n){let r=id(dne(oL),"@react-aria/searchfield"),{isDisabled:a,isReadOnly:s,onSubmit:i,onClear:l,type:c="search"}=e,u=T=>{const w=T.key;w==="Enter"&&(a||s)&&T.preventDefault(),!(a||s)&&(w==="Enter"&&i&&(T.preventDefault(),i(t.value)),w==="Escape"&&(t.value===""&&(!n.current||n.current.value==="")?T.continuePropagation():(T.preventDefault(),t.setValue(""),l&&l())))},f=()=>{t.setValue(""),l&&l()},p=()=>{var T;(T=n.current)===null||T===void 0||T.focus()},{labelProps:m,inputProps:h,descriptionProps:y,errorMessageProps:x,...C}=VU({...e,value:t.value,onChange:t.setValue,onKeyDown:s?e.onKeyDown:Ui(u,e.onKeyDown),type:c},n);return{labelProps:m,inputProps:{...h,defaultValue:void 0},clearButtonProps:{"aria-label":r.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:a||s,onPress:f,onPressStart:p},descriptionProps:y,errorMessageProps:x,...C}}function pne(e){let[t,n]=ld(IS(e.value),IS(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}function IS(e){if(e!=null)return e.toString()}const mne=G.createContext(null),hne=p1(function(e,t){[e,t]=wr(e,t,mne);let{validationBehavior:n}=cm(S8)||{};var r,a;let s=(a=(r=e.validationBehavior)!==null&&r!==void 0?r:n)!==null&&a!==void 0?a:"native",i=G.useRef(null),[l,c]=wr({},i,jb),[u,f]=f1(!e["aria-label"]&&!e["aria-labelledby"]),p=pne({...e}),{labelProps:m,inputProps:h,clearButtonProps:y,descriptionProps:x,errorMessageProps:C,...T}=fne({...f8(e),label:f,validationBehavior:s},p,c),w=ar({...e,values:{isEmpty:p.value==="",isDisabled:e.isDisabled||!1,isInvalid:T.isInvalid||!1,state:p},defaultClassName:"react-aria-SearchField"}),v=$n(e);return delete v.id,Pe.createElement("div",{...v,...w,ref:t,slot:e.slot||void 0,"data-empty":p.value===""||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":T.isInvalid||void 0},Pe.createElement($o,{values:[[m1,{...m,ref:u}],[jb,{...Ft(h,l),ref:c}],[mm,y],[cd,{slots:{description:x,errorMessage:C}}],[aE,{isInvalid:T.isInvalid,isDisabled:e.isDisabled||!1}],[hm,T]]},w.children))}),yne=e=>G.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},G.createElement("path",{d:"M15.7797 13.833L12.6644 10.7177C12.5238 10.5771 12.3332 10.499 12.1332 10.499H11.6239C12.4863 9.39596 12.9987 8.00859 12.9987 6.49937C12.9987 2.90909 10.0896 0 6.49937 0C2.90909 0 0 2.90909 0 6.49937C0 10.0896 2.90909 12.9987 6.49937 12.9987C8.00859 12.9987 9.39596 12.4863 10.499 11.6239V12.1332C10.499 12.3332 10.5771 12.5238 10.7177 12.6644L13.833 15.7797C14.1267 16.0734 14.6017 16.0734 14.8923 15.7797L15.7766 14.8954C16.0703 14.6017 16.0703 14.1267 15.7797 13.833ZM6.49937 10.499C4.29021 10.499 2.49976 8.71165 2.49976 6.49937C2.49976 4.29021 4.28708 2.49976 6.49937 2.49976C8.70852 2.49976 10.499 4.28708 10.499 6.49937C10.499 8.70852 8.71165 10.499 6.49937 10.499Z"}));function lL({label:e,placeholder:t,inputProps:n,className:r,showFieldError:a,fieldErrorProps:s,...i}){return We.jsxs(hne,{className:Xt("flex w-69.5 flex-col",r),...i,children:[e&&We.jsx(p8,{className:"text-klerosUIComponentsSecondaryText mb-1 text-sm",children:e}),We.jsxs(C5,{className:"relative box-border h-[45px] w-full",children:[We.jsx(lU,{placeholder:t??"Search",...n,className:Xt("hover-medium-blue hover-short-transition bg-klerosUIComponentsWhiteBackground size-full","rounded-base border-klerosUIComponentsStroke text-klerosUIComponentsPrimaryText border text-base","placeholder:text-klerosUIComponentsSecondaryText placeholder:opacity-50","focus:border-klerosUIComponentsPrimaryBlue focus:shadow-input focus:rounded-base focus:outline-none","focus:invalid:border-klerosUIComponentsError focus:invalid:shadow-klerosUIComponentsError","py-3.5 pr-4 pl-10","invalid:border-klerosUIComponentsError","[&::-webkit-search-cancel-button]:hidden",n==null?void 0:n.className)}),We.jsx(yne,{className:Qr("absolute top-1/2 left-4 -translate-y-1/2","fill-klerosUIComponentsPrimaryText size-4 max-h-4 max-w-4")})]}),a&&We.jsx(P8,{...s,className:Xt("text-klerosUIComponentsError mt-1 text-sm break-words",s==null?void 0:s.className),children:s==null?void 0:s.children})]})}const bne=(e,t,n,r,a=2)=>[{incrementPage:()=>{{const s=Math.min(t,e+1);n(s)}},decrementPage:()=>{const s=Math.max(1,e-1);n(s)},goToPage:s=>{n(s)},minPageReached:e===1,maxPageReached:e===t,getPageRange:()=>{const s=Math.max(1,e-a-Math.max(0,a-(t-e))),i=Math.min(t,e+a+Math.max(0,a-e+1));
89return[...Array(i-s+1).keys()].map(l=>l+s)}}],K6=({children:e,selected:t,className:n,...r})=>We.jsx(hc,{...r,className:Xt("rounded-base m-1 size-8 border","flex items-center justify-center text-sm","hover:cursor-pointer hover:disabled:cursor-default",t?["bg-klerosUIComponentsLightBlue hover:enabled:bg-klerosUIComponentsWhiteBackground","border-klerosUIComponentsPrimaryBlue hover:enabled:border-klerosUIComponentsPrimaryBlue","text-klerosUIComponentsPrimaryBlue hover:enabled:text-klerosUIComponentsPrimaryBlue"]:["bg-klerosUIComponentsWhiteBackground hover:enabled:bg-klerosUIComponentsLightBlue","border-klerosUIComponentsStroke hover:enabled:border-klerosUIComponentsSecondaryBlue","text-klerosUIComponentsPrimaryText hover:enabled:text-klerosUIComponentsSecondaryBlue"],n),children:e});function gne({currentPage:e,numPages:t,callback:n,disableNumbers:r,hideNumbers:a,className:s}){const[{incrementPage:i,decrementPage:l,goToPage:c,minPageReached:u,maxPageReached:f,getPageRange:p}]=bne(e,t,n);return We.jsxs("div",{className:Xt("box-border flex items-center justify-center",s),children:[We.jsx(K6,{isDisabled:u,onPress:l,className:"hover:enabled:[&>svg]:fill-klerosUIComponentsSecondaryBlue",children:We.jsx(CS,{className:Qr("ease-ease pr-0.25 transition-[fill]",u?["fill-klerosUIComponentsStroke"]:["fill-klerosUIComponentsPrimaryText"])})}),!a&&p().map(m=>We.jsx(K6,{selected:e===m,onPress:()=>c(m),isDisabled:r,children:m},m)),We.jsx(K6,{isDisabled:f,onPress:i,className:"hover:enabled:[&>svg]:fill-klerosUIComponentsSecondaryBlue",children:We.jsx(CS,{className:Xt("ease-ease rotate-180 pl-0.25 transition-[fill]",f?["fill-klerosUIComponentsStroke"]:["fill-klerosUIComponentsPrimaryText"])})})]})}const A5=Pe.createContext(null);function xne(e){let{children:t}=e,n=G.useContext(A5),[r,a]=G.useState(0),s=G.useMemo(()=>({parent:n,modalCount:r,addModal(){a(i=>i+1),n&&n.addModal()},removeModal(){a(i=>i-1),n&&n.removeModal()}}),[n,r]);return Pe.createElement(A5.Provider,{value:s},t)}function vne(){let e=G.useContext(A5);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function wne(e){let{modalProviderProps:t}=vne();return Pe.createElement("div",{"data-overlay-container":!0,...e,...t})}function Ene(e){return Pe.createElement(xne,null,Pe.createElement(wne,e))}function kne(e){let t=jo(),{portalContainer:n=t?null:document.body,...r}=e;if(Pe.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let a=Pe.createElement(Ene,r);return a8.createPortal(a,n)}function Cne(e,t){let n=$n(e,{labelable:!0}),{hoverProps:r}=Ic({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:Ft(n,r,{role:"tooltip"})}}function Ane(e,t,n){let{isDisabled:r,trigger:a}=e,s=cr(),i=G.useRef(!1),l=G.useRef(!1),c=()=>{(i.current||l.current)&&t.open(l.current)},u=T=>{!i.current&&!l.current&&t.close(T)};G.useEffect(()=>{let T=w=>{n&&n.current&&w.key==="Escape"&&(w.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",T,!0),()=>{document.removeEventListener("keydown",T,!0)}},[n,t]);let f=()=>{a!=="focus"&&(P0()==="pointer"?i.current=!0:i.current=!1,c())},p=()=>{a!=="focus"&&(l.current=!1,i.current=!1,u())},m=()=>{l.current=!1,i.current=!1,u(!0)},h=()=>{A0()&&(l.current=!0,c())},y=()=>{l.current=!1,i.current=!1,u(!0)},{hoverProps:x}=Ic({isDisabled:r,onHoverStart:f,onHoverEnd:p}),{focusableProps:C}=g1({isDisabled:r,onFocus:h,onBlur:y},n);return{triggerProps:{"aria-describedby":t.isOpen?s:void 0,...Ft(C,x,{onPointerDown:m,onKeyDown:m,tabIndex:void 0})},tooltipProps:{id:s}}}const Pne=1500,NS=500;let bl={},Tne=0,gf=!1,oi=null,gl=null;function cL(e={}){let{delay:t=Pne,closeDelay:n=NS}=e,{isOpen:r,open:a,close:s}=v1(e),i=G.useMemo(()=>`${++Tne}`,[]),l=G.useRef(null),c=G.useRef(s),u=()=>{bl[i]=m},f=()=>{for(let y in bl)y!==i&&(bl[y](!0),delete bl[y])},p=()=>{l.current&&clearTimeout(l.current),l.current=null,f(),u(),gf=!0,a(),oi&&(clearTimeout(oi),oi=null),gl&&(clearTimeout(gl),gl=null)},m=y=>{y||n<=0?(l.current&&clearTimeout(l.current),l.current=null,c.current()):l.current||(l.current=setTimeout(()=>{l.current=null,c.current()},n)),oi&&(clearTimeout(oi),oi=null),gf&&(gl&&clearTimeout(gl),gl=setTimeout(()=>{delete bl[i],gl=null,gf=!1},Math.max(NS,n)))},h=()=>{f(),u(),!r&&!oi&&!gf?oi=setTimeout(()=>{oi=null,gf=!0,p()},t):r||p()};return G.useEffect(()=>{c.current=s},[s]),G.useEffect(()=>()=>{l.current&&clearTimeout(l.current),bl[i]&&delete bl[i]},[i]),{isOpen:r,open:y=>{!y&&t>0&&!l.current?h():p()},close:m}}const sE=G.createContext(null),uL=G.createContext(null);function Sne(e){let t=cL(e),n=G.useRef(null),{triggerProps:r,tooltipProps:a}=Ane(e,t,n);return Pe.createElement($o,{values:[[sE,t],[uL,{...a,triggerRef:n}]]},Pe.createElement(oZ,{...r,ref:n},e.children))}const Bne=G.forwardRef(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=wr(t,n,uL);let r=G.useContext(sE),a=cL(t),s=t.isOpen!=null||t.defaultOpen!=null||!r?a:r,i=Mb(n,s.isOpen)||t.isExiting||!1;return!s.isOpen&&!i?null:Pe.createElement(kne,{portalContainer:e},Pe.createElement(_ne,{...t,tooltipRef:n,isExiting:i}))});function _ne(e){let t=G.useContext(sE),n=G.useRef(null),[r,a]=G.useState(0);qt(()=>
89{n.current&&t.isOpen&&a(n.current.getBoundingClientRect().width)},[t.isOpen,n]);let{overlayProps:s,arrowProps:i,placement:l}=ID({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowSize:r,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,onClose:()=>t.close(!0)}),c=x1(e.tooltipRef,!!l)||e.isEntering||!1,u=ar({...e,defaultClassName:"react-aria-Tooltip",values:{placement:l,isEntering:c,isExiting:e.isExiting,state:t}});e=Ft(e,s);let{tooltipProps:f}=Cne(e,t);return Pe.createElement("div",{...f,ref:e.tooltipRef,...u,style:{...s.style,...u.style},"data-placement":l??void 0,"data-entering":c||void 0,"data-exiting":e.isExiting||void 0},Pe.createElement(O8.Provider,{value:{...i,placement:l,ref:n}},u.children))}function Ine({place:e="top",text:t,children:n,small:r,className:a,delay:s=0,...i}){var l,c;return We.jsxs(Sne,{delay:s,...i,children:[We.jsx(lZ,{children:We.jsx("div",{...i.wrapperProps,role:((l=i==null?void 0:i.wrapperProps)==null?void 0:l.role)??"button",children:n})}),We.jsxs(Bne,{offset:((c=i.tooltipProps)==null?void 0:c.offset)??8,placement:e,...i.tooltipProps,className:Xt("bg-klerosUIComponentsLightBlue w-max max-w-60","border-klerosUIComponentsStroke box-border rounded-[7px] border","flex items-center justify-center px-4 py-[13px]","entering:animate-fade-in exiting:animate-fade-out",a),children:[We.jsx(TY,{...i.overlayArrowProps,className:({placement:u})=>{var f;return Xt("absolute border-8 border-solid content-['']","after:absolute after:border-7 after:border-solid after:content-['']",u==="top"&&["top-full left-1/2","after:-top-[8.5px] after:-left-[7px]","border-t-klerosUIComponentsStroke after:border-t-klerosUIComponentsLightBlue","border-r-transparent border-b-transparent border-l-transparent","after:border-r-transparent after:border-b-transparent after:border-l-transparent"],u==="right"&&["top-1/2 right-full","after:-top-[7px] after:-left-[5.5px]","border-r-klerosUIComponentsStroke after:border-r-klerosUIComponentsLightBlue","border-t-transparent border-b-transparent border-l-transparent","after:border-t-transparent after:border-b-transparent after:border-l-transparent"],u==="bottom"&&["bottom-full left-1/2","after:-top-[5.5px] after:-left-[7px]","border-b-klerosUIComponentsStroke after:border-b-klerosUIComponentsLightBlue","border-t-transparent border-r-transparent border-l-transparent","after:border-t-transparent after:border-r-transparent after:border-l-transparent"],u==="left"&&["top-1/2 left-full","after:-top-[7px] after:-left-[8.5px]","border-l-klerosUIComponentsStroke after:border-l-klerosUIComponentsLightBlue","border-t-transparent border-r-transparent border-b-transparent","after:border-t-transparent after:border-r-transparent after:border-b-transparent"],(f=i.overlayArrowProps)==null?void 0:f.className)}}),We.jsx("small",{className:Qr("text-klerosUIComponentsPrimaryText text-base font-thin break-words",r?"text-center":"text-left"),children:t})]})]})}const Nne=e=>G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",fill:"none",...e},G.createElement("path",{d:"M13.7759 2.06066L12.1289 0.439344C11.8431 0.158039 11.4555 2.08024e-06 11.0514 0L5.5873 0C4.74571 0 4.06349 0.671562 4.06349 1.5V3H1.52381C0.682222 3 0 3.67156 0 4.5V14.5C0 15.3284 0.682222 16 1.52381 16H8.63492C9.47651 16 10.1587 15.3284 10.1587 14.5V13H12.6984C13.54 13 14.2222 12.3284 14.2222 11.5V3.12131C14.2222 2.72349 14.0617 2.34196 13.7759 2.06066ZM8.44444 14.5H1.71429C1.66377 14.5 1.61532 14.4802 1.5796 14.4451C1.54388 14.4099 1.52381 14.3622 1.52381 14.3125V4.6875C1.52381 4.63777 1.54388 4.59008 1.5796 4.55492C1.61532 4.51975 1.66377 4.5 1.71429 4.5H4.06349V11.5C4.06349 12.3284 4.74571 13 5.5873 13H8.63492V14.3125C8.63492 14.3622 8.61485 14.4099 8.57913 14.4451C8.54341 14.4802 8.49496 14.5 8.44444 14.5ZM12.5079 11.5H5.77778C5.72726 11.5 5.67881 11.4802 5.64309 11.4451C5.60737 11.4099 5.5873 11.3622 5.5873 11.3125V1.6875C5.5873 1.63777 5.60737 1.59008 5.64309 1.55492C5.67881 1.51975 5.72726 1.5 5.77778 1.5H9.14286V4.25C9.14286 4.66422 9.48397 5 9.90476 5H12.6984V11.3125C12.6984 11.3622 12.6783 11.4099 12.6426 11.4451C12.6069 11.4802 12.5585 11.5 12.5079 11.5ZM12.6984 3.5H10.6667V1.5H10.9724C11.023 1.5 11.0714 1.5197
895 11.1071 1.55491L12.6426 3.06641C12.6603 3.08382 12.6744 3.10449 12.6839 3.12724C12.6935 3.14999 12.6984 3.17438 12.6984 3.199V3.5Z",fill:"#009AFF"})),Rne=e=>G.createElement("svg",{viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},G.createElement("g",{clipPath:"url(#clip0_13289_179292)"},G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8.5C0 4.08214 3.58214 0.5 8 0.5C12.4179 0.5 16 4.08214 16 8.5C16 12.9179 12.4179 16.5 8 16.5C3.58214 16.5 0 12.9179 0 8.5ZM1.35714 8.5C1.35714 12.1679 4.33214 15.1429 8 15.1429C11.6679 15.1429 14.6429 12.1679 14.6429 8.5C14.6429 4.83214 11.6679 1.85714 8 1.85714C4.33214 1.85714 1.35714 4.83214 1.35714 8.5ZM10.5017 5.66016H11.3392C11.4553 5.66016 11.5232 5.7923 11.4535 5.88694L7.6928 11.1012C7.64024 11.1746 7.57095 11.2344 7.49067 11.2756C7.4104 11.3168 7.32145 11.3384 7.2312 11.3384C7.14095 11.3384 7.052 11.3168 6.97172 11.2756C6.89144 11.2344 6.82215 11.1746 6.76959 11.1012L4.54459 8.01551C4.47673 7.92087 4.54459 7.78873 4.66066 7.78873H5.49816C5.68209 7.78873 5.85352 7.87801 5.96066 8.02623L7.23209 9.79051L10.0392 5.89766C10.1464 5.74766 10.3196 5.66016 10.5017 5.66016Z",fill:"#009AFF"})),G.createElement("defs",null,G.createElement("clipPath",{id:"clip0_13289_179292"},G.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"}))));function Us({copiableContent:e,info:t,children:n,tooltipProps:r,iconPlacement:a="right",className:s,...i}){const[l,c]=G.useState(!1),u=()=>{navigator.clipboard.writeText(e).then(()=>{c(!0),setTimeout(()=>c(!1),2e3)}).catch(()=>c(!1))};return We.jsxs("div",{className:Xt("relative inline-flex items-center gap-2",a==="left"?"flex-row-reverse":"flex-row",s),...i,children:[n,We.jsx(Ine,{text:l?"Copied!":`${t??"Copy"}`,...r,children:We.jsx(hc,{onPress:l?void 0:u,className:"flex size-4 cursor-pointer items-center",children:l?We.jsx(Rne,{className:"copied-icon"}):We.jsx(Nne,{className:"copy-icon"})})})]})}const One="modulepreload",Mne=function(e){return"/"+e},RS={}
89,dL=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let i=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));a=i(n.map(u=>{if(u=Mne(u),u in RS)return;RS[u]=!0;const f=u.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${p}`))return;const m=document.createElement("link");if(m.rel=f?"stylesheet":One,f||(m.as="script"),m.crossOrigin="",m.href=u,c&&m.setAttribute("nonce",c),document.head.appendChild(m),f)return new Promise((h,y)=>{m.addEventListener("load",h),m.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return a.then(i=>{for(const l of i||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})};var xl={},vl={};const Dne="0xC4Ab0d5fE23757BA9B11DBAC7d7220805516410E",Fne="0x17672180793437C9A499A15D876d0FC20C5a304B",Une="0x5f629f27BA26E17e7E309D886A8490d9e0124bd1",jne="0xA703d280cF95DB452E593F834226455C04829ec0",Lne="0xd35B519d08d96188BB89dF874ED48314De84325b",$ne="0x879A9F4476D4445A1deCf40175a700C4c829824D",zne="0x44d3d3d8cB731958Df78DAf531b16E23DfB27450",Hne="0x1F851DE0e959ad33193e5449EC4C23A66eAdbCC7",Kne={ccipAdapter:Dne,ccipReporter:Fne,hashi:Une,lightbulb:jne,lzAdapter:Lne,lzReporter:$ne,switch:"0xF0a33201c552C242752EcA461EBd1Da664edc643",yaho:zne,yaru:Hne},Vne="0xFedEC60E1314501378e3cb313A50F5AbDDbda11b",Gne="0xc8763f92fCf64b37dB9eC840406E22D01BBe0A29",qne="0x110a3Bf7E7B3DDA31de9B5987b4368Da295DF2C1",Wne="0x35CEdbe1421D2ea546aa613e0eCA12F515148068",Jne="0xDdb3cBE1EBdF9095618913C90383AD33d5170C32",Zne="0xC814209b3814165d70B1A21Fa417D7aad67a7bc0",Qne="0x1F851DE0e959ad33193e5449EC4C23A66eAdbCC7",Xne="0xDb364bDCbE89319A28dbaaD7B2225767316f845e",Yne="0xA6243C9DDf54de341De4D30F6955bdF50dE8e488",ere="0x5f629f27BA26E17e7E309D886A8490d9e0124bd1",tre={ccipAdapter:Vne,ccipReporter:Gne,deBridgeAdapter:qne,deBridgeReporter:Wne,hashi:Jne,lightbulb:Zne,lzAdapter:Qne,lzReporter:Xne,switch:"0x8eF6a2C992fCAA06C9E4e08399fad407CAB2eDBF",yaho:Yne,yaru:ere},nre="0x2064321bdb13f1904287e1E9fd4BD6908e5f15e1",rre="0xA2E936f07D05C59327a2fF173f3A7846EbFCc8c4",are="0x78D2C4718c20C02863CCb7FAbDa3505a5a1A1c05",sre="0x13BAD929b1cc92D849E887462efDDCb0ac834226",ire="0xfb0debdc5BDeABa01e575DFEf523D68b846552A1",ore="0x6550728652fc837586C9b64211f621dF60c80910",lre="0x4DB3c230b55cA3e1cEdBA5900D8Dc68df405c5D2",cre="0x2bc0175cAA1C10CC42669d2a1CD8510ed9d79A16",ure="0x969AB2aC35EC63AB70C70e5ab604Cf48e8367A95",dre="0xc25beD933fF49a619A88a326Ab1C5e4f8d60c4Cd",fre={ccipAdapter:nre,ccipReporter:rre,deBridgeAdapter:are,deBridgeReporter:sre,hashi:ire,lightbulb:ore,lzAdapter:lre,lzReporter:cre,switch:"0x983E6AF4f2449A318D2E0580Dc54A3BCe9663080",yaho:ure,yaru:dre},pre="0xd76AD89c56D99A43378e497cd3Ff70130B64cbe4",mre="0x57841Cb92dde96467eDEA3A5c0eaB3AFd0985514",hre="0x5ad7BF3F57055C41140d03cFf428C3c1CB763c0b",yre="0x99A4Cf71D089a282Ac171D9bDFEB7D182Ff13f83",bre="0x99A4Cf71D089a282Ac171D9bDFEB7D182Ff13f83",gre="0x8D79dCd8D71aF391d6aa864A6141Ee307BC1f69f",xre="0x7B62e030cFc4445d39ca5b70d0e5917660B335E8",vre="0x1ef5f1E4d06AD60e9A3FD64D00782c21523F7317",wre="0x47F3Ba12550dFA097c77A10eB6472a881Ea5AA0e",Ere="0x6edeB1ee954744512A1928B13e7C3Ce5D8Ad84fC",kre={axelarAdapter:pre,axelarReporter:mre,ccipAdapter:hre,ccipReporter:yre,hashi:bre,lightbulb:gre,lzAdapter:xre,lzReporter:vre,switch:"0xACe8c605BBf459f6BDEd6FEc31e5B5E2CcC39F36",yaho:wre,yaru:Ere},Cre="0x88fAa01842E32beA05b167C679443009c3891183",Are="0x03995d3617AbD8e76a3cBC8cF2D4e5ecB1ACc52F",Pre="0xb5e70A0d64281A02f30C34C2A5A6602C67F60670",Tre="0xB2A5c3Cf11f9d07a2d2Feb883e68145F837bF927",Sre="0x4d1B257678247A2Bc84A4B8A8a77e16D26484CFe",Bre="0x9E663AE3423E334e8F35048D66E3DEaB387C9A0D",_re="0x8e38320315FDC542C7716aD1441fc4102272C97A",Ire="0xc9893308d2C430Bd7E748b793843565BEd91F648",Nre="0xc
897adf4dED023475f1b601E39444634DF4Ca62905",Rre="0x7AA0c9376178EBC081eAd5C49801C86Ce834D629",Ore={axelarAdapter:Cre,axelarReporter:Are,ccipAdapter:Pre,ccipReporter:Tre,hashi:Sre,lightbulb:Bre,lzAdapter:_re,lzReporter:Ire,switch:"0x35F06De982e6E0d29EB1429D371f7a7f3FCD799C",yaho:Nre,yaru:Rre},Mre="0x5afB69fd2C375BBD09D995FaF5f4b3fD1Ba70315",Dre="0x59AFEfa42f089BC58F3cbFC330eAb01c32Dd1da0",Fre="0x1D59a0dda84ccBdEeae0D2161c8F77A00e17D601",Ure="0x3E7b05c278d33Ce8f9058282CF628f135263d0b8",jre="0xAA5cA1780e6EE781f4550370c504d1f22eA859af",Lre="0x3c2e4C805141BfA811e39c76aE8E1c7a1f1dC881",$re="0x5e6fcfCaa61e4Db57858b7611eD2eC9Fb8e450dd",zre="0xb1678E1df6d66c071b7046F1Ab67d57774f22c89",Hre="0xb286025885808F2A2D42cd9e2204D007f52b135e",Kre="0xd2130B20CB7A1E11cBA1451B029020d5a33229Bc",Vre={axelarAdapter:Mre,axelarReporter:Dre,lightbulb:Fre,switch:"0x068E44A74f49085fBC0c408Bc6Eae43bf585f896",ccipAdapter:Ure,ccipReporter:jre,hashi:Lre,lzAdapter:$re,lzReporter:zre,yaho:Hre,yaru:Kre},Gre="0x47F3Ba12550dFA097c77A10eB6472a881Ea5AA0e",qre="0x455bc1B342b32165BEfA1262C90D780F45F959eD",Wre="0x84757602e211E2B2afFB6b1a171f9B05E9Ef0a66",Jre="0x2773DCFb27C0ED863648AB0cd45e77cC77f00E94",Zre="0x84a1A3389a26104De5db4B9Ffac242ca1DcF7Dda",Qre="0x81B3c15F6fB28b8aEa41b2739417B1934B3A7DdD",Xre="0x0313f25f51f8846fdDFaBCb7F0672e4D3E1C0E76",Yre="0x43017e1d9f66f7E7Be4055CFf6a490F57aF9b8De",eae={deBridgeAdapter:Gre,deBridgeReporter:qre,hashi:Wre,lightbulb:Jre,lzAdapter:Zre,lzReporter:Qre,switch:"0xeD1995Ae173cb68CFd419d91AAee1698e2F5B894",yaho:Xre,yaru:Yre},tae="0x8c45cEFC3e7272560A4ABa91Be1c8661f27F1e49",nae="0xf8eb4EabCeD8ce7393d9AE5bb329cb2BF48A812d",rae="0xDdb3cBE1EBdF9095618913C90383AD33d5170C32",aae="0x110a3Bf7E7B3DDA31de9B5987b4368Da295DF2C1",sae="0x0099aAA79f30eFF626e0E2229833dA66Bfd3968d",iae="0x9Ccc5868d92424695F151aA5e0B3168398b768ee",oae="0xD0375320591ff87797CEb03CBeE80C82fD61BC77",lae="0x5f629f27BA26E17e7E309D886A8490d9e0124bd1",cae={deBridgeAdapter:tae,deBridgeReporter:nae,hashi:rae,lightbulb:aae,lzAdapter:sae,lzReporter:iae,switch:"0x592dc5Aaf28f860af5E01088C6Aa55AFCB057e61",yaho:oae,yaru:lae},uae="0xa9556a6635c7E8c43a9EBfDEC92421B932861EeB",dae="0x4FAfdD7F368b098657eeC7d29dC1d2475dfF9973",fae="0x5ad7BF3F57055C41140d03cFf428C3c1CB763c0b",pae="0xAeA689d136d8Fd7098aC8f2c81aEFE1c34c92E3A",mae="0xBc9f3762A996667A6E0d8dfA70092b7EEC1a6557",hae="0x35a190915AEA87140F3d1173bB459BDe7748eEA9",yae="0x8d0FEC421618dD7c82fB3009DB3f27d87F8026df",bae="0xa59ce958981632C2fe2028717e79C3717858C720",gae={ccipAdapter:uae,ccipReporter:dae,hashi:fae,lightbulb:pae,lzAdapter:mae,lzReporter:hae,switch:"0x5c5844FD8452f1B2a987aE8A5f9Ef674B71b434D",yaho:yae,yaru:bae},xae="0x5CB2196Ac781C0A16e82710BFf133B7743BD5A0c",vae="0xf69BCD5Ff8A64919BE217bC017454aba4f6daa9D",wae="0x99A4Cf71D089a282Ac171D9bDFEB7D182Ff13f83",Eae="0x0C6a1213ea864Bf5f98808e1d1AE8560A001E0eA",kae="0x4927729791055c0671950E8Ad736e1F0e531eF58",Cae="0xACe8c605BBf459f6BDEd6FEc31e5B5E2CcC39F36",Aae="0x1ef5f1E4d06AD60e9A3FD64D00782c21523F7317",Pae="0x8E5d85a11251Da74e23a5B44Ca14CfE89F441981",Tae="0x2EB77941b57d41a7686957E228a264560Ab20634",Sae="0x47F3Ba12550dFA097c77A10eB6472a881Ea5AA0e",Bae={ccipAdapter:xae,ccipReporter:vae,deBridgeAdapter:wae,deBridgeReporter:Eae,hashi:kae,lightbulb:Cae,lzAdapter:Aae,lzReporter:Pae,switch:"0x21FAa2D656F09Fa535C8F0Dded562A34F20E3F03",yaho:Tae,yaru:Sae},_ae="0xc8763f92fCf64b37dB9eC840406E22D01BBe0A29",Iae="0x36fed3b8eaeB87ab8Bc7dB90FA394fD7a1279CfB",Nae="0xE8A05651c3C8a9fE1C8F07D4A4Bf9D225D7Ab6b3",Rae="0xA6243C9DDf54de341De4D30F6955bdF50dE8e488",Oae="0xC1AE18E970760e21Cca355387940e3C5BBcE4A40",Mae="0xC3C43514787E7eDf44e629C3832E623cfb733770",Dae="0x9a8b9BE75F5811989a47b7b3749EAC3D95bbDD80",Fae="0x40126673C226c4dc4329332E761993e0d7215cA4",Uae="0xD0375320591ff87797CEb03CBeE80C82fD61BC77",jae="0x8eF6a2C992fCAA06C9E4e08399fad407CAB2eDBF",Lae={axelarAdapter:_ae,axelarReporter:Iae,ccipAdapter:Nae,ccipReporter:Rae,hashi:Oae,lightbulb:Mae,lzAdapter:Dae,lzReporter:Fae,switch:"0x60af9Fc1dd7d5bce69a66A8AEf456952b03A39C7",yaho:Uae,yaru:jae},$ae="0x1cb5049CEe358585fA20bb1b99487bC627D48AD1",zae="0xf2c03A6Fe57C89be19c646C087C76db2fc02d05F",Hae="0x78E4ae687De18B3B71Ccd0e8a3A76Fed49a02A02",Kae="0xa2E63e22B03493Cc1939CBEc4Bf7187465A53b3E",Vae="0x35635360B90F6eB3517c42D07a05DB13C22dE93D",Gae="0xB836d71eBbB81f71cc0b83d6Ee64575F871CBb72",qae="0xDbdF80c87f414fac8342e04D870764197bD3bAC7",Wae="0x639c26C9F45C634dD14C599cBAa27363D4665C53",Jae={ccipAdapter:$ae,cci
89pReporter:zae,hashi:Hae,lightbulb:Kae,switch:"0xA974928D7Be03B708da8f6722529a3260104bAF1",veaAdapter:Vae,veaReporter:Gae,yaho:qae,yaru:Wae},Zae="0x6058464f467CE7dD95308B6b21D4ec5583e8624F",Qae="0x847Da10a801b0273dee2fAc20372a90Df3Fa8c12",Xae="0x48800eBEf4491C65b2172d3628DdDDC9c47fe430",Yae="0x5f39183d9c449A9E82845B5FBe05799c47BeB102",ese="0xfDF0777B3602794D59dDBE3FCce3157758856a1b",tse="0xCe95f5758f513e7Eb8E035C97a4802265fEf840E",nse="0x8C04D410B1F3B5907dDf4F017FAf7DF1D7f5F597",rse="0xE803DA11AfC72CEa6Fa1A0AfC344015Cce5410A9",ase="0xDbdF80c87f414fac8342e04D870764197bD3bAC7",sse="0x231e48AAEaAC6398978a1dBA4Cd38fcA208Ec391",ise={ccipAdapter:Zae,ccipReporter:Qae,hashi:Xae,lightbulb:Yae,lzAdapter:ese,lzReporter:tse,switch:"0xc9b4e0F220Ca36c619D9726af57773FBAd04dd31",veaAdapter:nse,veaReporter:rse,yaho:ase,yaru:sse},ose="0xeA5DdDC8E5cD3b80a4fCFE4E938CDe08719503cE",lse="0x4d15fAEa79898e7AC7F1DC11E5820DCb467c9d1F",cse="0x813A65f57A9BD7Cf13D67313FF718C2D28B4E51d",use="0xdfF2235A9E4D126a0a45EDf1760b2a8be987480e",dse="0xDEF6Ca77157F93c9F09FfA74E99BBDE79634402c",fse="0x0e389a88d21B1dEFa5291cdfda0e54FdA99bA6ec",pse="0x26CdE2A31681FB27266A529A3F4DA33415C54FBF",mse="0xb06E6759a93860b8B397Bd88DBFBC3A6C07dF6B2",hse="0xDbdF80c87f414fac8342e04D870764197bD3bAC7",yse="0xFe9fF402A80EF4aBA0181759ad4ECDAfc815dFbf",bse={axelarAdapter:ose,axelarReporter:lse,ccipAdapter:cse,ccipReporter:use,hashi:dse,lightbulb:fse,lzAdapter:pse,lzReporter:mse,switch:"0x85Fc947D27b81383684fBA31CACA728c5B0FE468",yaho:hse,yaru:yse},gse="0x7Be1C881942D196D5A5Fd258F6957E1E138aaF46",xse="0xeFaBa97FDc41D754837C8e7853D0B12d0a04F6b1",vse="0x9D31A05F4D069a77016e2c4F8F0C7376eAF1e484",wse="0x0b7752631A63452309DE30dE2c13Fa2413cD8546",Ese="0x862026223A4f09E7c6029FB31AD0Ec031D9d94af",kse="0x57C4defFE018D5Ffe65C23dbE31496C433ABce53",Cse="0x3e71215c32095fd32c458E683D557709c3cef2f9",Ase="0xB589ADAb067Fae921fAFdc1e8b724Bd798FD71B1",Pse={ccipAdapter:gse,ccipReporter:xse,hashi:vse,lightbulb:wse,lzAdapter:Ese,lzReporter:kse,switch:"0x33b1e1777d434E852B2084F62769f34fcc8A9189",yaho:Cse,yaru:Ase},Tse="0xBDB98792c943fD6D0AC63a54Ac519559850B783A",Sse="0x5CB2196Ac781C0A16e82710BFf133B7743BD5A0c",Bse="0x90585a0Dcafa78c163c1df6408d35b10E9B681D4",_se="0xb053C62bbC21DfF6e49891B0b5CB6d86bA4DDf6c",Ise="0xB4176186C618840274cd744FdDc020d536A097d8",Nse="0x47F3Ba12550dFA097c77A10eB6472a881Ea5AA0e",Rse="0xC814209b3814165d70B1A21Fa417D7aad67a7bc0",Ose="0xcF8ABf5434fAB5f3734B07DE5CE3E151850Cf292",Mse={ccipAdapter:Tse,ccipReporter:Sse,hashi:Bse,lightbulb:_se,lzAdapter:Ise,lzReporter:Nse,switch:"0x4927729791055c0671950E8Ad736e1F0e531eF58",yaho:Rse,yaru:Ose},Dse="0xafc2b3026d2D3eD1Fbfeb045AC69C1EF3fcfb8f7",Fse="0x88fAa01842E32beA05b167C679443009c3891183",Use="0x6F41529B07cF077860Fb86CE9db867615f1c3612",jse="0xD0375320591ff87797CEb03CBeE80C82fD61BC77",Lse="0xDFd67a68D3c496F1555aF53CD85309d450F8f501",$se="0xf4d0a27BBE91A0Ada23F0b6644AfeCd80f7f569A",zse="0x8b45202B56684B8E83017E50F7Ba413eDae00D45",Hse="0x8e38320315FDC542C7716aD1441fc4102272C97A",Kse="0x7AA0c9376178EBC081eAd5C49801C86Ce834D629",Vse="0x8c45cEFC3e7272560A4ABa91Be1c8661f27F1e49",Gse={ccipAdapter:Dse,ccipReporter:Fse,deBridgeAdapter:Use,deBridgeReporter:jse,hashi:Lse,lightbulb:$se,lzAdapter:zse,lzReporter:Hse,switch:"0x9E663AE3423E334e8F35048D66E3DEaB387C9A0D",yaho:Kse,yaru:Vse},qse="0x8E51625D8335f2f052B21600Cd68c06D3E8fef96",Wse="0xF5B538fA17c71Cd12214c5F93E3e31AC153a29De",Jse="0xF0a33201c552C242752EcA461EBd1Da664edc643",Zse="0x3Fa9D1872703F2d8bc7e1a20d5f9921DE1E3EfA8",Qse="0x15aC29269b044E1d9042F597513B27Ffa4A7f257",Xse="0xA3DbB4b6e49db5397836976B5Ec89E4887932EC5",Yse="0xd2130B20CB7A1E11cBA1451B029020d5a33229Bc",eie="0x981656a00aB861498E2DCE2a94b1dd416B684844",tie="0x644Be3a596F082CC36D0bD929ABe855180536ac3",nie="0x3c2e4C805141BfA811e39c76aE8E1c7a1f1dC881",rie={ccipAdapter:qse,ccipReporter:Wse,deBridgeAdapter:Jse,deBridgeReporter:Zse,hashi:Qse,lightbulb:Xse,lzAdapter:Yse,lzReporter:eie,switch:"0x370031b9A06F0A1330034D06d47E2eBb827747Db",yaho:tie,yaru:nie},aie="0x792ab19D438606680AA29ba327288A2245d58017",sie="0x2aDcF387FcBA3b1b88C6c60F2F1bcB311f266B35",iie="0x7190b24DFD17af634EB682A839c5dc73537ba39f",oie="0x9F76E6E55bE26329eaEf8ecE2Abb5642B3dE2F23",lie="0xd231B305F050aAeA434B8c7339D03cd7483d
895610",cie="0x78b544002fC88245a48B4d37E0Aada11CD267C0F",uie="0xaeb1b25AfF888E0452B375548662BbbDc7a6Ba73",die="0xa65CA7f7F96f94231bC865c4cB789c126F2Bb7D7",fie="0x12E24D73f0386ACf281fb5d1502fF159df7616Ff",pie="0x05192dAa673078017770CB457572a040CDA092d1",mie={ccipAdapter:aie,ccipReporter:sie,deBridgeAdapter:iie,deBridgeReporter:oie,hashi:lie,lightbulb:cie,lzAdapter:uie,lzReporter:die,switch:"0x07102D7Ab930C74ad0F41A59100e7b63442a7166",yaho:fie,yaru:pie},hie="0x792ab19D438606680AA29ba327288A2245d58017",yie="0xcC5b9238E7b86be12143C3d1A51D172d2107BB27",bie="0x7190b24DFD17af634EB682A839c5dc73537ba39f",gie="0x969AB2aC35EC63AB70C70e5ab604Cf48e8367A95",xie="0xd231B305F050aAeA434B8c7339D03cd7483d5610",vie="0x78b544002fC88245a48B4d37E0Aada11CD267C0F",wie="0xaeb1b25AfF888E0452B375548662BbbDc7a6Ba73",Eie="0x78b544002fC88245a48B4d37E0Aada11CD267C0F",kie="0xd231B305F050aAeA434B8c7339D03cd7483d5610",Cie="0x05192dAa673078017770CB457572a040CDA092d1",Aie={ccipAdapter:hie,ccipReporter:yie,deBridgeAdapter:bie,deBridgeReporter:gie,hashi:xie,lightbulb:vie,lzAdapter:wie,lzReporter:Eie,switch:"0x05192dAa673078017770CB457572a040CDA092d1",yaho:kie,yaru:Cie},Pie="0xC4CB219c640DEa9FE72650644863d3D0e6c9439c",Tie="0x89fc04f3Ad0BdDfbcA89b5876AE28820D6D61fFC",Sie="0x838F1C0aC167ba32984F4e64cdee9a92D5216A45",Bie="0xB46830d65d438d75b7177eE5450a019fe5C905f0",_ie="0x0916f19507B7306C2Eb49D8a672C4c79833ABB23",Iie="0xDd16e514d9a88Ad9241e40289CA0DD27FF3890EF",Nie="0x11520a8C81500FEBfcbaDb17a60406a752153988",Rie="0x2EB77941b57d41a7686957E228a264560Ab20634",Oie="0x644Be3a596F082CC36D0bD929ABe855180536ac3",Mie="0x8b28
89125aB531C8E6cC12351F3AFa92918a1B50a1",Die={axelarAdapter:Pie,axelarReporter:Tie,ccipAdapter:Sie,ccipReporter:Bie,hashi:_ie,lightbulb:Iie,lzAdapter:Nie,lzReporter:Rie,switch:"0x981656a00aB861498E2DCE2a94b1dd416B684844",yaho:Oie,yaru:Mie},Fie="0xBc9f3762A996667A6E0d8dfA70092b7EEC1a6557",Uie="0x98555b9A3Fa80D4725Db6C4B849a18594b162B87",jie="0xC704f9113f447914E385BE312b88d544105efaF7",Lie="0xc69d76763F19518A36Ec388B8a1ad042535a5191",$ie="0x8D34B750890b74e3CAF57413808315c0401BEbDA",zie="0xD0375320591ff87797CEb03CBeE80C82fD61BC77",Hie="0x9fBc03780c1AAc814E6BAD2C35Af4f55fCb31D69",Kie="0xC704f9113f447914E385BE312b88d544105efaF7",Vie="0x88fAa01842E32beA05b167C679443009c3891183",Gie="0x86F316598225b472b8aA8Df366C0E827C1A75C2f",qie={axelarAdapter:Fie,axelarReporter:Uie,ccipAdapter:jie,ccipReporter:Lie,hashi:$ie,lightbulb:zie,lzAdapter:Hie,lzReporter:Kie,switch:"0x1F851DE0e959ad33193e5449EC4C23A66eAdbCC7",yaho:Vie,yaru:Gie},Wie="0x8E217460313B3841BD712219D3907D189ED52993",Jie="0xB589ADAb067Fae921fAFdc1e8b724Bd798FD71B1",Zie="0x55d6eE3D0ebbB82D58E7437FC905Fc19229Be424",Qie="0xDb364bDCbE89319A28dbaaD7B2225767316f845e",Xie="0x0b7752631A63452309DE30dE2c13Fa2413cD8546",Yie="0xf720FA4575FB2FE96c7f05B1b5abc2d281cDa09a",eoe="0xfFA5A8A87b81b7087039a6Df4A71d819db66fE54",toe="0xafc2b3026d2D3eD1Fbfeb045AC69C1EF3fcfb8f7",noe="0x88fAa01842E32beA05b167C679443009c3891183",roe="0x7Be1C881942D196D5A5Fd258F6957E1E138aaF46",aoe={axelarAdapter:Wie,axelarReporter:Jie,ccipAdapter:Zie,ccipReporter:Qie,hashi:Xie,lightbulb:Yie,lzAdapter:eoe,lzReporter:toe,switch:"0xe14E10D605a3c0D1ccc182998239048243810584",yaho:noe,yaru:roe},soe="0x5ECD57eBda6eE4403ee9D0203f409f7CBb9de50c",ioe="0xA813eF49645493C7860709e9cB6a4AF788A9D2CC",ooe="0x694012bb92511715fd2AA38AB6CB20C95C80BCb2",loe="0x21FAa2D656F09Fa535C8F0Dded562A34F20E3F03",coe="0x4c3D38Aba866Cf2eD79F1E877404b39e6db4fFBE",uoe="0x471e1D688C651e538cDE5E17bdF53294E94183B3",doe="0x809E22466B8CD30CCDAf1424C2295f47F781A8c0",foe="0xA3DbB4b6e49db5397836976B5Ec89E4887932EC5",poe="0xcfD14674659bB15D0304a3608239a46A14d77554",moe="0x17962c255EA4D3DAb522d96CDd211F839cA5dfB3",hoe={axelarAdapter:soe,axelarReporter:ioe,ccipAdapter:ooe,ccipReporter:loe,hashi:coe,lightbulb:uoe,lzAdapter:doe,lzReporter:foe,switch:"0x00f08C98e1e5554f9BD62C6351CC8d2cf62d0530",yaho:poe,yaru:moe},yoe="0xd79A5E222A5cf2C7777d5b79C4c378Be130A13bb",boe="0x277EF2f87C41d441e7Eaa14681ba9A0ac5553408",goe="0x5F7c9793954C6EEEa446EFDb21C98F63112B5058",xoe="0xB4176186C618840274cd744FdDc020d536A097d8",voe="0xD9d428a136d735BA618a6faE4cBdfFf311C8D5cA",woe="0x0cac47dA782A3f6b4a91CC28e3cdDde20DD2c7F1",Eoe="0x6d8085afA4685f107b5e231f08780839a5a58aD9",koe="0x47329408a647B27B0B9DE99F6f563077680B672E",Coe="0xf69BCD5Ff8A64919BE217bC017454aba4f6daa9D",Aoe="0xEA3799EA443bf65a7Dc8C1dBfd9e64962f9Af724",Poe={axelarAdapter:yoe,axelarReporter:boe,ccipAdapter:goe,ccipReporter:xoe,hashi:voe,lightbulb:woe,lzAdapter:Eoe,lzReporter:koe,switch:"0x2C4b4cDa6F25b7Fca664a3163a229FE48183A6CE",yaho:Coe,yaru:Aoe};var OS;function fL(){if(OS)return vl;OS=1;var e=vl&&vl.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};
89Object.defineProperty(vl,"__esModule",{value:!0}),vl.ROUTES=void 0;const t=e(Kne),n=e(tre),r=e(fre),a=e(kre),s=e(Ore),i=e(Vre),l=e(eae),c=e(cae),u=e(gae),f=e(Bae),p=e(Lae),m=e(Jae),h=e(ise),y=e(bse),x=e(Pse),C=e(Mse),T=e(Gse),w=e(rie),v=e(mie),g=e(Aie),A=e(Die),S=e(qie),_=e(aoe),k=e(hoe),R=e(Poe);return vl.ROUTES={"1-4217":t.default,"1-4663":n.default,"1-5042":r.default,"1-8453":a.default,"11155111-5042002":s.default,"11155111-84532":i.default,"1514-42161":l.default,"42161-1514":c.default,"42161-4217":u.default,"42161-4663":f.default,"42161-8453":p.default,"421614-10200":m.default,"421614-11155111":h.default,"421614-84532":y.default,"4217-1":x.default,"4217-42161":C.default,"4663-1":T.default,"4663-42161":w.default,"5042-1":v.default,"5042-42161":g.default,"5042002-11155111":A.default,"8453-1":S.default,"8453-42161":_.default,"84532-11155111":k.default,"84532-421614":R.default},vl}var or={},xf={},MS;function pL(){if(MS)return xf;MS=1,Object.defineProperty(xf,"__esModule",{value:!0}),xf.Bridges=void 0;var e;return(function(t){t.LZ="lz",t.CCIP="ccip",t.VEA="vea",t.DEBRIDGE="deBridge",t.AXELAR="axelar"})(e||(xf.Bridges=e={})),xf}var DS;function Toe(){if(DS)return or;DS=1,Object.defineProperty(or,"__esModule",{value:!0}),or.getRoute=r,or.getBridgeAddresses=s,or.getReporter=i,or.getAdapter=l,or.getLightbulb=c,or.getSwitch=u,or.getYaho=f,or.getYaru=p,or.getHashi=m,or.hasRoute=h,or.hasBridge=y,or.getAvailableBridges=x,or.getAllSourceChains=C,or.getDestinationChains=T;const e=fL(),t=pL();function n(w,v){return`${w}-${v}`}function r(w,v){return e.ROUTES[n(w,v)]}function a(w,v){return`${w}${v}`}function s(w,v,g){const A=r(w,v);if(!A)return;const S=A[a(g,"Reporter")],_=A[a(g,"Adapter")];if(!(!S||!_))return{reporter:S,adapter:_}}function i(w,v,g){var A;return(A=s(w,v,g))==null?void 0:A.reporter}function l(w,v,g){var A;return(A=s(w,v,g))==null?void 0:A.adapter}function c(w,v){var g;return(g=r(w,v))==null?void 0:g.lightbulb}function u(w,v){var g;return(g=r(w,v))==null?void 0:g.switch}function f(w,v){var g;return(g=r(w,v))==null?void 0:g.yaho}function p(w,v){var g;return(g=r(w,v))==null?void 0:g.yaru}function m(w,v){var g;return(g=r(w,v))==null?void 0:g.hashi}function h(w,v){return!!r(w,v)}function y(w,v,g){return!!s(w,v,g)}function x(w,v){const g=r(w,v);return g?Object.values(t.Bridges).filter(A=>g[a(A,"Reporter")]&&g[a(A,"Adapter")]):[]}function C(){const v=Object.keys(e.ROUTES).map(g=>parseInt(g.split("-")[0],10));return Array.from(new Set(v)).sort((g,A)=>g-A)}function T(w){const v=Object.keys(e.ROUTES),g=`${w}-`;return v.filter(A=>A.startsWith(g)).map(A=>parseInt(A.split("-")[1],10)).sort((A,S)=>A-S)}return or}var li={},V6={},vf={},G6={},P5=function(e,t){return P5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},P5(e,t)};function mL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");P5(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Lb=function(){return Lb=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Lb.apply(this,arguments)};function hL(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function yL(e,t,n,r){var a=arguments.length,s=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}function bL(e,t){return function(n,r){t(n,r,e)}}function Soe(e,t,n,r,a,s){function i(T){if(T!==void 0&&typeof T!="function")throw new TypeError("Function expected");return T}for(var l=r.kind,c=l==="getter"?"get":l==="setter"?"set":"value",u=!t&&e?r.static?e:e.prototype:null,f=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),p,m=!1,h=n.length-1;h>=0;h--){var y={};for(var x in r)y[x]=x==="access"?{}:r[x];for(var x in r.access)y.access[x]=r.access[x];y.addInitializer=function(T){if(m)throw new TypeError("Cannot add initializer
vendor: 5,516 bytes, line 89
89s after decoration has completed");s.push(i(T||null))};var C=(0,n[h])(l==="accessor"?{get:f.get,set:f.set}:f[c],y);if(l==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(p=i(C.get))&&(f.get=p),(p=i(C.set))&&(f.set=p),(p=i(C.init))&&a.unshift(p)}else(p=i(C))&&(l==="field"?a.unshift(p):f[c]=p)}u&&Object.defineProperty(u,r.name,f),m=!0}function Boe(e,t,n){for(var r=arguments.length>2,a=0;a<t.length;a++)n=r?t[a].call(e,n):t[a].call(e);return r?n:void 0}function _oe(e){return typeof e=="symbol"?e:"".concat(e)}function Ioe(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function gL(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function xL(e,t,n,r){function a(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{u(r.next(f))}catch(p){i(p)}}function c(f){try{u(r.throw(f))}catch(p){i(p)}}function u(f){f.done?s(f.value):a(f.value).then(l,c)}u((r=r.apply(e,t||[])).next())})}function vL(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(u){return function(f){return c([u,f])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(n=0)),n;)try{if(r=1,a&&(s=u[0]&2?a.return:u[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,u[1])).done)return s;switch(a=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1],s=u;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(u);break}s[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],a=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var I1=Object.create?(function(e,t,n,r){r===void 0&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]});function wL(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&I1(t,e,n)}function $b(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function iE(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,s=[],i;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function EL(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(iE(arguments[t]));return e}function kL(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),a=0,t=0;t<n;t++)for(var s=arguments[t],i=0,l=s.length;i<l;i++,a++)r[a]=s[i];return r}function CL(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,s;r<a;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function zu(e){return this instanceof zu?(this.v=e,this):new zu(e)}function AL(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,s=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",i),a[Symbol.asyncIterator]=function(){return this},a;function i(h){return function(y){return Promise.resolve(y).then(h,p)}}function l(h,y){r[h]&&(a[h]=function(x){return new Promise(function(C,T){s.push([h,x,C,T])>1||c(h,x)})},y&&(a[h]=y(a[h])))}function c(h,y){try{u(r[h](y))}catch(x){m(s[0][3],x)}}function u(h){h.value instanceof zu?Promise.resolve(h.value.v).then(f,p):m(s[0][2],h)}function f(h){c("next",h)}function p(h){c("throw",h)}function m(h,y){h(y),s.shift(),s.length&&c(s[0][0],s[0][1])}}function PL(e){var t,n;return t={},r("next"),r("throw",function(a){throw a}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(a,s){t[a]=e[a]?function(i){return(n=!n)?{value:zu(e[a](i)),done:!1}:s?s(i):i}:s}}function TL(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof $b=="function"?$b(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(i){return new Promise(function(l,c){i=e[s](i),a(l,c,i.done,i.value)})}}function a(s,i,l,c){Promise.resolve(c).then(function(u){s({value:u,done:l})},i)}}function SL(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Noe=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};
vendor: 2,590 bytes, line 89
89function BL(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&I1(t,e,n);return Noe(t,e),t}function _L(e){return e&&e.__esModule?e:{default:e}}function IL(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function NL(e,t,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(e,n):a?a.value=n:t.set(e,n),n}function RL(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function OL(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,a;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(a=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");a&&(r=function(){try{a.call(this)}catch(s){return Promise.reject(s)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var Roe=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function ML(e){function t(s){e.error=e.hasError?new Roe(s,e.error,"An error was suppressed during disposal."):s,e.hasError=!0}var n,r=0;function a(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(a);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(a,function(i){return t(i),a()})}else r|=1}catch(i){t(i)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return a()}const Ooe={__extends:mL,__assign:Lb,__rest:hL,__decorate:yL,__param:bL,__metadata:gL,__awaiter:xL,__generator:vL,__createBinding:I1,__exportStar:wL,__values:$b,__read:iE,__spread:EL,__spreadArrays:kL,__spreadArray:CL,__await:zu,__asyncGenerator:AL,__asyncDelegator:PL,__asyncValues:TL,__makeTemplateOb
89ject:SL,__importStar:BL,__importDefault:_L,__classPrivateFieldGet:IL,__classPrivateFieldSet:NL,__classPrivateFieldIn:RL,__addDisposableResource:OL,__disposeResources:ML},Moe=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:OL,get __assign(){return Lb},__asyncDelegator:PL,__asyncGenerator:AL,__asyncValues:TL,__await:zu,__awaiter:xL,__classPrivateFieldGet:IL,__classPrivateFieldIn:RL,__classPrivateFieldSet:NL,__createBinding:I1,__decorate:yL,__disposeResources:ML,__esDecorate:Soe,__exportStar:wL,__extends:mL,__generator:vL,__importDefault:_L,__importStar:BL,__makeTemplateObject:SL,__metadata:gL,__param:bL,__propKey:_oe,__read:iE,__rest:hL,__runInitializers:Boe,__setFunctionName:Ioe,__spread:EL,__spreadArray:CL,__spreadArrays:kL,__values:$b,default:Ooe},Symbol.toStringTag,{value:"Module"})),Doe=wq(Moe);var q6={},wf={},FS;function oE(){return FS||(FS=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.version=void 0,wf.version="6.14.0"),wf}var W6={},Ef={},J6={},wl={},xn={},Gn={},El={},US;function Mc(){if(US)return El;US=1,Object.defineProperty(El,"__esModule",{value:!0}),El.defineProperties=El.resolveProperties=void 0;function e(r,a,s){const i=a.split("|").map(c=>c.trim());for(let c=0;c<i.length;c++)switch(a){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof r===a)return}const l=new Error(`invalid value for type ${a}`);throw l.code="INVALID_ARGUMENT",l.argument=`value.${s}`,l.value=r,l}async function t(r){const a=Object.keys(r);return(await Promise.all(a.map(i=>Promise.resolve(r[i])))).reduce((i,l,c)=>(i[a[c]]=l,i),{})}El.resolveProperties=t;function n(r,a,s){for(let i in a){let l=a[i];const c=s?s[i]:null;c&&e(l,c,i),Object.defineProperty(r,i,{enumerable:!0,value:l,writable:!1})}}return El.defineProperties=n,El}var jS;function Ks(){if(jS)return Gn;jS=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.assertPrivate=Gn.assertNormalize=Gn.assertArgumentCount=Gn.assertArgument=Gn.assert=Gn.makeError=Gn.isCallException=Gn.isError=void 0;const e=oE(),t=Mc();function n(m){if(m==null)return"null";if(Array.isArray(m))return"[ "+m.map(n).join(", ")+" ]";if(m instanceof Uint8Array){const h="0123456789abcdef";let y="0x";for(let x=0;x<m.length;x++)y+=h[m[x]>>4],y+=h[m[x]&15];return y}if(typeof m=="object"&&typeof m.toJSON=="function")return n(m.toJSON());switch(typeof m){case"boolean":case"symbol":return m.toString();case"bigint":return BigInt(m).toString();case"number":return m.toString();case"string":return JSON.stringify(m);case"object":{const h=Object.keys(m);return h.sort(),"{ "+h.map(y=>`${n(y)}: ${n(m[y])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function r(m,h){return m&&m.code===h}Gn.isError=r;function a(m){return r(m,"CALL_EXCEPTION")}Gn.isCallException=a;function s(m,h,y){let x=m;{const T=[];if(y){if("message"in y||"code"in y||"name"in y)throw new Error(`value will overwrite populated values: ${n(y)}`);for(const w in y){if(w==="shortMessage")continue;const v=y[w];T.push(w+"="+n(v))}}T.push(`code=${h}`),T.push(`version=${e.version}`),T.length&&(m+=" ("+T.join(", ")+")")}let C;switch(h){case"INVALID_ARGUMENT":C=new TypeError(m);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":C=new RangeError(m);break;default:C=new Error(m)}return(0,t.defineProperties)(C,{code:h}),y&&Object.assign(C,y),C.shortMessage==null&&(0,t.defineProperties)(C,{shortMessage:x}),C}Gn.makeError=s;function i(m,h,y,x){if(!m)throw s(h,y,x)}Gn.assert=i;function l(m,h,y,x){i(m,h,"INVALID_ARGUMENT",{argument:y,value:x})}Gn.assertArgument=l;function c(m,h,y){y==null&&(y=""),y&&(y=": "+y),i(m>=h,"missing argument"+y,"MISSING_ARGUMENT",{count:m,expectedCount:h}),i(m<=h,"too many arguments"+y,"UNEXPECTED_ARGUMENT",{count:m,expectedCount:h})}Gn.assertArgumentCount=c;const u=["NFD","NFC","NFKD","NFKC"].reduce((m,h)=>{try{if("test".normalize(h)!=="test")throw new Error("bad");if(h==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");m.push(h)}catch{}return m},[]);function f(m){i(u.indexOf(m)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:m}})}Gn.assertNormalize=f;function p(m,h,y){if(y==null&&(y=""),m!==h){let x=y,C="new";y&&(x+=".",C+=" "+y),i(!1,`private constructor; use ${x}from* methods`,"UNSUPPORTED_OPERATION",{operation:C})}}return Gn.assertPrivate=p,Gn}var LS;function fs(){if(LS)return xn;LS=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.zeroPadBytes=xn.zeroPadValue=xn.stripZerosLeft=xn.dataSlice=xn.dataLength=xn.concat=xn.hexlify=xn.isBytesLike=xn.isHexString=xn.getBytesCopy=xn.getBytes=void 0;const e=Ks();function t(x,C,T){if(x instanceof Uint8Array)return T?new Uint8Array(x):x;
89if(typeof x=="string"&&x.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const w=new Uint8Array((x.length-2)/2);let v=2;for(let g=0;g<w.length;g++)w[g]=parseInt(x.substring(v,v+2),16),v+=2;return w}(0,e.assertArgument)(!1,"invalid BytesLike value",C||"value",x)}function n(x,C){return t(x,C,!1)}xn.getBytes=n;function r(x,C){return t(x,C,!0)}xn.getBytesCopy=r;function a(x,C){return!(typeof x!="string"||!x.match(/^0x[0-9A-Fa-f]*$/)||typeof C=="number"&&x.length!==2+2*C||C===!0&&x.length%2!==0)}xn.isHexString=a;function s(x){return a(x,!0)||x instanceof Uint8Array}xn.isBytesLike=s;const i="0123456789abcdef";function l(x){const C=n(x);let T="0x";for(let w=0;w<C.length;w++){const v=C[w];T+=i[(v&240)>>4]+i[v&15]}return T}xn.hexlify=l;function c(x){return"0x"+x.map(C=>l(C).substring(2)).join("")}xn.concat=c;function u(x){return a(x,!0)?(x.length-2)/2:n(x).length}xn.dataLength=u;function f(x,C,T){const w=n(x);return T!=null&&T>w.length&&(0,e.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:w,length:w.length,offset:T}),l(w.slice(C??0,T??w.length))}xn.dataSlice=f;function p(x){let C=l(x).substring(2);for(;C.startsWith("00");)C=C.substring(2);return"0x"+C}xn.stripZerosLeft=p;function m(x,C,T){const w=n(x);(0,e.assert)(C>=w.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(w),length:C,offset:C+1});const v=new Uint8Array(C);return v.fill(0),T?v.set(w,C-w.length):v.set(w,0),l(v)}function h(x,C){return m(x,C,!0)}xn.zeroPadValue=h;function y(x,C){return m(x,C,!1)}return xn.zeroPadBytes=y,xn}var vn={},$S;function km(){if($S)return vn;$S=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.toQuantity=vn.toBeArray=vn.toBeHex=vn.toNumber=vn.getNumber=vn.toBigInt=vn.getUint=vn.getBigInt=vn.mask=vn.toTwos=vn.fromTwos=void 0;const e=fs(),t=Ks(),n=BigInt(0),r=BigInt(1),a=9007199254740991;function s(T,w){const v=u(T,"value"),g=BigInt(m(w,"width"));if((0,t.assert)(v>>g===n,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:T}),v>>g-r){const A=(r<<g)-r;return-((~v&A)+r)}return v}vn.fromTwos=s;function i(T,w){let v=c(T,"value");const g=BigInt(m(w,"width")),A=r<<g-r;if(v<n){v=-v,(0,t.assert)(v<=A,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:T});const S=(r<<g)-r;return(~v&S)+r}else(0,t.assert)(v<A,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:T});return v}vn.toTwos=i;function l(T,w){const v=u(T,"value"),g=BigInt(m(w,"bits"));return v&(r<<g)-r}vn.mask=l;function c(T,w){switch(typeof T){case"bigint":return T;case"number":return(0,t.assertArgument)(Number.isInteger(T),"underflow",w||"value",T),(0,t.assertArgument)(T>=-a&&T<=a,"overflow",w||"value",T),BigInt(T);case"string":try{if(T==="")throw new Error("empty string");return T[0]==="-"&&T[1]!=="-"?-BigInt(T.substring(1)):BigInt(T)}catch(v){(0,t.assertArgument)(!1,`invalid BigNumberish string: ${v.message}`,w||"value",T)}}(0,t.assertArgument)(!1,"invalid BigNumberish value",w||"value",T)}vn.getBigInt=c;function u(T,w){const v=c(T,w);return(0,t.assert)(v>=n,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:T}),v}vn.getUint=u;const f="0123456789abcdef";function p(T){if(T instanceof Uint8Array){let w="0x0";for(const v of T)w+=f[v>>4],w+=f[v&15];return BigInt(w)}return c(T)}vn.toBigInt=p;function m(T,w){switch(typeof T){case"bigint":return(0,t.assertArgument)(T>=-a&&T<=a,"overflow",w||"value",T),Number(T);case"number":return(0,t.assertArgument)(Number.isInteger(T),"underflow",w||"value",T),(0,t.assertArgument)(T>=-a&&T<=a,"overflow",w||"value",T),T;case"string":try{if(T==="")throw new Error("empty string");return m(BigInt(T),w)}catch(v){(0,t.assertArgument)(!1,`invalid numeric string: ${v.message}`,w||"value",T)}}(0,t.assertArgument)(!1,"invalid numeric value",w||"value",T)}vn.getNumber=m;function h(T){return m(p(T))}vn.toNumber=h;function y(T,w){let g=u(T,"value").toString(16);if(w==null)g.length%2&&(g="0"+g);else{const A=m(w,"width");for((0,t.assert)(A*2>=g.length,`value exceeds width (${A} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:T});g.length<A*2;)g="0"+g}return"0x"+g}vn.toBeHex=y;function x(T){const w=u(T,"value");if(w===n)return new Uint8Array([]);let v=w.toString(16);v.length%2&&(v="0"+v);const g=new Uint8Array(v.length/2);for(let A=0;A<g.length;A++){const S=A*2;g[A]=parseInt(v.substring(S,S+2),16)}return g}vn.toBeArray=x;function C(T){let w=(0,e.hexlify)((0,e.isBytesLike)(T)?T:x(T)).substring(2);for(;w.startsWith("0");)w=w.substring(1);return w===""&&(w="0"),"0x"+w}return vn.toQuantity=C,vn}var zS;
89function Foe(){if(zS)return wl;zS=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.decodeBase58=wl.encodeBase58=void 0;const e=fs(),t=Ks(),n=km(),r="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let a=null;function s(f){if(a==null){a={};for(let m=0;m<r.length;m++)a[r[m]]=BigInt(m)}const p=a[f];return(0,t.assertArgument)(p!=null,"invalid base58 value","letter",f),p}const i=BigInt(0),l=BigInt(58);function c(f){const p=(0,e.getBytes)(f);let m=(0,n.toBigInt)(p),h="";for(;m;)h=r[Number(m%l)]+h,m/=l;for(let y=0;y<p.length&&!p[y];y++)h=r[0]+h;return h}wl.encodeBase58=c;function u(f){let p=i;for(let m=0;m<f.length;m++)p*=l,p+=s(f[m]);return p}return wl.decodeBase58=u,wl}var kl={},HS;function DL(){if(HS)return kl;HS=1,Object.defineProperty(kl,"__esModule",{value:!0}),kl.encodeBase64=kl.decodeBase64=void 0;const e=fs();function t(r){r=atob(r);const a=new Uint8Array(r.length);for(let s=0;s<r.length;s++)a[s]=r.charCodeAt(s);return(0,e.getBytes)(a)}kl.decodeBase64=t;function n(r){const a=(0,e.getBytes)(r);let s="";for(let i=0;i<a.length;i++)s+=String.fromCharCode(a[i]);return btoa(s)}return kl.encodeBase64=n,kl}var kf={},KS;function Uoe(){var n;if(KS)return kf;KS=1,Object.defineProperty(kf,"__esModule",{value:!0}),kf.EventPayload=void 0;const e=Mc();class t{constructor(a,s,i){de(this,"filter");de(this,"emitter");Ce(this,n);se(this,n,s),(0,e.defineProperties)(this,{emitter:a,filter:i})}async removeListener(){q(this,n)!=null&&await this.emitter.off(this.filter,q(this,n))}}return n=new WeakMap,kf.EventPayload=t,kf}var ci={},Z6={},VS;function lE(){return VS||(VS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8CodePoints=e.toUtf8String=e.toUtf8Bytes=e.Utf8ErrorFuncs=void 0;const t=fs(),n=Ks();function r(p,m,h,y,x){(0,n.assertArgument)(!1,`invalid codepoint at offset ${m}; ${p}`,"bytes",h)}function a(p,m,h,y,x){if(p==="BAD_PREFIX"||p==="UNEXPECTED_CONTINUE"){let C=0;for(let T=m+1;T<h.length&&h[T]>>6===2;T++)C++;return C}return p==="OVERRUN"?h.length-m-1:0}function s(p,m,h,y,x){return p==="OVERLONG"?((0,n.assertArgument)(typeof x=="number","invalid bad code point for replacement","badCodepoint",x),y.push(x),0):(y.push(65533),a(p,m,h))}e.Utf8ErrorFuncs=Object.freeze({error:r,ignore:a,replace:s});function i(p,m){m==null&&(m=e.Utf8ErrorFuncs.error);const h=(0,t.getBytes)(p,"bytes"),y=[];let x=0;for(;x<h.length;){const C=h[x++];if(C>>7===0){y.push(C);continue}let T=null,w=null;if((C&224)===192)T=1,w=127;else if((C&240)===224)T=2,w=2047;else if((C&248)===240)T=3,w=65535;else{(C&192)===128?x+=m("UNEXPECTED_CONTINUE",x-1,h,y):x+=m("BAD_PREFIX",x-1,h,y);continue}if(x-1+T>=h.length){x+=m("OVERRUN",x-1,h,y);continue}let v=C&(1<<8-T-1)-1;for(let g=0;g<T;g++){let A=h[x];if((A&192)!=128){x+=m("MISSING_CONTINUE",x,h,y),v=null;break}v=v<<6|A&63,x++}if(v!==null){if(v>1114111){x+=m("OUT_OF_RANGE",x-1-T,h,y,v);continue}if(v>=55296&&v<=57343){x+=m("UTF16_SURROGATE",x-1-T,h,y,v);continue}if(v<=w){x+=m("OVERLONG",x-1-T,h,y,v);continue}y.push(v)}}return y}function l(p,m){(0,n.assertArgument)(typeof p=="string","invalid string value","str",p),m!=null&&((0,n.assertNormalize)(m),p=p.normalize(m));let h=[];for(let y=0;y<p.length;
89y++){const x=p.charCodeAt(y);if(x<128)h.push(x);else if(x<2048)h.push(x>>6|192),h.push(x&63|128);else if((x&64512)==55296){y++;const C=p.charCodeAt(y);(0,n.assertArgument)(y<p.length&&(C&64512)===56320,"invalid surrogate pair","str",p);const T=65536+((x&1023)<<10)+(C&1023);h.push(T>>18|240),h.push(T>>12&63|128),h.push(T>>6&63|128),h.push(T&63|128)}else h.push(x>>12|224),h.push(x>>6&63|128),h.push(x&63|128)}return new Uint8Array(h)}e.toUtf8Bytes=l;function c(p){return p.map(m=>m<=65535?String.fromCharCode(m):(m-=65536,String.fromCharCode((m>>10&1023)+55296,(m&1023)+56320))).join("")}function u(p,m){return c(i(p,m))}e.toUtf8String=u;function f(p,m){return i(l(p,m))}e.toUtf8CodePoints=f})(Z6)),Z6}var Cl={},GS;function joe(){if(GS)return Cl;GS=1,Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.getUrl=Cl.createGetUrl=void 0;const e=Ks();function t(a){async function s(i,l){(0,e.assert)(l==null||!l.cancelled,"request cancelled before sending","CANCELLED");const c=i.url.split(":")[0].toLowerCase();(0,e.assert)(c==="http"||c==="https",`unsupported protocol ${c}`,"UNSUPPORTED_OPERATION",{info:{protocol:c},operation:"request"}),(0,e.assert)(c==="https"||!i.credentials||i.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let u=null;const f=new AbortController,p=setTimeout(()=>{u=(0,e.makeError)("request timeout","TIMEOUT"),f.abort()},i.timeout);l&&l.addListener(()=>{u=(0,e.makeError)("request cancelled","CANCELLED"),f.abort()});const m=Object.assign({},a,{method:i.method,headers:new Headers(Array.from(i)),body:i.body||void 0,signal:f.signal});let h;try{h=await fetch(i.url,m)}catch(T){throw clearTimeout(p),u||T}clearTimeout(p);const y={};h.headers.forEach((T,w)=>{y[w.toLowerCase()]=T});const x=await h.arrayBuffer(),C=x==null?null:new Uint8Array(x);return{statusCode:h.status,statusMessage:h.statusText,headers:y,body:C}}return s}Cl.createGetUrl=t;const n=t({});async function r(a,s){return n(a,s)}return Cl.getUrl=r,Cl}var qS;function Loe(){var _,k,R,D,B,M,E,N,I,F,z,U,V,$,O,H,Z,ee,u0,fe,le,xe,he,De,Se;if(qS)return ci;qS=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.FetchResponse=ci.FetchRequest=ci.FetchCancelSignal=void 0;const e=DL(),t=fs(),n=Ks(),r=Mc(),a=lE(),s=joe(),i=12,l=250;let c=(0,s.createGetUrl)();const u=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),f=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let p=!1;async function m(ge,J){try{const Y=ge.match(u);if(!Y)throw new Error("invalid data");return new v(200,"OK",{"content-type":Y[1]||"text/plain"},Y[2]?(0,e.decodeBase64)(Y[3]):A(Y[3]))}catch{return new v(599,"BAD REQUEST (invalid data: URI)",{},null,new w(ge))}}function h(ge){async function J(Y,re){try{const ce=Y.match(f);if(!ce)throw new Error("invalid link");return new w(`${ge}${ce[2]}`)}catch{return new v(599,"BAD REQUEST (invalid IPFS URI)",{},null,new w(Y))}}return J}const y={data:m,ipfs:h("https://gateway.ipfs.io/ipfs/")},x=new WeakMap;class C{constructor(J){Ce(this,_);Ce(this,k);se(this,_,[]),se(this,k,!1),x.set(J,()=>{if(!q(this,k)){se(this,k,!0);for(const Y of q(this,_))setTimeout(()=>{Y()},0);se(this,_,[])}})}addListener(J){(0,n.assert)(!q(this,k),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),q(this,_).push(J)}get cancelled(){return q(this,k)}checkSignal(){(0,n.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}_=new WeakMap,k=new WeakMap,ci.FetchCancelSignal=C;function T(ge){if(ge==null)throw new Error("missing signal; should not happen");return ge.checkSignal(),ge}const ie=class ie{constructor(J){Ce(this,ee);Ce(this,R);Ce(this,D);Ce(this,B);Ce(this,M);Ce(this,E);Ce(this,N);Ce(this,I);Ce(this,F);Ce(this,z);Ce(this,U);Ce(this,V);Ce(this,$);Ce(this,O);Ce(this,H);Ce(this,Z);se(this,N,String(J)),se(this,R,!1),se(this,D,!0),se(this,B,{}),se(this,M,""),se(this,E,3e5),se(this,H,{slotInterval:l,maxAttempts:i}),se(this,Z,null)}get url(){return q(this,N)}set url(J){se(this,N,String(J))}get body(){return q(this,I)==null?null:new Uint8Array(q(this,I))}set body(J){if(J==null)se(this,I,void 0),se(this,F,void 0);else if(typeof J=="string")se(this,I,(0,a.toUtf8Bytes)(J)),se(this,F,"text/plain");else if(J instanceof Uint8Array)se(this,I,J),se(this,F,"application/octet-stream");else if(typeof J=="object")se(this,I,(0,a.toUtf8Bytes)(JSON.stringify(J))),se(this,F,"application/json");else throw new Error("invalid body")}hasBody(){return q(this,I)!=null}get method(){return q(this,M)?q(this,M):this.hasBody()?"POST":"GET"}set method(J){J==null&&(J=""),se(this,M,String(J).toUpperCase())}get headers(){const J=Object.assign({},q(this,B));return q(this,z)&&(J.authorization=`Basic ${(0,e.encodeBase64)((0,a.toUtf8Bytes)(q(this,z)))}`),this.allowGzip&&(J["accept-encoding"]="gzip"),J["content-type"]==null&&q(this,F)&&(J["content-type"]=q(this,F)),this.body&&(J["content-length"]=String(this.body.length)),J}getHeader(J){return this.headers[J.toLowerCase()]}setHeader(J,Y){q(this,B)[String(J).toLowerCase()]=String(Y)}clearHeaders(){se(this,B,{})}[Symbol.iterator](){const J=this.headers,Y=Object.keys(J);let re=0;return{next:()=>{if(re<Y.length){const ce=Y[re++];return{value:[ce,J[ce]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return q(this,z)||null}setCredentials(J,Y){(0,n.assertArgument)(!J.match(/:/),"invalid basic authentication username","username","[REDACTED]"),se(this,z,`${J}:${Y}`)}get allowGzip(){return q(this,D)}set allowGzip(J){se(this,D,!!J)}get allowInsecureAuthentication(){return!!q(this,R)}set allowInsecureAuthentication(J){se(this,R,!!J)}get timeout(){return q(this,E)}set timeout(J){(0,n.assertArgument)(J>=0,"timeout must be non-zero","timeout",J),se(this,E,J)}get preflightFunc(){return q(this,U)||null}set preflightFunc(J){se(this,U,J)}get processFunc(){return q(this,V)||null}set processFunc(J){se(this,V,J)}get retryFunc(){return q(this,$)||null}set retryFunc(J){se(this,$,J)}get getUrlFunc(){return q(this,Z)||c}set getUrlFunc(J){se(this,Z,J)}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${q(this,I)?(0,t.hexlify)(q(this,I)):"null"}>`}setThrottleParams(J){J.slotInterval!=null&&(q(this,H).slotInterval=J.slotInterval),J.maxAttempts!=null&&(q(this,H).maxAttempts=J.maxAttempts)}send(){return(0,n.assert)(q(this,O)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),se(this,O,new C(this)),je(this,ee,u0).call(this,0,g()+this.timeout,0,this,new v(0,"",{},null,this))}cancel(){(0,n.assert)(q(this,O)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const J=x.get(this);if(!J)throw new Error("missing signal; should not happen");J()}redirect(J){const Y=this.url.split(":")[0].toLowerCase(),re=J.split(":")[0].toLowerCase();(0,n.assert)(this.method==="GET"&&(Y!=="https"||re!=="http")&&J.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(J)})`});const ce=new ie(J);return ce.method="GET",ce.allowGzip=this.allowGzip,ce.timeout=this.timeout,se(ce,B,Object.assign({},q(this,B))),q(this,I)&&se(ce,I,new Uint8Array(q(this,I))),se(ce,F,q(this,F)),ce}clone(){const J=new ie(this.url);return se(J,M,q(this,M)),q(this,I)&&se(J,I,q(this,I)),se(J,F,q(this,F)),se(J,B,Object.assign({},q(this,B))),se(J,z,q(this,z)),this.allowGzip&&(J.allowGzip=!0),J.timeout=this.timeout,this.allowInsecureAuthentication&&(J.allowInsecureAuthentication=!0),se(J,U,q(this,U)),se(J,V,q(this,V)),se(J,$,q(this,$)),se(J,H,Object.assign({},q(this,H))),se(J,Z,q(this,Z)),J}static lockConfig(){p=!0}static getGateway(J){return y[J.toLowerCase()]||null}static registerGateway(J,Y){if(J=J.toLowerCase(),J==="http"||J==="https")throw new Error(`cannot intercept ${J}; use registerGetUrl`);if(p)throw new Error("gateways locked");y[J]=Y}static registerGetUrl(J){if(p)throw new Error("gateways locked");c=J}static createGetUrlFunc(J){return(0,s.createGetUrl)(J)}static createDataGateway(){return m}static createIpfsGatewayFunc(J){return h(J)}};R=new WeakMap,D=new WeakMap,B=new WeakMap,M=new WeakMap,E=new WeakMap,N=new WeakMap,I=new WeakMap,F=new WeakMap,z=new WeakMap,U=new WeakMap,V=new WeakMap,$=new WeakMap,O=new WeakMap,H=new WeakMap,Z=new WeakMap,ee=new WeakSet,u0=async function(J,Y,re,ce,Me){var ne,pe,Be;if(J>=q(this,H).maxAttempts)return Me.makeServerError("exceeded maximum retry limit");(0,n.assert)(g()<=Y,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:ce}),re>0&&await S(re);let Ze=this.clone();const ue=(Ze.url.split(":")[0]||"").toLowerCase();if(ue in y){const Re=await y[ue](Ze.url,T(q(ce,O)));if(Re instanceof v){let Qe=Re;if(this.processFunc){T(q(ce,O));try{Qe=await this.processFunc(Ze,Qe)}catch(et){(et.throttle==null||typeof et.stall!="number")&&Qe.makeServerError("error in post-processing function",et).assertOk()}}return Qe}Ze=Re}this.preflightFunc&&(Ze=await this.preflightFunc(Ze));const Q=await this.getUrlFunc(Ze,T(q(ce,O)));let X=new v(Q.statusCode,Q.statusMessage,Q.headers,Q.body,ce);
89if(X.statusCode===301||X.statusCode===302){try{const Re=X.headers.location||"";return je(ne=Ze.redirect(Re),ee,u0).call(ne,J+1,Y,0,ce,X)}catch{}return X}else if(X.statusCode===429&&(this.retryFunc==null||await this.retryFunc(Ze,X,J))){const Re=X.headers["retry-after"];let Qe=q(this,H).slotInterval*Math.trunc(Math.random()*Math.pow(2,J));return typeof Re=="string"&&Re.match(/^[1-9][0-9]*$/)&&(Qe=parseInt(Re)),je(pe=Ze.clone(),ee,u0).call(pe,J+1,Y,Qe,ce,X)}if(this.processFunc){T(q(ce,O));try{X=await this.processFunc(Ze,X)}catch(Re){(Re.throttle==null||typeof Re.stall!="number")&&X.makeServerError("error in post-processing function",Re).assertOk();let Qe=q(this,H).slotInterval*Math.trunc(Math.random()*Math.pow(2,J));return Re.stall>=0&&(Qe=Re.stall),je(Be=Ze.clone(),ee,u0).call(Be,J+1,Y,Qe,ce,X)}}return X};let w=ie;ci.FetchRequest=w;const ke=class ke{constructor(J,Y,re,ce,Me){Ce(this,fe);Ce(this,le);Ce(this,xe);Ce(this,he);Ce(this,De);Ce(this,Se);se(this,fe,J),se(this,le,Y),se(this,xe,Object.keys(re).reduce((Ze,ue)=>(Ze[ue.toLowerCase()]=String(re[ue]),Ze),{})),se(this,he,ce==null?null:new Uint8Array(ce)),se(this,De,Me||null),se(this,Se,{message:""})}toString(){return`<FetchResponse status=${this.statusCode} body=${q(this,he)?(0,t.hexlify)(q(this,he)):"null"}>`}get statusCode(){return q(this,fe)}get statusMessage(){return q(this,le)}get headers(){return Object.assign({},q(this,xe))}get body(){return q(this,he)==null?null:new Uint8Array(q(this,he))}get bodyText(){try{return q(this,he)==null?"":(0,a.toUtf8String)(q(this,he))}catch{(0,n.assert)(!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{(0,n.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const J=this.headers,Y=Object.keys(J);let re=0;return{next:()=>{if(re<Y.length){const ce=Y[re++];return{value:[ce,J[ce]],done:!1}}return{value:void 0,done:!0}}}}makeServerError(J,Y){let re;J?re=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${J})`:(J=`${this.statusCode} ${this.statusMessage}`,re=`CLIENT ESCALATED SERVER ERROR (${J})`);const ce=new ke(599,re,this.headers,this.body,q(this,De)||void 0);return se(ce,Se,{message:J,error:Y}),ce}throwThrottleError(J,Y){Y==null?Y=-1:(0,n.assertArgument)(Number.isInteger(Y)&&Y>=0,"invalid stall timeout","stall",Y);const re=new Error(J||"throttling requests");throw(0,r.defineProperties)(re,{stall:Y,throttle:!0}),re}getHeader(J){return this.headers[J.toLowerCase()]}hasBody(){return q(this,he)!=null}get request(){return q(this,De)}ok(){return q(this,Se).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:J,error:Y}=q(this,Se);J===""&&(J=`server response ${this.statusCode} ${this.statusMessage}`);let re=null;this.request&&(re=this.request.url);let ce=null;try{q(this,he)&&(ce=(0,a.toUtf8String)(q(this,he)))}catch{}(0,n.assert)(!1,J,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:Y,info:{requestUrl:re,responseBody:ce,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};fe=new WeakMap,le=new WeakMap,xe=new WeakMap,he=new WeakMap,De=new WeakMap,Se=new WeakMap;let v=ke;ci.FetchResponse=v;function g(){return new Date().getTime()}function A(ge){return(0,a.toUtf8Bytes)(ge.replace(/%([0-9a-f][0-9a-f])/gi,(J,Y)=>String.fromCharCode(parseInt(Y,16))))}function S(ge){return new Promise(J=>setTimeout(J,ge))}return ci}var Cf={},WS;function FL(){var x,C,T,w,Zl,Ci,T5,S5,B5,_5;if(WS)return Cf;WS=1,Object.defineProperty(Cf,"__esModule",{value:!0}),Cf.FixedNumber=void 0;const e=fs(),t=Ks(),n=km(),r=Mc(),a=BigInt(-1),s=BigInt(0),i=BigInt(1),l=BigInt(5),c={};let u="0000";for(;u.length<80;)u+=u;function f(D){let B=u;for(;B.length<D;)B+=B;return BigInt("1"+B.substring(0,D))}function p(D,B,M){const E=BigInt(B.width);if(B.signed){const N=i<<E-i;(0,t.assert)(M==null||D>=-N&&D<N,"overflow","NUMERIC_FAULT",{operation:M,fault:"overflow",value:D}),D>s?D=(0,n.fromTwos)((0,n.mask)(D,E),E):D=-(0,n.fromTwos)((0,n.mask)(-D,E),E)}else{const N=i<<E;(0,t.assert)(M==null||D>=0&&D<N,"overflow","NUMERIC_FAULT",{operation:M,fault:"overflow",value:D}),D=(D%N+N)%N&N-i}return D}function m(D){typeof D=="number"&&(D=`fixed128x${D}`);let B=!0,M=128,E=18;
89if(typeof D=="string"){if(D!=="fixed")if(D==="ufixed")B=!1;else{const I=D.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);(0,t.assertArgument)(I,"invalid fixed format","format",D),B=I[1]!=="u",M=parseInt(I[2]),E=parseInt(I[3])}}else if(D){const I=D,F=(z,U,V)=>I[z]==null?V:((0,t.assertArgument)(typeof I[z]===U,"invalid fixed format ("+z+" not "+U+")","format."+z,I[z]),I[z]);B=F("signed","boolean",B),M=F("width","number",M),E=F("decimals","number",E)}(0,t.assertArgument)(M%8===0,"invalid FixedNumber width (not byte aligned)","format.width",M),(0,t.assertArgument)(E<=80,"invalid FixedNumber decimals (too large)","format.decimals",E);const N=(B?"":"u")+"fixed"+String(M)+"x"+String(E);return{signed:B,width:M,decimals:E,name:N}}function h(D,B){let M="";D<s&&(M="-",D*=a);let E=D.toString();if(B===0)return M+E;for(;E.length<=B;)E=u+E;const N=E.length-B;for(E=E.substring(0,N)+"."+E.substring(N);E[0]==="0"&&E[1]!==".";)E=E.substring(1);for(;E[E.length-1]==="0"&&E[E.length-2]!==".";)E=E.substring(0,E.length-1);return M+E}const R=class R{constructor(B,M,E){Ce(this,w);de(this,"format");Ce(this,x);Ce(this,C);Ce(this,T);de(this,"_value");(0,t.assertPrivate)(B,c,"FixedNumber"),se(this,C,M),se(this,x,E);const N=h(M,E.decimals);(0,r.defineProperties)(this,{format:E.name,_value:N}),se(this,T,f(E.decimals))}get signed(){return q(this,x).signed}get width(){return q(this,x).width}get decimals(){return q(this,x).decimals}get value(){return q(this,C)}addUnsafe(B){return je(this,w,T5).call(this,B)}add(B){return je(this,w,T5).call(this,B,"add")}subUnsafe(B){return je(this,w,S5).call(this,B)}sub(B){return je(this,w,S5).call(this,B,"sub")}mulUnsafe(B){return je(this,w,B5).call(this,B)}mul(B){return je(this,w,B5).call(this,B,"mul")}mulSignal(B){je(this,w,Zl).call(this,B);const M=q(this,C)*q(B,C);return(0,t.assert)(M%q(this,T)===s,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),je(this,w,Ci).call(this,M/q(this,T),"mulSignal")}divUnsafe(B){return je(this,w,_5).call(this,B)}div(B){return je(this,w,_5).call(this,B,"div")}divSignal(B){(0,t.assert)(q(B,C)!==s,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),je(this,w,Zl).call(this,B);const M=q(this,C)*q(this,T);return(0,t.assert)(M%q(B,C)===s,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),je(this,w,Ci).call(this,M/q(B,C),"divSignal")}cmp(B){let M=this.value,E=B.value;const N=this.decimals-B.decimals;return N>0?E*=f(N):N<0&&(M*=f(-N)),M<E?-1:M>E?1:0}eq(B){return this.cmp(B)===0}lt(B){return this.cmp(B)<0}lte(B){return this.cmp(B)<=0}gt(B){return this.cmp(B)>0}gte(B){return this.cmp(B)>=0}floor(){let B=q(this,C);return q(this,C)<s&&(B-=q(this,T)-i),B=q(this,C)/q(this,T)*q(this,T),je(this,w,Ci).call(this,B,"floor")}ceiling(){let B=q(this,C);return q(this,C)>s&&(B+=q(this,T)-i),B=q(this,C)/q(this,T)*q(this,T),je(this,w,Ci).call(this,B,"ceiling")}round(B){if(B==null&&(B=0),B>=this.decimals)return this;const M=this.decimals-B,E=l*f(M-1);let N=this.value+E;const I=f(M);return N=N/I*I,p(N,q(this,x),"round"),new R(c,N,q(this,x))}isZero(){return q(this,C)===s}isNegative(){return q(this,C)<s}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(B){return R.fromString(this.toString(),B)}static fromValue(B,M,E){const N=M==null?0:(0,n.getNumber)(M),I=m(E);let F=(0,n.getBigInt)(B,"value");const z=N-I.decimals;if(z>0){const U=f(z);(0,t.assert)(F%U===s,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:B}),F/=U}else z<0&&(F*=f(-z));return p(F,I,"fromValue"),new R(c,F,I)}static fromString(B,M){const E=B.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,t.assertArgument)(E&&E[2].length+E[3].length>0,"invalid FixedNumber string value","value",B);const N=m(M);let I=E[2]||"0",F=E[3]||"";for(;F.length<N.decimals;)F+=u;(0,t.assert)(F.substring(N.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:B}),F=F.substring(0,N.decimals);const z=BigInt(E[1]+I+F);return p(z,N,"fromString"),new R(c,z,N)}static fromBytes(B,M){let E=(0,n.toBigInt)((0,e.getBytes)(B,"value"));const N=m(M);return N.signed&&(E=(0,n.fromTwos)(E,N.width)),p(E,N,"fromBytes"),new R(c,E,N)}};x=new WeakMap,C=new WeakMap,T=new WeakMap,w=new WeakSet,Zl=function(B){(0,t.assertArgument)(this.format===B.format,"incompatible format; use fixedNumber.toFormat","other",B)},Ci=function(B,M){return B=p(B,q(this,x),M),new R(c,B,q(this,x))},T5=function(B,M){return je(this,w,Zl).call(this,B),je(this,w,Ci).call(this,q(this,C)+q(B,C),M)},S5=function(B,M){return je(this,w,Zl).call(this,B),je(this,w,Ci).call(this,q(this,C)-q(B,C),M)},B5=function(B,M){return je(this,w,Zl).call(this,B),je(this,w,Ci).call(this,q(this,C)*q(B,C)/q(this,T),M)},_5=function(B,M){return(0,t.assert)(q(B,C)!==s,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),je(this,w,Zl).call(this,B),je(this,w,Ci).call(this,q(this,C)*q(this,T)/q(B,C),M)};let y=R;return Cf.FixedNumber=y,Cf}var Af={},JS;function $oe(){if(JS)return Af;
89JS=1,Object.defineProperty(Af,"__esModule",{value:!0}),Af.decodeRlp=void 0;const e=fs(),t=Ks(),n=fs();function r(c){let u=c.toString(16);for(;u.length<2;)u="0"+u;return"0x"+u}function a(c,u,f){let p=0;for(let m=0;m<f;m++)p=p*256+c[u+m];return p}function s(c,u,f,p){const m=[];for(;f<u+1+p;){const h=i(c,f);m.push(h.result),f+=h.consumed,(0,t.assert)(f<=u+1+p,"child data too short","BUFFER_OVERRUN",{buffer:c,length:p,offset:u})}return{consumed:1+p,result:m}}function i(c,u){(0,t.assert)(c.length!==0,"data too short","BUFFER_OVERRUN",{buffer:c,length:0,offset:1});const f=p=>{(0,t.assert)(p<=c.length,"data short segment too short","BUFFER_OVERRUN",{buffer:c,length:c.length,offset:p})};if(c[u]>=248){const p=c[u]-247;f(u+1+p);const m=a(c,u+1,p);return f(u+1+p+m),s(c,u,u+1+p,p+m)}else if(c[u]>=192){const p=c[u]-192;return f(u+1+p),s(c,u,u+1,p)}else if(c[u]>=184){const p=c[u]-183;f(u+1+p);const m=a(c,u+1,p);f(u+1+p+m);const h=(0,e.hexlify)(c.slice(u+1+p,u+1+p+m));return{consumed:1+p+m,result:h}}else if(c[u]>=128){const p=c[u]-128;f(u+1+p);const m=(0,e.hexlify)(c.slice(u+1,u+1+p));return{consumed:1+p,result:m}}return{consumed:1,result:r(c[u])}}function l(c){const u=(0,n.getBytes)(c,"data"),f=i(u,0);return(0,t.assertArgument)(f.consumed===u.length,"unexpected junk after rlp payload","data",c),f.result}return Af.decodeRlp=l,Af}var Pf={},ZS;function zoe(){if(ZS)return Pf;ZS=1,Object.defineProperty(Pf,"__esModule",{value:!0}),Pf.encodeRlp=void 0;const e=fs();function t(s){const i=[];for(;s;)i.unshift(s&255),s>>=8;return i}function n(s){if(Array.isArray(s)){let c=[];if(s.forEach(function(f){c=c.concat(n(f))}),c.length<=55)return c.unshift(192+c.length),c;const u=t(c.length);return u.unshift(247+u.length),u.concat(c)}const i=Array.prototype.slice.call((0,e.getBytes)(s,"object"));if(i.length===1&&i[0]<=127)return i;if(i.length<=55)return i.unshift(128+i.length),i;const l=t(i.length);return l.unshift(183+l.length),l.concat(i)}const r="0123456789abcdef";function a(s){let i="0x";for(const l of n(s))i+=r[l>>4],i+=r[l&15];return i}return Pf.encodeRlp=a,Pf}var ns={},QS;function Hoe(){if(QS)return ns;QS=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.parseEther=ns.formatEther=ns.parseUnits=ns.formatUnits=void 0;const e=Ks(),t=FL(),n=km(),r=["wei","kwei","mwei","gwei","szabo","finney","ether"];function a(c,u){let f=18;if(typeof u=="string"){const p=r.indexOf(u);(0,e.assertArgument)(p>=0,"invalid unit","unit",u),f=3*p}else u!=null&&(f=(0,n.getNumber)(u,"unit"));return t.FixedNumber.fromValue(c,f,{decimals:f,width:512}).toString()}ns.formatUnits=a;function s(c,u){(0,e.assertArgument)(typeof c=="string","value must be a string","value",c);let f=18;if(typeof u=="string"){const p=r.indexOf(u);(0,e.assertArgument)(p>=0,"invalid unit","unit",u),f=3*p}else u!=null&&(f=(0,n.getNumber)(u,"unit"));return t.FixedNumber.fromString(c,{decimals:f,width:512}).value}ns.parseUnits=s;function i(c){return a(c,18)}ns.formatEther=i;function l(c){return s(c,18)}return ns.parseEther=l,ns}var Tf={},XS;function Koe(){if(XS)return Tf;XS=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.uuidV4=void 0;const e=fs();function t(n){const r=(0,e.getBytes)(n,"randomBytes");r[6]=r[6]&15|64,r[8]=r[8]&63|128;const a=(0,e.hexlify)(r);return[a.substring(2,10),a.substring(10,14),a.substring(14,18),a.substring(18,22),a.substring(22,34)].join("-")}return Tf.uuidV4=t,Tf}var YS;function at(){return YS||(YS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8String=e.toUtf8CodePoints=e.toUtf8Bytes=e.parseUnits=e.formatUnits=e.parseEther=e.formatEther=e.encodeRlp=e.decodeRlp=e.defineProperties=e.resolveProperties=e.toQuantity=e.toBeArray=e.toBeHex=e.toNumber=e.toBigInt=e.getUint=e.getNumber=e.getBigInt=e.mask=e.toTwos=e.fromTwos=e.FixedNumber=e.FetchCancelSignal=e.FetchResponse=e.FetchRequest=e.EventPayload=e.makeError=e.assertNormalize=e.assertPrivate=e.assertArgumentCount=e.assertArgument=e.assert=e.isError=e.isCallException=e.zeroPadBytes=e.zeroPadValue=e.stripZerosLeft=e.dataSlice=e.dataLength=e.concat=e.hexlify=e.isBytesLike=e.isHexString=e.getBytesCopy=e.getBytes=e.encodeBase64=e.decodeBase64=e.encodeBase58=e.decodeBase58=void 0,e.uuidV4=e.Utf8ErrorFuncs=void 0;var t=Foe();Object.defineProperty(e,"decodeBase58",{enumerable:!0,get:function(){return t.decodeBase58}}),Object.defineProperty(e,"encodeBase58",{enumerable:!0,get:function(){return t.encodeBase58}});var n=DL();Object.defineProperty(e,"decodeBase64",{enumerable:!0,get:function(){return n.decodeBase64}}),Object.defineProperty(e,"encodeBase64",{enumerable:!0,get:function(){return n.encodeBase64}});var r=fs();Object.defineProperty(e,"getBytes",{enumerable:!0,get:function(){return r.getBytes}}),Object.defineProperty(e,"getBytesCopy",{enumerable:!0,get:function(){return r.getBytesCopy}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return r.isHexString}}),Object.defineProperty(e,"isBytesLike",{enumerable:!0,get:function(){return r.isBytesLike}}),Object.defineProperty(e,"hexlify",{enumerable:!0,get:function(){return r.hexlify}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return r.concat}}),Object.defineProperty(e,"dataLength",{enumerable:!0,get:function(){return r.dataLength}}),Object.defineProperty(e,"dataSlice",{enumerable:!0,get:function(){return r.dataSlice}}),Object.defineProperty(e,"stripZerosLeft",{enumerable:!0,get:function(){return r.stripZerosLeft}}),Object.defineProperty(e,"zeroPadValue",{enumerable:!0,get:function(){return r.zeroPadValue}}),Object.defineProperty(e,"zeroPadBytes",{enumerable:!0,get:function(){return r.zeroPadBytes}});var a=Ks();Object.defineProperty(e,"isCallException",{enumerable:!0,get:function(){return a.isCallException}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return a.isError}}),Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return a.assert}}),Object.defineProperty(e,"assertArgument",{enumerable:!0,get:function(){return a.assertArgument}}),Object.defineProperty(e,"assertArgumentCount",{enumerable:!0,get:function(){return a.assertArgumentCount}}),Object.defineProperty(e,"assertPrivate",{enumerable:!0,get:function(){return a.assertPrivate}}
89),Object.defineProperty(e,"assertNormalize",{enumerable:!0,get:function(){return a.assertNormalize}}),Object.defineProperty(e,"makeError",{enumerable:!0,get:function(){return a.makeError}});var s=Uoe();Object.defineProperty(e,"EventPayload",{enumerable:!0,get:function(){return s.EventPayload}});var i=Loe();Object.defineProperty(e,"FetchRequest",{enumerable:!0,get:function(){return i.FetchRequest}}),Object.defineProperty(e,"FetchResponse",{enumerable:!0,get:function(){return i.FetchResponse}}),Object.defineProperty(e,"FetchCancelSignal",{enumerable:!0,get:function(){return i.FetchCancelSignal}});var l=FL();Object.defineProperty(e,"FixedNumber",{enumerable:!0,get:function(){return l.FixedNumber}});var c=km();Object.defineProperty(e,"fromTwos",{enumerable:!0,get:function(){return c.fromTwos}}),Object.defineProperty(e,"toTwos",{enumerable:!0,get:function(){return c.toTwos}}),Object.defineProperty(e,"mask",{enumerable:!0,get:function(){return c.mask}}),Object.defineProperty(e,"getBigInt",{enumerable:!0,get:function(){return c.getBigInt}}),Object.defineProperty(e,"getNumber",{enumerable:!0,get:function(){return c.getNumber}}),Object.defineProperty(e,"getUint",{enumerable:!0,get:function(){return c.getUint}}),Object.defineProperty(e,"toBigInt",{enumerable:!0,get:function(){return c.toBigInt}}),Object.defineProperty(e,"toNumber",{enumerable:!0,get:function(){return c.toNumber}}),Object.defineProperty(e,"toBeHex",{enumerable:!0,get:function(){return c.toBeHex}}),Object.defineProperty(e,"toBeArray",{enumerable:!0,get:function(){return c.toBeArray}}),Object.defineProperty(e,"toQuantity",{enumerable:!0,get:function(){return c.toQuantity}});var u=Mc();Object.defineProperty(e,"resolveProperties",{enumerable:!0,get:function(){return u.resolveProperties}}),Object.defineProperty(e,"defineProperties",{enumerable:!0,get:function(){return u.defineProperties}});var f=$oe();Object.defineProperty(e,"decodeRlp",{enumerable:!0,get:function(){return f.decodeRlp}});var p=zoe();Object.defineProperty(e,"encodeRlp",{enumerable:!0,get:function(){return p.encodeRlp}});var m=Hoe();Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return m.formatEther}}),Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return m.parseEther}}),Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return m.formatUnits}}),Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return m.parseUnits}});var h=lE();Object.defineProperty(e,"toUtf8Bytes",{enumerable:!0,get:function(){return h.toUtf8Bytes}}),Object.defineProperty(e,"toUtf8CodePoints",{enumerable:!0,get:function(){return h.toUtf8CodePoints}}),Object.defineProperty(e,"toUtf8String",{enumerable:!0,get:function(){return h.toUtf8String}}),Object.defineProperty(e,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return h.Utf8ErrorFuncs}});var y=Koe();Object.defineProperty(e,"uuidV4",{enumerable:!0,get:function(){return y.uuidV4}})})(J6)),J6}var Q6={},eB;function ws(){return eB||(eB=1,(function(e){var C,w,v,g,db,S,_,k,R,D,B,I5,UL;Object.defineProperty(e,"__esModule",{value:!0}),e.Reader=e.Writer=e.Coder=e.checkResultErrors=e.Result=e.WordSize=void 0;const t=at();e.WordSize=32;const n=new Uint8Array(e.WordSize),r=["then"],a={},s=new WeakMap;function i(I){return s.get(I)}function l(I,F){s.set(I,F)}function c(I,F){const z=new Error(`deferred error during ABI decoding triggered accessing ${I}`);throw z.error=F,z}function u(I,F,z){return I.indexOf(null)>=0?F.map((U,V)=>U instanceof f?u(i(U),U,z):U):I.reduce((U,V,$)=>{let O=F.getValue(V);return V in U||(z&&O instanceof f&&(O=u(i(O),O,z)),U[V]=O),U},{})}const T=class T extends Array{constructor(...z){const U=z[0];let V=z[1],$=(z[2]||[]).slice(),O=!0;U!==a&&(V=z,$=[],O=!1);super(V.length);Ce(this,C);V.forEach((ee,ae)=>{this[ae]=ee});const H=$.reduce((ee,ae)=>(typeof ae=="string"&&ee.set(ae,(ee.get(ae)||0)+1),ee),new Map);if(l(this,Object.freeze(V.map((ee,ae)=>{const ie=$[ae];return ie!=null&&H.get(ie)===1?ie:null}))),se(this,C,[]),q(this,C)==null&&q(this,C),!O)return;Object.freeze(this);const Z=new Proxy(this,{get:(ee,ae,ie)=>{if(typeof ae=="string"){if(ae.match(/^[0-9]+$/)){const le=(0,t.getNumber)(ae,"%index");if(le<0||le>=this.length)throw new RangeError("out of result range");const xe=ee[le];return xe instanceof Error&&c(`index ${le}`,xe),xe}if(r.indexOf(ae)>=0)return Reflect.get(ee,ae,ie);const fe=ee[ae];if(fe instanceof Function)return function(...le){return fe.apply(this===ie?ee:this,le)};if(!(ae in ee))return ee.getValue.apply(this===ie?ee:this,[ae])}return Reflect.get(ee,ae,ie)}});return l(Z,i(this)),Z}toArray(z){const U=[];return this.forEach((V,$)=>{V instanceof Error&&c(`index ${$}`,V),z&&V instanceof T&&(V=V.toArray(z)),U.push(V)}),U}toObject(z){const U=i(this);return U.reduce((V,$,O)=>((0,t.assert)($!=null,`value at index ${O} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),u(U,this,z)),{})}slice(z,U){z==null&&(z=0),z<0&&(z+=this.length,z<0&&(z=0)),U==null&&(U=this.length),U<0&&(U+=this.length,U<0&&(U=0)),U>this.length&&(U=this.length);const V=i(this),$=[],O=[];for(let H=z;H<U;H++)$.push(this[H]),O.push(V[H]);return new T(a,$,O)}filter(z,U){const V=i(this),$=[],O=[];for(let H=0;H<this.length;H++){const Z=this[H];Z instanceof Error&&c(`index ${H}`,Z),z.call(U,Z,H,this)&&($.push(Z),O.push(V[H]))}return new T(a,$,O)}map(z,U){const V=[];for(let $=0;$<this.length;$++){const O=this[$];O instanceof Error&&c(`index ${$}`,O),V.push(z.call(U,O,$,this))}return V}getValue(z){const U=i(this).indexOf(z);if(U===-1)return;const V=this[U];return V instanceof Error&&c(`property ${JSON.stringify(z)}`,V.error),V}static fromItems(z,U){return new T(a,z,U)}};C=new WeakMap;let f=T;e.Result=f;function p(I){const F=[],z=function(U,V){if(Array.isArray(V))for(let $ in V){const O=U.slice();O.push($);try{z(O,V[$])}catch(H){F.push({path:O,error:H})}}};return z([],I),F}e.checkResultErrors=p;function m(I){let F=(0,t.toBeArray)(I);return(0,t.assert)(F.length<=e.WordSize,"value out-of-bounds","BUFFER_OVERRUN",{buffer:F,length:e.WordSize,offset:F.length}),F.length!==e.WordSize&&(F=(0,t.getBytesCopy)((0,t.concat)([n.slice(F.length%e.WordSize),F]))),F}
89class h{constructor(F,z,U,V){de(this,"name");de(this,"type");de(this,"localName");de(this,"dynamic");(0,t.defineProperties)(this,{name:F,type:z,localName:U,dynamic:V},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(F,z){(0,t.assertArgument)(!1,F,this.localName,z)}}e.Coder=h;class y{constructor(){Ce(this,g);Ce(this,w);Ce(this,v);se(this,w,[]),se(this,v,0)}get data(){return(0,t.concat)(q(this,w))}get length(){return q(this,v)}appendWriter(F){return je(this,g,db).call(this,(0,t.getBytesCopy)(F.data))}writeBytes(F){let z=(0,t.getBytesCopy)(F);const U=z.length%e.WordSize;return U&&(z=(0,t.getBytesCopy)((0,t.concat)([z,n.slice(U)]))),je(this,g,db).call(this,z)}writeValue(F){return je(this,g,db).call(this,m(F))}writeUpdatableValue(){const F=q(this,w).length;return q(this,w).push(n),se(this,v,q(this,v)+e.WordSize),z=>{q(this,w)[F]=m(z)}}}w=new WeakMap,v=new WeakMap,g=new WeakSet,db=function(F){return q(this,w).push(F),se(this,v,q(this,v)+F.length),F.length},e.Writer=y;const N=class N{constructor(F,z,U){Ce(this,B);de(this,"allowLoose");Ce(this,S);Ce(this,_);Ce(this,k);Ce(this,R);Ce(this,D);(0,t.defineProperties)(this,{allowLoose:!!z}),se(this,S,(0,t.getBytesCopy)(F)),se(this,k,0),se(this,R,null),se(this,D,U??1024),se(this,_,0)}get data(){return(0,t.hexlify)(q(this,S))}get dataLength(){return q(this,S).length}get consumed(){return q(this,_)}get bytes(){return new Uint8Array(q(this,S))}subReader(F){const z=new N(q(this,S).slice(q(this,_)+F),this.allowLoose,q(this,D));return se(z,R,this),z}readBytes(F,z){let U=je(this,B,UL).call(this,0,F,!!z);return je(this,B,I5).call(this,F),se(this,_,q(this,_)+U.length),U.slice(0,F)}readValue(){return(0,t.toBigInt)(this.readBytes(e.WordSize))}readIndex(){return(0,t.toNumber)(this.readBytes(e.WordSize))}};S=new WeakMap,_=new WeakMap,k=new WeakMap,R=new WeakMap,D=new WeakMap,B=new WeakSet,I5=function(F){var z;if(q(this,R))return je(z=q(this,R),B,I5).call(z,F);se(this,k,q(this,k)+F),(0,t.assert)(q(this,D)<1||q(this,k)<=q(this,D)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${q(this,D)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,t.getBytesCopy)(q(this,S)),offset:q(this,_),length:F,info:{bytesRead:q(this,k),dataLength:this.dataLength}})},UL=function(F,z,U){let V=Math.ceil(z/e.WordSize)*e.WordSize;return q(this,_)+V>q(this,S).length&&(this.allowLoose&&U&&q(this,_)+z<=q(this,S).length?V=z:(0,t.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,t.getBytesCopy)(q(this,S)),length:q(this,S).length,offset:q(this,_)+V})),q(this,S).slice(q(this,_),q(this,_)+V)};let x=N;e.Reader=x})(Q6)),Q6}var Sf={},X6={},Al={},Y6={},Bf={},rs={},ew={},br={},tB;function Cm(){if(tB)return br;tB=1,Object.defineProperty(br,"__esModule",{value:!0}),br.output=br.exists=br.hash=br.bytes=br.bool=br.number=void 0;function e(l){if(!Number.isSafeInteger(l)||l<0)throw new Error(`Wrong positive integer: ${l}`)}br.number=e;function t(l){if(typeof l!="boolean")throw new Error(`Expected boolean, not ${l}`)}br.bool=t;function n(l,...c){if(!(l instanceof Uint8Array))throw new Error("Expected Uint8Array");if(c.length>0&&!c.includes(l.length))throw new Error(`Expected Uint8Array of length ${c}, not of length=${l.length}`)}br.bytes=n;function r(l){if(typeof l!="function"||typeof l.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");e(l.outputLen),e(l.blockLen)}br.hash=r;function a(l,c=!0){if(l.destroyed)throw new Error("Hash instance has been destroyed");if(c&&l.finished)throw new Error("Hash#digest() has already been called")}br.exists=a;function s(l,c){n(l);const u=c.outputLen;if(l.length<u)throw new Error(`digestInto() expects output buffer of length at least ${u}`)}br.output=s;const i={number:e,bool:t,bytes:n,hash:r,exists:a,output:s};return br.default=i,br}var tw={},_f={},nB;function Voe(){return nB||(nB=1,Object.defineProperty(_f,"__esModule",{value:!0}),_f.crypto=void 0,_f.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),_f}var rB;function Vs(){return rB||(rB=1,(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esMo
89dule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const t=Voe(),n=S=>S instanceof Uint8Array,r=S=>new Uint8Array(S.buffer,S.byteOffset,S.byteLength);e.u8=r;const a=S=>new Uint32Array(S.buffer,S.byteOffset,Math.floor(S.byteLength/4));e.u32=a;const s=S=>new DataView(S.buffer,S.byteOffset,S.byteLength);e.createView=s;const i=(S,_)=>S<<32-_|S>>>_;if(e.rotr=i,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const l=Array.from({length:256},(S,_)=>_.toString(16).padStart(2,"0"));function c(S){if(!n(S))throw new Error("Uint8Array expected");let _="";for(let k=0;k<S.length;k++)_+=l[S[k]];return _}e.bytesToHex=c;function u(S){if(typeof S!="string")throw new Error("hex string expected, got "+typeof S);const _=S.length;if(_%2)throw new Error("padded hex string expected, got unpadded hex of length "+_);const k=new Uint8Array(_/2);for(let R=0;R<k.length;R++){const D=R*2,B=S.slice(D,D+2),M=Number.parseInt(B,16);if(Number.isNaN(M)||M<0)throw new Error("Invalid byte sequence");k[R]=M}return k}e.hexToBytes=u;const f=async()=>{};e.nextTick=f;async function p(S,_,k){let R=Date.now();for(let D=0;D<S;D++){k(D);const B=Date.now()-R;B>=0&&B<_||(await(0,e.nextTick)(),R+=B)}}e.asyncLoop=p;function m(S){if(typeof S!="string")throw new Error(`utf8ToBytes expected string, got ${typeof S}`);return new Uint8Array(new TextEncoder().encode(S))}e.utf8ToBytes=m;function h(S){if(typeof S=="string"&&(S=m(S)),!n(S))throw new Error(`expected Uint8Array, got ${typeof S}`);return S}e.toBytes=h;function y(...S){const _=new Uint8Array(S.reduce((R,D)=>R+D.length,0));let k=0;return S.forEach(R=>{if(!n(R))throw new Error("Uint8Array expected");_.set(R,k),k+=R.length}),_}e.concatBytes=y;class x{clone(){return this._cloneInto()}}e.Hash=x;const C={}.toString;function T(S,_){if(_!==void 0&&C.call(_)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(S,_)}e.checkOpts=T;function w(S){const _=R=>S().update(h(R)).digest(),k=S();return _.outputLen=k.outputLen,_.blockLen=k.blockLen,_.create=()=>S(),_}e.wrapConstructor=w;function v(S){const _=(R,D)=>S(D).update(h(R)).digest(),k=S({});return _.outputLen=k.outputLen,_.blockLen=k.blockLen,_.create=R=>S(R),_}e.wrapConstructorWithOpts=v;function g(S){const _=(R,D)=>S(D).update(h(R)).digest(),k=S({});return _.outputLen=k.outputLen,_.blockLen=k.blockLen,_.create=R=>S(R),_}e.wrapXOFConstructorWithOpts=g;function A(S=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(S));throw new Error("crypto.getRandomValues must be defined")}e.randomBytes=A})(tw)),tw}var aB;function cE(){return aB||(aB=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=Cm(),n=Vs();class r extends n.Hash{constructor(i,l){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(i);const c=(0,n.toBytes)(l);if(this.iHash=i.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 u=this.blockLen,f=new Uint8Array(u);f.set(c.length>u?i.create().update(c).digest():c);for(let p=0;p<f.length;p++)f[p]^=54;this.iHash.update(f),this.oHash=i.create();for(let p=0;p<f.length;p++)f[p]^=106;this.oHash.update(f),f.fill(0)}update(i){return(0,t.exists)(this),this.iHash.update(i),this}digestInto(i){(0,t.exists)(this),(0,t.bytes)(i,this.outputLen),this.finished=!0,this.iHash.digestInto(i),this.oHash.update(i),this.oHash.digestInto(i),this.destroy()}digest(){const i=new Uint8Array(this.oHash.outputLen);return this.digestInto(i),i}_cloneInto(i){i||(i=Object.create(Object.getPrototypeOf(this),{}));const{oHash:l,iHash:c,finished:u,destroyed:f,blockLen:p,outputLen:m}=this;return i=i,i.finished=u,i.destroyed=f,i.blockLen=p,i.outputLen=m,i.oHash=l._cloneInto(i.oHash),i.iHash=c._cloneInto(i.iHash),i}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=r;const a=(s,i,l)=>new r(s,i).update(l).digest();e.hmac=a,e.hmac.create=(s,i)=>new r(s,i)})(ew)),ew}var Pl={},sB;function jL(){if(sB)return Pl;
89sB=1,Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.pbkdf2Async=Pl.pbkdf2=void 0;const e=Cm(),t=cE(),n=Vs();function r(l,c,u,f){(0,e.hash)(l);const p=(0,n.checkOpts)({dkLen:32,asyncTick:10},f),{c:m,dkLen:h,asyncTick:y}=p;if((0,e.number)(m),(0,e.number)(h),(0,e.number)(y),m<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const x=(0,n.toBytes)(c),C=(0,n.toBytes)(u),T=new Uint8Array(h),w=t.hmac.create(l,x),v=w._cloneInto().update(C);return{c:m,dkLen:h,asyncTick:y,DK:T,PRF:w,PRFSalt:v}}function a(l,c,u,f,p){return l.destroy(),c.destroy(),f&&f.destroy(),p.fill(0),u}function s(l,c,u,f){const{c:p,dkLen:m,DK:h,PRF:y,PRFSalt:x}=r(l,c,u,f);let C;const T=new Uint8Array(4),w=(0,n.createView)(T),v=new Uint8Array(y.outputLen);for(let g=1,A=0;A<m;g++,A+=y.outputLen){const S=h.subarray(A,A+y.outputLen);w.setInt32(0,g,!1),(C=x._cloneInto(C)).update(T).digestInto(v),S.set(v.subarray(0,S.length));for(let _=1;_<p;_++){y._cloneInto(C).update(v).digestInto(v);for(let k=0;k<S.length;k++)S[k]^=v[k]}}return a(y,x,h,C,v)}Pl.pbkdf2=s;async function i(l,c,u,f){const{c:p,dkLen:m,asyncTick:h,DK:y,PRF:x,PRFSalt:C}=r(l,c,u,f);let T;const w=new Uint8Array(4),v=(0,n.createView)(w),g=new Uint8Array(x.outputLen);for(let A=1,S=0;S<m;A++,S+=x.outputLen){const _=y.subarray(S,S+x.outputLen);v.setInt32(0,A,!1),(T=C._cloneInto(T)).update(w).digestInto(g),_.set(g.subarray(0,_.length)),await(0,n.asyncLoop)(p-1,h,()=>{x._cloneInto(T).update(g).digestInto(g);for(let k=0;k<_.length;k++)_[k]^=g[k]})}return a(x,C,y,T,g)}return Pl.pbkdf2Async=i,Pl}var Tl={},If={},iB;function uE(){if(iB)return If;iB=1,Object.defineProperty(If,"__esModule",{value:!0}),If.SHA2=void 0;const e=Cm(),t=Vs();function n(a,s,i,l){if(typeof a.setBigUint64=="function")return a.setBigUint64(s,i,l);const c=BigInt(32),u=BigInt(4294967295),f=Number(i>>c&u),p=Number(i&u),m=l?4:0,h=l?0:4;a.setUint32(s+m,f,l),a.setUint32(s+h,p,l)}class r extends t.Hash{constructor(s,i,l,c){super(),this.blockLen=s,this.outputLen=i,this.padOffset=l,this.isLE=c,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(s),this.view=(0,t.createView)(this.buffer)}update(s){(0,e.exists)(this);const{view:i,buffer:l,blockLen:c}=this;s=(0,t.toBytes)(s);const u=s.length;for(let f=0;f<u;){const p=Math.min(c-this.pos,u-f);if(p===c){const m=(0,t.createView)(s);for(;c<=u-f;f+=c)this.process(m,f);continue}l.set(s.subarray(f,f+p),this.pos),this.pos+=p,f+=p,this.pos===c&&(this.process(i,0),this.pos=0)}return this.length+=s.length,this.roundClean(),this}digestInto(s){(0,e.exists)(this),(0,e.output)(s,this),this.finished=!0;const{buffer:i,view:l,blockLen:c,isLE:u}=this;let{pos:f}=this;i[f++]=128,this.buffer.subarray(f).fill(0),this.padOffset>c-f&&(this.process(l,0),f=0);for(let x=f;x<c;x++)i[x]=0;n(l,c-8,BigInt(this.length*8),u),this.process(l,0);const p=(0,t.createView)(s),m=this.outputLen;if(m%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=m/4,y=this.get();if(h>y.length)throw new Error("_sha2: outputLen bigger than state");for(let x=0;x<h;x++)p.setUint32(4*x,y[x],u)}digest(){const{buffer:s,outputLen:i}=this;this.digestInto(s);const l=s.slice(0,i);return this.destroy(),l}_cloneInto(s){s||(s=new this.constructor),s.set(...this.get());const{blockLen:i,buffer:l,length:c,finished:u,destroyed:f,pos:p}=this;return s.length=c,s.pos=p,s.finished=u,s.destroyed=f,c%i&&s.buffer.set(l),s}}return If.SHA2=r,If}var oB;function dE(){if(oB)return Tl;oB=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.sha224=Tl.sha256=void 0;const e=uE(),t=Vs(),n=(u,f,p)=>u&f^~u&p,r=(u,f,p)=>u&f^u&p^f&p,a=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
89734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),i=new Uint32Array(64);class l extends e.SHA2{constructor(){super(64,32,8,!1),this.A=s[0]|0,this.B=s[1]|0,this.C=s[2]|0,this.D=s[3]|0,this.E=s[4]|0,this.F=s[5]|0,this.G=s[6]|0,this.H=s[7]|0}get(){const{A:f,B:p,C:m,D:h,E:y,F:x,G:C,H:T}=this;return[f,p,m,h,y,x,C,T]}set(f,p,m,h,y,x,C,T){this.A=f|0,this.B=p|0,this.C=m|0,this.D=h|0,this.E=y|0,this.F=x|0,this.G=C|0,this.H=T|0}process(f,p){for(let g=0;g<16;g++,p+=4)i[g]=f.getUint32(p,!1);for(let g=16;g<64;g++){const A=i[g-15],S=i[g-2],_=(0,t.rotr)(A,7)^(0,t.rotr)(A,18)^A>>>3,k=(0,t.rotr)(S,17)^(0,t.rotr)(S,19)^S>>>10;i[g]=k+i[g-7]+_+i[g-16]|0}let{A:m,B:h,C:y,D:x,E:C,F:T,G:w,H:v}=this;for(let g=0;g<64;g++){const A=(0,t.rotr)(C,6)^(0,t.rotr)(C,11)^(0,t.rotr)(C,25),S=v+A+n(C,T,w)+a[g]+i[g]|0,k=((0,t.rotr)(m,2)^(0,t.rotr)(m,13)^(0,t.rotr)(m,22))+r(m,h,y)|0;v=w,w=T,T=C,C=x+S|0,x=y,y=h,h=m,m=S+k|0}m=m+this.A|0,h=h+this.B|0,y=y+this.C|0,x=x+this.D|0,C=C+this.E|0,T=T+this.F|0,w=w+this.G|0,v=v+this.H|0,this.set(m,h,y,x,C,T,w,v)}roundClean(){i.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class c extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}return Tl.sha256=(0,t.wrapConstructor)(()=>new l),Tl.sha224=(0,t.wrapConstructor)(()=>new c),Tl}var ha={},St={},lB;function LL(){if(lB)return St;lB=1,Object.defineProperty(St,"__esModule",{value:!0}),St.add5L=St.add5H=St.add4H=St.add4L=St.add3H=St.add3L=St.add=St.rotlBL=St.rotlBH=St.rotlSL=St.rotlSH=St.rotr32L=St.rotr32H=St.rotrBL=St.rotrBH=St.rotrSL=St.rotrSH=St.shrSL=St.shrSH=St.toBig=St.split=St.fromBig=void 0;const e=BigInt(2**32-1),t=BigInt(32);function n(R,D=!1){return D?{h:Number(R&e),l:Number(R>>t&e)}:{h:Number(R>>t&e)|0,l:Number(R&e)|0}}St.fromBig=n;function r(R,D=!1){let B=new Uint32Array(R.length),M=new Uint32Array(R.length);for(let E=0;E<R.length;E++){const{h:N,l:I}=n(R[E],D);[B[E],M[E]]=[N,I]}return[B,M]}St.split=r;const a=(R,D)=>BigInt(R>>>0)<<t|BigInt(D>>>0);St.toBig=a;const s=(R,D,B)=>R>>>B;St.shrSH=s;const i=(R,D,B)=>R<<32-B|D>>>B;St.shrSL=i;const l=(R,D,B)=>R>>>B|D<<32-B;St.rotrSH=l;const c=(R,D,B)=>R<<32-B|D>>>B;St.rotrSL=c;const u=(R,D,B)=>R<<64-B|D>>>B-32;St.rotrBH=u;const f=(R,D,B)=>R>>>B-32|D<<64-B;St.rotrBL=f;const p=(R,D)=>D;St.rotr32H=p;const m=(R,D)=>R;St.rotr32L=m;const h=(R,D,B)=>R<<B|D>>>32-B;St.rotlSH=h;const y=(R,D,B)=>D<<B|R>>>32-B;St.rotlSL=y;const x=(R,D,B)=>D<<B-32|R>>>64-B;St.rotlBH=x;const C=(R,D,B)=>R<<B-32|D>>>64-B;St.rotlBL=C;function T(R,D,B,M){const E=(D>>>0)+(M>>>0);return{h:R+B+(E/2**32|0)|0,l:E|0}}St.add=T;const w=(R,D,B)=>(R>>>0)+(D>>>0)+(B>>>0);St.add3L=w;const v=(R,D,B,M)=>D+B+M+(R/2**32|0)|0;St.add3H=v;const g=(R,D,B,M)=>(R>>>0)+(D>>>0)+(B>>>0)+(M>>>0);St.add4L=g;const A=(R,D,B,M,E)=>D+B+M+E+(R/2**32|0)|0;St.add4H=A;const S=(R,D,B,M,E)=>(R>>>0)+(D>>>0)+(B>>>0)+(M>>>0)+(E>>>0);St.add5L=S;const _=(R,D,B,M,E,N)=>D+B+M+E+N+(R/2**32|0)|0;St.add5H=_;const k={fromBig:n,split:r,toBig:a,shrSH:s,shrSL:i,rotrSH:l,rotrSL:c,rotrBH:u,rotrBL:f,rotr32H:p,rotr32L:m,rotlSH:h,rotlSL:y,rotlBH:x,rotlBL:C,add:T,add3L:w,add3H:v,add4L:g,add4H:A,add5H:_,add5L:S};return St.default=k,St}var cB;function Goe(){if(cB)return ha;cB=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.sha384=ha.sha512_256=ha.sha512_224=ha.sha512=ha.SHA512=void 0;const e=uE(),t=LL(),n=Vs(),[r,a]=t.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a854
896d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(p=>BigInt(p))),s=new Uint32Array(80),i=new Uint32Array(80);class l extends e.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:m,Al:h,Bh:y,Bl:x,Ch:C,Cl:T,Dh:w,Dl:v,Eh:g,El:A,Fh:S,Fl:_,Gh:k,Gl:R,Hh:D,Hl:B}=this;return[m,h,y,x,C,T,w,v,g,A,S,_,k,R,D,B]}set(m,h,y,x,C,T,w,v,g,A,S,_,k,R,D,B){this.Ah=m|0,this.Al=h|0,this.Bh=y|0,this.Bl=x|0,this.Ch=C|0,this.Cl=T|0,this.Dh=w|0,this.Dl=v|0,this.Eh=g|0,this.El=A|0,this.Fh=S|0,this.Fl=_|0,this.Gh=k|0,this.Gl=R|0,this.Hh=D|0,this.Hl=B|0}process(m,h){for(let N=0;N<16;N++,h+=4)s[N]=m.getUint32(h),i[N]=m.getUint32(h+=4);for(let N=16;N<80;N++){const I=s[N-15]|0,F=i[N-15]|0,z=t.default.rotrSH(I,F,1)^t.default.rotrSH(I,F,8)^t.default.shrSH(I,F,7),U=t.default.rotrSL(I,F,1)^t.default.rotrSL(I,F,8)^t.default.shrSL(I,F,7),V=s[N-2]|0,$=i[N-2]|0,O=t.default.rotrSH(V,$,19)^t.default.rotrBH(V,$,61)^t.default.shrSH(V,$,6),H=t.default.rotrSL(V,$,19)^t.default.rotrBL(V,$,61)^t.default.shrSL(V,$,6),Z=t.default.add4L(U,H,i[N-7],i[N-16]),ee=t.default.add4H(Z,z,O,s[N-7],s[N-16]);s[N]=ee|0,i[N]=Z|0}let{Ah:y,Al:x,Bh:C,Bl:T,Ch:w,Cl:v,Dh:g,Dl:A,Eh:S,El:_,Fh:k,Fl:R,Gh:D,Gl:B,Hh:M,Hl:E}=this;for(let N=0;N<80;N++){const I=t.default.rotrSH(S,_,14)^t.default.rotrSH(S,_,18)^t.default.rotrBH(S,_,41),F=t.default.rotrSL(S,_,14)^t.default.rotrSL(S,_,18)^t.default.rotrBL(S,_,41),z=S&k^~S&D,U=_&R^~_&B,V=t.default.add5L(E,F,U,a[N],i[N]),$=t.default.add5H(V,M,I,z,r[N],s[N]),O=V|0,H=t.default.rotrSH(y,x,28)^t.default.rotrBH(y,x,34)^t.default.rotrBH(y,x,39),Z=t.default.rotrSL(y,x,28)^t.default.rotrBL(y,x,34)^t.default.rotrBL(y,x,39),ee=y&C^y&w^C&w,ae=x&T^x&v^T&v;M=D|0,E=B|0,D=k|0,B=R|0,k=S|0,R=_|0,{h:S,l:_}=t.default.add(g|0,A|0,$|0,O|0),g=w|0,A=v|0,w=C|0,v=T|0,C=y|0,T=x|0;const ie=t.default.add3L(O,Z,ae);y=t.default.add3H(ie,$,H,ee),x=ie|0}({h:y,l:x}=t.default.add(this.Ah|0,this.Al|0,y|0,x|0)),{h:C,l:T}=t.default.add(this.Bh|0,this.Bl|0,C|0,T|0),{h:w,l:v}=t.default.add(this.Ch|0,this.Cl|0,w|0,v|0),{h:g,l:A}=t.default.add(this.Dh|0,this.Dl|0,g|0,A|0),{h:S,l:_}=t.default.add(this.Eh|0,this.El|0,S|0,_|0),{h:k,l:R}=t.default.add(this.Fh|0,this.Fl|0,k|0,R|0),{h:D,l:B}=t.default.add(this.Gh|0,this.Gl|0,D|0,B|0),{h:M,l:E}=t.default.add(this.Hh|0,this.Hl|0,M|0,E|0),this.set(y,x,C,T,w,v,g,A,S,_,k,R,D,B,M,E)}roundClean(){s.fill(0),i.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}ha.SHA512=l;class c extends l{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class u extends l{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class f extends l{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}return ha.sha512=(0,n.wrapConstructor)(()=>new l),ha.sha512_224=(0,n.wrapConstructor)(()=>new c),ha.sha512_256=(0,n.wrapConstructor)(()=>new u),ha.sha384=(0,n.wrapConstructor)(()=>new f),ha}var uB;function N1(){if(uB)return rs;uB=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.randomBytes=rs.pbkdf2Sync=rs.createHmac=rs.createHash=void 0;
89const e=cE(),t=jL(),n=dE(),r=Goe(),a=at();function s(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof Eb<"u")return Eb;throw new Error("unable to locate global object")}const i=s(),l=i.crypto||i.msCrypto;function c(m){switch(m){case"sha256":return n.sha256.create();case"sha512":return r.sha512.create()}(0,a.assertArgument)(!1,"invalid hashing algorithm name","algorithm",m)}rs.createHash=c;function u(m,h){const y={sha256:n.sha256,sha512:r.sha512}[m];return(0,a.assertArgument)(y!=null,"invalid hmac algorithm","algorithm",m),e.hmac.create(y,h)}rs.createHmac=u;function f(m,h,y,x,C){const T={sha256:n.sha256,sha512:r.sha512}[C];return(0,a.assertArgument)(T!=null,"invalid pbkdf2 algorithm","algorithm",C),(0,t.pbkdf2)(T,m,h,{c:y,dkLen:x})}rs.pbkdf2Sync=f;function p(m){(0,a.assert)(l!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,a.assertArgument)(Number.isInteger(m)&&m>0&&m<=1024,"invalid length","length",m);const h=new Uint8Array(m);return l.getRandomValues(h),h}return rs.randomBytes=p,rs}var dB;function qoe(){if(dB)return Bf;dB=1,Object.defineProperty(Bf,"__esModule",{value:!0}),Bf.computeHmac=void 0;const e=N1(),t=at();let n=!1;const r=function(i,l,c){return(0,e.createHmac)(i,l).update(c).digest()};let a=r;function s(i,l,c){const u=(0,t.getBytes)(l,"key"),f=(0,t.getBytes)(c,"data");return(0,t.hexlify)(a(i,u,f))}return Bf.computeHmac=s,s._=r,s.lock=function(){n=!0},s.register=function(i){if(n)throw new Error("computeHmac is locked");a=i},Object.freeze(s),Bf}var Nf={},ln={},fB;function Woe(){if(fB)return ln;fB=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.shake256=ln.shake128=ln.keccak_512=ln.keccak_384=ln.keccak_256=ln.keccak_224=ln.sha3_512=ln.sha3_384=ln.sha3_256=ln.sha3_224=ln.Keccak=ln.keccakP=void 0;const e=Cm(),t=LL(),n=Vs(),[r,a,s]=[[],[],[]],i=BigInt(0),l=BigInt(1),c=BigInt(2),u=BigInt(7),f=BigInt(256),p=BigInt(113);for(let g=0,A=l,S=1,_=0;g<24;g++){[S,_]=[_,(2*S+3*_)%5],r.push(2*(5*_+S)),a.push((g+1)*(g+2)/2%64);let k=i;for(let R=0;R<7;R++)A=(A<<l^(A>>u)*p)%f,A&c&&(k^=l<<(l<<BigInt(R))-l);s.push(k)}const[m,h]=(0,t.split)(s,!0),y=(g,A,S)=>S>32?(0,t.rotlBH)(g,A,S):(0,t.rotlSH)(g,A,S),x=(g,A,S)=>S>32?(0,t.rotlBL)(g,A,S):(0,t.rotlSL)(g,A,S);function C(g,A=24){const S=new Uint32Array(10);for(let _=24-A;_<24;_++){for(let D=0;D<10;D++)S[D]=g[D]^g[D+10]^g[D+20]^g[D+30]^g[D+40];for(let D=0;D<10;D+=2){const B=(D+8)%10,M=(D+2)%10,E=S[M],N=S[M+1],I=y(E,N,1)^S[B],F=x(E,N,1)^S[B+1];for(let z=0;z<50;z+=10)g[D+z]^=I,g[D+z+1]^=F}let k=g[2],R=g[3];for(let D=0;D<24;D++){const B=a[D],M=y(k,R,B),E=x(k,R,B),N=r[D];k=g[N],R=g[N+1],g[N]=M,g[N+1]=E}for(let D=0;D<50;D+=10){for(let B=0;B<10;B++)S[B]=g[D+B];for(let B=0;B<10;B++)g[D+B]^=~S[(B+2)%10]&S[(B+4)%10]}g[0]^=m[_],g[1]^=h[_]}S.fill(0)}ln.keccakP=C;class T extends n.Hash{constructor(A,S,_,k=!1,R=24){if(super(),this.blockLen=A,this.suffix=S,this.outputLen=_,this.enableXOF=k,this.rounds=R,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,e.number)(_),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,n.u32)(this.state)}keccak(){C(this.state32,this.rounds),this.posOut=0,this.pos=0}update(A){(0,e.exists)(this);const{blockLen:S,state:_}=this;A=(0,n.toBytes)(A);const k=A.length;for(let R=0;R<k;){const D=Math.min(S-this.pos,k-R);for(let B=0;B<D;B++)_[this.pos++]^=A[R++];this.pos===S&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:A,suffix:S,pos:_,blockLen:k}=this;A[_]^=S,(S&128)!==0&&_===k-1&&this.keccak(),A[k-1]^=128,this.keccak()}writeInto(A){(0,e.exists)(this,!1),(0,e.bytes)(A),this.finish();const S=this.state,{blockLen:_}=this;for(let k=0,R=A.length;k<R;){this.posOut>=_&&this.keccak();const D=Math.min(_-this.posOut,R-k);A.set(S.subarray(this.posOut,this.posOut+D),k),this.posOut+=D,k+=D}return A}xofInto(A){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(A)}xof(A){return(0,e.number)(A),this.xofInto(new Uint8Array(A))}digestInto(A){if((0,e.output)(A,this),this.finished)throw new Error("digest() was already called");return this.writeInto(A),this.destroy(),A}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(A){const{blockLen:S,suffix:_,outputLen:k,rounds:R,enableXOF:D}=this;return A||(A=new T(S,_,k,D,R)),A.state32.set(this.state32),A.pos=this.pos,A.posOut=this.posOut,A.finished=this.finished,A.rounds=R,A.suffix=_,A.outputLen=k,A.enableXOF=D,A.destroyed=this.destroyed,A}}ln.Keccak=T;const w=(g,A,S)=>(0,n.wrapConstructor)(()=>new T(A,g,S));ln.sha3_224=w(6,144,224/8),ln.sha3_256=w(6,136,256/8),ln.sha3_384=w(6,104,384/8),ln.sha3_512=w(6,72,512/8),ln.keccak_224=w(1,144,224/8),ln.keccak_256=w(1,136,256/8),ln.keccak_384=w(1,104,384/8),ln.keccak_512=w(1,72,512/8);const v=(g,A,S)=>(0,n.wrapXOFConstructorWithOpts)((_={})=>new T(A,g,_.dkLen===void 0?S:_.dkLen,!0));return ln.shake128=v(31,168,128/8),ln.shake256=v(31,136,256/8),ln}var pB;function Joe(){if(pB)return Nf;
89pB=1,Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.keccak256=void 0;const e=Woe(),t=at();let n=!1;const r=function(i){return(0,e.keccak_256)(i)};let a=r;function s(i){const l=(0,t.getBytes)(i,"data");return(0,t.hexlify)(a(l))}return Nf.keccak256=s,s._=r,s.lock=function(){n=!0},s.register=function(i){if(n)throw new TypeError("keccak256 is locked");a=i},Object.freeze(s),Nf}var Rf={},Sl={},mB;function Zoe(){if(mB)return Sl;mB=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.ripemd160=Sl.RIPEMD160=void 0;const e=uE(),t=Vs(),n=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),r=Uint8Array.from({length:16},(C,T)=>T),a=r.map(C=>(9*C+5)%16);let s=[r],i=[a];for(let C=0;C<4;C++)for(let T of[s,i])T.push(T[C].map(w=>n[w]));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(C=>new Uint8Array(C)),c=s.map((C,T)=>C.map(w=>l[T][w])),u=i.map((C,T)=>C.map(w=>l[T][w])),f=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),p=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),m=(C,T)=>C<<T|C>>>32-T;function h(C,T,w,v){return C===0?T^w^v:C===1?T&w|~T&v:C===2?(T|~w)^v:C===3?T&v|w&~v:T^(w|~v)}const y=new Uint32Array(16);class x extends e.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:T,h1:w,h2:v,h3:g,h4:A}=this;return[T,w,v,g,A]}set(T,w,v,g,A){this.h0=T|0,this.h1=w|0,this.h2=v|0,this.h3=g|0,this.h4=A|0}process(T,w){for(let E=0;E<16;E++,w+=4)y[E]=T.getUint32(w,!0);let v=this.h0|0,g=v,A=this.h1|0,S=A,_=this.h2|0,k=_,R=this.h3|0,D=R,B=this.h4|0,M=B;for(let E=0;E<5;E++){const N=4-E,I=f[E],F=p[E],z=s[E],U=i[E],V=c[E],$=u[E];for(let O=0;O<16;O++){const H=m(v+h(E,A,_,R)+y[z[O]]+I,V[O])+B|0;v=B,B=R,R=m(_,10)|0,_=A,A=H}for(let O=0;O<16;O++){const H=m(g+h(N,S,k,D)+y[U[O]]+F,$[O])+M|0;g=M,M=D,D=m(k,10)|0,k=S,S=H}}this.set(this.h1+_+D|0,this.h2+R+M|0,this.h3+B+g|0,this.h4+v+S|0,this.h0+A+k|0)}roundClean(){y.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}return Sl.RIPEMD160=x,Sl.ripemd160=(0,t.wrapConstructor)(()=>new x),Sl}var hB;function Qoe(){if(hB)return Rf;hB=1,Object.defineProperty(Rf,"__esModule",{value:!0}),Rf.ripemd160=void 0;const e=Zoe(),t=at();let n=!1;const r=function(i){return(0,e.ripemd160)(i)};let a=r;function s(i){const l=(0,t.getBytes)(i,"data");return(0,t.hexlify)(a(l))}return Rf.ripemd160=s,s._=r,s.lock=function(){n=!0},s.register=function(i){if(n)throw new TypeError("ripemd160 is locked");a=i},Object.freeze(s),Rf}var Of={},yB;function Xoe(){if(yB)return Of;yB=1,Object.defineProperty(Of,"__esModule",{value:!0}),Of.pbkdf2=void 0;const e=N1(),t=at();let n=!1;const r=function(i,l,c,u,f){return(0,e.pbkdf2Sync)(i,l,c,u,f)};let a=r;function s(i,l,c,u,f){const p=(0,t.getBytes)(i,"password"),m=(0,t.getBytes)(l,"salt");return(0,t.hexlify)(a(p,m,c,u,f))}return Of.pbkdf2=s,s._=r,s.lock=function(){n=!0},s.register=function(i){if(n)throw new Error("pbkdf2 is locked");a=i},Object.freeze(s),Of}var Mf={},bB;function Yoe(){if(bB)return Mf;bB=1,Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.randomBytes=void 0;const e=N1();let t=!1;const n=function(s){return new Uint8Array((0,e.randomBytes)(s))};let r=n;function a(s){return r(s)}return Mf.randomBytes=a,a._=n,a.lock=function(){t=!0},a.register=function(s){if(t)throw new Error("randomBytes is locked");r=s},Object.freeze(a),Mf}var Bl={},_l={},gB;function ele(){if(gB)return _l;
89gB=1,Object.defineProperty(_l,"__esModule",{value:!0}),_l.scryptAsync=_l.scrypt=void 0;const e=Cm(),t=dE(),n=jL(),r=Vs(),a=(p,m)=>p<<m|p>>>32-m;function s(p,m,h,y,x,C){let T=p[m++]^h[y++],w=p[m++]^h[y++],v=p[m++]^h[y++],g=p[m++]^h[y++],A=p[m++]^h[y++],S=p[m++]^h[y++],_=p[m++]^h[y++],k=p[m++]^h[y++],R=p[m++]^h[y++],D=p[m++]^h[y++],B=p[m++]^h[y++],M=p[m++]^h[y++],E=p[m++]^h[y++],N=p[m++]^h[y++],I=p[m++]^h[y++],F=p[m++]^h[y++],z=T,U=w,V=v,$=g,O=A,H=S,Z=_,ee=k,ae=R,ie=D,fe=B,le=M,xe=E,he=N,De=I,Se=F;for(let ke=0;ke<8;ke+=2)O^=a(z+xe|0,7),ae^=a(O+z|0,9),xe^=a(ae+O|0,13),z^=a(xe+ae|0,18),ie^=a(H+U|0,7),he^=a(ie+H|0,9),U^=a(he+ie|0,13),H^=a(U+he|0,18),De^=a(fe+Z|0,7),V^=a(De+fe|0,9),Z^=a(V+De|0,13),fe^=a(Z+V|0,18),$^=a(Se+le|0,7),ee^=a($+Se|0,9),le^=a(ee+$|0,13),Se^=a(le+ee|0,18),U^=a(z+$|0,7),V^=a(U+z|0,9),$^=a(V+U|0,13),z^=a($+V|0,18),Z^=a(H+O|0,7),ee^=a(Z+H|0,9),O^=a(ee+Z|0,13),H^=a(O+ee|0,18),le^=a(fe+ie|0,7),ae^=a(le+fe|0,9),ie^=a(ae+le|0,13),fe^=a(ie+ae|0,18),xe^=a(Se+De|0,7),he^=a(xe+Se|0,9),De^=a(he+xe|0,13),Se^=a(De+he|0,18);x[C++]=T+z|0,x[C++]=w+U|0,x[C++]=v+V|0,x[C++]=g+$|0,x[C++]=A+O|0,x[C++]=S+H|0,x[C++]=_+Z|0,x[C++]=k+ee|0,x[C++]=R+ae|0,x[C++]=D+ie|0,x[C++]=B+fe|0,x[C++]=M+le|0,x[C++]=E+xe|0,x[C++]=N+he|0,x[C++]=I+De|0,x[C++]=F+Se|0}function i(p,m,h,y,x){let C=y+0,T=y+16*x;for(let w=0;w<16;w++)h[T+w]=p[m+(2*x-1)*16+w];for(let w=0;w<x;w++,C+=16,m+=16)s(h,T,p,m,h,C),w>0&&(T+=16),s(h,C,p,m+=16,h,T)}function l(p,m,h){const y=(0,r.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},h),{N:x,r:C,p:T,dkLen:w,asyncTick:v,maxmem:g,onProgress:A}=y;if((0,e.number)(x),(0,e.number)(C),(0,e.number)(T),(0,e.number)(w),(0,e.number)(v),(0,e.number)(g),A!==void 0&&typeof A!="function")throw new Error("progressCb should be function");const S=128*C,_=S/4;if(x<=1||(x&x-1)!==0||x>=2**(S/8)||x>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(T<0||T>(2**32-1)*32/S)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(w<0||w>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const k=S*(x+T);if(k>g)throw new Error(`Scrypt: parameters too large, ${k} (128 * r * (N + p)) > ${g} (maxmem)`);const R=(0,n.pbkdf2)(t.sha256,p,m,{c:1,dkLen:S*T}),D=(0,r.u32)(R),B=(0,r.u32)(new Uint8Array(S*x)),M=(0,r.u32)(new Uint8Array(S));let E=()=>{};if(A){const N=2*x*T,I=Math.max(Math.floor(N/1e4),1);let F=0;E=()=>{F++,A&&(!(F%I)||F===N)&&A(F/N)}}return{N:x,r:C,p:T,dkLen:w,blockSize32:_,V:B,B32:D,B:R,tmp:M,blockMixCb:E,asyncTick:v}}function c(p,m,h,y,x){const C=(0,n.pbkdf2)(t.sha256,p,h,{c:1,dkLen:m});return h.fill(0),y.fill(0),x.fill(0),C}function u(p,m,h){const{N:y,r:x,p:C,dkLen:T,blockSize32:w,V:v,B32:g,B:A,tmp:S,blockMixCb:_}=l(p,m,h);for(let k=0;k<C;k++){const R=w*k;for(let D=0;D<w;D++)v[D]=g[R+D];for(let D=0,B=0;D<y-1;D++)i(v,B,v,B+=w,x),_();i(v,(y-1)*w,g,R,x),_();for(let D=0;D<y;D++){const B=g[R+w-16]%y;for(let M=0;M<w;M++)S[M]=g[R+M]^v[B*w+M];i(S,0,g,R,x),_()}}return c(p,T,A,v,S)}_l.scrypt=u;async function f(p,m,h){const{N:y,r:x,p:C,dkLen:T,blockSize32:w,V:v,B32:g,B:A,tmp:S,blockMixCb:_,asyncTick:k}=l(p,m,h);for(let R=0;R<C;R++){const D=w*R;for(let M=0;M<w;M++)v[M]=g[D+M];let B=0;await(0,r.asyncLoop)(y-1,k,()=>{i(v,B,v,B+=w,x),_()}),i(v,(y-1)*w,g,D,x),_(),await(0,r.asyncLoop)(y,k,()=>{const M=g[D+w-16]%y;for(let E=0;E<w;E++)S[E]=g[D+E]^v[M*w+E];i(S,0,g,D,x),_()})}return c(p,T,A,v,S)}return _l.scryptAsync=f,_l}var xB;function tle(){if(xB)return Bl;xB=1,Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.scryptSync=Bl.scrypt=void 0;const e=ele(),t=at();let n=!1,r=!1;const a=async function(f,p,m,h,y,x,C){return await(0,e.scryptAsync)(f,p,{N:m,r:h,p:y,dkLen:x,onProgress:C})},s=function(f,p,m,h,y,x){return(0,e.scrypt)(f,p,{N:m,r:h,p:y,dkLen:x})};let i=a,l=s;async function c(f,p,m,h,y,x,C){const T=(0,t.getBytes)(f,"passwd"),w=(0,t.getBytes)(p,"salt");return(0,t.hexlify)(await i(T,w,m,h,y,x,C))}Bl.scrypt=c,c._=a,c.lock=function(){r=!0},c.register=function(f){if(r)throw new Error("scrypt is locked");i=f},Object.freeze(c);function u(f,p,m,h,y,x){const C=(0,t.getBytes)(f,"passwd"),T=(0,t.getBytes)(p,"salt");return(0,t.hexlify)(l(C,T,m,h,y,x))}return Bl.scryptSync=u,u._=s,u.lock=function(){n=!0},u.register=function(f){if(n)throw new Error("scryptSync is locked");l=f},Object.freeze(u),Bl}var Il={},vB;function nle(){if(vB)return Il;
89vB=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.sha512=Il.sha256=void 0;const e=N1(),t=at(),n=function(f){return(0,e.createHash)("sha256").update(f).digest()},r=function(f){return(0,e.createHash)("sha512").update(f).digest()};let a=n,s=r,i=!1,l=!1;function c(f){const p=(0,t.getBytes)(f,"data");return(0,t.hexlify)(a(p))}Il.sha256=c,c._=n,c.lock=function(){i=!0},c.register=function(f){if(i)throw new Error("sha256 is locked");a=f},Object.freeze(c);function u(f){const p=(0,t.getBytes)(f,"data");return(0,t.hexlify)(s(p))}return Il.sha512=u,u._=r,u.lock=function(){l=!0},u.register=function(f){if(l)throw new Error("sha512 is locked");s=f},Object.freeze(c),Il}var Df={},nw={},Rt={},Ot={},wB;function Hu(){if(wB)return Ot;wB=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.validateObject=Ot.createHmacDrbg=Ot.bitMask=Ot.bitSet=Ot.bitGet=Ot.bitLen=Ot.utf8ToBytes=Ot.equalBytes=Ot.concatBytes=Ot.ensureBytes=Ot.numberToVarBytesBE=Ot.numberToBytesLE=Ot.numberToBytesBE=Ot.bytesToNumberLE=Ot.bytesToNumberBE=Ot.hexToBytes=Ot.hexToNumber=Ot.numberToHexUnpadded=Ot.bytesToHex=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=BigInt(0),t=BigInt(1),n=BigInt(2),r=B=>B instanceof Uint8Array,a=Array.from({length:256},(B,M)=>M.toString(16).padStart(2,"0"));function s(B){if(!r(B))throw new Error("Uint8Array expected");let M="";for(let E=0;E<B.length;E++)M+=a[B[E]];return M}Ot.bytesToHex=s;function i(B){const M=B.toString(16);return M.length&1?`0${M}`:M}Ot.numberToHexUnpadded=i;function l(B){if(typeof B!="string")throw new Error("hex string expected, got "+typeof B);return BigInt(B===""?"0":`0x${B}`)}Ot.hexToNumber=l;function c(B){if(typeof B!="string")throw new Error("hex string expected, got "+typeof B);const M=B.length;if(M%2)throw new Error("padded hex string expected, got unpadded hex of length "+M);const E=new Uint8Array(M/2);for(let N=0;N<E.length;N++){const I=N*2,F=B.slice(I,I+2),z=Number.parseInt(F,16);if(Number.isNaN(z)||z<0)throw new Error("Invalid byte sequence");E[N]=z}return E}Ot.hexToBytes=c;function u(B){return l(s(B))}Ot.bytesToNumberBE=u;function f(B){if(!r(B))throw new Error("Uint8Array expected");return l(s(Uint8Array.from(B).reverse()))}Ot.bytesToNumberLE=f;function p(B,M){return c(B.toString(16).padStart(M*2,"0"))}Ot.numberToBytesBE=p;function m(B,M){return p(B,M).reverse()}Ot.numberToBytesLE=m;function h(B){return c(i(B))}Ot.numberToVarBytesBE=h;function y(B,M,E){let N;if(typeof M=="string")try{N=c(M)}catch(F){throw new Error(`${B} must be valid hex string, got "${M}". Cause: ${F}`)}else if(r(M))N=Uint8Array.from(M);else throw new Error(`${B} must be hex string or Uint8Array`);const I=N.length;if(typeof E=="number"&&I!==E)throw new Error(`${B} expected ${E} bytes, got ${I}`);return N}Ot.ensureBytes=y;function x(...B){const M=new Uint8Array(B.reduce((N,I)=>N+I.length,0));let E=0;return B.forEach(N=>{if(!r(N))throw new Error("Uint8Array expected");M.set(N,E),E+=N.length}),M}Ot.concatBytes=x;function C(B,M){if(B.length!==M.length)return!1;for(let E=0;E<B.length;E++)if(B[E]!==M[E])return!1;return!0}Ot.equalBytes=C;function T(B){if(typeof B!="string")throw new Error(`utf8ToBytes expected string, got ${typeof B}`);return new Uint8Array(new TextEncoder().encode(B))}Ot.utf8ToBytes=T;function w(B){let M;for(M=0;B>e;B>>=t,M+=1);return M}Ot.bitLen=w;function v(B,M){return B>>BigInt(M)&t}Ot.bitGet=v;const g=(B,M,E)=>B|(E?t:e)<<BigInt(M);Ot.bitSet=g;const A=B=>(n<<BigInt(B-1))-t;Ot.bitMask=A;const S=B=>new Uint8Array(B),_=B=>Uint8Array.from(B);function k(B,M,E){if(typeof B!="number"||B<2)throw new Error("hashLen must be a number");if(typeof M!="number"||M<2)throw new Error("qByteLen must be a number");if(typeof E!="function")throw new Error("hmacFn must be a function");let N=S(B),I=S(B),F=0;const z=()=>{N.fill(1),I.fill(0),F=0},U=(...H)=>E(I,N,...H),V=(H=S())=>{I=U(_([0]),H),N=U(),H.length!==0&&(I=U(_([1]),H),N=U())},$=()=>{if(F++>=1e3)throw new Error("drbg: tried 1000 values");let H=0;const Z=[];for(;H<M;){N=U();const ee=N.slice();Z.push(ee),H+=N.length}return x(...Z)};return(H,Z)=>{z(),V(H);let ee;
89for(;!(ee=Z($()));)V();return z(),ee}}Ot.createHmacDrbg=k;const R={bigint:B=>typeof B=="bigint",function:B=>typeof B=="function",boolean:B=>typeof B=="boolean",string:B=>typeof B=="string",stringOrUint8Array:B=>typeof B=="string"||B instanceof Uint8Array,isSafeInteger:B=>Number.isSafeInteger(B),array:B=>Array.isArray(B),field:(B,M)=>M.Fp.isValid(B),hash:B=>typeof B=="function"&&Number.isSafeInteger(B.outputLen)};function D(B,M,E={}){const N=(I,F,z)=>{const U=R[F];if(typeof U!="function")throw new Error(`Invalid validator "${F}", expected function`);const V=B[I];if(!(z&&V===void 0)&&!U(V,B))throw new Error(`Invalid param ${String(I)}=${V} (${typeof V}), expected ${F}`)};for(const[I,F]of Object.entries(M))N(I,F,!1);for(const[I,F]of Object.entries(E))N(I,F,!0);return B}return Ot.validateObject=D,Ot}var EB;function R1(){if(EB)return Rt;EB=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.mapHashToField=Rt.getMinHashLength=Rt.getFieldBytesLength=Rt.hashToPrivateScalar=Rt.FpSqrtEven=Rt.FpSqrtOdd=Rt.Field=Rt.nLength=Rt.FpIsSquare=Rt.FpDiv=Rt.FpInvertBatch=Rt.FpPow=Rt.validateField=Rt.isNegativeLE=Rt.FpSqrt=Rt.tonelliShanks=Rt.invert=Rt.pow2=Rt.pow=Rt.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Hu(),t=BigInt(0),n=BigInt(1),r=BigInt(2),a=BigInt(3),s=BigInt(4),i=BigInt(5),l=BigInt(8);BigInt(9),BigInt(16);function c(E,N){const I=E%N;return I>=t?I:N+I}Rt.mod=c;function u(E,N,I){if(I<=t||N<t)throw new Error("Expected power/modulo > 0");if(I===n)return t;let F=n;for(;N>t;)N&n&&(F=F*E%I),E=E*E%I,N>>=n;return F}Rt.pow=u;function f(E,N,I){let F=E;for(;N-- >t;)F*=F,F%=I;return F}Rt.pow2=f;function p(E,N){if(E===t||N<=t)throw new Error(`invert: expected positive integers, got n=${E} mod=${N}`);let I=c(E,N),F=N,z=t,U=n;for(;I!==t;){const $=F/I,O=F%I,H=z-U*$;F=I,I=O,z=U,U=H}if(F!==n)throw new Error("invert: does not exist");return c(z,N)}Rt.invert=p;function m(E){const N=(E-n)/r;let I,F,z;for(I=E-n,F=0;I%r===t;I/=r,F++);for(z=r;z<E&&u(z,N,E)!==E-n;z++);if(F===1){const V=(E+n)/s;return function(O,H){const Z=O.pow(H,V);if(!O.eql(O.sqr(Z),H))throw new Error("Cannot find square root");return Z}}const U=(I+n)/r;return function($,O){if($.pow(O,N)===$.neg($.ONE))throw new Error("Cannot find square root");let H=F,Z=$.pow($.mul($.ONE,z),I),ee=$.pow(O,U),ae=$.pow(O,I);for(;!$.eql(ae,$.ONE);){if($.eql(ae,$.ZERO))return $.ZERO;let ie=1;for(let le=$.sqr(ae);ie<H&&!$.eql(le,$.ONE);ie++)le=$.sqr(le);const fe=$.pow(Z,n<<BigInt(H-ie-1));Z=$.sqr(fe),ee=$.mul(ee,fe),ae=$.mul(ae,Z),H=ie}return ee}}Rt.tonelliShanks=m;function h(E){if(E%s===a){const N=(E+n)/s;return function(F,z){const U=F.pow(z,N);if(!F.eql(F.sqr(U),z))throw new Error("Cannot find square root");return U}}if(E%l===i){const N=(E-i)/l;return function(F,z){const U=F.mul(z,r),V=F.pow(U,N),$=F.mul(z,V),O=F.mul(F.mul($,r),V),H=F.mul($,F.sub(O,F.ONE));if(!F.eql(F.sqr(H),z))throw new Error("Cannot find square root");return H}}return m(E)}Rt.FpSqrt=h;const y=(E,N)=>(c(E,N)&n)===n;Rt.isNegativeLE=y;const x=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function C(E){const N={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},I=x.reduce((F,z)=>(F[z]="function",F),N);return(0,e.validateObject)(E,I)}Rt.validateField=C;function T(E,N,I){if(I<t)throw new Error("Expected power > 0");if(I===t)return E.ONE;if(I===n)return N;let F=E.ONE,z=N;for(;I>t;)I&n&&(F=E.mul(F,z)),z=E.sqr(z),I>>=n;return F}Rt.FpPow=T;function w(E,N){const I=new Array(N.length),F=N.reduce((U,V,$)=>E.is0(V)?U:(I[$]=U,E.mul(U,V)),E.ONE),z=E.inv(F);return N.reduceRight((U,V,$)=>E.is0(V)?U:(I[$]=E.mul(U,I[$]),E.mul(U,V)),z),I}Rt.FpInvertBatch=w;function v(E,N,I){return E.mul(N,typeof I=="bigint"?p(I,E.ORDER):E.inv(I))}Rt.FpDiv=v;function g(E){const N=(E.ORDER-n)/r;return I=>{const F=E.pow(I,N);return E.eql(F,E.ZERO)||E.eql(F,E.ONE)}}Rt.FpIsSquare=g;function A(E,N){const I=N!==void 0?N:E.toString(2).length,F=Math.ceil(I/8);return{nBitLength:I,nByteLength:F}}Rt.nLength=A;function S(E,N,I=!1,F={}){if(E<=t)throw new Error(`Expected Field ORDER > 0, got ${E}`);const{nBitLength:z,nByteLength:U}=A(E,N);if(U>2048)throw new Error("Field lengths over 2048 bytes are not supported");const V=h(E),$=Object.freeze({ORDER:E,BITS:z,BYTES:U,MASK:(0,e.bitMask)(z),ZERO:t,ONE:n,create:O=>c(O,E),isValid:O=>{if(typeof O!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof O}`);return t<=O&&O<E},is0:O=>O===t,isOdd:O=>(O&n)===n,neg:O=>c(-O,E),eql:(O,H)=>O===H,sqr:O=>c(O*O,E),add:(O,H)=>c(O+H,E),sub:(O,H)=>c(O-H,E),mul:(O,H)=>c(O*H,E),pow:(O,H)=>T($,O,H),div:(O,H)=>c(O*p(H,E),E),sqrN:O=>O*O,addN:(O,H)=>O+H,subN:(O,H)=>O-H,mulN:(O,H)=>O*H,inv:O=>p(O,E),sqrt:F.sqrt||(O=>V($,O)),invertBatch:O=>w($,O),cmov:(O,H,Z)=>Z?H:O,toBytes:O=>I?(0,e.numberToBytesLE)(O,U):(0,e.numberToBytesBE)(O,U),fromBytes:O=>{if(O.length!==U)throw new Error(`Fp.fromBytes: expected ${U}, got ${O.length}`);return I?(0,e.bytesToNumberLE)(O):(0,e.bytesToNumberBE)(O)}});return Object.freeze($)}Rt.Field=S;function _(E,N){if(!E.isOdd)throw new Error("Field doesn't have isOdd");const I=E.sqrt(N);return E.isOdd(I)?I:E.neg(I)}Rt.FpSqrtOdd=_;function k(E,N){if(!E.isOdd)throw new Error("Field doesn't have isOdd");const I=E.sqrt(N);return E.isOdd(I)?E.neg(I):I}Rt.FpSqrtEven=k;function R(E,N,I=!1){E=(0,e.ensureBytes)("privateHash",E);const F=E.length,z=A(N).nByteLength+8;if(z<24||F<z||F>1024)throw new Error(`hashToPrivateScalar: expected ${z}-1024 bytes of input, got ${F}`);const U=I?(0,e.bytesToNumberLE)(E):(0,e.bytesToNumberBE)(E);return c(U,N-n)+n}Rt.hashToPrivateScalar=R;function D(E){if(typeof E!="bigint")throw new Error("field order must be bigint");const N=E.toString(2).length;return Math.ceil(N/8)}Rt.getFieldBytesLength=D;function B(E){const N=D(E);return N+Math.ceil(N/2)}Rt.getMinHashLength=B;function M(E,N,I=!1){const F=E.length,z=D(N),U=B(N);if(F<16||F<U||F>1024)throw new Error(`expected ${U}-1024 bytes of input, got ${F}`);const V=I?(0,e.bytesToNumberBE)(E):(0,e.bytesToNumberLE)(E),$=c(V,N-n)+n;return I?(0,e.numberToBytesLE)($,z):(0,e.numberToBytesBE)($,z)}return Rt.mapHashToField=M,Rt}var rw={},Nl={},kB;function rle(){if(kB)return Nl;
89kB=1,Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.validateBasic=Nl.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=R1(),t=Hu(),n=BigInt(0),r=BigInt(1);function a(i,l){const c=(f,p)=>{const m=p.negate();return f?m:p},u=f=>{const p=Math.ceil(l/f)+1,m=2**(f-1);return{windows:p,windowSize:m}};return{constTimeNegate:c,unsafeLadder(f,p){let m=i.ZERO,h=f;for(;p>n;)p&r&&(m=m.add(h)),h=h.double(),p>>=r;return m},precomputeWindow(f,p){const{windows:m,windowSize:h}=u(p),y=[];let x=f,C=x;for(let T=0;T<m;T++){C=x,y.push(C);for(let w=1;w<h;w++)C=C.add(x),y.push(C);x=C.double()}return y},wNAF(f,p,m){const{windows:h,windowSize:y}=u(f);let x=i.ZERO,C=i.BASE;const T=BigInt(2**f-1),w=2**f,v=BigInt(f);for(let g=0;g<h;g++){const A=g*y;let S=Number(m&T);m>>=v,S>y&&(S-=w,m+=r);const _=A,k=A+Math.abs(S)-1,R=g%2!==0,D=S<0;S===0?C=C.add(c(R,p[_])):x=x.add(c(D,p[k]))}return{p:x,f:C}},wNAFCached(f,p,m,h){const y=f._WINDOW_SIZE||1;let x=p.get(f);return x||(x=this.precomputeWindow(f,y),y!==1&&p.set(f,h(x))),this.wNAF(y,x,m)}}}Nl.wNAF=a;function s(i){return(0,e.validateField)(i.Fp),(0,t.validateObject)(i,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,e.nLength)(i.n,i.nBitLength),...i,p:i.Fp.ORDER})}return Nl.validateBasic=s,Nl}var CB;function $L(){return CB||(CB=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.mapToCurveSimpleSWU=e.SWUFpSqrtRatio=e.weierstrass=e.weierstrassPoints=e.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=R1(),n=Hu(),r=Hu(),a=rle();function s(w){const v=(0,a.validateBasic)(w);n.validateObject(v,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:g,Fp:A,a:S}=v;if(g){if(!A.eql(S,A.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof g!="object"||typeof g.beta!="bigint"||typeof g.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...v})}const{bytesToNumberBE:i,hexToBytes:l}=n;e.DER={Err:class extends Error{constructor(v=""){super(v)}},_parseInt(w){const{Err:v}=e.DER;if(w.length<2||w[0]!==2)throw new v("Invalid signature integer tag");const g=w[1],A=w.subarray(2,g+2);if(!g||A.length!==g)throw new v("Invalid signature integer: wrong length");if(A[0]&128)throw new v("Invalid signature integer: negative");if(A[0]===0&&!(A[1]&128))throw new v("Invalid signature integer: unnecessary leading zero");return{d:i(A),l:w.subarray(g+2)}},toSig(w){const{Err:v}=e.DER,g=typeof w=="string"?l(w):w;if(!(g instanceof Uint8Array))throw new Error("ui8a expected");let A=g.length;if(A<2||g[0]!=48)throw new v("Invalid signature tag");if(g[1]!==A-2)throw new v("Invalid signature: incorrect length");const{d:S,l:_}=e.DER._parseInt(g.subarray(2)),{d:k,l:R}=e.DER._parseInt(_);if(R.length)throw new v("Invalid signature: left bytes after parsing");return{r:S,s:k}},hexFromSig(w){const v=B=>Number.parseInt(B[0],16)&8?"00"+B:B,g=B=>{const M=B.toString(16);return M.length&1?`0${M}`:M},A=v(g(w.s)),S=v(g(w.r)),_=A.length/2,k=S.length/2,R=g(_),D=g(k);return`30${g(k+_+4)}02${D}${S}02${R}${A}`}};const c=BigInt(0),u=BigInt(1),f=BigInt(2),p=BigInt(3),m=BigInt(4);function h(w){const v=s(w),{Fp:g}=v,A=v.toBytes||((F,z,U)=>{const V=z.toAffine();return n.concatBytes(Uint8Array.from([4]),g.toBytes(V.x),g.toBytes(V.y))}),S=v.fromBytes||(F=>{const z=F.subarray(1),U=g.fromBytes(z.subarray(0,g.BYTES)),V=g.fromBytes(z.subarray(g.BYTES,2*g.BYTES));return{x:U,y:V}});function _(F){const{a:z,b:U}=v,V=g.sqr(F),$=g.mul(V,F);return g.add(g.add($,g.mul(F,z)),U)}if(!g.eql(g.sqr(v.Gy),_(v.Gx)))throw new Error("bad generator point: equation left != right");function k(F){return typeof F=="bigint"&&c<F&&F<v.n}function R(F){if(!k(F))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function D(F){const{allowedPrivateKeyLengths:z,nByteLength:U,wrapPrivateKey:V,n:$}=v;if(z&&typeof F!="bigint"){if(F instanceof Uint8Array&&(F=n.bytesToHex(F)),typeof F!="string"||!z.includes(F.length))throw new Error("Invalid key");F=F.padStart(U*2,"0")}let O;try{O=typeof F=="bigint"?F:n.bytesToNumberBE((0,r.ensureBytes)("private key",F,U))}catch{throw new Error(`private key must be ${U} bytes, hex or bigint, not ${typeof F}`)}return V&&(O=t.mod(O,$)),R(O),O}const B=new Map;function M(F){if(!(F instanceof E))throw new Error("ProjectivePoint expected")}class E{constructor(z,U,V){if(this.px=z,this.py=U,this.pz=V,z==null||!g.isValid(z))throw new Error("x required");if(U==null||!g.isValid(U))throw new Error("y required");if(V==null||!g.isValid(V))throw new Error("z required")}static fromAffine(z){const{x:U,y:V}=z||{};if(!z||!g.isValid(U)||!g.isValid(V))throw new Error("invalid affine point");if(z instanceof E)throw new Error("projective point not allowed");const $=O=>g.eql(O,g.ZERO);return $(U)&&$(V)?E.ZERO:new E(U,V,g.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(z){const U=g.invertBatch(z.map(V=>V.pz));return z.map((V,$)=>V.toAffine(U[$])).map(E.fromAffine)}static fromHex(z){const U=E.fromAffine(S((0,r.ensureBytes)("pointHex",z)));return U.assertValidity(),U}static fromPrivateKey(z){return E.BASE.multiply(D(z))}_setWindowSize(z){this._WINDOW_SIZE=z,B.delete(this)}
89assertValidity(){if(this.is0()){if(v.allowInfinityPoint&&!g.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:z,y:U}=this.toAffine();if(!g.isValid(z)||!g.isValid(U))throw new Error("bad point: x or y not FE");const V=g.sqr(U),$=_(z);if(!g.eql(V,$))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:z}=this.toAffine();if(g.isOdd)return!g.isOdd(z);throw new Error("Field doesn't support isOdd")}equals(z){M(z);const{px:U,py:V,pz:$}=this,{px:O,py:H,pz:Z}=z,ee=g.eql(g.mul(U,Z),g.mul(O,$)),ae=g.eql(g.mul(V,Z),g.mul(H,$));return ee&&ae}negate(){return new E(this.px,g.neg(this.py),this.pz)}double(){const{a:z,b:U}=v,V=g.mul(U,p),{px:$,py:O,pz:H}=this;let Z=g.ZERO,ee=g.ZERO,ae=g.ZERO,ie=g.mul($,$),fe=g.mul(O,O),le=g.mul(H,H),xe=g.mul($,O);return xe=g.add(xe,xe),ae=g.mul($,H),ae=g.add(ae,ae),Z=g.mul(z,ae),ee=g.mul(V,le),ee=g.add(Z,ee),Z=g.sub(fe,ee),ee=g.add(fe,ee),ee=g.mul(Z,ee),Z=g.mul(xe,Z),ae=g.mul(V,ae),le=g.mul(z,le),xe=g.sub(ie,le),xe=g.mul(z,xe),xe=g.add(xe,ae),ae=g.add(ie,ie),ie=g.add(ae,ie),ie=g.add(ie,le),ie=g.mul(ie,xe),ee=g.add(ee,ie),le=g.mul(O,H),le=g.add(le,le),ie=g.mul(le,xe),Z=g.sub(Z,ie),ae=g.mul(le,fe),ae=g.add(ae,ae),ae=g.add(ae,ae),new E(Z,ee,ae)}add(z){M(z);const{px:U,py:V,pz:$}=this,{px:O,py:H,pz:Z}=z;let ee=g.ZERO,ae=g.ZERO,ie=g.ZERO;const fe=v.a,le=g.mul(v.b,p);let xe=g.mul(U,O),he=g.mul(V,H),De=g.mul($,Z),Se=g.add(U,V),ke=g.add(O,H);Se=g.mul(Se,ke),ke=g.add(xe,he),Se=g.sub(Se,ke),ke=g.add(U,$);let ge=g.add(O,Z);return ke=g.mul(ke,ge),ge=g.add(xe,De),ke=g.sub(ke,ge),ge=g.add(V,$),ee=g.add(H,Z),ge=g.mul(ge,ee),ee=g.add(he,De),ge=g.sub(ge,ee),ie=g.mul(fe,ke),ee=g.mul(le,De),ie=g.add(ee,ie),ee=g.sub(he,ie),ie=g.add(he,ie),ae=g.mul(ee,ie),he=g.add(xe,xe),he=g.add(he,xe),De=g.mul(fe,De),ke=g.mul(le,ke),he=g.add(he,De),De=g.sub(xe,De),De=g.mul(fe,De),ke=g.add(ke,De),xe=g.mul(he,ke),ae=g.add(ae,xe),xe=g.mul(ge,ke),ee=g.mul(Se,ee),ee=g.sub(ee,xe),xe=g.mul(Se,he),ie=g.mul(ge,ie),ie=g.add(ie,xe),new E(ee,ae,ie)}subtract(z){return this.add(z.negate())}is0(){return this.equals(E.ZERO)}wNAF(z){return I.wNAFCached(this,B,z,U=>{const V=g.invertBatch(U.map($=>$.pz));return U.map(($,O)=>$.toAffine(V[O])).map(E.fromAffine)})}multiplyUnsafe(z){const U=E.ZERO;if(z===c)return U;if(R(z),z===u)return this;const{endo:V}=v;if(!V)return I.unsafeLadder(this,z);let{k1neg:$,k1:O,k2neg:H,k2:Z}=V.splitScalar(z),ee=U,ae=U,ie=this;for(;O>c||Z>c;)O&u&&(ee=ee.add(ie)),Z&u&&(ae=ae.add(ie)),ie=ie.double(),O>>=u,Z>>=u;return $&&(ee=ee.negate()),H&&(ae=ae.negate()),ae=new E(g.mul(ae.px,V.beta),ae.py,ae.pz),ee.add(ae)}multiply(z){R(z);let U=z,V,$;const{endo:O}=v;if(O){const{k1neg:H,k1:Z,k2neg:ee,k2:ae}=O.splitScalar(U);let{p:ie,f:fe}=this.wNAF(Z),{p:le,f:xe}=this.wNAF(ae);ie=I.constTimeNegate(H,ie),le=I.constTimeNegate(ee,le),le=new E(g.mul(le.px,O.beta),le.py,le.pz),V=ie.add(le),$=fe.add(xe)}else{const{p:H,f:Z}=this.wNAF(U);V=H,$=Z}return E.normalizeZ([V,$])[0]}multiplyAndAddUnsafe(z,U,V){const $=E.BASE,O=(Z,ee)=>ee===c||ee===u||!Z.equals($)?Z.multiplyUnsafe(ee):Z.multiply(ee),H=O(this,U).add(O(z,V));return H.is0()?void 0:H}toAffine(z){const{px:U,py:V,pz:$}=this,O=this.is0();z==null&&(z=O?g.ONE:g.inv($));const H=g.mul(U,z),Z=g.mul(V,z),ee=g.mul($,z);if(O)return{x:g.ZERO,y:g.ZERO};if(!g.eql(ee,g.ONE))throw new Error("invZ was invalid");return{x:H,y:Z}}isTorsionFree(){const{h:z,isTorsionFree:U}=v;if(z===u)return!0;if(U)return U(E,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:z,clearCofactor:U}=v;return z===u?this:U?U(E,this):this.multiplyUnsafe(v.h)}toRawBytes(z=!0){return this.assertValidity(),A(E,this,z)}toHex(z=!0){return n.bytesToHex(this.toRawBytes(z))}}E.BASE=new E(v.Gx,v.Gy,g.ONE),E.ZERO=new E(g.ZERO,g.ONE,g.ZERO);const N=v.nBitLength,I=(0,a.wNAF)(E,v.endo?Math.ceil(N/2):N);return{CURVE:v,ProjectivePoint:E,normPrivateKeyToScalar:D,weierstrassEquation:_,isWithinCurveOrder:k}}e.weierstrassPoints=h;function y(w){const v=(0,a.validateBasic)(w);return n.validateObject(v,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...v})}function x(w){const v=y(w),{Fp:g,n:A}=v,S=g.BYTES+1,_=2*g.BYTES+1;function k(ke){return c<ke&&ke<g.ORDER}function R(ke){return t.mod(ke,A)}function D(ke){return t.invert(ke,A)}const{ProjectivePoint:B,normPrivateKeyToScalar:M,weierstrassEquation:E,isWithinCurveOrder:N}=h({...v,toBytes(ke,ge,J){const Y=ge.toAffine(),re=g.toBytes(Y.x),ce=n.concatBytes;return J?ce(Uint8Array.from([ge.hasEvenY()?2:3]),re):ce(Uint8Array.from([4]),re,g.toBytes(Y.y))},fromBytes(ke){const ge=ke.length,J=ke[0],Y=ke.subarray(1);if(ge===S&&(J===2||J===3)){const re=n.bytesToNumberBE(Y);if(!k(re))throw new Error("Point is not on curve");const ce=E(re);let Me=g.sqrt(ce);const Ze=(Me&u)===u;return(J&1)===1!==Ze&&(Me=g.neg(Me)),{x:re,y:Me}}else if(ge===_&&J===4){const re=g.fromBytes(Y.subarray(0,g.BYTES)),ce=g.fromBytes(Y.subarray(g.BYTES,2*g.BYTES));return{x:re,y:ce}}else throw new Error(`Point of length ${ge}
89 was invalid. Expected ${S} compressed bytes or ${_} uncompressed bytes`)}}),I=ke=>n.bytesToHex(n.numberToBytesBE(ke,v.nByteLength));function F(ke){const ge=A>>u;return ke>ge}function z(ke){return F(ke)?R(-ke):ke}const U=(ke,ge,J)=>n.bytesToNumberBE(ke.slice(ge,J));class V{constructor(ge,J,Y){this.r=ge,this.s=J,this.recovery=Y,this.assertValidity()}static fromCompact(ge){const J=v.nByteLength;return ge=(0,r.ensureBytes)("compactSignature",ge,J*2),new V(U(ge,0,J),U(ge,J,2*J))}static fromDER(ge){const{r:J,s:Y}=e.DER.toSig((0,r.ensureBytes)("DER",ge));return new V(J,Y)}assertValidity(){if(!N(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!N(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ge){return new V(this.r,this.s,ge)}recoverPublicKey(ge){const{r:J,s:Y,recovery:re}=this,ce=ae((0,r.ensureBytes)("msgHash",ge));if(re==null||![0,1,2,3].includes(re))throw new Error("recovery id invalid");const Me=re===2||re===3?J+v.n:J;if(Me>=g.ORDER)throw new Error("recovery id 2 or 3 invalid");const Ze=(re&1)===0?"02":"03",ue=B.fromHex(Ze+I(Me)),Q=D(Me),X=R(-ce*Q),ne=R(Y*Q),pe=B.BASE.multiplyAndAddUnsafe(ue,X,ne);if(!pe)throw new Error("point at infinify");return pe.assertValidity(),pe}hasHighS(){return F(this.s)}normalizeS(){return this.hasHighS()?new V(this.r,R(-this.s),this.recovery):this}toDERRawBytes(){return n.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return n.hexToBytes(this.toCompactHex())}toCompactHex(){return I(this.r)+I(this.s)}}const $={isValidPrivateKey(ke){try{return M(ke),!0}catch{return!1}},normPrivateKeyToScalar:M,randomPrivateKey:()=>{const ke=t.getMinHashLength(v.n);return t.mapHashToField(v.randomBytes(ke),v.n)},precompute(ke=8,ge=B.BASE){return ge._setWindowSize(ke),ge.multiply(BigInt(3)),ge}};function O(ke,ge=!0){return B.fromPrivateKey(ke).toRawBytes(ge)}function H(ke){const ge=ke instanceof Uint8Array,J=typeof ke=="string",Y=(ge||J)&&ke.length;return ge?Y===S||Y===_:J?Y===2*S||Y===2*_:ke instanceof B}function Z(ke,ge,J=!0){if(H(ke))throw new Error("first arg must be private key");if(!H(ge))throw new Error("second arg must be public key");return B.fromHex(ge).multiply(M(ke)).toRawBytes(J)}const ee=v.bits2int||function(ke){const ge=n.bytesToNumberBE(ke),J=ke.length*8-v.nBitLength;return J>0?ge>>BigInt(J):ge},ae=v.bits2int_modN||function(ke){return R(ee(ke))},ie=n.bitMask(v.nBitLength);function fe(ke){if(typeof ke!="bigint")throw new Error("bigint expected");if(!(c<=ke&&ke<ie))throw new Error(`bigint expected < 2^${v.nBitLength}`);return n.numberToBytesBE(ke,v.nByteLength)}function le(ke,ge,J=xe){if(["recovered","canonical"].some(Re=>Re in J))throw new Error("sign() legacy options not supported");const{hash:Y,randomBytes:re}=v;let{lowS:ce,prehash:Me,extraEntropy:Ze}=J;ce==null&&(ce=!0),ke=(0,r.ensureBytes)("msgHash",ke),Me&&(ke=(0,r.ensureBytes)("prehashed msgHash",Y(ke)));const ue=ae(ke),Q=M(ge),X=[fe(Q),fe(ue)];if(Ze!=null){const Re=Ze===!0?re(g.BYTES):Ze;X.push((0,r.ensureBytes)("extraEntropy",Re))}const ne=n.concatBytes(...X),pe=ue;function Be(Re){const Qe=ee(Re);if(!N(Qe))return;const et=D(Qe),Ye=B.BASE.multiply(Qe).toAffine(),dt=R(Ye.x);if(dt===c)return;const Wt=R(et*R(pe+dt*Q));if(Wt===c)return;let Jt=(Ye.x===dt?0:2)|Number(Ye.y&u),Er=Wt;return ce&&F(Wt)&&(Er=z(Wt),Jt^=1),new V(dt,Er,Jt)}return{seed:ne,k2sig:Be}}const xe={lowS:v.lowS,prehash:!1},he={lowS:v.lowS,prehash:!1};function De(ke,ge,J=xe){const{seed:Y,k2sig:re}=le(ke,ge,J),ce=v;return n.createHmacDrbg(ce.hash.outputLen,ce.nByteLength,ce.hmac)(Y,re)}B.BASE._setWindowSize(8);function Se(ke,ge,J,Y=he){var Ye;const re=ke;if(ge=(0,r.ensureBytes)("msgHash",ge),J=(0,r.ensureBytes)("publicKey",J),"strict"in Y)throw new Error("options.strict was renamed to lowS");const{lowS:ce,prehash:Me}=Y;let Ze,ue;try{if(typeof re=="string"||re instanceof Uint8Array)try{Ze=V.fromDER(re)}catch(dt){if(!(dt instanceof e.DER.Err))throw dt;Ze=V.fromCompact(re)}else if(typeof re=="object"&&typeof re.r=="bigint"&&typeof re.s=="bigint"){const{r:dt,s:Wt}=re;Ze=new V(dt,Wt)}else throw new Error("PARSE");
89ue=B.fromHex(J)}catch(dt){if(dt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(ce&&Ze.hasHighS())return!1;Me&&(ge=v.hash(ge));const{r:Q,s:X}=Ze,ne=ae(ge),pe=D(X),Be=R(ne*pe),Re=R(Q*pe),Qe=(Ye=B.BASE.multiplyAndAddUnsafe(ue,Be,Re))==null?void 0:Ye.toAffine();return Qe?R(Qe.x)===Q:!1}return{CURVE:v,getPublicKey:O,getSharedSecret:Z,sign:De,verify:Se,ProjectivePoint:B,Signature:V,utils:$}}e.weierstrass=x;function C(w,v){const g=w.ORDER;let A=c;for(let F=g-u;F%f===c;F/=f)A+=u;const S=A,_=f<<S-u-u,k=_*f,R=(g-u)/k,D=(R-u)/f,B=k-u,M=_,E=w.pow(v,R),N=w.pow(v,(R+u)/f);let I=(F,z)=>{let U=E,V=w.pow(z,B),$=w.sqr(V);$=w.mul($,z);let O=w.mul(F,$);O=w.pow(O,D),O=w.mul(O,V),V=w.mul(O,z),$=w.mul(O,F);let H=w.mul($,V);O=w.pow(H,M);let Z=w.eql(O,w.ONE);V=w.mul($,N),O=w.mul(H,U),$=w.cmov(V,$,Z),H=w.cmov(O,H,Z);for(let ee=S;ee>u;ee--){let ae=ee-f;ae=f<<ae-u;let ie=w.pow(H,ae);const fe=w.eql(ie,w.ONE);V=w.mul($,U),U=w.mul(U,U),ie=w.mul(H,U),$=w.cmov(V,$,fe),H=w.cmov(ie,H,fe)}return{isValid:Z,value:$}};if(w.ORDER%m===p){const F=(w.ORDER-p)/m,z=w.sqrt(w.neg(v));I=(U,V)=>{let $=w.sqr(V);const O=w.mul(U,V);$=w.mul($,O);let H=w.pow($,F);H=w.mul(H,O);const Z=w.mul(H,z),ee=w.mul(w.sqr(H),V),ae=w.eql(ee,U);let ie=w.cmov(Z,H,ae);return{isValid:ae,value:ie}}}return I}e.SWUFpSqrtRatio=C;function T(w,v){if(t.validateField(w),!w.isValid(v.A)||!w.isValid(v.B)||!w.isValid(v.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const g=C(w,v.Z);if(!w.isOdd)throw new Error("Fp.isOdd is not implemented!");return A=>{let S,_,k,R,D,B,M,E;S=w.sqr(A),S=w.mul(S,v.Z),_=w.sqr(S),_=w.add(_,S),k=w.add(_,w.ONE),k=w.mul(k,v.B),R=w.cmov(v.Z,w.neg(_),!w.eql(_,w.ZERO)),R=w.mul(R,v.A),_=w.sqr(k),B=w.sqr(R),D=w.mul(B,v.A),_=w.add(_,D),_=w.mul(_,k),B=w.mul(B,R),D=w.mul(B,v.B),_=w.add(_,D),M=w.mul(S,k);
89const{isValid:N,value:I}=g(_,B);E=w.mul(S,A),E=w.mul(E,I),M=w.cmov(M,k,N),E=w.cmov(E,I,N);const F=w.isOdd(A)===w.isOdd(E);return E=w.cmov(w.neg(E),E,F),M=w.div(M,R),{x:M,y:E}}}e.mapToCurveSimpleSWU=T})(rw)),rw}var ya={},AB;function ale(){if(AB)return ya;AB=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.createHasher=ya.isogenyMap=ya.hash_to_field=ya.expand_message_xof=ya.expand_message_xmd=void 0;const e=R1(),t=Hu();function n(h){if(h instanceof Uint8Array)return h;if(typeof h=="string")return(0,t.utf8ToBytes)(h);throw new Error("DST must be Uint8Array or string")}const r=t.bytesToNumberBE;function a(h,y){if(h<0||h>=1<<8*y)throw new Error(`bad I2OSP call: value=${h} length=${y}`);const x=Array.from({length:y}).fill(0);for(let C=y-1;C>=0;C--)x[C]=h&255,h>>>=8;return new Uint8Array(x)}function s(h,y){const x=new Uint8Array(h.length);for(let C=0;C<h.length;C++)x[C]=h[C]^y[C];return x}function i(h){if(!(h instanceof Uint8Array))throw new Error("Uint8Array expected")}function l(h){if(!Number.isSafeInteger(h))throw new Error("number expected")}function c(h,y,x,C){i(h),i(y),l(x),y.length>255&&(y=C((0,t.concatBytes)((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-"),y)));const{outputLen:T,blockLen:w}=C,v=Math.ceil(x/T);if(v>255)throw new Error("Invalid xmd length");const g=(0,t.concatBytes)(y,a(y.length,1)),A=a(0,w),S=a(x,2),_=new Array(v),k=C((0,t.concatBytes)(A,h,S,a(0,1),g));_[0]=C((0,t.concatBytes)(k,a(1,1),g));for(let D=1;D<=v;D++){const B=[s(k,_[D-1]),a(D+1,1),g];_[D]=C((0,t.concatBytes)(...B))}return(0,t.concatBytes)(..._).slice(0,x)}ya.expand_message_xmd=c;function u(h,y,x,C,T){if(i(h),i(y),l(x),y.length>255){const w=Math.ceil(2*C/8);y=T.create({dkLen:w}).update((0,t.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(y).digest()}if(x>65535||y.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return T.create({dkLen:x}).update(h).update(a(x,2)).update(y).update(a(y.length,1)).digest()}ya.expand_message_xof=u;function f(h,y,x){(0,t.validateObject)(x,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:C,k:T,m:w,hash:v,expand:g,DST:A}=x;i(h),l(y);const S=n(A),_=C.toString(2).length,k=Math.ceil((_+T)/8),R=y*w*k;let D;if(g==="xmd")D=c(h,S,R,v);else if(g==="xof")D=u(h,S,R,T,v);else if(g==="_internal_pass")D=h;else throw new Error('expand must be "xmd" or "xof"');const B=new Array(y);for(let M=0;M<y;M++){const E=new Array(w);for(let N=0;N<w;N++){const I=k*(N+M*w),F=D.subarray(I,I+k);E[N]=(0,e.mod)(r(F),C)}B[M]=E}return B}ya.hash_to_field=f;function p(h,y){const x=y.map(C=>Array.from(C).reverse());return(C,T)=>{const[w,v,g,A]=x.map(S=>S.reduce((_,k)=>h.add(h.mul(_,C),k)));return C=h.div(w,v),T=h.mul(T,h.div(g,A)),{x:C,y:T}}}ya.isogenyMap=p;function m(h,y,x){if(typeof y!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(C,T){const w=f(C,2,{...x,DST:x.DST,...T}),v=h.fromAffine(y(w[0])),g=h.fromAffine(y(w[1])),A=v.add(g).clearCofactor();return A.assertValidity(),A},encodeToCurve(C,T){const w=f(C,1,{...x,DST:x.encodeDST,...T}),v=h.fromAffine(y(w[0])).clearCofactor();return v.assertValidity(),v}}}return ya.createHasher=m,ya}var Rl={},PB;function sle(){if(PB)return Rl;PB=1,Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.createCurve=Rl.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=cE(),t=Vs(),n=$L();function r(s){return{hash:s,hmac:(i,...l)=>(0,e.hmac)(s,i,(0,t.concatBytes)(...l)),randomBytes:t.randomBytes}}Rl.getHash=r;function a(s,i){const l=c=>(0,n.weierstrass)({...s,...r(c)});return Object.freeze({...l(i),create:l})}return Rl.createCurve=a,Rl}var TB;function ile(){return TB||(TB=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t=dE(),n=Vs(),r=R1(),a=$L(),s=Hu(),i=ale(),l=sle(),c=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),u=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(1),p=BigInt(2),m=(V,$)=>(V+$/p)/$;function h(V){const $=c,O=BigInt(3),H=BigInt(6),Z=BigInt(11),ee=BigInt(22),ae=BigInt(23),ie=BigInt(44),fe=BigInt(88),le=V*V*V%$,xe=le*le*V%$,he=(0,r.pow2)(xe,O,$)*xe%$,De=(0,r.pow2)(he,O,$)*xe%$,Se=(0,r.pow2)(De,p,$)*le%$,ke=(0,r.pow2)(Se,Z,$)*Se%$,ge=(0,r.pow2)(ke,ee,$)*ke%$,J=(0,r.pow2)(ge,ie,$)*ge%$,Y=(0,r.pow2)(J,fe,$)*J%$,re=(0,r.pow2)(Y,ie,$)*ge%$,ce=(0,r.pow2)(re,O,$)*xe%$,Me=(0,r.pow2)(ce,ae,$)*ke%$,Ze=(0,r.pow2)(Me,H,$)*le%$,ue=(0,r.pow2)(Ze,p,$);if(!y.eql(y.sqr(ue),V))throw new Error("Cannot find square root");return ue}const y=(0,r.Field)(c,void 0,void 0,{sqrt:h});e.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:y,n:u,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:V=>{const $=u,O=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),H=-f*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Z=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ee=O,ae=BigInt("0x100000000000000000000000000000000"),ie=m(ee*V,$),fe=m(-H*V,$);let le=(0,r.mod)(V-ie*O-fe*Z,$),xe=(0,r.mod)(-ie*H-fe*ee,$);const he=le>ae,De=xe>ae;if(he&&(le=$-le),De&&(xe=$-xe),le>ae||xe>ae)throw new Error("splitScalar: Endomorphism failed, k="+V);return{k1neg:he,k1:le,k2neg:De,k2:xe}}}},t.sha256);const x=BigInt(0),C=V=>typeof V=="bigint"&&x<V&&V<c,T=V=>typeof V=="bigint"&&x<V&&V<u,w={};function v(V,...$){let O=w[V];if(O===void 0){const H=(0,t.sha256)(Uint8Array.from(V,Z=>
89Z.charCodeAt(0)));O=(0,s.concatBytes)(H,H),w[V]=O}return(0,t.sha256)((0,s.concatBytes)(O,...$))}const g=V=>V.toRawBytes(!0).slice(1),A=V=>(0,s.numberToBytesBE)(V,32),S=V=>(0,r.mod)(V,c),_=V=>(0,r.mod)(V,u),k=e.secp256k1.ProjectivePoint,R=(V,$,O)=>k.BASE.multiplyAndAddUnsafe(V,$,O);function D(V){let $=e.secp256k1.utils.normPrivateKeyToScalar(V),O=k.fromPrivateKey($);return{scalar:O.hasEvenY()?$:_(-$),bytes:g(O)}}function B(V){if(!C(V))throw new Error("bad x: need 0 < x < p");const $=S(V*V),O=S($*V+BigInt(7));let H=h(O);H%p!==x&&(H=S(-H));const Z=new k(V,H,f);return Z.assertValidity(),Z}function M(...V){return _((0,s.bytesToNumberBE)(v("BIP0340/challenge",...V)))}function E(V){return D(V).bytes}function N(V,$,O=(0,n.randomBytes)(32)){const H=(0,s.ensureBytes)("message",V),{bytes:Z,scalar:ee}=D($),ae=(0,s.ensureBytes)("auxRand",O,32),ie=A(ee^(0,s.bytesToNumberBE)(v("BIP0340/aux",ae))),fe=v("BIP0340/nonce",ie,Z,H),le=_((0,s.bytesToNumberBE)(fe));if(le===x)throw new Error("sign failed: k is zero");const{bytes:xe,scalar:he}=D(le),De=M(xe,Z,H),Se=new Uint8Array(64);if(Se.set(xe,0),Se.set(A(_(he+De*ee)),32),!I(Se,H,Z))throw new Error("sign: Invalid signature produced");return Se}function I(V,$,O){const H=(0,s.ensureBytes)("signature",V,64),Z=(0,s.ensureBytes)("message",$),ee=(0,s.ensureBytes)("publicKey",O,32);try{const ae=B((0,s.bytesToNumberBE)(ee)),ie=(0,s.bytesToNumberBE)(H.subarray(0,32));if(!C(ie))return!1;const fe=(0,s.bytesToNumberBE)(H.subarray(32,64));if(!T(fe))return!1;const le=M(A(ie),g(ae),Z),xe=R(ae,fe,_(-le));return!(!xe||!xe.hasEvenY()||xe.toAffine().x!==ie)}catch{return!1}}e.schnorr={getPublicKey:E,sign:N,verify:I,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:B,pointToBytes:g,numberToBytesBE:s.numberToBytesBE,bytesToNumberBE:s.bytesToNumberBE,taggedHash:v,mod:r.mod}};const F=(0,i.isogenyMap)(y,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(V=>V.map($=>BigInt($)))),z=(0,a.mapToCurveSimpleSWU)(y,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:y.create(BigInt("-11"))}),U=(0,i.createHasher)(e.secp256k1.ProjectivePoint,V=>{const{x:$,y:O}=z(y.create(V[0]));return F($,O)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:y.ORDER,m:1,k:128,expand:"xmd",hash:t.sha256});e.hashToCurve=U.hashToCurve,e.encodeToCurve=U.encodeToCurve})(nw)),nw}var Ff={},aw={},Uf={},SB;function zL(){return SB||(SB=1,Object.defineProperty(Uf,"__esModule",{value:!0}),Uf.ZeroAddress=void 0,Uf.ZeroAddress="0x0000000000000000000000000000000000000000"),Uf}var jf={},BB;function ole(){return BB||(BB=1,Object.defineProperty(jf,"__esModule",{value:!0}),jf.ZeroHash=void 0,jf.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"),jf}var ba={},_B;function lle(){return _B||(_B=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.MaxInt256=ba.MinInt256=ba.MaxUint256=ba.WeiPerEther=ba.N=void 0,ba.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ba.WeiPerEther=BigInt("1000000000000000000"),ba.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),ba.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),ba.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")),ba}var Ol={},IB;function cle(){return IB||(IB=1,Object.defineProperty(Ol,"__esMo
89dule",{value:!0}),Ol.MessagePrefix=Ol.EtherSymbol=void 0,Ol.EtherSymbol="Ξ",Ol.MessagePrefix=`�Ethereum Signed Message:
90`),Ol}var NB;function Am(){return NB||(NB=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MessagePrefix=e.EtherSymbol=e.MaxInt256=e.MinInt256=e.MaxUint256=e.WeiPerEther=e.N=e.ZeroHash=e.ZeroAddress=void 0;var t=zL();Object.defineProperty(e,"ZeroAddress",{enumerable:!0,get:function(){return t.ZeroAddress}});var n=ole();Object.defineProperty(e,"ZeroHash",{enumerable:!0,get:function(){return n.ZeroHash}});var r=lle();Object.defineProperty(e,"N",{enumerable:!0,get:function(){return r.N}}),Object.defineProperty(e,"WeiPerEther",{enumerable:!0,get:function(){return r.WeiPerEther}}),Object.defineProperty(e,"MaxUint256",{enumerable:!0,get:function(){return r.MaxUint256}}),Object.defineProperty(e,"MinInt256",{enumerable:!0,get:function(){return r.MinInt256}}),Object.defineProperty(e,"MaxInt256",{enumerable:!0,get:function(){return r.MaxInt256}});var a=cle();Object.defineProperty(e,"EtherSymbol",{enumerable:!0,get:function(){return a.EtherSymbol}}),Object.defineProperty(e,"MessagePrefix",{enumerable:!0,get:function(){return a.MessagePrefix}})})(aw)),aw}var RB;function HL(){var p,m,h,y;if(RB)return Ff;RB=1,Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.Signature=void 0;const e=Am(),t=at(),n=BigInt(0),r=BigInt(1),a=BigInt(2),s=BigInt(27),i=BigInt(28),l=BigInt(35),c={};function u(C){return(0,t.zeroPadValue)((0,t.toBeArray)(C),32)}const x=class x{constructor(T,w,v,g){Ce(this,p);Ce(this,m);Ce(this,h);Ce(this,y);(0,t.assertPrivate)(T,c,"Signature"),se(this,p,w),se(this,m,v),se(this,h,g),se(this,y,null)}get r(){return q(this,p)}
90set r(T){(0,t.assertArgument)((0,t.dataLength)(T)===32,"invalid r","value",T),se(this,p,(0,t.hexlify)(T))}get s(){return q(this,m)}set s(T){(0,t.assertArgument)((0,t.dataLength)(T)===32,"invalid s","value",T);const w=(0,t.hexlify)(T);(0,t.assertArgument)(parseInt(w.substring(0,3))<8,"non-canonical s","value",w),se(this,m,w)}get v(){return q(this,h)}set v(T){const w=(0,t.getNumber)(T,"value");(0,t.assertArgument)(w===27||w===28,"invalid v","v",T),se(this,h,w)}get networkV(){return q(this,y)}get legacyChainId(){const T=this.networkV;return T==null?null:x.getChainId(T)}get yParity(){return this.v===27?0:1}get yParityAndS(){const T=(0,t.getBytes)(this.s);return this.yParity&&(T[0]|=128),(0,t.hexlify)(T)}get compactSerialized(){return(0,t.concat)([this.r,this.yParityAndS])}get serialized(){return(0,t.concat)([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 x(c,this.r,this.s,this.v);return this.networkV&&se(T,y,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 w=(0,t.getBigInt)(T,"v");return w==s||w==i?n:((0,t.assertArgument)(w>=l,"invalid EIP-155 v","v",T),(w-l)/a)}static getChainIdV(T,w){return(0,t.getBigInt)(T)*a+BigInt(35+w-27)}static getNormalizedV(T){const w=(0,t.getBigInt)(T);return w===n||w===s?27:w===r||w===i?28:((0,t.assertArgument)(w>=l,"invalid v","v",T),w&r?27:28)}static from(T){function w(R,D){(0,t.assertArgument)(R,D,"signature",T)}if(T==null)return new x(c,e.ZeroHash,e.ZeroHash,27);if(typeof T=="string"){const R=(0,t.getBytes)(T,"signature");if(R.length===64){const D=(0,t.hexlify)(R.slice(0,32)),B=R.slice(32,64),M=B[0]&128?28:27;return B[0]&=127,new x(c,D,(0,t.hexlify)(B),M)}if(R.length===65){const D=(0,t.hexlify)(R.slice(0,32)),B=R.slice(32,64);w((B[0]&128)===0,"non-canonical s");const M=x.getNormalizedV(R[64]);return new x(c,D,(0,t.hexlify)(B),M)}w(!1,"invalid raw signature length")}if(T instanceof x)return T.clone();const v=T.r;w(v!=null,"missing r");const g=u(v),A=(function(R,D){if(R!=null)return u(R);if(D!=null){w((0,t.isHexString)(D,32),"invalid yParityAndS");const B=(0,t.getBytes)(D);return B[0]&=127,(0,t.hexlify)(B)}w(!1,"missing s")})(T.s,T.yParityAndS);w(((0,t.getBytes)(A)[0]&128)==0,"non-canonical s");const{networkV:S,v:_}=(function(R,D,B){if(R!=null){const M=(0,t.getBigInt)(R);return{networkV:M>=l?M:void 0,v:x.getNormalizedV(M)}}if(D!=null)return w((0,t.isHexString)(D,32),"invalid yParityAndS"),{v:(0,t.getBytes)(D)[0]&128?28:27};if(B!=null){switch((0,t.getNumber)(B,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}w(!1,"invalid yParity")}w(!1,"missing v")})(T.v,T.yParityAndS,T.yParity),k=new x(c,g,A,_);return S&&se(k,y,S),w(T.yParity==null||(0,t.getNumber)(T.yParity,"sig.yParity")===k.yParity,"yParity mismatch"),w(T.yParityAndS==null||T.yParityAndS===k.yParityAndS,"yParityAndS mismatch"),k}};p=new WeakMap,m=new WeakMap,h=new WeakMap,y=new WeakMap;let f=x;return Ff.Signature=f,Ff}var OB;function ule(){var a;if(OB)return Df;OB=1,Object.defineProperty(Df,"__esModule",{value:!0}),Df.SigningKey=void 0;const e=ile(),t=at(),n=HL(),s=class s{constructor(l){Ce(this,a);
90(0,t.assertArgument)((0,t.dataLength)(l)===32,"invalid private key","privateKey","[REDACTED]"),se(this,a,(0,t.hexlify)(l))}get privateKey(){return q(this,a)}get publicKey(){return s.computePublicKey(q(this,a))}get compressedPublicKey(){return s.computePublicKey(q(this,a),!0)}sign(l){(0,t.assertArgument)((0,t.dataLength)(l)===32,"invalid digest length","digest",l);const c=e.secp256k1.sign((0,t.getBytesCopy)(l),(0,t.getBytesCopy)(q(this,a)),{lowS:!0});return n.Signature.from({r:(0,t.toBeHex)(c.r,32),s:(0,t.toBeHex)(c.s,32),v:c.recovery?28:27})}computeSharedSecret(l){const c=s.computePublicKey(l);return(0,t.hexlify)(e.secp256k1.getSharedSecret((0,t.getBytesCopy)(q(this,a)),(0,t.getBytes)(c),!1))}static computePublicKey(l,c){let u=(0,t.getBytes)(l,"key");if(u.length===32){const p=e.secp256k1.getPublicKey(u,!!c);return(0,t.hexlify)(p)}if(u.length===64){const p=new Uint8Array(65);p[0]=4,p.set(u,1),u=p}const f=e.secp256k1.ProjectivePoint.fromHex(u);return(0,t.hexlify)(f.toRawBytes(c))}static recoverPublicKey(l,c){(0,t.assertArgument)((0,t.dataLength)(l)===32,"invali
90d digest length","digest",l);const u=n.Signature.from(c);let f=e.secp256k1.Signature.fromCompact((0,t.getBytesCopy)((0,t.concat)([u.r,u.s])));f=f.addRecoveryBit(u.yParity);const p=f.recoverPublicKey((0,t.getBytesCopy)(l));return(0,t.assertArgument)(p!=null,"invalid signature for digest","signature",c),"0x"+p.toHex(!1)}static addPoints(l,c,u){const f=e.secp256k1.ProjectivePoint.fromHex(s.computePublicKey(l).substring(2)),p=e.secp256k1.ProjectivePoint.fromHex(s.computePublicKey(c).substring(2));return"0x"+f.add(p).toHex(!!u)}};a=new WeakMap;let r=s;return Df.SigningKey=r,Df}var MB;function Xn(){return MB||(MB=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.lock=e.Signature=e.SigningKey=e.scryptSync=e.scrypt=e.pbkdf2=e.sha512=e.sha256=e.ripemd160=e.keccak256=e.randomBytes=e.computeHmac=void 0;const t=qoe();Object.defineProperty(e,"computeHmac",{enumerable:!0,get:function(){return t.computeHmac}});const n=Joe();Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return n.keccak256}});const r=Qoe();Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return r.ripemd160}});const a=Xoe();Object.defineProperty(e,"pbkdf2",{enumerable:!0,get:function(){return a.pbkdf2}});const s=Yoe();Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return s.randomBytes}});const i=tle();Object.defineProperty(e,"scrypt",{enumerable:!0,get:function(){return i.scrypt}}),Object.defineProperty(e,"scryptSync",{enumerable:!0,get:function(){return i.scryptSync}});const l=nle();Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return l.sha256}}),Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return l.sha512}});var c=ule();Object.defineProperty(e,"SigningKey",{enumerable:!0,get:function(){return c.SigningKey}});var u=HL();Object.defineProperty(e,"Signature",{enumerable:!0,get:function(){return u.Signature}});function f(){t.computeHmac.lock(),n.keccak256.lock(),a.pbkdf2.lock(),s.randomBytes.lock(),r.ripemd160.lock(),i.scrypt.lock(),i.scryptSync.lock(),l.sha256.lock(),l.sha512.lock(),s.randomBytes.lock()}e.lock=f})(Y6)),Y6}var DB;function fE(){if(DB)return Al;DB=1,Object.defineProperty(Al,"__esModule",{value:!0}),Al.getIcapAddress=Al.getAddress=void 0;const e=Xn(),t=at(),n=BigInt(0),r=BigInt(36);function a(m){m=m.toLowerCase();const h=m.substring(2).split(""),y=new Uint8Array(40);for(let C=0;C<40;C++)y[C]=h[C].charCodeAt(0);const x=(0,t.getBytes)((0,e.keccak256)(y));for(let C=0;C<40;C+=2)x[C>>1]>>4>=8&&(h[C]=h[C].toUpperCase()),(x[C>>1]&15)>=8&&(h[C+1]=h[C+1].toUpperCase());return"0x"+h.join("")}const s={};for(let m=0;m<10;m++)s[String(m)]=String(m);for(let m=0;m<26;m++)s[String.fromCharCode(65+m)]=String(10+m);const i=15;function l(m){m=m.toUpperCase(),m=m.substring(4)+m.substring(0,2)+"00";let h=m.split("").map(x=>s[x]).join("");for(;h.length>=i;){let x=h.substring(0,i);h=parseInt(x,10)%97+h.substring(x.length)}let y=String(98-parseInt(h,10)%97);for(;y.length<2;)y="0"+y;return y}const c=(function(){const m={};for(let h=0;h<36;h++){const y="0123456789abcdefghijklmnopqrstuvwxyz"[h];m[y]=BigInt(h)}return m})();function u(m){m=m.toLowerCase();let h=n;for(let y=0;y<m.length;y++)h=h*r+c[m[y]];return h}function f(m){if((0,t.assertArgument)(typeof m=="string","invalid address","address",m),m.match(/^(0x)?[0-9a-fA-F]{40}$/)){m.startsWith("0x")||(m="0x"+m);const h=a(m);return(0,t.assertArgument)(!m.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||h===m,"bad address checksum","address",m),h}if(m.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,t.assertArgument)(m.substring(2,4)===l(m),"bad icap checksum","address",m);let h=u(m.substring(4)).toString(16);for(;h.length<40;)h="0"+h;return a("0x"+h)}(0,t.assertArgument)(!1,"invalid address","address",m)}Al.getAddress=f;function p(m){let h=BigInt(f(m)).toString(36).toUpperCase();for(;h.length<30;)h="0"+h;return"XE"+l("XE00"+h)+h}return Al.getIcapAddress=p,Al}var Ml={},FB;function dle(){if(FB)return Ml;FB=1,Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.getCreate2Address=Ml.getCreateAddress=void 0;const e=Xn(),t=at(),n=fE();function r(s){const i=(0,n.getAddress)(s.from);let c=(0,t.getBigInt)(s.nonce,"tx.nonce").toString(16);return c==="0"?c="0x":c.length%2?c="0x0"+c:c="0x"+c,(0,n.getAddress)((0,t.dataSlice)((0,e.keccak256)((0,t.encodeRlp)([i,c])),12))}Ml.getCreateAddress=r;function a(s,i,l){const c=(0,n.getAddress)(s),u=(0,t.getBytes)(i,"salt"),f=(0,t.getBytes)(l,"initCodeHash");return(0,t.assertArgument)(u.length===32,"salt must be 32 bytes","salt",i),(0,t.assertArgument)(f.length===32,"initCodeHash must be 32 bytes","initCodeHash",l),(0,n.getAddress)((0,t.dataSlice)((0,e.keccak256)((0,t.concat)(["0xff",c,u,f])),12))}return Ml.getCreate2Address=a,Ml}var ui={},UB;function fle(){if(UB)return ui;UB=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.resolveAddress=ui.isAddress=ui.isAddressable=void 0;const e=at(),t=fE();function n(i){return i&&typeof i.getAddress=="function"}ui.isAddressable=n;function r(i){try{return(0,t.getAddress)(i),!0}catch{}return!1}ui.isAddress=r;async function a(i,l){const c=await l;return(c==null||c==="0x0000000000000000000000000000000000000000")&&((0,e.assert)(typeof i!="str
90ing","unconfigured name","UNCONFIGURED_NAME",{value:i}),(0,e.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",i)),(0,t.getAddress)(c)}function s(i,l){if(typeof i=="string")return i.match(/^0x[0-9a-f]{40}$/i)?(0,t.getAddress)(i):((0,e.assert)(l!=null,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),a(i,l.resolveName(i)));if(n(i))return a(i,i.getAddress());if(i&&typeof i.then=="function")return a(i,i);(0,e.assertArgument)(!1,"unsupported addressable value","target",i)}return ui.resolveAddress=s,ui}var jB;function Hn(){return jB||(jB=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resolveAddress=e.isAddress=e.isAddressable=e.getCreate2Address=e.getCreateAddress=e.getIcapAddress=e.getAddress=void 0;var t=fE();Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return t.getAddress}}),Object.defineProperty(e,"getIcapAddress",{enumerable:!0,get:function(){return t.getIcapAddress}});var n=dle();Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return n.getCreateAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return n.getCreate2Address}});var r=fle();Object.defineProperty(e,"isAddressable",{enumerable:!0,get:function(){return r.isAddressable}}),Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return r.isAddress}}),Object.defineProperty(e,"resolveAddress",{enumerable:!0,get:function(){return r.resolveAddress}})})(X6)),X6}var Lf={},LB;function Hi(){var i;if(LB)return Lf;LB=1,Object.defineProperty(Lf,"__esModule",{value:!0}),Lf.Typed=void 0;const e=at(),t={};function n(c,u){let f=!1;return u<0&&(f=!0,u*=-1),new s(t,`${f?"":"u"}int${u}`,c,{signed:f,width:u})}function r(c,u){return new s(t,`bytes${u||""}`,c,{size:u})}const a=Symbol.for("_ethers_typed"),l=class l{constructor(u,f,p,m){de(this,"type");de(this,"value");Ce(this,i);de(this,"_typedSymbol");m==null&&(m=null),(0,e.assertPrivate)(t,u,"Typed"),(0,e.defineProperties)(this,{_typedSymbol:a,type:f,value:p}),se(this,i,m),this.format()}format(){if(this.type==="array")throw new Error("");if(this.type==="dynamicArray")throw new Error("");return this.type==="tuple"?`tuple(${this.value.map(u=>u.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 q(this,i)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return q(this,i)===!0?-1:q(this,i)===!1?this.value.length:null}static from(u,f){return new l(t,u,f)}static uint8(u){return n(u,8)}static uint16(u){return n(u,16)}static uint24(u){return n(u,24)}static uint32(u){return n(u,32)}static uint40(u){return n(u,40)}static uint48(u){return n(u,48)}static uint56(u){return n(u,56)}static uint64(u){return n(u,64)}static uint72(u){return n(u,72)}static uint80(u){return n(u,80)}static uint88(u){return n(u,88)}static uint96(u){return n(u,96)}static uint104(u){return n(u,104)}static uint112(u){return n(u,112)}static uint120(u){return n(u,120)}static uint128(u){return n(u,128)}static uint136(u){return n(u,136)}static uint144(u){return n(u,144)}static uint152(u){return n(u,152)}static uint160(u){return n(u,160)}static uint168(u){return n(u,168)}static uint176(u){return n(u,176)}static uint184(u){return n(u,184)}static uint192(u){return n(u,192)}static uint200(u){return n(u,200)}static uint208(u){return n(u,208)}static uint216(u){return n(u,216)}static uint224(u){return n(u,224)}static uint232(u){return n(u,232)}static uint240(u){return n(u,240)}static uint248(u){return n(u,248)}static uint256(u){return n(u,256)}static uint(u){return n(u,256)}static int8(u){return n(u,-8)}static int16(u){return n(u,-16)}static int24(u){return n(u,-24)}static int32(u){return n(u,-32)}static int40(u){return n(u,-40)}static int48(u){return n(u,-48)}static int56(u){return n(u,-56)}static int64(u){return n(u,-64)}static int72(u){return n(u,-72)}static int80(u){return n(u,-80)}static int88(u){return n(u,-88)}static int96(u){return n(u,-96)}static int104(u){return n(u,-104)}static int112(u){return n(u,-112)}static int120(u){return n(u,-120)}static int128(u){return n(u,-128)}static int136(u){return n(u,-136)}static int144(u){return n(u,-144)}static int152(u){return n(u,-152)}static int160(u){return n(u,-160)}static int168(u){return n(u,-168)}static int176(u){return n(u,-176)}static int184(u){return n(u,-184)}static int192(u){return n(u,-192)}static int200(u){return n(u,-200)}static int208(u){return n(u,-208)}static int216(u){return n(u,-216)}static int224(u){return n(u,-224)}static int232(u){return n(u,-232)}static int240(u){return n(u,-240)}static int248(u){return n(u,-248)}static int256(u){return n(u,-256)}static int(u){return n(u,-256)}static bytes1(u){return r(u,1)}static bytes2(u){return r(u,2)}static bytes3(u){return r(u,3)}static bytes4(u){return r(u,4)}static bytes5(u){return r(u,5)}static bytes6(u){return r(u,6)}static bytes7(u){return r(u,7)}static bytes8(u){return r(u,8)}static bytes9(u){return r(u,9)}static bytes10(u){return r(u,10)}static bytes11(u){return r(u,11)}static bytes12(u){return r(u,12)}static bytes13(u){return r(u,13)}static bytes14(u){return r(u,14)}static bytes15(u){return r(u,15)}static bytes16(u){return r(u,16)}static bytes17(u){return r(u,17)}static bytes18(u){return r(u,18)}static bytes19(u){return r(u,19)}static bytes20(u){return r(u,20)}static bytes21(u){return r(u,21)}static bytes22(u){return r(u,22)}static bytes23(u){return r(u,23)}static bytes24(u){return r(u,24)}static bytes25(u){return r(u,25)}static bytes26(u){return r(u,26)}static bytes27(u){return r(u,27)}static bytes28(u){return r(u,28)}static bytes29(u){return r(u,29)}static bytes30(u){return r(u,30)}static bytes31(u){return r(u,31)}static bytes32(u){return r(u,32)}static address(u){return new l(t,"address",u)}static bool(u){return new l(t,"bool",!!u)}static bytes(u){return new l(t,"bytes",u)}static string(u){return new l(t,"string",u)}static array(u,f){throw new Error("not implemented yet")}static tuple(u,f){throw new Error("not implemented yet")}static overrides(u){return new l(t,"overrides",Object.assign({},u))}static isTyped(u){return u&&typeof u=="object"&&"_typedSymbol"in u&&u._typedSymbol===a}static dereference(u,f){if(l.isTyped(u)){if(u.type!==f)throw new Error(`invalid type: expecetd ${f}, got ${u.type}`);return u.value}return u}};i=new WeakMap;let s=l;return Lf.Typed=s,Lf}var $B;function ple(){if($B)return Sf;
90$B=1,Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.AddressCoder=void 0;const e=Hn(),t=km(),n=Hi(),r=ws();class a extends r.Coder{constructor(i){super("address","address",i,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(i,l){let c=n.Typed.dereference(l,"string");try{c=(0,e.getAddress)(c)}catch(u){return this._throwError(u.message,l)}return i.writeValue(c)}decode(i){return(0,e.getAddress)((0,t.toBeHex)(i.readValue(),20))}}return Sf.AddressCoder=a,Sf}var di={},$f={},zB;function mle(){if(zB)return $f;zB=1,Object.defineProperty($f,"__esModule",{value:!0}),$f.AnonymousCoder=void 0;const e=ws();class t extends e.Coder{constructor(a){super(a.name,a.type,"_",a.dynamic);de(this,"coder");this.coder=a}defaultValue(){return this.coder.defaultValue()}encode(a,s){return this.coder.encode(a,s)}decode(a){return this.coder.decode(a)}}return $f.AnonymousCoder=t,$f}var HB;function KL(){if(HB)return di;HB=1,Object.defineProperty(di,"__esModule",{value:!0}),di.ArrayCoder=di.unpack=di.pack=void 0;const e=at(),t=Hi(),n=ws(),r=mle();function a(l,c,u){let f=[];if(Array.isArray(u))f=u;else if(u&&typeof u=="object"){let x={};f=c.map(C=>{const T=C.localName;return(0,e.assert)(T,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:C},value:u}),(0,e.assert)(!x[T],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:C},value:u}),x[T]=!0,u[T]})}else(0,e.assertArgument)(!1,"invalid tuple value","tuple",u);(0,e.assertArgument)(c.length===f.length,"types/value length mismatch","tuple",u);let p=new n.Writer,m=new n.Writer,h=[];c.forEach((x,C)=>{let T=f[C];if(x.dynamic){let w=m.length;x.encode(m,T);let v=p.writeUpdatableValue();h.push(g=>{v(g+w)})}else x.encode(p,T)}),h.forEach(x=>{x(p.length)});let y=l.appendWriter(p);return y+=l.appendWriter(m),y}di.pack=a;function s(l,c){let u=[],f=[],p=l.subReader(0);return c.forEach(m=>{let h=null;if(m.dynamic){let y=l.readIndex(),x=p.subReader(y);try{h=m.decode(x)}catch(C){if((0,e.isError)(C,"BUFFER_OVERRUN"))throw C;h=C,h.baseType=m.name,h.name=m.localName,h.type=m.type}}else try{h=m.decode(l)}catch(y){if((0,e.isError)(y,"BUFFER_OVERRUN"))throw y;h=y,h.baseType=m.name,h.name=m.localName,h.type=m.type}if(h==null)throw new Error("investigate");u.push(h),f.push(m.localName||null)}),n.Result.fromItems(u,f)}di.unpack=s;class i extends n.Coder{constructor(u,f,p){const m=u.type+"["+(f>=0?f:"")+"]",h=f===-1||u.dynamic;super("array",m,p,h);de(this,"coder");de(this,"length");(0,e.defineProperties)(this,{coder:u,length:f})}defaultValue(){const u=this.coder.defaultValue(),f=[];for(let p=0;p<this.length;p++)f.push(u);return f}encode(u,f){const p=t.Typed.dereference(f,"array");Array.isArray(p)||this._throwError("expected array value",p);let m=this.length;m===-1&&(m=p.length,u.writeValue(p.length)),(0,e.assertArgumentCount)(p.length,m,"coder array"+(this.localName?" "+this.localName:""));let h=[];for(let y=0;y<p.length;y++)h.push(this.coder);return a(u,h,p)}decode(u){let f=this.length;f===-1&&(f=u.readIndex(),(0,e.assert)(f*n.WordSize<=u.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:u.bytes,offset:f*n.WordSize,length:u.dataLength}));let p=[];for(let m=0;m<f;m++)p.push(new r.AnonymousCoder(this.coder));return s(u,p)}}return di.ArrayCoder=i,di}var zf={},KB;function hle(){if(KB)return zf;KB=1,Object.defineProperty(zf,"__esModule",{value:!0}),zf.BooleanCoder=void 0;const e=Hi(),t=ws();class n extends t.Coder{constructor(a){super("bool","bool",a,!1)}defaultValue(){return!1}encode(a,s){const i=e.Typed.dereference(s,"bool");return a.writeValue(i?1:0)}decode(a){return!!a.readValue()}}return zf.BooleanCoder=n,zf}var Dl={},VB;function VL(){if(VB)return Dl;VB=1,Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.BytesCoder=Dl.DynamicBytesCoder=void 0;const e=at(),t=ws();class n extends t.Coder{constructor(s,i){super(s,s,i,!0)}defaultValue(){return"0x"}encode(s,i){i=(0,e.getBytesCopy)(i);let l=s.writeValue(i.length);return l+=s.writeBytes(i),l}decode(s){return s.readBytes(s.readIndex(),!0)}}Dl.DynamicBytesCoder=n;class r extends n{constructor(s){super("bytes",s)}decode(s){return(0,e.hexlify)(super.decode(s))}}return Dl.BytesCoder=r,Dl}var Hf={},GB;function yle(){if(GB)return Hf;
90GB=1,Object.defineProperty(Hf,"__esModule",{value:!0}),Hf.FixedBytesCoder=void 0;const e=at(),t=Hi(),n=ws();class r extends n.Coder{constructor(i,l){let c="bytes"+String(i);super(c,c,l,!1);de(this,"size");(0,e.defineProperties)(this,{size:i},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(i,l){let c=(0,e.getBytesCopy)(t.Typed.dereference(l,this.type));return c.length!==this.size&&this._throwError("incorrect data length",l),i.writeBytes(c)}decode(i){return(0,e.hexlify)(i.readBytes(this.size))}}return Hf.FixedBytesCoder=r,Hf}var Kf={},qB;function ble(){if(qB)return Kf;qB=1,Object.defineProperty(Kf,"__esModule",{value:!0}),Kf.NullCoder=void 0;const e=ws(),t=new Uint8Array([]);class n extends e.Coder{constructor(a){super("null","",a,!1)}defaultValue(){return null}encode(a,s){return s!=null&&this._throwError("not null",s),a.writeBytes(t)}decode(a){return a.readBytes(0),null}}return Kf.NullCoder=n,Kf}var Vf={},WB;function gle(){if(WB)return Vf;WB=1,Object.defineProperty(Vf,"__esModule",{value:!0}),Vf.NumberCoder=void 0;const e=at(),t=Hi(),n=ws(),r=BigInt(0),a=BigInt(1),s=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class i extends n.Coder{constructor(u,f,p){const m=(f?"int":"uint")+u*8;super(m,m,p,!1);de(this,"size");de(this,"signed");(0,e.defineProperties)(this,{size:u,signed:f},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(u,f){let p=(0,e.getBigInt)(t.Typed.dereference(f,this.type)),m=(0,e.mask)(s,n.WordSize*8);if(this.signed){let h=(0,e.mask)(m,this.size*8-1);(p>h||p<-(h+a))&&this._throwError("value out-of-bounds",f),p=(0,e.toTwos)(p,8*n.WordSize)}else(p<r||p>(0,e.mask)(m,this.size*8))&&this._throwError("value out-of-bounds",f);return u.writeValue(p)}decode(u){let f=(0,e.mask)(u.readValue(),this.size*8);return this.signed&&(f=(0,e.fromTwos)(f,this.size*8)),f}}return Vf.NumberCoder=i,Vf}var Gf={},JB;function xle(){if(JB)return Gf;JB=1,Object.defineProperty(Gf,"__esModule",{value:!0}),Gf.StringCoder=void 0;const e=lE(),t=Hi(),n=VL();class r extends n.DynamicBytesCoder{constructor(s){super("string",s)}defaultValue(){return""}encode(s,i){return super.encode(s,(0,e.toUtf8Bytes)(t.Typed.dereference(i,"string")))}decode(s){return(0,e.toUtf8String)(super.decode(s))}}return Gf.StringCoder=r,Gf}var qf={},ZB;function vle(){if(ZB)return qf;ZB=1,Object.defineProperty(qf,"__esModule",{value:!0}),qf.TupleCoder=void 0;const e=Mc(),t=Hi(),n=ws(),r=KL();class a extends n.Coder{constructor(l,c){let u=!1;const f=[];l.forEach(m=>{m.dynamic&&(u=!0),f.push(m.type)});const p="tuple("+f.join(",")+")";super("tuple",p,c,u);de(this,"coders");(0,e.defineProperties)(this,{coders:Object.freeze(l.slice())})}defaultValue(){const l=[];this.coders.forEach(u=>{l.push(u.defaultValue())});const c=this.coders.reduce((u,f)=>{const p=f.localName;return p&&(u[p]||(u[p]=0),u[p]++),u},{});return this.coders.forEach((u,f)=>{let p=u.localName;!p||c[p]!==1||(p==="length"&&(p="_length"),l[p]==null&&(l[p]=l[f]))}),Object.freeze(l)}encode(l,c){const u=t.Typed.dereference(c,"tuple");return(0,r.pack)(l,this.coders,u)}decode(l){return(0,r.unpack)(l,this.coders)}}return qf.TupleCoder=a,qf}var Mn={},sw={},Fl={},iw={},Wf={},QB;function GL(){if(QB)return Wf;QB=1,Object.defineProperty(Wf,"__esModule",{value:!0}),Wf.accessListify=void 0;const e=Hn(),t=at();function n(a,s){return{address:(0,e.getAddress)(a),storageKeys:s.map((i,l)=>((0,t.assertArgument)((0,t.isHexString)(i,32),"invalid slot",`storageKeys[${l}]`,i),i.toLowerCase()))}}function r(a){if(Array.isArray(a))return a.map((i,l)=>Array.isArray(i)?((0,t.assertArgument)(i.length===2,"invalid slot set",`value[${l}]`,i),n(i[0],i[1])):((0,t.assertArgument)(i!=null&&typeof i=="object","invalid address-slot set","value",a),n(i.address,i.storageKeys)));(0,t.assertArgument)(a!=null&&typeof a=="object","invalid access list","value",a);const s=Object.keys(a).map(i=>{const l=a[i].reduce((c,u)=>(c[u]=!0,c),{});return n(i,Object.keys(l).sort())});return s.sort((i,l)=>i.address.localeCompare(l.address)),s}return Wf.accessListify=r,Wf}var Jf={},XB;function qL(){if(XB)return Jf;
90XB=1,Object.defineProperty(Jf,"__esModule",{value:!0}),Jf.authorizationify=void 0;const e=Hn(),t=Xn(),n=at();function r(a){return{address:(0,e.getAddress)(a.address),nonce:(0,n.getBigInt)(a.nonce!=null?a.nonce:0),chainId:(0,n.getBigInt)(a.chainId!=null?a.chainId:0),signature:t.Signature.from(a.signature)}}return Jf.authorizationify=r,Jf}var Ul={},YB;function WL(){if(YB)return Ul;YB=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.recoverAddress=Ul.computeAddress=void 0;const e=Hn(),t=Xn();function n(a){let s;return typeof a=="string"?s=t.SigningKey.computePublicKey(a,!1):s=a.publicKey,(0,e.getAddress)((0,t.keccak256)("0x"+s.substring(4)).substring(26))}Ul.computeAddress=n;function r(a,s){return n(t.SigningKey.recoverPublicKey(a,s))}return Ul.recoverAddress=r,Ul}var Zf={},e_;function wle(){var O,H,Z,ee,ae,ie,fe,le,xe,he,De,Se,ke,ge,J,Y,re,ce,fb;if(e_)return Zf;e_=1,Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.Transaction=void 0;const e=Hn(),t=zL(),n=Xn(),r=at(),a=GL(),s=qL(),i=WL(),l=BigInt(0),c=BigInt(2),u=BigInt(27),f=BigInt(28),p=BigInt(35),m=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),h=4096*32;function y(ue){return{blobToKzgCommitment:ne=>{if("computeBlobProof"in ue){if("blobToKzgCommitment"in ue&&typeof ue.blobToKzgCommitment=="function")return(0,r.getBytes)(ue.blobToKzgCommitment((0,r.hexlify)(ne)))}else if("blobToKzgCommitment"in ue&&typeof ue.blobToKzgCommitment=="function")return(0,r.getBytes)(ue.blobToKzgCommitment(ne));if("blobToKZGCommitment"in ue&&typeof ue.blobToKZGCommitment=="function")return(0,r.getBytes)(ue.blobToKZGCommitment((0,r.hexlify)(ne)));(0,r.assertArgument)(!1,"unsupported KZG library","kzg",ue)},computeBlobKzgProof:(ne,pe)=>{if("computeBlobProof"in ue&&typeof ue.computeBlobProof=="function")return(0,r.getBytes)(ue.computeBlobProof((0,r.hexlify)(ne),(0,r.hexlify)(pe)));if("computeBlobKzgProof"in ue&&typeof ue.computeBlobKzgProof=="function")return ue.computeBlobKzgProof(ne,pe);if("computeBlobKZGProof"in ue&&typeof ue.computeBlobKZGProof=="function")return(0,r.getBytes)(ue.computeBlobKZGProof((0,r.hexlify)(ne),(0,r.hexlify)(pe)));(0,r.assertArgument)(!1,"unsupported KZG library","kzg",ue)}}}function x(ue,Q){let X=ue.toString(16);for(;X.length<2;)X="0"+X;return X+=(0,n.sha256)(Q).substring(4),"0x"+X}function C(ue){return ue==="0x"?null:(0,e.getAddress)(ue)}function T(ue,Q){try{return(0,a.accessListify)(ue)}catch(X){(0,r.assertArgument)(!1,X.message,Q,ue)}}function w(ue,Q){try{if(!Array.isArray(ue))throw new Error("authorizationList: invalid array");const X=[];for(let ne=0;ne<ue.length;ne++){const pe=ue[ne];if(!Array.isArray(pe))throw new Error(`authorization[${ne}]: invalid array`);if(pe.length!==6)throw new Error(`authorization[${ne}]: wrong length`);if(!pe[1])throw new Error(`authorization[${ne}]: null address`);X.push({address:C(pe[1]),nonce:g(pe[2],"nonce"),chainId:g(pe[0],"chainId"),signature:n.Signature.from({yParity:v(pe[3],"yParity"),r:(0,r.zeroPadValue)(pe[4],32),s:(0,r.zeroPadValue)(pe[5],32)})})}return X}catch(X){(0,r.assertArgument)(!1,X.message,Q,ue)}}function v(ue,Q){return ue==="0x"?0:(0,r.getNumber)(ue,Q)}function g(ue,Q){if(ue==="0x")return l;const X=(0,r.getBigInt)(ue,Q);return(0,r.assertArgument)(X<=m,"value exceeds uint size",Q,X),X}function A(ue,Q){const X=(0,r.getBigInt)(ue,"value"),ne=(0,r.toBeArray)(X);return(0,r.assertArgument)(ne.length<=32,"value too large",`tx.${Q}`,X),ne}function S(ue){return(0,a.accessListify)(ue).map(Q=>[Q.address,Q.storageKeys])}function _(ue){return ue.map(Q=>[A(Q.chainId,"chainId"),Q.address,A(Q.nonce,"nonce"),A(Q.signature.yParity,"yParity"),Q.signature.r,Q.signature.s])}function k(ue,Q){(0,r.assertArgument)(Array.isArray(ue),`invalid ${Q}`,"value",ue);for(let X=0;X<ue.length;X++)(0,r.assertArgument)((0,r.isHexString)(ue[X],32),"invalid ${ param } hash",`value[${X}]`,ue[X]);return ue}function R(ue){const Q=(0,r.decodeRlp)(ue);(0,r.assertArgument)(Array.isArray(Q)&&(Q.length===9||Q.length===6),"invalid field count for legacy transaction","data",ue);const X={type:0,nonce:v(Q[0],"nonce"),gasPrice:g(Q[1],"gasPrice"),gasLimit:g(Q[2],"gasLim
90it"),to:C(Q[3]),value:g(Q[4],"value"),data:(0,r.hexlify)(Q[5]),chainId:l};if(Q.length===6)return X;const ne=g(Q[6],"v"),pe=g(Q[7],"r"),Be=g(Q[8],"s");if(pe===l&&Be===l)X.chainId=ne;else{let Re=(ne-p)/c;Re<l&&(Re=l),X.chainId=Re,(0,r.assertArgument)(Re!==l||ne===u||ne===f,"non-canonical legacy v","v",Q[6]),X.signature=n.Signature.from({r:(0,r.zeroPadValue)(Q[7],32),s:(0,r.zeroPadValue)(Q[8],32),v:ne})}return X}function D(ue,Q){const X=[A(ue.nonce,"nonce"),A(ue.gasPrice||0,"gasPrice"),A(ue.gasLimit,"gasLimit"),ue.to||"0x",A(ue.value,"value"),ue.data];let ne=l;if(ue.chainId!=l)ne=(0,r.getBigInt)(ue.chainId,"tx.chainId"),(0,r.assertArgument)(!Q||Q.networkV==null||Q.legacyChainId===ne,"tx.chainId/sig.v mismatch","sig",Q);else if(ue.signature){const Be=ue.signature.legacyChainId;Be!=null&&(ne=Be)}if(!Q)return ne!==l&&(X.push((0,r.toBeArray)(ne)),X.push("0x"),X.push("0x")),(0,r.encodeRlp)(X);let pe=BigInt(27+Q.yParity);return ne!==l?pe=n.Signature.getChainIdV(ne,Q.v):BigInt(Q.v)!==pe&&(0,r.assertArgument)(!1,"tx.chainId/sig.v mismatch","sig",Q),X.push((0,r.toBeArray)(pe)),X.push((0,r.toBeArray)(Q.r)),X.push((0,r.toBeArray)(Q.s)),(0,r.encodeRlp)(X)}function B(ue,Q){let X;try{if(X=v(Q[0],"yParity"),X!==0&&X!==1)throw new Error("bad yParity")}catch{(0,r.assertArgument)(!1,"invalid yParity","yParity",Q[0])}const ne=(0,r.zeroPadValue)(Q[1],32),pe=(0,r.zeroPadValue)(Q[2],32),Be=n.Signature.from({r:ne,s:pe,yParity:X});ue.signature=Be}function M(ue){const Q=(0,r.decodeRlp)((0,r.getBytes)(ue).slice(1));(0,r.assertArgument)(Array.isArray(Q)&&(Q.length===9||Q.length===12),"invalid field count for transaction type: 2","data",(0,r.hexlify)(ue));const X={type:2,chainId:g(Q[0],"chainId"),nonce:v(Q[1],"nonce"),maxPriorityFeePerGas:g(Q[2],"maxPriorityFeePerGas"),maxFeePerGas:g(Q[3],"maxFeePerGas"),gasPrice:null,gasLimit:g(Q[4],"gasLimit"),to:C(Q[5]),value:g(Q[6],"value"),data:(0,r.hexlify)(Q[7]),accessList:T(Q[8],"accessList")};return Q.length===9||B(X,Q.slice(9)),X}function E(ue,Q){const X=[A(ue.chainId,"chainId"),A(ue.nonce,"nonce"),A(ue.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),A(ue.maxFeePerGas||0,"maxFeePerGas"),A(ue.gasLimit,"gasLimit"),ue.to||"0x",A(ue.value,"value"),ue.data,S(ue.accessList||[])];return Q&&(X.push(A(Q.yParity,"yParity")),X.push((0,r.toBeArray)(Q.r)),X.push((0,r.toBeArray)(Q.s))),(0,r.concat)(["0x02",(0,r.encodeRlp)(X)])}function N(ue){const Q=(0,r.decodeRlp)((0,r.getBytes)(ue).slice(1));(0,r.assertArgument)(Array.isArray(Q)&&(Q.length===8||Q.length===11),"invalid field count for transaction type: 1","data",(0,r.hexlify)(ue));const X={type:1,chainId:g(Q[0],"chainId"),nonce:v(Q[1],"nonce"),gasPrice:g(Q[2],"gasPrice"),gasLimit:g(Q[3],"gasLimit"),to:C(Q[4]),value:g(Q[5],"value"),data:(0,r.hexlify)(Q[6]),accessList:T(Q[7],"accessList")};return Q.length===8||B(X,Q.slice(8)),X}function I(ue,Q){const X=[A(ue.chainId,"chainId"),A(ue.nonce,"nonce"),A(ue.gasPrice||0,"gasPrice"),A(ue.gasLimit,"gasLimit"),ue.to||"0x",A(ue.value,"value"),ue.data,S(ue.accessList||[])];return Q&&(X.push(A(Q.yParity,"recoveryParam")),X.push((0,r.toBeArray)(Q.r)),X.push((0,r.toBeArray)(Q.s))),(0,r.concat)(["0x01",(0,r.encodeRlp)(X)])}function F(ue){let Q=(0,r.decodeRlp)((0,r.getBytes)(ue).slice(1)),X="3",ne=null;if(Q.length===4&&Array.isArray(Q[0])){X="3 (network format)";const Be=Q[1],Re=Q[2],Qe=Q[3];(0,r.assertArgument)(Array.isArray(Be),"invalid network format: blobs not an array","fields[1]",Be),(0,r.assertArgument)(Array.isArray(Re),"invalid network format: commitments not an array","fields[2]",Re),(0,r.assertArgument)(Array.isArray(Qe),"invalid network format: proofs not an array","fields[3]",Qe),(0,r.assertArgument)(Be.length===Re.length,"invalid network format: blobs/commitments length mismatch","fields",Q),(0,r.assertArgument)(Be.length===Qe.length,"invalid network format: blobs/proofs length mismatch","fields",Q),ne=[];for(let et=0;et<Q[1].length;et++)ne.push({data:Be[et],commitment:Re[et],proof:Qe[et]});Q=Q[0]}(0,r.assertArgument)(Array.isArray(Q)&&(Q.length===11||Q.length===14),`invalid field count for transaction type: ${X}`,"data",(0,r.hexlify)(ue));const pe={type:3,chainId:g(Q[0],"chainId"),nonce:v(Q[1],"nonce"),maxPriorityFeePerGas:g(Q[2],"maxPriorityFeePerGas"),maxFeePerGas:g(Q[3],"maxFeePerGas"),gasPrice:null,gasLimit:g(Q[4],"gasLim
90it"),to:C(Q[5]),value:g(Q[6],"value"),data:(0,r.hexlify)(Q[7]),accessList:T(Q[8],"accessList"),maxFeePerBlobGas:g(Q[9],"maxFeePerBlobGas"),blobVersionedHashes:Q[10]};ne&&(pe.blobs=ne),(0,r.assertArgument)(pe.to!=null,`invalid address for transaction type: ${X}`,"data",ue),(0,r.assertArgument)(Array.isArray(pe.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",ue);for(let Be=0;Be<pe.blobVersionedHashes.length;Be++)(0,r.assertArgument)((0,r.isHexString)(pe.blobVersionedHashes[Be],32),`invalid blobVersionedHash at index ${Be}: must be length 32`,"data",ue);return Q.length===11||B(pe,Q.slice(11)),pe}function z(ue,Q,X){const ne=[A(ue.chainId,"chainId"),A(ue.nonce,"nonce"),A(ue.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),A(ue.maxFeePerGas||0,"maxFeePerGas"),A(ue.gasLimit,"gasLimit"),ue.to||t.ZeroAddress,A(ue.value,"value"),ue.data,S(ue.accessList||[]),A(ue.maxFeePerBlobGas||0,"maxFeePerBlobGas"),k(ue.blobVersionedHashes||[],"blobVersionedHashes")];return Q&&(ne.push(A(Q.yParity,"yParity")),ne.push((0,r.toBeArray)(Q.r)),ne.push((0,r.toBeArray)(Q.s)),X)?(0,r.concat)(["0x03",(0,r.encodeRlp)([ne,X.map(pe=>pe.data),X.map(pe=>pe.commitment),X.map(pe=>pe.proof)])]):(0,r.concat)(["0x03",(0,r.encodeRlp)(ne)])}function U(ue){const Q=(0,r.decodeRlp)((0,r.getBytes)(ue).slice(1));(0,r.assertArgument)(Array.isArray(Q)&&(Q.length===10||Q.length===13),"invalid field count for transaction type: 4","data",(0,r.hexlify)(ue));const X={type:4,chainId:g(Q[0],"chainId"),nonce:v(Q[1],"nonce"),maxPriorityFeePerGas:g(Q[2],"maxPriorityFeePerGas"),maxFeePerGas:g(Q[3],"maxFeePerGas"),gasPrice:null,gasLimit:g(Q[4],"gasLimit"),to:C(Q[5]),value:g(Q[6],"value"),data:(0,r.hexlify)(Q[7]),accessList:T(Q[8],"accessList"),authorizationList:w(Q[9],"authorizationList")};return Q.length===10||B(X,Q.slice(10)),X}function V(ue,Q){const X=[A(ue.chainId,"chainId"),A(ue.nonce,"nonce"),A(ue.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),A(ue.maxFeePerGas||0,"maxFeePerGas"),A(ue.gasLimit,"gasLimit"),ue.to||"0x",A(ue.value,"value"),ue.data,S(ue.accessList||[]),_(ue.authorizationList||[])];return Q&&(X.push(A(Q.yParity,"yParity")),X.push((0,r.toBeArray)(Q.r)),X.push((0,r.toBeArray)(Q.s))),(0,r.concat)(["0x04",(0,r.encodeRlp)(X)])}const Ze=class Ze{constructor(){Ce(this,ce);Ce(this,O);Ce(this,H);Ce(this,Z);Ce(this,ee);Ce(this,ae);Ce(this,ie);Ce(this,fe);Ce(this,le);Ce(this,xe);Ce(this,he);Ce(this,De);Ce(this,Se);Ce(this,ke);Ce(this,ge);Ce(this,J);Ce(this,Y);Ce(this,re);se(this,O,null),se(this,H,null),se(this,ee,0),se(this,ae,l),se(this,ie,null),se(this,fe,null),se(this,le,null),se(this,Z,"0x"),se(this,xe,l),se(this,he,l),se(this,De,null),se(this,Se,null),se(this,ke,null),se(this,ge,null),se(this,J,null),se(this,Y,null),se(this,re,null)}get type(){return q(this,O)}set type(Q){switch(Q){case null:se(this,O,null);break;case 0:case"legacy":se(this,O,0);break;case 1:case"berlin":case"eip-2930":se(this,O,1);break;case 2:case"london":case"eip-1559":se(this,O,2);break;case 3:case"cancun":case"eip-4844":se(this,O,3);break;case 4:case"pectra":case"eip-7702":se(this,O,4);break;default:(0,r.assertArgument)(!1,"unsupported transaction type","type",Q)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844";case 4:return"eip-7702"}return null}get to(){const Q=q(this,H);return Q==null&&this.type===3?t.ZeroAddress:Q}set to(Q){se(this,H,Q==null?null:(0,e.getAddress)(Q))}get nonce(){return q(this,ee)}set nonce(Q){se(this,ee,(0,r.getNumber)(Q,"value"))}get gasLimit(){return q(this,ae)}set gasLimit(Q){se(this,ae,(0,r.getBigInt)(Q))}get gasPrice(){const Q=q(this,ie);return Q==null&&(this.type===0||this.type===1)?l:Q}set gasPrice(Q){se(this,ie,Q==null?null:(0,r.getBigInt)(Q,"gasPrice"))}get maxPriorityFeePerGas(){const Q=q(this,fe);return Q??(this.type===2||this.type===3?l:null)}set maxPriorityFeePerGas(Q){se(this,fe,Q==null?null:(0,r.getBigInt)(Q,"maxPriorityFeePerGas"))}get maxFeePerGas(){const Q=q(this,le);return Q??(this.type===2||this.type===3?l:null)}set maxFeePerGas(Q){se(this,le,Q==null?null:(0,r.getBigInt)(Q,"maxFeePerGas"))}get data(){return q(this,Z)}set data(Q){se(this,Z,(0,r.hexlify)(Q))}get value(){return q(this,xe)}set value(Q){se(this,xe,(0,r.getBigInt)(Q,"value"))}get chainId(){return q(this,he)}set chainId(Q){se(this,he,(0,r.getBigInt)(Q))}get signature(){return q(this,De)||null}set signature(Q){se(this,De,Q==null?null:n.Signature.from(Q))}get accessList(){const Q=q(this,Se)||null;
90return Q??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(Q){se(this,Se,Q==null?null:(0,a.accessListify)(Q))}get authorizationList(){const Q=q(this,re)||null;return Q==null&&this.type===4?[]:Q}set authorizationList(Q){se(this,re,Q==null?null:Q.map(X=>(0,s.authorizationify)(X)))}get maxFeePerBlobGas(){const Q=q(this,ke);return Q==null&&this.type===3?l:Q}set maxFeePerBlobGas(Q){se(this,ke,Q==null?null:(0,r.getBigInt)(Q,"maxFeePerBlobGas"))}get blobVersionedHashes(){let Q=q(this,ge);return Q==null&&this.type===3?[]:Q}set blobVersionedHashes(Q){if(Q!=null){(0,r.assertArgument)(Array.isArray(Q),"blobVersionedHashes must be an Array","value",Q),Q=Q.slice();for(let X=0;X<Q.length;X++)(0,r.assertArgument)((0,r.isHexString)(Q[X],32),"invalid blobVersionedHash",`value[${X}]`,Q[X])}se(this,ge,Q)}get blobs(){return q(this,Y)==null?null:q(this,Y).map(Q=>Object.assign({},Q))}set blobs(Q){if(Q==null){se(this,Y,null);return}const X=[],ne=[];for(let pe=0;pe<Q.length;pe++){const Be=Q[pe];if((0,r.isBytesLike)(Be)){(0,r.assert)(q(this,J),"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let Re=(0,r.getBytes)(Be);if((0,r.assertArgument)(Re.length<=h,"blob is too large",`blobs[${pe}]`,Be),Re.length!==h){const Ye=new Uint8Array(h);Ye.set(Re),Re=Ye}const Qe=q(this,J).blobToKzgCommitment(Re),et=(0,r.hexlify)(q(this,J).computeBlobKzgProof(Re,Qe));X.push({data:(0,r.hexlify)(Re),commitment:(0,r.hexlify)(Qe),proof:et}),ne.push(x(1,Qe))}else{const Re=(0,r.hexlify)(Be.commitment);X.push({data:(0,r.hexlify)(Be.data),commitment:Re,proof:(0,r.hexlify)(Be.proof)}),ne.push(x(1,Re))}}se(this,Y,X),se(this,ge,ne)}get kzg(){return q(this,J)}set kzg(Q){Q==null?se(this,J,null):se(this,J,y(Q))}get hash(){return this.signature==null?null:(0,n.keccak256)(je(this,ce,fb).call(this,!0,!1))}get unsignedHash(){return(0,n.keccak256)(this.unsignedSerialized)}get from(){return this.signature==null?null:(0,i.recoverAddress)(this.unsignedHash,this.signature)}get fromPublicKey(){return this.signature==null?null:n.SigningKey.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return this.signature!=null}get serialized(){return je(this,ce,fb).call(this,!0,!0)}get unsignedSerialized(){return je(this,ce,fb).call(this,!1,!1)}inferType(){const Q=this.inferTypes();return Q.indexOf(2)>=0?2:Q.pop()}inferTypes(){const Q=this.gasPrice!=null,X=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,ne=this.accessList!=null,pe=q(this,ke)!=null||q(this,ge);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&(0,r.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,r.assert)(!X||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,r.assert)(this.type!==0||!ne,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const Be=[];return this.type!=null?Be.push(this.type):this.authorizationList&&this.authorizationList.length?Be.push(4):X?Be.push(2):Q?(Be.push(1),ne||Be.push(0)):ne?(Be.push(1),Be.push(2)):(pe&&this.to||(Be.push(0),Be.push(1),Be.push(2)),Be.push(3)),Be.sort(),Be}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return Ze.from(this)}toJSON(){const Q=X=>X==null?null:X.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:Q(this.gasLimit),gasPrice:Q(this.gasPrice),maxPriorityFeePerGas:Q(this.maxPriorityFeePerGas),maxFeePerGas:Q(this.maxFeePerGas),value:Q(this.value),chainId:Q(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(Q){if(Q==null)return new Ze;if(typeof Q=="string"){const ne=(0,r.getBytes)(Q);if(ne[0]>=127)return Ze.from(R(ne));switch(ne[0]){case 1:return Ze.from(N(ne));case 2:return Ze.from(M(ne));case 3:return Ze.from(F(ne));case 4:return Ze.from(U(ne))}(0,r.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const X=new Ze;return Q.type!=null&&(X.type=Q.type),Q.to!=null&&(X.to=Q.to),Q.nonce!=null&&(X.nonce=Q.nonce),Q.gasLimit!=null&&(X.gasLimit=Q.gasLimit),Q.gasPrice!=null&&(X.gasPrice=Q.gasPrice),Q.maxPriorityFeePerGas!=null&&(X.maxPriorityFeePerGas=Q.maxPriorityFeePerGas),Q.maxFeePerGas!=null&&(X.maxFeePerGas=Q.maxFeePerGas),Q.maxFeePerBlobGas!=null&&(X.maxFeePerBlobGas=Q.maxFeePerBlobGas),Q.data!=null&&(X.data=Q.data),Q.value!=null&&(X.value=Q.value),Q.chainId!=null&&(X.chainId=Q.chainId),Q.signature!=null&&(X.signature=n.Signature.from(Q.signature)),Q.accessList!=null&&(X.accessList=Q.accessList),Q.authorizationList!=null&&(X.authorizationList=Q.authorizationList),Q.blobVersionedHashes!=null&&(X.blobVersionedHashes=Q.blobVersionedHashes),Q.kzg!=null&&(X.kzg=Q.kzg),Q.blobs!=null&&(X.blobs=Q.blobs),Q.hash!=null&&((0,r.assertArgument)(X.isSigned(),"unsigned transaction cannot define '.hash'","tx",Q),(0,r.assertArgument)(X.hash===Q.hash,"hash mismatch","tx",Q)),Q.from!=null&&((0,r.assertArgument)(X.isSigned(),"unsigned transaction cannot define '.from'","tx",Q),(0,r.assertArgument)(X.from.toLowerCase()===(Q.from||"").toLowerCase(),"from mismatch","tx",Q)),X}};O=new WeakMap,H=new WeakMap,Z=new WeakMap,ee=new WeakMap,ae=new WeakMap,ie=new WeakMap,fe=new WeakMap,le=new WeakMap,xe=new WeakMap,he
90=new WeakMap,De=new WeakMap,Se=new WeakMap,ke=new WeakMap,ge=new WeakMap,J=new WeakMap,Y=new WeakMap,re=new WeakMap,ce=new WeakSet,fb=function(Q,X){(0,r.assert)(!Q||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const ne=Q?this.signature:null;switch(this.inferType()){case 0:return D(this,ne);case 1:return I(this,ne);case 2:return E(this,ne);case 3:return z(this,ne,X?this.blobs:null);case 4:return V(this,ne)}(0,r.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})};let $=Ze;return Zf.Transaction=$,Zf}var t_;function sa(){return t_||(t_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Transaction=e.recoverAddress=e.computeAddress=e.authorizationify=e.accessListify=void 0;var t=GL();Object.defineProperty(e,"accessListify",{enumerable:!0,get:function(){return t.accessListify}});var n=qL();Object.defineProperty(e,"authorizationify",{enumerable:!0,get:function(){return n.authorizationify}});var r=WL();Object.defineProperty(e,"computeAddress",{enumerable:!0,get:function(){return r.computeAddress}}),Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return r.recoverAddress}});var a=wle();Object.defineProperty(e,"Transaction",{enumerable:!0,get:function(){return a.Transaction}})})(iw)),iw}var n_;function Ele(){if(n_)return Fl;n_=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.verifyAuthorization=Fl.hashAuthorization=void 0;const e=Hn(),t=Xn(),n=sa(),r=at();function a(i){return(0,r.assertArgument)(typeof i.address=="string","invalid address for hashAuthorization","auth.address",i),(0,t.keccak256)((0,r.concat)(["0x05",(0,r.encodeRlp)([i.chainId!=null?(0,r.toBeArray)(i.chainId):"0x",(0,e.getAddress)(i.address),i.nonce!=null?(0,r.toBeArray)(i.nonce):"0x"])]))}Fl.hashAuthorization=a;function s(i,l){return(0,n.recoverAddress)(a(i),l)}return Fl.verifyAuthorization=s,Fl}var Qf={},r_;function JL(){if(r_)return Qf;r_=1,Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.id=void 0;const e=Xn(),t=at();function n(r){return(0,e.keccak256)((0,t.toUtf8Bytes)(r))}return Qf.id=n,Qf}var as={},ga={},a_;function kle(){if(a_)return ga;a_=1;var e="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAf
90SfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46
90dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84R
90Z84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29
90+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const t=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),n=4;function r(be){let we=0;function Ne(){return be[we++]<<8|be[we++]}let Ue=Ne(),Fe=1,ze=[0,1];for(let Ur=1;Ur<Ue;Ur++)ze.push(Fe+=Ne());let Ge=Ne(),He=we;we+=Ge;let ft=0,Nt=0;function wt(){return ft==0&&(Nt=Nt<<8|be[we++],ft=8),Nt>>--ft&1}const rt=31,Tt=2**rt,Zt=Tt>>>1,Tn=Zt>>1,fn=Tt-1;let yn=0;for(let Ur=0;Ur<rt;Ur++)yn=yn<<1|wt();let fr=[],Ja=0,zc=Tt;for(;;){let Ur=Math.floor(((yn-Ja+1)*Fe-1)/zc),As=0,tl=Ue;for(;tl-As>1;){let nl=As+tl>>>1;Ur<ze[nl]?tl=nl:As=nl}if(As==0)break;fr.push(As);let jr=Ja+Math.floor(zc*ze[As]/Fe),Qs=Ja+Math.floor(zc*ze[As+1]/Fe)-1;for(;((jr^Qs)&Zt)==0;)yn=yn<<1&fn|wt(),jr=jr<<1&fn,Qs=Qs<<1&fn|1;for(;jr&~Qs&Tn;)yn=yn&Zt|yn<<1&fn>>>1|wt(),jr=jr<<1^Zt,Qs=(Qs^Zt)<<1|Zt|1;Ja=jr,zc=1+Qs-jr}let Hc=Ue-4;return fr.map(Ur=>{switch(Ur-Hc){case 3:return Hc+65792+(be[He++]<<16|be[He++]<<8|be[He++]);case 2:return Hc+256+(be[He++]<<8|be[He++]);case 1:return Hc+be[He++];default:return Ur-1}})}function a(be){let we=0;return()=>be[we++]}function s(be){return a(r(i(be)))}function i(be){let we=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
90+/"].forEach((Fe,ze)=>we[Fe.charCodeAt(0)]=ze);let Ne=be.length,Ue=new Uint8Array(6*Ne>>3);for(let Fe=0,ze=0,Ge=0,He=0;Fe<Ne;Fe++)He=He<<6|we[be.charCodeAt(Fe)],Ge+=6,Ge>=8&&(Ue[ze++]=He>>(Ge-=8));return Ue}function l(be){return be&1?~be>>1:be>>1}function c(be,we){let Ne=Array(be);for(let Ue=0,Fe=0;Ue<be;Ue++)Ne[Ue]=Fe+=l(we());return Ne}function u(be,we=0){let Ne=[];for(;;){let Ue=be(),Fe=be();if(!Fe)break;we+=Ue;for(let ze=0;ze<Fe;ze++)Ne.push(we+ze);we+=Fe+1}return Ne}function f(be){return m(()=>{let we=u(be);if(we.length)return we})}function p(be){let we=[];for(;;){let Ne=be();if(Ne==0)break;we.push(y(Ne,be))}for(;;){let Ne=be()-1;if(Ne<0)break;we.push(x(Ne,be))}return we.flat()}function m(be){let we=[];for(;;){let Ne=be(we.length);if(!Ne)break;we.push(Ne)}return we}function h(be,we,Ne){let Ue=Array(be).fill().map(()=>[]);for(let Fe=0;Fe<we;Fe++)c(be,Ne).forEach((ze,Ge)=>Ue[Ge].push(ze));return Ue}function y(be,we){let Ne=1+we(),Ue=we(),Fe=m(we);return h(Fe.length,1+be,we).flatMap((Ge,He)=>{let[ft,...Nt]=Ge;return Array(Fe[He]).fill().map((wt,rt)=>{let Tt=rt*Ue;return[ft+rt*Ne,Nt.map(Zt=>Zt+Tt)]})})}function x(be,we){let Ne=1+we();return h(Ne,1+be,we).map(Fe=>[Fe[0],Fe.slice(1)])}function C(be){let we=[],Ne=u(be);return Fe(Ue([]),[]),we;function Ue(ze){let Ge=be(),He=m(()=>{let ft=u(be).map(Nt=>Ne[Nt]);if(ft.length)return Ue(ft)});return{S:Ge,B:He,Q:ze}}function Fe({S:ze,B:Ge},He,ft){if(!(ze&4&&ft===He[He.length-1])){ze&2&&(ft=He[He.length-1]),ze&1&&we.push(He);for(let Nt of Ge)for(let wt of Nt.Q)Fe(Nt,[...He,wt],ft)}}}function T(be){return be.toString(16).toUpperCase().padStart(2,"0")}function w(be){return`{${T(be)}}`}function v(be){let we=[];for(let Ne=0,Ue=be.length;Ne<Ue;){let Fe=be.codePointAt(Ne);Ne+=Fe<65536?1:2,we.push(Fe)}return we}function g(be){let Ne=be.length;if(Ne<4096)return String.fromCodePoint(...be);let Ue=[];for(let Fe=0;Fe<Ne;)Ue.push(String.fromCodePoint(...be.slice(Fe,Fe+=4096)));return Ue.join("")}function A(be,we){let Ne=be.length,Ue=Ne-we.length;for(let Fe=0;Ue==0&&Fe<Ne;Fe++)Ue=be[Fe]-we[Fe];return Ue}var S=
vendor: 7,453 bytes, line 90
90"AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g"
90;const _=44032,k=4352,R=4449,D=4519,B=19,M=21,E=28,N=M*E,I=B*N,F=_+I,z=k+B,U=R+M,V=D+E;function $(be){return be>>24&255}function O(be){return be&16777215}let H,Z,ee,ae;function ie(){let be=s(S);
90H=new Map(f(be).flatMap((we,Ne)=>we.map(Ue=>[Ue,Ne+1<<24]))),Z=new Set(u(be)),ee=new Map,ae=new Map;for(let[we,Ne]of p(be)){if(!Z.has(we)&&Ne.length==2){let[Ue,Fe]=Ne,ze=ae.get(Ue);ze||(ze=new Map,ae.set(Ue,ze)),ze.set(Fe,we)}ee.set(we,Ne.reverse())}}function fe(be){return be>=_&&be<F}function le(be,we){if(be>=k&&be<z&&we>=R&&we<U)return _+(be-k)*N+(we-R)*E;if(fe(be)&&we>D&&we<V&&(be-_)%E==0)return be+(we-D);{let Ne=ae.get(be);return Ne&&(Ne=Ne.get(we),Ne)?Ne:-1}}function xe(be){H||ie();let we=[],Ne=[],Ue=!1;function Fe(ze){let Ge=H.get(ze);Ge&&(Ue=!0,ze|=Ge),we.push(ze)}for(let ze of be)for(;;){if(ze<128)we.push(ze);else if(fe(ze)){let Ge=ze-_,He=Ge/N|0,ft=Ge%N/E|0,Nt=Ge%E;Fe(k+He),Fe(R+ft),Nt>0&&Fe(D+Nt)}else{let Ge=ee.get(ze);Ge?Ne.push(...Ge):Fe(ze)}if(!Ne.length)break;ze=Ne.pop()}if(Ue&&we.length>1){let ze=$(we[0]);for(let Ge=1;Ge<we.length;Ge++){let He=$(we[Ge]);if(He==0||ze<=He){ze=He;continue}let ft=Ge-1;for(;;){let Nt=we[ft+1];if(we[ft+1]=we[ft],we[ft]=Nt,!ft||(ze=$(we[--ft]),ze<=He))break}ze=$(we[Ge])}}return we}function he(be){let we=[],Ne=[],Ue=-1,Fe=0;for(let ze of be){let Ge=$(ze),He=O(ze);if(Ue==-1)Ge==0?Ue=He:we.push(He);else if(Fe>0&&Fe>=Ge)Ge==0?(we.push(Ue,...Ne),Ne.length=0,Ue=He):Ne.push(He),Fe=Ge;else{let ft=le(Ue,He);ft>=0?Ue=ft:Fe==0&&Ge==0?(we.push(Ue),Ue=He):(Ne.push(He),Fe=Ge)}}return Ue>=0&&we.push(Ue,...Ne),we}function De(be){return xe(be).map(O)}function Se(be){return he(xe(be))}const ke=45,ge=46,J=".",Y=65039,re=1,ce=be=>Array.from(be);function Me(be,we){return be.P.has(we)||be.Q.has(we)}class Ze extends Array{get is_emoji(){return!0}}let ue,Q,X,ne,pe,Be,Re,Qe,et,Ye,dt,Wt;function Jt(){if(ue)return;let be=s(e);const we=()=>u(be),Ne=()=>new Set(we()),Ue=(wt,rt)=>rt.forEach(Tt=>wt.add(Tt));ue=new Map(p(be)),Q=Ne(),X=we(),ne=new Set(we().map(wt=>X[wt])),X=new Set(X),pe=Ne(),Be=Ne();let Fe=f(be),ze=be();const Ge=()=>{let wt=new Set;return we().forEach(rt=>Ue(wt,Fe[rt])),Ue(wt,we()),wt};Re=m(wt=>{let rt=m(be).map(Tt=>Tt+96);if(rt.length){let Tt=wt>=ze;rt[0]-=32,rt=g(rt),Tt&&(rt=`Restricted[${rt}]`);let Zt=Ge(),Tn=Ge(),fn=!be();return{N:rt,P:Zt,Q:Tn,M:fn,R:Tt}}}),Qe=Ne(),et=new Map;let He=we().concat(ce(Qe)).sort((wt,rt)=>wt-rt);He.forEach((wt,rt)=>{let Tt=be(),Zt=He[rt]=Tt?He[rt-Tt]:{V:[],M:new Map};Zt.V.push(wt),Qe.has(wt)||et.set(wt,Zt)});for(let{V:wt,M:rt}of new Set(et.values())){let Tt=[];for(let Tn of wt){let fn=Re.filter(fr=>Me(fr,Tn)),yn=Tt.find(({G:fr})=>fn.some(Ja=>fr.has(Ja)));yn||(yn={G:new Set,V:[]},Tt.push(yn)),yn.V.push(Tn),Ue(yn.G,fn)}let Zt=Tt.flatMap(Tn=>ce(Tn.G));for(let{G:Tn,V:fn}of Tt){let yn=new Set(Zt.filter(fr=>!Tn.has(fr)));for(let fr of fn)rt.set(fr,yn)}}Ye=new Set;let ft=new Set;const Nt=wt=>Ye.has(wt)?ft.add(wt):Ye.add(wt);for(let wt of Re){for(let rt of wt.P)Nt(rt);for(let rt of wt.Q)Nt(rt)}for(let wt of Ye)!et.has(wt)&&!ft.has(wt)&&et.set(wt,re);Ue(Ye,De(Ye)),dt=C(be).map(wt=>Ze.from(wt)).sort(A),Wt=new Map;for(let wt of dt){let rt=[Wt];for(let Tt of wt){let Zt=rt.map(Tn=>{let fn=Tn.get(Tt);return fn||(fn=new Map,Tn.set(Tt,fn)),fn});Tt===Y?rt.push(...Zt):rt=Zt}for(let Tt of rt)Tt.V=wt}}function Er(be){return(Fr(be)?"":`${qs(Dr([be]))} `)+w(be)}function qs(be){return`"${be}"‎`}function ks(be){if(be.length>=4&&be[2]==ke&&be[3]==ke)throw new Error(`invalid label extension: "${g(be.slice(0,4))}"`)}function Mr(be){for(let Ne=be.lastIndexOf(95);Ne>0;)if(be[--Ne]!==95)throw new Error("underscore allowed only at start")}function Ji(be){let we=be[0],Ne=t.get(we);if(Ne)throw Le(`leading ${Ne}`);let Ue=be.length,Fe=-1;for(let ze=1;ze<Ue;ze++){we=be[ze];let Ge=t.get(we);if(Ge){if(Fe==ze)throw Le(`${Ne} + ${Ge}`);Fe=ze+1,Ne=Ge}}if(Fe==Ue)throw Le(`trailing ${Ne}`)}function Dr(be,we=1/0,Ne=w){let Ue=[];Ws(be[0])&&Ue.push("◌"),be.length>we&&(we>>=1,be=[...be.slice(0,we),8230,...be.slice(-we)]);let Fe=0,ze=be.length;for(let Ge=0;Ge<ze;Ge++){let He=be[Ge];Fr(He)&&(Ue.push(g(be.slice(Fe,Ge))),Ue.push(Ne(He)),Fe=Ge+1)}return Ue.push(g(be.slice(Fe,ze))),Ue.join("")}function Ws(be){return Jt(),X.has(be)}function Fr(be){return Jt(),pe.has(be)}function Ba(){return Jt(),dt.map(be=>be.slice())}function jc(be,we){Jt();let Ne=we?De:Se;return be.split(J).map(Ue=>g(gt(v(Ue),Ne,kt).flat())).join(J)}function Yo(be){return me(_a(be,Se,kt))}function Lc(be){let we=_a(be,Se,Ne=>Ne);for(let{type:Ne,output:Ue,error:Fe}of we){if(Fe)break;Ne!=="Greek"&&el(Ue,958,926)}return me(we)}function el(be,we,Ne){let Ue=0;for(;;){let Fe=be.indexOf(we,Ue);
90if(Fe<0)break;be[Fe]=Ne,Ue=Fe+1}}function Js(be,we){return _a(be,Se,we?Ne=>Ne.slice():kt)}function _a(be,we,Ne){if(!be)return[];Jt();let Ue=0;return be.split(J).map(Fe=>{let ze=v(Fe),Ge={input:ze,offset:Ue};Ue+=ze.length+1;try{let He=Ge.tokens=gt(ze,we,Ne),ft=He.length,Nt;if(!ft)throw new Error("empty label");let wt=Ge.output=He.flat();if(Mr(wt),!(Ge.emoji=ft>1||He[0].is_emoji)&&wt.every(Tt=>Tt<128))ks(wt),Nt="ASCII";else{let Tt=He.flatMap(Zt=>Zt.is_emoji?[]:Zt);if(!Tt.length)Nt="Emoji";else{if(X.has(wt[0]))throw Le("leading combining mark");for(let fn=1;fn<ft;fn++){let yn=He[fn];if(!yn.is_emoji&&X.has(yn[0]))throw Le(`emoji + combining mark: "${g(He[fn-1])} + ${Dr([yn[0]])}"`)}Ji(wt);let Zt=ce(new Set(Tt)),[Tn]=Zs(Zt);tt(Tn,Tt),$c(Tn,Zt),Nt=Tn.N}}Ge.type=Nt}catch(He){Ge.error=He}return Ge})}function $c(be,we){let Ne,Ue=[];for(let Fe of we){let ze=et.get(Fe);if(ze===re)return;if(ze){let Ge=ze.M.get(Fe);if(Ne=Ne?Ne.filter(He=>Ge.has(He)):ce(Ge),!Ne.length)return}else Ue.push(Fe)}if(Ne){for(let Fe of Ne)if(Ue.every(ze=>Me(Fe,ze)))throw new Error(`whole-script confusable: ${be.N}/${Fe.N}`)}}function Zs(be){let we=Re;for(let Ne of be){let Ue=we.filter(Fe=>Me(Fe,Ne));if(!Ue.length)throw Re.some(Fe=>Me(Fe,Ne))?Ie(we[0],Ne):Ee(Ne);if(we=Ue,Ue.length==1)break}return we}function me(be){return be.map(({input:we,error:Ne,output:Ue})=>{if(Ne){let Fe=Ne.message;throw new Error(be.length==1?Fe:`Invalid label ${qs(Dr(we,63))}: ${Fe}`)}return g(Ue)}).join(J)}function Ee(be){return new Error(`disallowed character: ${Er(be)}`)}function Ie(be,we){let Ne=Er(we),Ue=Re.find(Fe=>Fe.P.has(we));return Ue&&(Ne=`${Ue.N} ${Ne}`),new Error(`illegal mixture: ${be.N} + ${Ne}`)}function Le(be){return new Error(`illegal placement: ${be}`)}function tt(be,we){for(let Ne of we)if(!Me(be,Ne))throw Ie(be,Ne);if(be.M){let Ne=De(we);for(let Ue=1,Fe=Ne.length;Ue<Fe;Ue++)if(ne.has(Ne[Ue])){let ze=Ue+1;for(let Ge;ze<Fe&&ne.has(Ge=Ne[ze]);ze++)for(let He=Ue;He<ze;He++)if(Ne[He]==Ge)throw new Error(`duplicate non-spacing marks: ${Er(Ge)}`);if(ze-Ue>n)throw new Error(`excessive non-spacing marks: ${qs(Dr(Ne.slice(Ue-1,ze)))} (${ze-Ue}/${n})`);Ue=ze}}}function gt(be,we,Ne){let Ue=[],Fe=[];for(be=be.slice().reverse();be.length;){let ze=ct(be);if(ze)Fe.length&&(Ue.push(we(Fe)),Fe=[]),Ue.push(Ne(ze));else{let Ge=be.pop();if(Ye.has(Ge))Fe.push(Ge);else{let He=ue.get(Ge);if(He)Fe.push(...He);else if(!Q.has(Ge))throw Ee(Ge)}}}return Fe.length&&Ue.push(we(Fe)),Ue}function kt(be){return be.filter(we=>we!=Y)}function ct(be,we){let Ne=Wt,Ue,Fe=be.length;for(;Fe&&(Ne=Ne.get(be[--Fe]),!!Ne);){let{V:ze}=Ne;ze&&(Ue=ze,we&&we.push(...be.slice(Fe).reverse()),be.length=Fe)}return Ue}const lt="valid",it="mapped",ot="ignored",_t="disallowed",Dt="emoji",Rn="nfc",en="stop";function jt(be,{nf:we=!0}={}){Jt();let Ne=v(be).reverse(),Ue=[],Fe=[];for(;Ne.length;){let ze=ct(Ne,Ue);
90if(ze)Fe.push({type:Dt,emoji:ze.slice(),input:Ue,cps:kt(ze)}),Ue=[];else{let Ge=Ne.pop();if(Ge==ge)Fe.push({type:en,cp:Ge});else if(Ye.has(Ge))Fe.push({type:lt,cps:[Ge]});else if(Q.has(Ge))Fe.push({type:ot,cp:Ge});else{let He=ue.get(Ge);He?Fe.push({type:it,cp:Ge,cps:He.slice()}):Fe.push({type:_t,cp:Ge})}}}if(we)for(let ze=0,Ge=-1;ze<Fe.length;ze++){let He=Fe[ze];if(rn(He.type))if(Ia(He.cps)){let ft=ze+1;for(let Tt=ft;Tt<Fe.length;Tt++){let{type:Zt,cps:Tn}=Fe[Tt];if(rn(Zt)){if(!Ia(Tn))break;ft=Tt+1}else if(Zt!==ot)break}Ge<0&&(Ge=ze);let Nt=Fe.slice(Ge,ft),wt=Nt.flatMap(Tt=>rn(Tt.type)?Tt.cps:[]),rt=Se(wt);A(rt,wt)?(Fe.splice(Ge,ft-Ge,{type:Rn,input:wt,cps:rt,tokens0:Cs(Nt),tokens:jt(g(rt),{nf:!1})}),ze=Ge):ze=ft-1,Ge=-1}else Ge=ze;else He.type!==ot&&(Ge=-1)}return Cs(Fe)}function rn(be){return be==lt||be==it}function Ia(be){return be.some(we=>Be.has(we))}function Cs(be){for(let we=0;we<be.length;we++)if(be[we].type==lt){let Ne=we+1;for(;Ne<be.length&&be[Ne].type==lt;)Ne++;be.splice(we,Ne-we,{type:lt,cps:be.slice(we,Ne).flatMap(Ue=>Ue.cps)})}return be}return ga.ens_beautify=Lc,ga.ens_emoji=Ba,ga.ens_normalize=Yo,ga.ens_normalize_fragment=jc,ga.ens_split=Js,ga.ens_tokenize=jt,ga.is_combining_mark=Ws,ga.nfc=Se,ga.nfd=De,ga.safe_str_from_cps=Dr,ga.should_escape=Fr,ga}var s_;function Cle(){if(s_)return as;s_=1,Object.defineProperty(as,"__esModule",{value:!0}),as.dnsEncode=as.namehash=as.isValidName=as.ensNormalize=void 0;const e=Xn(),t=at(),n=kle(),r=new Uint8Array(32);r.fill(0);function a(f){return(0,t.assertArgument)(f.length!==0,"invalid ENS name; empty component","comp",f),f}function s(f){const p=(0,t.toUtf8Bytes)(i(f)),m=[];
90if(f.length===0)return m;let h=0;for(let y=0;y<p.length;y++)p[y]===46&&(m.push(a(p.slice(h,y))),h=y+1);return(0,t.assertArgument)(h<p.length,"invalid ENS name; empty component","name",f),m.push(a(p.slice(h))),m}function i(f){try{if(f.length===0)throw new Error("empty label");return(0,n.ens_normalize)(f)}catch(p){(0,t.assertArgument)(!1,`invalid ENS name (${p.message})`,"name",f)}}as.ensNormalize=i;function l(f){try{return s(f).length!==0}catch{}return!1}as.isValidName=l;function c(f){(0,t.assertArgument)(typeof f=="string","invalid ENS name; not a string","name",f),(0,t.assertArgument)(f.length,"invalid ENS name (empty label)","name",f);let p=r;const m=s(f);for(;m.length;)p=(0,e.keccak256)((0,t.concat)([p,(0,e.keccak256)(m.pop())]));return(0,t.hexlify)(p)}as.namehash=c;function u(f,p){const m=p??63;return(0,t.assertArgument)(m<=255,"DNS encoded label cannot exceed 255","length",m),(0,t.hexlify)((0,t.concat)(s(f).map(h=>{(0,t.assertArgument)(h.length<=m,`label ${JSON.stringify(f)} exceeds ${m} bytes`,"name",f);const y=new Uint8Array(h.length+1);return y.set(h,1),y[0]=y.length-1,y})))+"00"}return as.dnsEncode=u,as}var jl={},i_;function Ale(){if(i_)return jl;i_=1,Object.defineProperty(jl,"__esModule",{value:!0}),jl.verifyMessage=jl.hashMessage=void 0;const e=Xn(),t=Am(),n=sa(),r=at();function a(i){return typeof i=="string"&&(i=(0,r.toUtf8Bytes)(i)),(0,e.keccak256)((0,r.concat)([(0,r.toUtf8Bytes)(t.MessagePrefix),(0,r.toUtf8Bytes)(String(i.length)),i]))}jl.hashMessage=a;function s(i,l){const c=a(i);return(0,n.recoverAddress)(c,l)}return jl.verifyMessage=s,jl}var fi={},o_;function Ple(){if(o_)return fi;o_=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.solidityPackedSha256=fi.solidityPackedKeccak256=fi.solidityPacked=void 0;const e=Hn(),t=Xn(),n=at(),r=new RegExp("^bytes([0-9]+)$"),a=new RegExp("^(u?int)([0-9]*)$"),s=new RegExp("^(.*)\\[([0-9]*)\\]$");function i(f,p,m){switch(f){case"address":return m?(0,n.getBytes)((0,n.zeroPadValue)(p,32)):(0,n.getBytes)((0,e.getAddress)(p));case"string":return(0,n.toUtf8Bytes)(p);case"bytes":return(0,n.getBytes)(p);case"bool":return p=p?"0x01":"0x00",m?(0,n.getBytes)((0,n.zeroPadValue)(p,32)):(0,n.getBytes)(p)}let h=f.match(a);if(h){let y=h[1]==="int",x=parseInt(h[2]||"256");return(0,n.assertArgument)((!h[2]||h[2]===String(x))&&x%8===0&&x!==0&&x<=256,"invalid number type","type",f),m&&(x=256),y&&(p=(0,n.toTwos)(p,x)),(0,n.getBytes)((0,n.zeroPadValue)((0,n.toBeArray)(p),x/8))}if(h=f.match(r),h){const y=parseInt(h[1]);return(0,n.assertArgument)(String(y)===h[1]&&y!==0&&y<=32,"invali
90d bytes type","type",f),(0,n.assertArgument)((0,n.dataLength)(p)===y,`invalid value for ${f}`,"value",p),m?(0,n.getBytes)((0,n.zeroPadBytes)(p,32)):p}if(h=f.match(s),h&&Array.isArray(p)){const y=h[1],x=parseInt(h[2]||String(p.length));(0,n.assertArgument)(x===p.length,`invalid array length for ${f}`,"value",p);const C=[];return p.forEach(function(T){C.push(i(y,T,!0))}),(0,n.getBytes)((0,n.concat)(C))}(0,n.assertArgument)(!1,"invalid type","type",f)}function l(f,p){(0,n.assertArgument)(f.length===p.length,"wrong number of values; expected ${ types.length }","values",p);const m=[];return f.forEach(function(h,y){m.push(i(h,p[y]))}),(0,n.hexlify)((0,n.concat)(m))}fi.solidityPacked=l;function c(f,p){return(0,t.keccak256)(l(f,p))}fi.solidityPackedKeccak256=c;function u(f,p){return(0,t.sha256)(l(f,p))}return fi.solidityPackedSha256=u,fi}var Ll={},l_;function Tle(){var S,_,k,R,ZL;if(l_)return Ll;l_=1,Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.verifyTypedData=Ll.TypedDataEncoder=void 0;const e=Hn(),t=Xn(),n=sa(),r=at(),a=JL(),s=new Uint8Array(32);s.fill(0);const i=BigInt(-1),l=BigInt(0),c=BigInt(1),u=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function f(M){const E=(0,r.getBytes)(M),N=E.length%32;return N?(0,r.concat)([E,s.slice(N)]):(0,r.hexlify)(E)}const p=(0,r.toBeHex)(c,32),m=(0,r.toBeHex)(l,32),h={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},y=["name","version","chainId","verifyingContract","salt"];function x(M){return function(E){return(0,r.assertArgument)(typeof E=="string",`invalid domain value for ${JSON.stringify(M)}`,`domain.${M}`,E),E}}const C={name:x("name"),version:x("version"),chainId:function(M){const E=(0,r.getBigInt)(M,"domain.chainId");return(0,r.assertArgument)(E>=0,"invalid chain ID","domain.chainId",M),Number.isSafeInteger(E)?Number(E):(0,r.toQuantity)(E)},verifyingContract:function(M){try{return(0,e.getAddress)(M).toLowerCase()}catch{}(0,r.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",M)},salt:function(M){const E=(0,r.getBytes)(M,"domain.salt");return(0,r.assertArgument)(E.length===32,'invalid domain value "salt"',"domain.salt",M),(0,r.hexlify)(E)}};function T(M){{const E=M.match(/^(u?)int(\d+)$/);if(E){const N=E[1]==="",I=parseInt(E[2]);(0,r.assertArgument)(I%8===0&&I!==0&&I<=256&&E[2]===String(I),"invalid numeric width","type",M);const F=(0,r.mask)(u,N?I-1:I),z=N?(F+c)*i:l;return function(U){const V=(0,r.getBigInt)(U,"value");return(0,r.assertArgument)(V>=z&&V<=F,`value out-of-bounds for ${M}`,"value",V),(0,r.toBeHex)(N?(0,r.toTwos)(V,256):V,32)}}}{const E=M.match(/^bytes(\d+)$/);if(E){const N=parseInt(E[1]);return(0,r.assertArgument)(N!==0&&N<=32&&E[1]===String(N),"invalid bytes width","type",M),function(I){const F=(0,r.getBytes)(I);return(0,r.assertArgument)(F.length===N,`invalid length for ${M}`,"value",I),f(I)}}}switch(M){case"address":return function(E){return(0,r.zeroPadValue)((0,e.getAddress)(E),32)};case"bool":return function(E){return E?p:m};case"bytes":return function(E){return(0,t.keccak256)(E)};case"string":return function(E){return(0,a.id)(E)}}return null}function w(M,E){return`${M}(${E.map(({name:N,type:I})=>I+" "+N).join(",")})`}function v(M){const E=M.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return E?{base:E[1],index:E[2]+E[4],array:{base:E[1],prefix:E[1]+E[2],count:E[5]?parseInt(E[5]):-1}}:{base:M}}const B=class B{constructor(E){Ce(this,R);de(this,"primaryType");Ce(this,S);Ce(this,_);Ce(this,k);se(this,_,new Map),se(this,k,new Map);const N=new Map,I=new Map,F=new Map,z={};
90Object.keys(E).forEach($=>{z[$]=E[$].map(({name:O,type:H})=>{let{base:Z,index:ee}=v(H);return Z==="int"&&!E.int&&(Z="int256"),Z==="uint"&&!E.uint&&(Z="uint256"),{name:O,type:Z+(ee||"")}}),N.set($,new Set),I.set($,[]),F.set($,new Set)}),se(this,S,JSON.stringify(z));for(const $ in z){const O=new Set;for(const H of z[$]){(0,r.assertArgument)(!O.has(H.name),`duplicate variable name ${JSON.stringify(H.name)} in ${JSON.stringify($)}`,"types",E),O.add(H.name);const Z=v(H.type).base;(0,r.assertArgument)(Z!==$,`circular type reference to ${JSON.stringify(Z)}`,"types",E),!T(Z)&&((0,r.assertArgument)(I.has(Z),`unknown type ${JSON.stringify(Z)}`,"types",E),I.get(Z).push($),N.get($).add(Z))}}const U=Array.from(I.keys()).filter($=>I.get($).length===0);(0,r.assertArgument)(U.length!==0,"missing primary type","types",E),(0,r.assertArgument)(U.length===1,`ambiguous primary types or unused types: ${U.map($=>JSON.stringify($)).join(", ")}`,"types",E),(0,r.defineProperties)(this,{primaryType:U[0]});function V($,O){(0,r.assertArgument)(!O.has($),`circular type reference to ${JSON.stringify($)}`,"types",E),O.add($);for(const H of N.get($))if(I.has(H)){V(H,O);for(const Z of O)F.get(Z).add(H)}O.delete($)}V(this.primaryType,new Set);for(const[$,O]of F){const H=Array.from(O);H.sort(),q(this,_).set($,w($,z[$])+H.map(Z=>w(Z,z[Z])).join(""))}}get types(){return JSON.parse(q(this,S))}getEncoder(E){let N=q(this,k).get(E);return N||(N=je(this,R,ZL).call(this,E),q(this,k).set(E,N)),N}encodeType(E){const N=q(this,_).get(E);return(0,r.assertArgument)(N,`unknown type: ${JSON.stringify(E)}`,"name",E),N}encodeData(E,N){return this.getEncoder(E)(N)}hashStruct(E,N){return(0,t.keccak256)(this.encodeData(E,N))}encode(E){return this.encodeData(this.primaryType,E)}hash(E){return this.hashStruct(this.primaryType,E)}_visit(E,N,I){if(T(E))return I(E,N);const F=v(E).array;if(F)return(0,r.assertArgument)(F.count===-1||F.count===N.length,`array length mismatch; expected length ${F.count}`,"value",N),N.map(U=>this._visit(F.prefix,U,I));const z=this.types[E];if(z)return z.reduce((U,{name:V,type:$})=>(U[V]=this._visit($,N[V],I),U),{});(0,r.assertArgument)(!1,`unknown type: ${E}`,"type",E)}visit(E,N){return this._visit(this.primaryType,E,N)}static from(E){return new B(E)}static getPrimaryType(E){return B.from(E).primaryType}static hashStruct(E,N,I){return B.from(N).hashStruct(E,I)}static hashDomain(E){const N=[];for(const I in E){if(E[I]==null)continue;const F=h[I];(0,r.assertArgument)(F,`invalid typed-data domain key: ${JSON.stringify(I)}`,"domain",E),N.push({name:I,type:F})}return N.sort((I,F)=>y.indexOf(I.name)-y.indexOf(F.name)),B.hashStruct("EIP712Domain",{EIP712Domain:N},E)}static encode(E,N,I){return(0,r.concat)(["0x1901",B.hashDomain(E),B.from(N).hash(I)])}static hash(E,N,I){return(0,t.keccak256)(B.encode(E,N,I))}static async resolveNames(E,N,I,F){E=Object.assign({},E);for(const V in E)E[V]==null&&delete E[V];const z={};E.verifyingContract&&!(0,r.isHexString)(E.verifyingContract,20)&&(z[E.verifyingContract]="0x");const U=B.from(N);U.visit(I,(V,$)=>(V==="address"&&!(0,r.isHexString)($,20)&&(z[$]="0x"),$));for(const V in z)z[V]=await F(V);return E.verifyingContract&&z[E.verifyingContract]&&(E.verifyingContract=z[E.verifyingContract]),I=U.visit(I,(V,$)=>V==="address"&&z[$]?z[$]:$),{domain:E,value:I}}static getPayload(E,N,I){B.hashDomain(E);const F={},z=[];y.forEach($=>{const O=E[$];O!=null&&(F[$]=C[$](O),z.push({name:$,type:h[$]}))});const U=B.from(N);N=U.types;const V=Object.assign({},N);return(0,r.assertArgument)(V.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",N),V.EIP712Domain=z,U.encode(I),{types:V,domain:F,primaryType:U.primaryType,message:U.visit(I,($,O)=>{if($.match(/^bytes(\d*)/))return(0,r.hexlify)((0,r.getBytes)(O));if($.match(/^u?int/))return(0,r.getBigInt)(O).toString();switch($){case"address":return O.toLowerCase();case"bool":return!!O;case"string":return(0,r.assertArgument)(typeof O=="string","invalid string","value",O),O}(0,r.assertArgument)(!1,"unsupported type","type",$)})}}};S=new WeakMap,_=new WeakMap,k=new WeakMap,R=new WeakSet,ZL=function(E){{const F=T(E);if(F)return F}const N=v(E).array;if(N){const F=N.prefix,z=this.getEncoder(F);return U=>{(0,r.assertArgument)(N.count===-1||N.count===U.length,`array length mismatch; expected length ${N.count}`,"value",U);let V=U.map(z);return q(this,_).has(F)&&(V=V.map(t.keccak256)),(0,t.keccak256)((0,r.concat)(V))}}const I=this.types[E];if(I){const F=(0,a.id)(q(this,_).get(E));return z=>{const U=I.map(({name:V,type:$})=>{const O=this.getEncoder($)(z[V]);return q(this,_).has($)?(0,t.keccak256)(O):O});return U.unshift(F),(0,r.concat)(U)}}(0,r.assertArgument)(!1,`unknown type: ${E}`,"type",E)};let g=B;Ll.TypedDataEncoder=g;function A(M,E,N,I){return(0,n.recoverAddress)(g.hash(M,E,N),I)}return Ll.verifyTypedData=A,Ll}var c_;function Ki(){return c_||(c_=1,(function(e){Object.defineProperty(e,"__esMo
90dule",{value:!0}),e.verifyTypedData=e.TypedDataEncoder=e.solidityPackedSha256=e.solidityPackedKeccak256=e.solidityPacked=e.verifyMessage=e.hashMessage=e.dnsEncode=e.namehash=e.isValidName=e.ensNormalize=e.id=e.verifyAuthorization=e.hashAuthorization=void 0;var t=Ele();Object.defineProperty(e,"hashAuthorization",{enumerable:!0,get:function(){return t.hashAuthorization}}),Object.defineProperty(e,"verifyAuthorization",{enumerable:!0,get:function(){return t.verifyAuthorization}});var n=JL();Object.defineProperty(e,"id",{enumerable:!0,get:function(){return n.id}});var r=Cle();Object.defineProperty(e,"ensNormalize",{enumerable:!0,get:function(){return r.ensNormalize}}),Object.defineProperty(e,"isValidName",{enumerable:!0,get:function(){return r.isValidName}}),Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return r.namehash}}),Object.defineProperty(e,"dnsEncode",{enumerable:!0,get:function(){return r.dnsEncode}});var a=Ale();Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return a.hashMessage}}),Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return a.verifyMessage}});var s=Ple();Object.defineProperty(e,"solidityPacked",{enumerable:!0,get:function(){return s.solidityPacked}}),Object.defineProperty(e,"solidityPackedKeccak256",{enumerable:!0,get:function(){return s.solidityPackedKeccak256}}),Object.defineProperty(e,"solidityPackedSha256",{enumerable:!0,get:function(){return s.solidityPackedSha256}});var i=Tle();Object.defineProperty(e,"TypedDataEncoder",{enumerable:!0,get:function(){return i.TypedDataEncoder}}),Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return i.verifyTypedData}})})(sw)),sw}var u_;function pE(){var ge,J,Y,N5,Me,pb;if(u_)return Mn;u_=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.StructFragment=Mn.FunctionFragment=Mn.FallbackFragment=Mn.ConstructorFragment=Mn.EventFragment=Mn.ErrorFragment=Mn.NamedFragment=Mn.Fragment=Mn.ParamType=void 0;const e=at(),t=Ki();function n(Q){const X=new Set;return Q.forEach(ne=>X.add(ne)),Object.freeze(X)}const a=n("external public payable override".split(" ")),s="constant external internal payable private public pure view override",i=n(s.split(" ")),l="constructor error event fallback function receive struct",c=n(l.split(" ")),u="calldata memory storage payable indexed",f=n(u.split(" ")),m=[l,u,"tuple returns",s].join(" "),h=n(m.split(" ")),y={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},x=new RegExp("^(\\s*)"),C=new RegExp("^([0-9]+)"),T=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),w=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),v=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$"),ce=class ce{constructor(X){Ce(this,Y);Ce(this,ge);Ce(this,J);se(this,ge,0),se(this,J,X.slice())}get offset(){return q(this,ge)}get length(){return q(this,J).length-q(this,ge)}clone(){return new ce(q(this,J))}reset(){se(this,ge,0)}popKeyword(X){const ne=this.peek();if(ne.type!=="KEYWORD"||!X.has(ne.text))throw new Error(`expected keyword ${ne.text}`);return this.pop().text}popType(X){if(this.peek().type!==X){const ne=this.peek();throw new Error(`expected ${X}; got ${ne.type} ${JSON.stringify(ne.text)}`)}return this.pop().text}popParen(){const X=this.peek();if(X.type!=="OPEN_PAREN")throw new Error("bad start");const ne=je(this,Y,N5).call(this,q(this,ge)+1,X.match+1);return se(this,ge,X.match+1),ne}popParams(){const X=this.peek();if(X.type!=="OPEN_PAREN")throw new Error("bad start");const ne=[];for(;q(this,ge)<X.match-1;){const pe=this.peek().linkNext;ne.push(je(this,Y,N5).call(this,q(this,ge)+1,pe)),se(this,ge,pe)}return se(this,ge,X.match+1),ne}peek(){if(q(this,ge)>=q(this,J).length)throw new Error("out-of-bounds");return q(this,J)[q(this,ge)]}peekKeyword(X){const ne=this.peekType("KEYWORD");return ne!=null&&X.has(ne)?ne:null}peekType(X){if(this.length===0)return null;const ne=this.peek();return ne.type===X?ne.text:null}pop(){const X=this.peek();return fu(this,ge)._++,X}toString(){const X=[];for(let ne=q(this,ge);ne<q(this,J).length;ne++){const pe=q(this,J)[ne];X.push(`${pe.type}:${pe.text}`)}return`<TokenString ${X.join(" ")}>`}};
90ge=new WeakMap,J=new WeakMap,Y=new WeakSet,N5=function(X=0,ne=0){return new ce(q(this,J).slice(X,ne).map(pe=>Object.freeze(Object.assign({},pe,{match:pe.match-X,linkBack:pe.linkBack-X,linkNext:pe.linkNext-X}))))};let g=ce;function A(Q){const X=[],ne=Qe=>{const et=Re<Q.length?JSON.stringify(Q[Re]):"$EOI";throw new Error(`invalid token ${et} at ${Re}: ${Qe}`)};let pe=[],Be=[],Re=0;for(;Re<Q.length;){let Qe=Q.substring(Re),et=Qe.match(x);et&&(Re+=et[1].length,Qe=Q.substring(Re));const Ye={depth:pe.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:Re,value:-1};X.push(Ye);let dt=y[Qe[0]]||"";if(dt){if(Ye.type=dt,Ye.text=Qe[0],Re++,dt==="OPEN_PAREN")pe.push(X.length-1),Be.push(X.length-1);else if(dt=="CLOSE_PAREN")pe.length===0&&ne("no matching open bracket"),Ye.match=pe.pop(),X[Ye.match].match=X.length-1,Ye.depth--,Ye.linkBack=Be.pop(),X[Ye.linkBack].linkNext=X.length-1;else if(dt==="COMMA")Ye.linkBack=Be.pop(),X[Ye.linkBack].linkNext=X.length-1,Be.push(X.length-1);else if(dt==="OPEN_BRACKET")Ye.type="BRACKET";else if(dt==="CLOSE_BRACKET"){let Wt=X.pop().text;if(X.length>0&&X[X.length-1].type==="NUMBER"){const Jt=X.pop().text;Wt=Jt+Wt,X[X.length-1].value=(0,e.getNumber)(Jt)}if(X.length===0||X[X.length-1].type!=="BRACKET")throw new Error("missing opening bracket");X[X.length-1].text+=Wt}continue}if(et=Qe.match(T),et){if(Ye.text=et[1],Re+=Ye.text.length,h.has(Ye.text)){Ye.type="KEYWORD";continue}if(Ye.text.match(v)){Ye.type="TYPE";continue}Ye.type="ID";continue}if(et=Qe.match(C),et){Ye.text=et[1],Ye.type="NUMBER",Re+=Ye.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(Qe[0])} at position ${Re}`)}return new g(X.map(Qe=>Object.freeze(Qe)))}function S(Q,X){let ne=[];for(const pe in X.keys())Q.has(pe)&&ne.push(pe);if(ne.length>1)throw new Error(`conflicting types: ${ne.join(", ")}`)}function _(Q,X){if(X.peekKeyword(c)){const ne=X.pop().text;if(ne!==Q)throw new Error(`expected ${Q}, got ${ne}`)}return X.popType("ID")}function k(Q,X){const ne=new Set;for(;;){const pe=Q.peekType("KEYWORD");if(pe==null||X&&!X.has(pe))break;if(Q.pop(),ne.has(pe))throw new Error(`duplicate keywords: ${JSON.stringify(pe)}`);ne.add(pe)}return Object.freeze(ne)}
90function R(Q){let X=k(Q,i);return S(X,n("constant payable nonpayable".split(" "))),S(X,n("pure view payable nonpayable".split(" "))),X.has("view")?"view":X.has("pure")?"pure":X.has("payable")?"payable":X.has("nonpayable")?"nonpayable":X.has("constant")?"view":"nonpayable"}function D(Q,X){return Q.popParams().map(ne=>ee.from(ne,X))}function B(Q){if(Q.peekType("AT")){if(Q.pop(),Q.peekType("NUMBER"))return(0,e.getBigInt)(Q.pop().text);throw new Error("invalid gas")}return null}function M(Q){if(Q.length)throw new Error(`unexpected tokens at offset ${Q.offset}: ${Q.toString()}`)}const E=new RegExp(/^(.*)\[([0-9]*)\]$/);function N(Q){const X=Q.match(v);if((0,e.assertArgument)(X,"invalid type","type",Q),Q==="uint")return"uint256";if(Q==="int")return"int256";if(X[2]){const ne=parseInt(X[2]);(0,e.assertArgument)(ne!==0&&ne<=32,"invalid bytes length","type",Q)}else if(X[3]){const ne=parseInt(X[3]);(0,e.assertArgument)(ne!==0&&ne<=256&&ne%8===0,"invalid numeric width","type",Q)}return Q}const I={},F=Symbol.for("_ethers_internal"),z="_ParamTypeInternal",U="_ErrorInternal",V="_EventInternal",$="_ConstructorInternal",O="_FallbackInternal",H="_FunctionInternal",Z="_StructInternal",ue=class ue{constructor(X,ne,pe,Be,Re,Qe,et,Ye){Ce(this,Me);de(this,"name");de(this,"type");de(this,"baseType");de(this,"indexed");de(this,"components");de(this,"arrayLength");de(this,"arrayChildren");if((0,e.assertPrivate)(X,I,"ParamType"),Object.defineProperty(this,F,{value:z}),Qe&&(Qe=Object.freeze(Qe.slice())),Be==="array"){if(et==null||Ye==null)throw new Error("")}else if(et!=null||Ye!=null)throw new Error("");if(Be==="tuple"){if(Qe==null)throw new Error("")}else if(Qe!=null)throw new Error("");(0,e.defineProperties)(this,{name:ne,type:pe,baseType:Be,indexed:Re,components:Qe,arrayLength:et,arrayChildren:Ye})}format(X){if(X==null&&(X="sighash"),X==="json"){const pe=this.name||"";if(this.isArray()){const Re=JSON.parse(this.arrayChildren.format("json"));return Re.name=pe,Re.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(Re)}const Be={type:this.baseType==="tuple"?"tuple":this.type,name:pe};return typeof this.indexed=="boolean"&&(Be.indexed=this.indexed),this.isTuple()&&(Be.components=this.components.map(Re=>JSON.parse(Re.format(X)))),JSON.stringify(Be)}let ne="";return this.isArray()?(ne+=this.arrayChildren.format(X),ne+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?ne+="("+this.components.map(pe=>pe.format(X)).join(X==="full"?", ":",")+")":ne+=this.type,X!=="sighash"&&(this.indexed===!0&&(ne+=" indexed"),X==="full"&&this.name&&(ne+=" "+this.name)),ne}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(X,ne){if(this.isArray()){if(!Array.isArray(X))throw new Error("invalid array value");if(this.arrayLength!==-1&&X.length!==this.arrayLength)throw new Error("array is wrong length");const pe=this;return X.map(Be=>pe.arrayChildren.walk(Be,ne))}if(this.isTuple()){if(!Array.isArray(X))throw new Error("invalid tuple value");if(X.length!==this.components.length)throw new Error("array is wrong length");const pe=this;return X.map((Be,Re)=>pe.components[Re].walk(Be,ne))}return ne(this.type,X)}async walkAsync(X,ne){const pe=[],Be=[X];return je(this,Me,pb).call(this,pe,X,ne,Re=>{Be[0]=Re}),pe.length&&await Promise.all(pe),Be[0]}static from(X,ne){if(ue.isParamType(X))return X;if(typeof X=="string")try{return ue.from(A(X),ne)}catch{(0,e.assertArgument)(!1,"invalid param type","obj",X)}else if(X instanceof g){let et="",Ye="",dt=null;k(X,n(["tuple"])).has("tuple")||X.peekType("OPEN_PAREN")?(Ye="tuple",dt=X.popParams().map(Mr=>ue.from(Mr)),et=`tuple(${dt.map(Mr=>Mr.format()).join(",")})`):(et=N(X.popType("TYPE")),Ye=et);let Wt=null,Jt=null;for(;X.length&&X.peekType("BRACKET");){const Mr=X.pop();Wt=new ue(I,"",et,Ye,null,dt,Jt,Wt),Jt=Mr.value,et+=Mr.text,Ye="array",dt=null}let Er=null;if(k(X,f).has("indexed")){if(!ne)throw new Error("");Er=!0}const ks=X.peekType("ID")?X.pop().text:"";if(X.length)throw new Error("leftover tokens");return new ue(I,ks,et,Ye,Er,dt,Jt,Wt)}const pe=X.name;
90(0,e.assertArgument)(!pe||typeof pe=="string"&&pe.match(w),"invalid name","obj.name",pe);let Be=X.indexed;Be!=null&&((0,e.assertArgument)(ne,"parameter cannot be indexed","obj.indexed",X.indexed),Be=!!Be);let Re=X.type,Qe=Re.match(E);if(Qe){const et=parseInt(Qe[2]||"-1"),Ye=ue.from({type:Qe[1],components:X.components});return new ue(I,pe||"",Re,"array",Be,null,et,Ye)}if(Re==="tuple"||Re.startsWith("tuple(")||Re.startsWith("(")){const et=X.components!=null?X.components.map(dt=>ue.from(dt)):null;return new ue(I,pe||"",Re,"tuple",Be,et,null,null)}return Re=N(X.type),new ue(I,pe||"",Re,Re,Be,null,null,null)}static isParamType(X){return X&&X[F]===z}};Me=new WeakSet,pb=function(X,ne,pe,Be){if(this.isArray()){if(!Array.isArray(ne))throw new Error("invalid array value");if(this.arrayLength!==-1&&ne.length!==this.arrayLength)throw new Error("array is wrong length");const Qe=this.arrayChildren,et=ne.slice();et.forEach((Ye,dt)=>{var Wt;je(Wt=Qe,Me,pb).call(Wt,X,Ye,pe,Jt=>{et[dt]=Jt})}),Be(et);return}if(this.isTuple()){const Qe=this.components;let et;if(Array.isArray(ne))et=ne.slice();else{if(ne==null||typeof ne!="object")throw new Error("invalid tuple value");et=Qe.map(Ye=>{if(!Ye.name)throw new Error("cannot use object value with unnamed components");if(!(Ye.name in ne))throw new Error(`missing value for component ${Ye.name}`);return ne[Ye.name]})}if(et.length!==this.components.length)throw new Error("array is wrong length");et.forEach((Ye,dt)=>{var Wt;je(Wt=Qe[dt],Me,pb).call(Wt,X,Ye,pe,Jt=>{et[dt]=Jt})}),Be(et);return}const Re=pe(this.type,ne);Re.then?X.push((async function(){Be(await Re)})()):Be(Re)};let ee=ue;Mn.ParamType=ee;class ae{constructor(X,ne,pe){de(this,"type");de(this,"inputs");(0,e.assertPrivate)(X,I,"Fragment"),pe=Object.freeze(pe.slice()),(0,e.defineProperties)(this,{type:ne,inputs:pe})}static from(X){if(typeof X=="string"){try{ae.from(JSON.parse(X))}catch{}return ae.from(A(X))}if(X instanceof g)switch(X.peekKeyword(c)){case"constructor":return he.from(X);case"error":return le.from(X);case"event":return xe.from(X);case"fallback":case"receive":return De.from(X);case"function":return Se.from(X);case"struct":return ke.from(X)}else if(typeof X=="object"){switch(X.type){case"constructor":return he.from(X);case"error":return le.from(X);case"event":return xe.from(X);case"fallback":case"receive":return De.from(X);case"function":return Se.from(X);case"struct":return ke.from(X)}(0,e.assert)(!1,`unsupported type: ${X.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,e.assertArgument)(!1,"unsupported frgament object","obj",X)}static isConstructor(X){return he.isFragment(X)}static isError(X){return le.isFragment(X)}static isEvent(X){return xe.isFragment(X)}static isFunction(X){return Se.isFragment(X)}static isStruct(X){return ke.isFragment(X)}}Mn.Fragment=ae;class ie extends ae{constructor(ne,pe,Be,Re){super(ne,pe,Re);de(this,"name");(0,e.assertArgument)(typeof Be=="string"&&Be.match(w),"invalid identifier","name",Be),Re=Object.freeze(Re.slice()),(0,e.defineProperties)(this,{name:Be})}}Mn.NamedFragment=ie;function fe(Q,X){return"("+X.map(ne=>ne.format(Q)).join(Q==="full"?", ":",")+")"}class le extends ie{constructor(X,ne,pe){super(X,"error",ne,pe),Object.defineProperty(this,F,{value:U})}get selector(){return(0,t.id)(this.format("sighash")).substring(0,10)}format(X){if(X==null&&(X="sighash"),X==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(pe=>JSON.parse(pe.format(X)))});const ne=[];return X!=="sighash"&&ne.push("error"),ne.push(this.name+fe(X,this.inputs)),ne.join(" ")}static from(X){if(le.isFragment(X))return X;if(typeof X=="string")return le.from(A(X));if(X instanceof g){const ne=_("error",X),pe=D(X);return M(X),new le(I,ne,pe)}return new le(I,X.name,X.inputs?X.inputs.map(ee.from):[])}static isFragment(X){return X&&X[F]===U}}Mn.ErrorFragment=le;class xe extends ie{constructor(ne,pe,Be,Re){super(ne,"event",pe,Be);de(this,"anonymous");Object.defineProperty(this,F,{value:V}),(0,e.defineProperties)(this,{anonymous:Re})}get topicHash(){return(0,t.id)(this.format("sighash"))}format(ne){if(ne==null&&(ne="sighash"),ne==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(Be=>JSON.parse(Be.format(ne)))});const pe=[];return ne!=="sighash"&&pe.push("event"),pe.push(this.name+fe(ne,this.inputs)),ne!=="sighash"&&this.anonymous&&pe.push("anonymous"),pe.j
90oin(" ")}static getTopicHash(ne,pe){return pe=(pe||[]).map(Re=>ee.from(Re)),new xe(I,ne,pe,!1).topicHash}static from(ne){if(xe.isFragment(ne))return ne;if(typeof ne=="string")try{return xe.from(A(ne))}catch{(0,e.assertArgument)(!1,"invalid event fragment","obj",ne)}else if(ne instanceof g){const pe=_("event",ne),Be=D(ne,!0),Re=!!k(ne,n(["anonymous"])).has("anonymous");return M(ne),new xe(I,pe,Be,Re)}return new xe(I,ne.name,ne.inputs?ne.inputs.map(pe=>ee.from(pe,!0)):[],!!ne.anonymous)}static isFragment(ne){return ne&&ne[F]===V}}Mn.EventFragment=xe;class he extends ae{constructor(ne,pe,Be,Re,Qe){super(ne,pe,Be);de(this,"payable");de(this,"gas");Object.defineProperty(this,F,{value:$}),(0,e.defineProperties)(this,{payable:Re,gas:Qe})}format(ne){if((0,e.assert)(ne!=null&&ne!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),ne==="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(Be=>JSON.parse(Be.format(ne)))});const pe=[`constructor${fe(ne,this.inputs)}`];return this.payable&&pe.push("payable"),this.gas!=null&&pe.push(`@${this.gas.toString()}`),pe.join(" ")}static from(ne){if(he.isFragment(ne))return ne;if(typeof ne=="string")try{return he.from(A(ne))}catch{(0,e.assertArgument)(!1,"invalid constuctor fragment","obj",ne)}else if(ne instanceof g){k(ne,n(["constructor"]));const pe=D(ne),Be=!!k(ne,a).has("payable"),Re=B(ne);return M(ne),new he(I,"constructor",pe,Be,Re)}return new he(I,"constructor",ne.inputs?ne.inputs.map(ee.from):[],!!ne.payable,ne.gas!=null?ne.gas:null)}static isFragment(ne){return ne&&ne[F]===$}}Mn.ConstructorFragment=he;class De extends ae{constructor(ne,pe,Be){super(ne,"fallback",pe);de(this,"payable");Object.defineProperty(this,F,{value:O}),(0,e.defineProperties)(this,{payable:Be})}format(ne){const pe=this.inputs.length===0?"receive":"fallback";if(ne==="json"){const Be=this.payable?"payable":"nonpayable";return JSON.stringify({type:pe,stateMutability:Be})}return`${pe}()${this.payable?" payable":""}`}static from(ne){if(De.isFragment(ne))return ne;if(typeof ne=="string")try{return De.from(A(ne))}catch{(0,e.assertArgument)(!1,"invalid fallback fragment","obj",ne)}else if(ne instanceof g){const pe=ne.toString(),Be=ne.peekKeyword(n(["fallback","receive"]));if((0,e.assertArgument)(Be,"type must be fallback or receive","obj",pe),ne.popKeyword(n(["fallback","receive"]))==="receive"){const Ye=D(ne);return(0,e.assertArgument)(Ye.length===0,"receive cannot have arguments","obj.inputs",Ye),k(ne,n(["payable"])),M(ne),new De(I,[],!0)}let Qe=D(ne);Qe.length?(0,e.assertArgument)(Qe.length===1&&Qe[0].type==="bytes","invalid fallback inputs","obj.inputs",Qe.map(Ye=>Ye.format("minimal")).join(", ")):Qe=[ee.from("bytes")];const et=R(ne);if((0,e.assertArgument)(et==="nonpayable"||et==="payable","fallback cannot be constants","obj.stateMutability",et),k(ne,n(["returns"])).has("returns")){const Ye=D(ne);(0,e.assertArgument)(Ye.length===1&&Ye[0].type==="bytes","invalid fallback outputs","obj.outputs",Ye.map(dt=>dt.format("minimal")).join(", "))}return M(ne),new De(I,Qe,et==="payable")}if(ne.type==="receive")return new De(I,[],!0);if(ne.type==="fallback"){const pe=[ee.from("bytes")],Be=ne.stateMutability==="payable";return new De(I,pe,Be)}(0,e.assertArgument)(!1,"invalid fallback description","obj",ne)}static isFragment(ne){return ne&&ne[F]===O}}Mn.FallbackFragment=De;class Se extends ie{constructor(ne,pe,Be,Re,Qe,et){super(ne,"function",pe,Re);de(this,"constant");de(this,"outputs");de(this,"stateMutability");de(this,"payable");de(this,"gas");Object.defineProperty(this,F,{value:H}),Qe=Object.freeze(Qe.slice());const Ye=Be==="view"||Be==="pure",dt=Be==="payable";(0,e.defineProperties)(this,{constant:Ye,gas:et,outputs:Qe,payable:dt,stateMutability:Be})}get selector(){return(0,t.id)(this.format("sighash")).substring(0,10)}format(ne){if(ne==null&&(ne="sighash"),ne==="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(Be=>JSON.parse(Be.format(ne))),outputs:this.outputs.map(Be=>JSON.parse(Be.format(ne)))});const pe=[];return ne!=="sighash"&&pe.push("function"),pe.push(this.name+fe(ne,this.inputs)),ne!=="sighash"&&(this.stateMutability!=="nonpayable"&&pe.push(this.stateMutability),this.outputs&&this.outputs.length&&(pe.pu
90sh("returns"),pe.push(fe(ne,this.outputs))),this.gas!=null&&pe.push(`@${this.gas.toString()}`)),pe.join(" ")}static getSelector(ne,pe){return pe=(pe||[]).map(Re=>ee.from(Re)),new Se(I,ne,"view",pe,[],null).selector}static from(ne){if(Se.isFragment(ne))return ne;if(typeof ne=="string")try{return Se.from(A(ne))}catch{(0,e.assertArgument)(!1,"invalid function fragment","obj",ne)}else if(ne instanceof g){const Be=_("function",ne),Re=D(ne),Qe=R(ne);let et=[];k(ne,n(["returns"])).has("returns")&&(et=D(ne));const Ye=B(ne);return M(ne),new Se(I,Be,Qe,Re,et,Ye)}let pe=ne.stateMutability;return pe==null&&(pe="payable",typeof ne.constant=="boolean"?(pe="view",ne.constant||(pe="payable",typeof ne.payable=="boolean"&&!ne.payable&&(pe="nonpayable"))):typeof ne.payable=="boolean"&&!ne.payable&&(pe="nonpayable")),new Se(I,ne.name,pe,ne.inputs?ne.inputs.map(ee.from):[],ne.outputs?ne.outputs.map(ee.from):[],ne.gas!=null?ne.gas:null)}static isFragment(ne){return ne&&ne[F]===H}}Mn.FunctionFragment=Se;class ke extends ie{constructor(X,ne,pe){super(X,"struct",ne,pe),Object.defineProperty(this,F,{value:Z})}format(){throw new Error("@TODO")}static from(X){if(typeof X=="string")try{return ke.from(A(X))}catch{(0,e.assertArgument)(!1,"invalid struct fragment","obj",X)}else if(X instanceof g){const ne=_("struct",X),pe=D(X);return M(X),new ke(I,ne,pe)}return new ke(I,X.name,X.inputs?X.inputs.map(ee.from):[])}static isFragment(X){return X&&X[F]===Z}}return Mn.StructFragment=ke,Mn}var d_;function QL(){var A,Pu;if(d_)return Ef;d_=1,Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.AbiCoder=void 0;const e=at(),t=ws(),n=ple(),r=KL(),a=hle(),s=VL(),i=yle(),l=ble(),c=gle(),u=xle(),f=vle(),p=pE(),m=Hn(),h=at(),y=new Map;y.set(0,"GENERIC_PANIC"),y.set(1,"ASSERT_FALSE"),y.set(17,"OVERFLOW"),y.set(18,"DIVIDE_BY_ZERO"),y.set(33,"ENUM_RANGE_ERROR"),y.set(34,"BAD_STORAGE_DATA"),y.set(49,"STACK_UNDERFLOW"),y.set(50,"ARRAY_RANGE_ERROR"),y.set(65,"OUT_OF_MEMORY"),y.set(81,"UNINITIALIZED_FUNCTION_CALL");const x=new RegExp(/^bytes([0-9]*)$/),C=new RegExp(/^(u?int)([0-9]*)$/);let T=null,w=1024;function v(k,R,D,B){let M="missing revert data",E=null;const N=null;let I=null;if(D){M="execution reverted";const z=(0,h.getBytes)(D);if(D=(0,h.hexlify)(D),z.length===0)M+=" (no data present; likely require(false) occurred",E="require(false)";else if(z.length%32!==4)M+=" (could not decode reason; invalid data length)";else if((0,h.hexlify)(z.slice(0,4))==="0x08c379a0")try{E=B.decode(["string"],z.slice(4))[0],I={signature:"Error(string)",name:"Error",args:[E]},M+=`: ${JSON.stringify(E)}`}catch{M+=" (could not decode reason; invalid string data)"}else if((0,h.hexlify)(z.slice(0,4))==="0x4e487b71")try{const U=Number(B.decode(["uint256"],z.slice(4))[0]);I={signature:"Panic(uint256)",name:"Panic",args:[U]},E=`Panic due to ${y.get(U)||"UNKNOWN"}(${U})`,M+=`: ${E}`}catch{M+=" (could not decode panic code)"}else M+=" (unknown custom error)"}const F={to:R.to?(0,m.getAddress)(R.to):null,data:R.data||"0x"};return R.from&&(F.from=(0,m.getAddress)(R.from)),(0,h.makeError)(M,"CALL_EXCEPTION",{action:k,data:D,reason:E,transaction:F,invocation:N,revert:I})}const _=class _{constructor(){Ce(this,A)}getDefaultValue(R){const D=R.map(M=>je(this,A,Pu).call(this,p.ParamType.from(M)));return new f.TupleCoder(D,"_").defaultValue()}encode(R,D){(0,e.assertArgumentCount)(D.length,R.length,"types/values length mismatch");const B=R.map(N=>je(this,A,Pu).call(this,p.ParamType.from(N))),M=new f.TupleCoder(B,"_"),E=new t.Writer;return M.encode(E,D),E.data}decode(R,D,B){const M=R.map(N=>je(this,A,Pu).call(this,p.ParamType.from(N)));return new f.TupleCoder(M,"_").decode(new t.Reader(D,B,w))}static _setDefaultMaxInflation(R){(0,e.assertArgument)(typeof R=="number"&&Number.isInteger(R),"invalid defaultMaxInflation factor","value",R),w=R}static defaultAbiCoder(){return T==null&&(T=new _),T}static getBuiltinCallException(R,D,B){return v(R,D,B,_.defaultAbiCoder())}};A=new WeakSet,Pu=function(R){if(R.isArray())return new r.ArrayCoder(je(this,A,Pu).call(this,R.arrayChildren),R.arrayLength,R.name);if(R.isTuple())return new f.TupleCoder(R.components.map(B=>je(this,A,Pu).call(this,B)),R.name);switch(R.baseType){case"address":return new n.AddressCoder(R.name);case"bool":return new a.BooleanCoder(R.name);case"string":return new u.StringCoder(R.name);case"bytes":return new s.BytesCoder(R.name);case"":return new l.NullCoder(R.name)}let D=R.type.match(C);if(D){let B=parseInt(D[2]||"256");return(0,e.assertArgument)(B!==0&&B<=256&&B%8===0,"invalid "+D[1]+" bit length","param",R),new c.NumberCoder(B/8,D[1]==="int",R.name)}if(D=R.type.match(x),D){let B=parseInt(D[1]);
90return(0,e.assertArgument)(B!==0&&B<=32,"invalid bytes length","param",R),new i.FixedBytesCoder(B,R.name)}(0,e.assertArgument)(!1,"invalid type","type",R.type)};let g=_;return Ef.AbiCoder=g,Ef}var $l={},f_;function Sle(){if(f_)return $l;f_=1,Object.defineProperty($l,"__esModule",{value:!0}),$l.decodeBytes32String=$l.encodeBytes32String=void 0;const e=at();function t(r){const a=(0,e.toUtf8Bytes)(r);if(a.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,e.zeroPadBytes)(a,32)}$l.encodeBytes32String=t;function n(r){const a=(0,e.getBytes)(r,"bytes");if(a.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(a[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let s=31;for(;a[s-1]===0;)s--;return(0,e.toUtf8String)(a.slice(0,s))}return $l.decodeBytes32String=n,$l}var ow={},p_;function Ble(){return p_||(p_=1,(function(e){var x,C,T,w,v,mb,hb;Object.defineProperty(e,"__esModule",{value:!0}),e.Interface=e.Indexed=e.ErrorDescription=e.TransactionDescription=e.LogDescription=e.Result=e.checkResultErrors=void 0;const t=Xn(),n=Ki(),r=at(),a=QL(),s=ws();Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return s.checkResultErrors}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return s.Result}});const i=pE(),l=Hi();class c{constructor(k,R,D){de(this,"fragment");de(this,"name");de(this,"signature");de(this,"topic");de(this,"args");const B=k.name,M=k.format();(0,r.defineProperties)(this,{fragment:k,name:B,signature:M,topic:R,args:D})}}e.LogDescription=c;class u{constructor(k,R,D,B){de(this,"fragment");de(this,"name");de(this,"args");de(this,"signature");de(this,"selector");de(this,"value");const M=k.name,E=k.format();(0,r.defineProperties)(this,{fragment:k,name:M,args:D,signature:E,selector:R,value:B})}}e.TransactionDescription=u;class f{constructor(k,R,D){de(this,"fragment");de(this,"name");de(this,"args");de(this,"signature");de(this,"selector");const B=k.name,M=k.format();(0,r.defineProperties)(this,{fragment:k,name:B,args:D,signature:M,selector:R})}}e.ErrorDescription=f;class p{constructor(k){de(this,"hash");de(this,"_isIndexed");(0,r.defineProperties)(this,{hash:k,_isIndexed:!0})}static isIndexed(k){return!!(k&&k._isIndexed)}}e.Indexed=p;const m={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"},h={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:_=>`reverted with reason string ${JSON.stringify(_)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:_=>{let k="unknown panic code";return _>=0&&_<=255&&m[_.toString()]&&(k=m[_.toString()]),`reverted with panic code 0x${_.toString(16)} (${k})`}}},S=class S{constructor(k){Ce(this,v);de(this,"fragments");de(this,"deploy");de(this,"fallback");de(this,"receive");Ce(this,x);Ce(this,C);Ce(this,T);Ce(this,w);let R=[];typeof k=="string"?R=JSON.parse(k):R=k,se(this,T,new Map),se(this,x,new Map),se(this,C,new Map);const D=[];for(const E of R)try{D.push(i.Fragment.from(E))}catch(N){console.log(`[Warning] Invalid Fragment ${JSON.stringify(E)}:`,N.message)}(0,r.defineProperties)(this,{fragments:Object.freeze(D)});let B=null,M=!1;se(this,w,this.getAbiCoder()),this.fragments.forEach((E,N)=>{let I;switch(E.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}(0,r.defineProperties)(this,{deploy:E});return;case"fallback":E.inputs.length===0?M=!0:((0,r.assertArgument)(!B||E.payable!==B.payable,"conflicting fallback fragments",`fragments[${N}]`,E),B=E,M=B.payable);return;case"function":I=q(this,T);break;case"event":I=q(this,C);break;case"error":I=q(this,x);break;default:return}const F=E.format();I.has(F)||I.set(F,E)}),this.deploy||(0,r.defineProperties)(this,{deploy:i.ConstructorFragment.from("constructor()")}),(0,r.defineProperties)(this,{fallback:B,receive:M})}
90format(k){const R=k?"minimal":"full";return this.fragments.map(B=>B.format(R))}formatJson(){const k=this.fragments.map(R=>R.format("json"));return JSON.stringify(k.map(R=>JSON.parse(R)))}getAbiCoder(){return a.AbiCoder.defaultAbiCoder()}getFunctionName(k){const R=je(this,v,mb).call(this,k,null,!1);return(0,r.assertArgument)(R,"no matching function","key",k),R.name}hasFunction(k){return!!je(this,v,mb).call(this,k,null,!1)}getFunction(k,R){return je(this,v,mb).call(this,k,R||null,!0)}forEachFunction(k){const R=Array.from(q(this,T).keys());R.sort((D,B)=>D.localeCompare(B));for(let D=0;D<R.length;D++){const B=R[D];k(q(this,T).get(B),D)}}getEventName(k){const R=je(this,v,hb).call(this,k,null,!1);return(0,r.assertArgument)(R,"no matching event","key",k),R.name}hasEvent(k){return!!je(this,v,hb).call(this,k,null,!1)}getEvent(k,R){return je(this,v,hb).call(this,k,R||null,!0)}forEachEvent(k){const R=Array.from(q(this,C).keys());R.sort((D,B)=>D.localeCompare(B));for(let D=0;D<R.length;D++){const B=R[D];k(q(this,C).get(B),D)}}getError(k,R){if((0,r.isHexString)(k)){const B=k.toLowerCase();if(h[B])return i.ErrorFragment.from(h[B].signature);for(const M of q(this,x).values())if(B===M.selector)return M;return null}if(k.indexOf("(")===-1){const B=[];for(const[M,E]of q(this,x))M.split("(")[0]===k&&B.push(E);if(B.length===0)return k==="Error"?i.ErrorFragment.from("error Error(string)"):k==="Panic"?i.ErrorFragment.from("error Panic(uint256)"):null;if(B.length>1){const M=B.map(E=>JSON.stringify(E.format())).join(", ");(0,r.assertArgument)(!1,`ambiguous error description (i.e. ${M})`,"name",k)}return B[0]}if(k=i.ErrorFragment.from(k).format(),k==="Error(string)")return i.ErrorFragment.from("error Error(string)");if(k==="Panic(uint256)")return i.ErrorFragment.from("error Panic(uint256)");const D=q(this,x).get(k);return D||null}forEachError(k){const R=Array.from(q(this,x).keys());R.sort((D,B)=>D.localeCompare(B));for(let D=0;D<R.length;D++){const B=R[D];k(q(this,x).get(B),D)}}_decodeParams(k,R){return q(this,w).decode(k,R)}_encodeParams(k,R){return q(this,w).encode(k,R)}encodeDeploy(k){return this._encodeParams(this.deploy.inputs,k||[])}decodeErrorResult(k,R){if(typeof k=="string"){const D=this.getError(k);(0,r.assertArgument)(D,"unknown error","fragment",k),k=D}return(0,r.assertArgument)((0,r.dataSlice)(R,0,4)===k.selector,`data signature does not match error ${k.name}.`,"data",R),this._decodeParams(k.inputs,(0,r.dataSlice)(R,4))}encodeErrorResult(k,R){if(typeof k=="string"){const D=this.getError(k);(0,r.assertArgument)(D,"unknown error","fragment",k),k=D}return(0,r.concat)([k.selector,this._encodeParams(k.inputs,R||[])])}decodeFunctionData(k,R){if(typeof k=="string"){const D=this.getFunction(k);(0,r.assertArgument)(D,"unknown function","fragment",k),k=D}return(0,r.assertArgument)((0,r.dataSlice)(R,0,4)===k.selector,`data signature does not match function ${k.name}.`,"data",R),this._decodeParams(k.inputs,(0,r.dataSlice)(R,4))}encodeFunctionData(k,R){if(typeof k=="string"){const D=this.getFunction(k);(0,r.assertArgument)(D,"unknown function","fragment",k),k=D}return(0,r.concat)([k.selector,this._encodeParams(k.inputs,R||[])])}decodeFunctionResult(k,R){if(typeof k=="string"){const M=this.getFunction(k);(0,r.assertArgument)(M,"unknown function","fragment",k),k=M}let D="invalid length for result data";const B=(0,r.getBytesCopy)(R);if(B.length%32===0)try{return q(this,w).decode(k.outputs,B)}catch{D="could not decode result data"}(0,r.assert)(!1,D,"BAD_DATA",{value:(0,r.hexlify)(B),info:{method:k.name,signature:k.format()}})}makeError(k,R){const D=(0,r.getBytes)(k,"data"),B=a.AbiCoder.getBuiltinCallException("call",R,D);if(B.message.startsWith("execution reverted (unknown custom error)")){const N=(0,r.hexlify)(D.slice(0,4)),I=this.getError(N);if(I)try{const F=q(this,w).decode(I.inputs,D.slice(4));B.revert={name:I.name,signature:I.format(),args:F},B.reason=B.revert.signature,B.message=`execution reverted: ${B.reason}`}catch{B.message="execution reverted (coult not decode custom error)"}}const E=this.parseTransaction(R);return E&&(B.invocation={method:E.name,signature:E.signature,args:E.args}),B}encodeFunctionResult(k,R){if(typeof k=="string"){const D=this.getFunction(k);(0,r.assertArgument)(D,"unknown function","fragment",k),k=D}return(0,r.hexlify)(q(this,w).encode(k.outputs,R||[]))}encodeFilterTopics(k,R){if(typeof k=="string"){const M=this.getEvent(k);(0,r.assertArgument)(M,"unknown event","eventFragment",k),k=M}(0,r.assert)(R.length<=k.inputs.length,`too many arguments for ${k.format()}`,"UNEXPECTED_ARGUMENT",{count:R.length,expectedCount:k.inputs.length});const D=[];k.anonymous||D.push(k.topicHash);const B=(M,E)=>M.type==="string"?(0,n.id)(E):M.type==="bytes"?(0,t.keccak256)((0,r.hexlify)(E)):(M.type==="bool"&&typeof E=="boolean"?E=E?"0x01":"0x00":M.type.match(/^u?int/)?E=(0,r.toBeHex)(E):M.type.match(/^bytes/)?E=(0,r.zeroPadBytes)(E,32):M.type==="address"&&q(this,w).encode(["address"],[E]),(0,r.zeroPadValue)((0,r.hexlify)(E),32));
90for(R.forEach((M,E)=>{const N=k.inputs[E];if(!N.indexed){(0,r.assertArgument)(M==null,"cannot filter non-indexed parameters; must be null","contract."+N.name,M);return}M==null?D.push(null):N.baseType==="array"||N.baseType==="tuple"?(0,r.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+N.name,M):Array.isArray(M)?D.push(M.map(I=>B(N,I))):D.push(B(N,M))});D.length&&D[D.length-1]===null;)D.pop();return D}encodeEventLog(k,R){if(typeof k=="string"){const E=this.getEvent(k);(0,r.assertArgument)(E,"unknown event","eventFragment",k),k=E}const D=[],B=[],M=[];return k.anonymous||D.push(k.topicHash),(0,r.assertArgument)(R.length===k.inputs.length,"event arguments/values mismatch","values",R),k.inputs.forEach((E,N)=>{const I=R[N];if(E.indexed)if(E.type==="string")D.push((0,n.id)(I));else if(E.type==="bytes")D.push((0,t.keccak256)(I));else{if(E.baseType==="tuple"||E.baseType==="array")throw new Error("not implemented");D.push(q(this,w).encode([E.type],[I]))}else B.push(E),M.push(I)}),{data:q(this,w).encode(B,M),topics:D}}decodeEventLog(k,R,D){if(typeof k=="string"){const $=this.getEvent(k);(0,r.assertArgument)($,"unknown event","eventFragment",k),k=$}if(D!=null&&!k.anonymous){const $=k.topicHash;(0,r.assertArgument)((0,r.isHexString)(D[0],32)&&D[0].toLowerCase()===$,"fragment/topic mismatch","topics[0]",D[0]),D=D.slice(1)}const B=[],M=[],E=[];k.inputs.forEach(($,O)=>{$.indexed?$.type==="string"||$.type==="bytes"||$.baseType==="tuple"||$.baseType==="array"?(B.push(i.ParamType.from({type:"bytes32",name:$.name})),E.push(!0)):(B.push($),E.push(!1)):(M.push($),E.push(!1))});const N=D!=null?q(this,w).decode(B,(0,r.concat)(D)):null,I=q(this,w).decode(M,R,!0),F=[],z=[];let U=0,V=0;return k.inputs.forEach(($,O)=>{let H=null;if($.indexed)if(N==null)H=new p(null);else if(E[O])H=new p(N[V++]);else try{H=N[V++]}catch(Z){H=Z}else try{H=I[U++]}catch(Z){H=Z}F.push(H),z.push($.name||null)}),s.Result.fromItems(F,z)}parseTransaction(k){const R=(0,r.getBytes)(k.data,"tx.data"),D=(0,r.getBigInt)(k.value!=null?
90k.value:0,"tx.value"),B=this.getFunction((0,r.hexlify)(R.slice(0,4)));if(!B)return null;const M=q(this,w).decode(B.inputs,R.slice(4));return new u(B,B.selector,M,D)}parseCallResult(k){throw new Error("@TODO")}parseLog(k){const R=this.getEvent(k.topics[0]);return!R||R.anonymous?null:new c(R,R.topicHash,this.decodeEventLog(R,k.data,k.topics))}parseError(k){const R=(0,r.hexlify)(k),D=this.getError((0,r.dataSlice)(R,0,4));if(!D)return null;const B=q(this,w).decode(D.inputs,(0,r.dataSlice)(R,4));return new f(D,D.selector,B)}static from(k){return k instanceof S?k:typeof k=="string"?new S(JSON.parse(k)):typeof k.formatJson=="function"?new S(k.formatJson()):typeof k.format=="function"?new S(k.format("json")):new S(k)}};x=new WeakMap,C=new WeakMap,T=new WeakMap,w=new WeakMap,v=new WeakSet,mb=function(k,R,D){if((0,r.isHexString)(k)){const M=k.toLowerCase();for(const E of q(this,T).values())if(M===E.selector)return E;return null}if(k.indexOf("(")===-1){const M=[];for(const[E,N]of q(this,T))E.split("(")[0]===k&&M.push(N);if(R){const E=R.length>0?R[R.length-1]:null;let N=R.length,I=!0;l.Typed.isTyped(E)&&E.type==="overrides"&&(I=!1,N--);for(let F=M.length-1;F>=0;F--){const z=M[F].inputs.length;z!==N&&(!I||z!==N-1)&&M.splice(F,1)}for(let F=M.length-1;F>=0;F--){const z=M[F].inputs;for(let U=0;U<R.length;U++)if(l.Typed.isTyped(R[U])){if(U>=z.length){if(R[U].type==="overrides")continue;M.splice(F,1);break}if(R[U].type!==z[U].baseType){M.splice(F,1);break}}}}if(M.length===1&&R&&R.length!==M[0].inputs.length){const E=R[R.length-1];(E==null||Array.isArray(E)||typeof E!="object")&&M.splice(0,1)}if(M.length===0)return null;if(M.length>1&&D){const E=M.map(N=>JSON.stringify(N.format())).join(", ");(0,r.assertArgument)(!1,`ambiguous function description (i.e. matches ${E})`,"key",k)}return M[0]}const B=q(this,T).get(i.FunctionFragment.from(k).format());return B||null},hb=function(k,R,D){if((0,r.isHexString)(k)){const M=k.toLowerCase();for(const E of q(this,C).values())if(M===E.topicHash)return E;return null}if(k.indexOf("(")===-1){const M=[];for(const[E,N]of q(this,C))E.split("(")[0]===k&&M.push(N);if(R){for(let E=M.length-1;E>=0;E--)M[E].inputs.length<R.length&&M.splice(E,1);for(let E=M.length-1;E>=0;E--){const N=M[E].inputs;for(let I=0;I<R.length;I++)if(l.Typed.isTyped(R[I])&&R[I].type!==N[I].baseType){M.splice(E,1);break}}}if(M.length===0)return null;if(M.length>1&&D){const E=M.map(N=>JSON.stringify(N.format())).join(", ");(0,r.assertArgument)(!1,`ambiguous event description (i.e. matches ${E})`,"key",k)}return M[0]}const B=q(this,C).get(i.EventFragment.from(k).format());return B||null};let y=S;e.Interface=y})(ow)),ow}var m_;function Pm(){return m_||(m_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Typed=e.Result=e.TransactionDescription=e.LogDescription=e.ErrorDescription=e.Interface=e.Indexed=e.checkResultErrors=e.StructFragment=e.ParamType=e.NamedFragment=e.FunctionFragment=e.Fragment=e.FallbackFragment=e.EventFragment=e.ErrorFragment=e.ConstructorFragment=e.encodeBytes32String=e.decodeBytes32String=e.AbiCoder=void 0;var t=QL();Object.defineProperty(e,"AbiCoder",{enumerable:!0,get:function(){return t.AbiCoder}});var n=Sle();Object.defineProperty(e,"decodeBytes32String",{enumerable:!0,get:function(){return n.decodeBytes32String}}),Object.defineProperty(e,"encodeBytes32String",{enumerable:!0,get:function(){return n.encodeBytes32String}});var r=pE();Object.defineProperty(e,"ConstructorFragment",{enumerable:!0,get:function(){return r.ConstructorFragment}}),Object.defineProperty(e,"ErrorFragment",{enumerable:!0,get:function(){return r.ErrorFragment}}),Object.defineProperty(e,"EventFragment",{enumerable:!0,get:function(){return r.EventFragment}}),Object.defineProperty(e,"FallbackFragment",{enumerable:!0,get:function(){return r.FallbackFragment}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return r.Fragment}}),Object.defineProperty(e,"FunctionFragment",{enumerable:!0,get:function(){return r.FunctionFragment}}),Object.defineProperty(e,"NamedFragment",{enumerable:!0,get:function(){return r.NamedFragment}}),Object.defineProperty(e,"ParamType",{enumerable:!0,get:function(){return r.ParamType}}),Object.defineProperty(e,"StructFragment",{enumerable:!0,get:function(){return r.StructFragment}});var a=Ble();Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return a.checkResultErrors}}),Object.defineProperty(e,"Indexed",{enumerable:!0,get:function(){return a.Indexed}}),Object.defineProperty(e,"Interface",{enumerable:!0,get:function(){return a.Interface}}),Object.defineProperty(e,"ErrorDescription",{enumerable:!0,get:function(){return a.ErrorDescription}}),Object.defineProperty(e,"LogDescription",{enumerable:!0,get:function(){return a.LogDescription}}),Object.defineProperty(e,"TransactionDescription",{enumerable:!0,get:function(){return a.TransactionDescription}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return a.Result}});var s=Hi();Object.defineProperty(e,"Typed",{enumerable:!0,get:function(){return s.Typed}})})(W6)),W6}var lw={},ss={},Ar={},h_;function Tm(){var x,C,T;if(h_)return Ar;
90h_=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.TransactionResponse=Ar.TransactionReceipt=Ar.Log=Ar.Block=Ar.copyRequest=Ar.FeeData=void 0;const e=at(),t=sa(),n=BigInt(0);function r(v){return v??null}function a(v){return v==null?null:v.toString()}class s{constructor(g,A,S){de(this,"gasPrice");de(this,"maxFeePerGas");de(this,"maxPriorityFeePerGas");(0,e.defineProperties)(this,{gasPrice:r(g),maxFeePerGas:r(A),maxPriorityFeePerGas:r(S)})}toJSON(){const{gasPrice:g,maxFeePerGas:A,maxPriorityFeePerGas:S}=this;return{_type:"FeeData",gasPrice:a(g),maxFeePerGas:a(A),maxPriorityFeePerGas:a(S)}}}Ar.FeeData=s;function i(v){const g={};v.to&&(g.to=v.to),v.from&&(g.from=v.from),v.data&&(g.data=(0,e.hexlify)(v.data));const A="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const _ of A)!(_ in v)||v[_]==null||(g[_]=(0,e.getBigInt)(v[_],`request.${_}`));const S="type,nonce".split(/,/);for(const _ of S)!(_ in v)||v[_]==null||(g[_]=(0,e.getNumber)(v[_],`request.${_}`));return v.accessList&&(g.accessList=(0,t.accessListify)(v.accessList)),v.authorizationList&&(g.authorizationList=v.authorizationList.slice()),"blockTag"in v&&(g.blockTag=v.blockTag),"enableCcipRead"in v&&(g.enableCcipRead=!!v.enableCcipRead),"customData"in v&&(g.customData=v.customData),"blobVersionedHashes"in v&&v.blobVersionedHashes&&(g.blobVersionedHashes=v.blobVersionedHashes.slice()),"kzg"in v&&(g.kzg=v.kzg),"blobs"in v&&v.blobs&&(g.blobs=v.blobs.map(_=>(0,e.isBytesLike)(_)?(0,e.hexlify)(_):Object.assign({},_))),g}Ar.copyRequest=i;class l{constructor(g,A){de(this,"provider");de(this,"number");de(this,"hash");de(this,"timestamp");de(this,"parentHash");de(this,"parentBeaconBlockRoot");de(this,"nonce");de(this,"difficulty");de(this,"gasLimit");de(this,"gasUsed");de(this,"stateRoot");de(this,"receiptsRoot");de(this,"blobGasUsed");de(this,"excessBlobGas");de(this,"miner");de(this,"prevRandao");de(this,"extraData");de(this,"baseFeePerGas");Ce(this,x);se(this,x,g.transactions.map(S=>typeof S!="string"?new f(S,A):S)),(0,e.defineProperties)(this,{provider:A,hash:r(g.hash),number:g.number,timestamp:g.timestamp,parentHash:g.parentHash,parentBeaconBlockRoot:g.parentBeaconBlockRoot,nonce:g.nonce,difficulty:g.difficulty,gasLimit:g.gasLimit,gasUsed:g.gasUsed,blobGasUsed:g.blobGasUsed,excessBlobGas:g.excessBlobGas,miner:g.miner,prevRandao:r(g.prevRandao),extraData:g.extraData,baseFeePerGas:r(g.baseFeePerGas),stateRoot:g.stateRoot,receiptsRoot:g.receiptsRoot})}get transactions(){return q(this,x).map(g=>typeof g=="string"?g:g.hash)}get prefetchedTransactions(){const g=q(this,x).slice();return g.length===0?[]:((0,e.assert)(typeof g[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),g)}toJSON(){const{baseFeePerGas:g,difficulty:A,extraData:S,gasLimit:_,gasUsed:k,hash:R,miner:D,prevRandao:B,nonce:M,number:E,parentHash:N,parentBeaconBlockRoot:I,stateRoot:F,receiptsRoot:z,timestamp:U,transactions:V}=this;return{_type:"Block",baseFeePerGas:a(g),difficulty:a(A),extraData:S,gasLimit:a(_),gasUsed:a(k),blobGasUsed:a(this.blobGasUsed),excessBlobGas:a(this.excessBlobGas),hash:R,miner:D,prevRandao:B,nonce:M,number:E,parentHash:N,timestamp:U,parentBeaconBlockRoot:I,stateRoot:F,receiptsRoot:z,transactions:V}}[Symbol.iterator](){let g=0;const A=this.transactions;return{next:()=>g<this.length?{value:A[g++],done:!1}:{value:void 0,done:!0}}}get length(){return q(this,x).length}get date(){return this.timestamp==null?null:new Date(this.timestamp*1e3)}async getTransaction(g){let A;if(typeof g=="number")A=q(this,x)[g];else{const S=g.toLowerCase();for(const _ of q(this,x))if(typeof _=="string"){if(_!==S)continue;A=_;break}else{if(_.hash!==S)continue;A=_;break}}if(A==null)throw new Error("no such tx");return typeof A=="string"?await this.provider.getTransaction(A):A}getPrefetchedTransaction(g){const A=this.prefetchedTransactions;if(typeof g=="number")return A[g];g=g.toLowerCase();for(const S of A)if(S.hash===g)return S;(0,e.assertArgument)(!1,"no matching transaction","indexOrHash",g)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return p(this)}}x=new WeakMap,Ar.Block=l;class c{constructor(g,A){de(this,"provider");de(this,"transactionHash");de(this,"blockHash");de(this,"blockNumber");de(this,"removed");de(this,"address");de(this,"data");de(this,"topics");de(this,"index");de(this,"transactionIndex");this.provider=A;const S=Object.freeze(g.topics.slice());(0,e.defineProperties)(this,{transactionHash:g.transactionHash,blockHash:g.blockHash,blockNumber:g.blockNumber,removed:g.removed,address:g.address,data:g.data,topics:S,index:g.index,transactionIndex:g.transactionIndex})}toJSON(){const{address:g,blockHash:A,blockNumber:S,data:_,index:k,removed:R,topics:D,transactionHash:B,transactionIndex:M}=this;return{_type:"log",address:g,blockHash:A,blockNumber:S,data:_,index:k,removed:R,topics:D,transactionHash:B,transactionIndex:M}}async getBlock(){const g=await this.provider.getBlock(this.blockHash);return(0,e.assert)(!!g,"failed to find transaction","UNKNOWN_ERROR",{}),g}async getTransaction(){const g=await this.provider.getTransaction(this.transactionHash);return(0,e.assert)(!!g,"failed to find transaction","UNKNOWN_ERROR",{}),g}async getTransactionReceipt(){const g=await this.provider.getTransactionReceipt(this.transactionHash);return(0,e.assert)(!!g,"failed to find transaction receipt","UNKNOWN_ERROR",{}),g}removedEvent(){return y(this)}}Ar.Log=c;class u{constructor(g,A){de(this,"provider");de(this,"to");de(this,"from");de(this,"contractAddress");de(this,"hash");de(this,"index");de(this,"blockHash");de(this,"blockNumber");de(this,"logsBloom");de(this,"gasUsed");de(this,"blobGasUsed");de(this,"cumulativeGasUsed");de(this,"gasPrice");de(this,"blobGasPrice");de(this,"type");de(this,"status");de(this,"root");Ce(this,C);se(this,C,Object.freeze(g.logs.map(_=>new c(_,A))));let S=n;g.effectiveGasPrice!=null?S=g.effectiveGasPrice:g.gasPrice!=null&&(S=g.gasPrice),(0,e.defineProperties)(this,{provider:A,to:g.to,from:g.from,contractAddress:g.contractAddress,hash:g.hash,index:g.index,blockHash:g.blockHash,blockNumber:g.blockNumber,logsBloom:g.logsBloom,gasUsed:g.gasUsed,cumulativeGasUsed:g.cumulativeGasUsed,blobGasUsed:g.blobGasUsed,gasPrice:S,blobGasPrice:g.blobGasPrice,type:g.type,status:g.status,root:g.root})}get logs(){return q(this,C)}toJSON(){const{to:g,from:A,contractAddress:S,hash:_,index:k,blockHash:R,blockNumber:D,logsBloom:B,logs:M,status:E,root:N}=this;return{_type:"TransactionReceipt",blockHash:R,blockNumber:D,contractAddress:S,cumulativeGasUsed:a(this.cumulativeGasUsed),from:A,gasPrice:a(this.gasPrice),blobGasUsed:a(this.blobGasUsed),blobGasPrice:a(this.blobGasPrice),gasUsed:a(this.gasUsed),hash:_,index:k,logs:M,logsBloom:B,root:N,status:E,to:g}}get length(){return this.logs.length}[Symbol.iterator](){let g=0;return{next:()=>g<this.length?{value:this.logs[g++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){const g=await this.provider.getBlock(this.blockHash);if(g==null)throw new Error("TODO");return g}async getTransaction(){const g=await this.provider.getTransaction(this.hash);if(g==null)throw new Error("TODO");return g}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return h(this)}reorderedEvent(g){return(0,e.assert)(!g||g.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),m(this,g)}}C=new WeakMap,Ar.TransactionReceipt=u;const w=class w{constructor(g,A){de(this,"provider");de(this,"blockNumber");de(this,"blockHash");de(this,"index");de(this,"hash");de(this,"type");de(this,"to");de(this,"from");de(this,"nonce");
90de(this,"gasLimit");de(this,"gasPrice");de(this,"maxPriorityFeePerGas");de(this,"maxFeePerGas");de(this,"maxFeePerBlobGas");de(this,"data");de(this,"value");de(this,"chainId");de(this,"signature");de(this,"accessList");de(this,"blobVersionedHashes");de(this,"authorizationList");Ce(this,T);this.provider=A,this.blockNumber=g.blockNumber!=null?g.blockNumber:null,this.blockHash=g.blockHash!=null?g.blockHash:null,this.hash=g.hash,this.index=g.index,this.type=g.type,this.from=g.from,this.to=g.to||null,this.gasLimit=g.gasLimit,this.nonce=g.nonce,this.data=g.data,this.value=g.value,this.gasPrice=g.gasPrice,this.maxPriorityFeePerGas=g.maxPriorityFeePerGas!=null?g.maxPriorityFeePerGas:null,this.maxFeePerGas=g.maxFeePerGas!=null?g.maxFeePerGas:null,this.maxFeePerBlobGas=g.maxFeePerBlobGas!=null?g.maxFeePerBlobGas:null,this.chainId=g.chainId,this.signature=g.signature,this.accessList=g.accessList!=null?g.accessList:null,this.blobVersionedHashes=g.blobVersionedHashes!=null?g.blobVersionedHashes:null,this.authorizationList=g.authorizationList!=null?g.authorizationList:null,se(this,T,-1)}toJSON(){const{blockNumber:g,blockHash:A,index:S,hash:_,type:k,to:R,from:D,nonce:B,data:M,signature:E,accessList:N,blobVersionedHashes:I}=this;return{_type:"TransactionResponse",accessList:N,blockNumber:g,blockHash:A,blobVersionedHashes:I,chainId:a(this.chainId),data:M,from:D,gasLimit:a(this.gasLimit),gasPrice:a(this.gasPrice),hash:_,maxFeePerGas:a(this.maxFeePerGas),maxPriorityFeePerGas:a(this.maxPriorityFeePerGas),maxFeePerBlobGas:a(this.maxFeePerBlobGas),nonce:B,signature:E,to:R,index:S,type:k,value:a(this.value)}}async getBlock(){let g=this.blockNumber;if(g==null){const S=await this.getTransaction();S&&(g=S.blockNumber)}if(g==null)return null;const A=this.provider.getBlock(g);if(A==null)throw new Error("TODO");return A}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(this.blockNumber==null){const{tx:A,blockNumber:S}=await(0,e.resolveProperties)({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return A==null||A.blockNumber==null?0:S-A.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(g,A){const S=g??1,_=A??0;let k=q(this,T),R=-1,D=k===-1;const B=async()=>{if(D)return null;const{blockNumber:I,nonce:F}=await(0,e.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(F<this.nonce){k=I;return}if(D)return null;const z=await this.getTransaction();if(!(z&&z.blockNumber!=null))for(R===-1&&(R=k-3,R<q(this,T)&&(R=q(this,T)));R<=I;){if(D)return null;const U=await this.provider.getBlock(R,!0);if(U==null)return;for(const V of U)if(V===this.hash)return;for(let V=0;V<U.length;V++){const $=await U.getTransaction(V);if($.from===this.from&&$.nonce===this.nonce){if(D)return null;const O=await this.provider.getTransactionReceipt($.hash);if(O==null||I-O.blockNumber+1<S)return;let H="replaced";$.data===this.data&&$.to===this.to&&$.value===this.value?H="repriced":$.data==="0x"&&$.from===$.to&&$.value===n&&(H="cancelled"),(0,e.assert)(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:H==="replaced"||H==="cancelled",reason:H,replacement:$.replaceableTransaction(k),hash:$.hash,receipt:O})}}R++}},M=I=>{if(I==null||I.status!==0)return I;(0,e.assert)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:I.to,from:I.from,data:""},receipt:I})},E=await this.provider.getTransactionReceipt(this.hash);if(S===0)return M(E);if(E){if(await E.confirmations()>=S)return M(E)}else if(await B(),S===0)return null;return await new Promise((I,F)=>{const z=[],U=()=>{z.forEach($=>$())};if(z.push(()=>{D=!0}),_>0){const $=setTimeout(()=>{U(),F((0,e.makeError)("wait for transaction timeout","TIMEOUT"))},_);z.push(()=>{clearTimeout($)})}const V=async $=>{if(await $.confirmations()>=S){U();try{I(M($))}catch(O){F(O)}}};if(z.push(()=>{this.provider.off(this.hash,V)}),this.provider.on(this.hash,V),k>=0){const $=async()=>{try{await B()}catch(O){if((0,e.isError)(O,"TRANSACTION_REPLACED")){U(),F(O);return}}D||this.provider.once("block",$)};z.push(()=>{this.provider.off("block",$)}),this.provider.once("block",$)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}removedEvent(){return(0,e.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),h(this)}reorderedEvent(g){return(0,e.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,e.assert)(!g||g.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),m(this,g)}replaceableTransaction(g){(0,e.assertArgument)(Number.isInteger(g)&&g>=0,"invalid startBlock","startBlock",g);const A=new w(this,this.provider);return se(A,T,g),A}};T=new WeakMap;let f=w;Ar.TransactionResponse=f;function p(v){return{orphan:"drop-block",hash:v.hash,number:v.number}}function m(v,g){return{orphan:"reorder-transaction",tx:v,other:g}}function h(v){return{orphan:"drop-transaction",tx:v}}function y(v){return{orphan:"drop-log",log:{transactionHash:v.transactionHash,blockHash:v.blockHash,blockNumber:v.blockNumber,address:v.address,data:v.data,topics:Object.freeze(v.topics.slice()),index:v.index}}}return Ar}var Pr={},y_;function XL(){var c,u;if(y_)return Pr;
90y_=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.ContractEventPayload=Pr.ContractUnknownEventPayload=Pr.ContractTransactionResponse=Pr.ContractTransactionReceipt=Pr.UndecodedEventLog=Pr.EventLog=void 0;const e=Tm(),t=at();class n extends e.Log{constructor(m,h,y){super(m,m.provider);de(this,"interface");de(this,"fragment");de(this,"args");const x=h.decodeEventLog(y,m.data,m.topics);(0,t.defineProperties)(this,{args:x,fragment:y,interface:h})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}Pr.EventLog=n;class r extends e.Log{constructor(m,h){super(m,m.provider);de(this,"error");(0,t.defineProperties)(this,{error:h})}}Pr.UndecodedEventLog=r;class a extends e.TransactionReceipt{constructor(m,h,y){super(y,h);Ce(this,c);se(this,c,m)}get logs(){return super.logs.map(m=>{const h=m.topics.length?q(this,c).getEvent(m.topics[0]):null;if(h)try{return new n(m,q(this,c),h)}catch(y){return new r(m,y)}return m})}}c=new WeakMap,Pr.ContractTransactionReceipt=a;class s extends e.TransactionResponse{constructor(m,h,y){super(y,h);Ce(this,u);se(this,u,m)}async wait(m,h){const y=await super.wait(m,h);return y==null?null:new a(q(this,u),this.provider,y)}}u=new WeakMap,Pr.ContractTransactionResponse=s;class i extends t.EventPayload{constructor(m,h,y,x){super(m,h,y);de(this,"log");(0,t.defineProperties)(this,{log:x})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}Pr.ContractUnknownEventPayload=i;class l extends i{constructor(p,m,h,y,x){super(p,m,h,new n(x,p.interface,y));const C=p.interface.decodeEventLog(y,this.log.data,this.log.topics);(0,t.defineProperties)(this,{args:C,fragment:y})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}return Pr.ContractEventPayload=l,Pr}var b_;function YL(){var U,V;if(b_)return ss;b_=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.Contract=ss.BaseContract=ss.resolveArgs=ss.copyOverrides=void 0;const e=Pm(),t=Hn(),n=Tm(),r=at(),a=XL(),s=BigInt(0);function i(O){return O&&typeof O.call=="function"}function l(O){return O&&typeof O.estimateGas=="function"}function c(O){return O&&typeof O.resolveName=="function"}function u(O){return O&&typeof O.sendTransaction=="function"}function f(O){if(O!=null){if(c(O))return O;if(O.provider)return O.provider}}class p{constructor(H,Z,ee){Ce(this,U);de(this,"fragment");if((0,r.defineProperties)(this,{fragment:Z}),Z.inputs.length<ee.length)throw new Error("too many arguments");const ae=m(H.runner,"resolveName"),ie=c(ae)?ae:null;se(this,U,(async function(){const fe=await Promise.all(Z.inputs.map((le,xe)=>ee[xe]==null?null:le.walkAsync(ee[xe],(De,Se)=>De==="address"?Array.isArray(Se)?Promise.all(Se.map(ke=>(0,t.resolveAddress)(ke,ie))):(0,t.resolveAddress)(Se,ie):Se)));return H.interface.encodeFilterTopics(Z,fe)})())}getTopicFilter(){return q(this,U)}}U=new WeakMap;function m(O,H){return O==null?null:typeof O[H]=="function"?O:O.provider&&typeof O.provider[H]=="function"?O.provider:null}function h(O){return O==null?null:O.provider||null}async function y(O,H){const Z=e.Typed.dereference(O,"overrides");(0,r.assertArgument)(typeof Z=="object","invalid overrides parameter","overrides",O);const ee=(0,n.copyRequest)(Z);return(0,r.assertArgument)(ee.to==null||(H||[]).indexOf("to")>=0,"cannot override to","overrides.to",ee.to),(0,r.assertArgument)(ee.data==null||(H||[]).indexOf("data")>=0,"cannot override data","overrides.data",ee.data),ee.from&&(ee.from=ee.from),ee}ss.copyOverrides=y;async function x(O,H,Z){const ee=m(O,"resolveName"),ae=c(ee)?ee:null;return await Promise.all(H.map((ie,fe)=>ie.walkAsync(Z[fe],(le,xe)=>(xe=e.Typed.dereference(xe,le),le==="address"?(0,t.resolveAddress)(xe,ae):xe))))}ss.resolveArgs=x;function C(O){const H=async function(fe){const le=await y(fe,["data"]);le.to=await O.getAddress(),le.from&&(le.from=await(0,t.resolveAddress)(le.from,f(O.runner)));const xe=O.interface,he=(0,r.getBigInt)(le.value||s,"overrides.value")===s,De=(le.data||"0x")==="0x";xe.fallback&&!xe.fallback.payable&&xe.receive&&!De&&!he&&(0,r.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",fe),(0,r.assertArgument)(xe.fallback||De,"cannot send data to receive-only contract","overrides.data",le.data);const Se=xe.receive||xe.fallback&&xe.fallback.payable;return(0,r.assertArgument)(Se||he,"cannot send value to non-payable fallback","overrides.value",le.value),(0,r.assertArgument)(xe.fallback||De,"cannot send data to receive-only contract","overrides.data",le.data),le},Z=async function(fe){const le=m(O.runner,"call");(0,r.assert)(i(le),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const xe=await H(fe);try{return await le.call(xe)}catch(he){throw(0,r.isCallException)(he)&&he.data?O.interface.makeError(he.data,xe):he}},ee=async function(fe){const le=O.runner;(0,r.assert)(u(le),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const xe=await le.sendTransaction(await H(fe)),he=h(O.runner);return new a.ContractTransactionResponse(O.interface,he,xe)},ae=async function(fe){const le=m(O.runner,"estimateGas");return(0,r.assert)(l(le),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await le.estimateGas(await H(fe))},ie=async fe=>await ee(fe);return(0,r.defineProperties)(ie,{_contract:O,estimateGas:ae,populateTransaction:H,send:ee,staticCall:Z}),ie}function T(O,H){const Z=function(...he){const De=O.interface.getFunction(H,he);return(0,r.assert)(De,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:H,args:he}}),De},ee=async function(...he){const De=Z(...he);let Se={};
90if(De.inputs.length+1===he.length&&(Se=await y(he.pop()),Se.from&&(Se.from=await(0,t.resolveAddress)(Se.from,f(O.runner)))),De.inputs.length!==he.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const ke=await x(O.runner,De.inputs,he);return Object.assign({},Se,await(0,r.resolveProperties)({to:O.getAddress(),data:O.interface.encodeFunctionData(De,ke)}))},ae=async function(...he){const De=await le(...he);return De.length===1?De[0]:De},ie=async function(...he){const De=O.runner;(0,r.assert)(u(De),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const Se=await De.sendTransaction(await ee(...he)),ke=h(O.runner);return new a.ContractTransactionResponse(O.interface,ke,Se)},fe=async function(...he){const De=m(O.runner,"estimateGas");return(0,r.assert)(l(De),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await De.estimateGas(await ee(...he))},le=async function(...he){const De=m(O.runner,"call");(0,r.assert)(i(De),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const Se=await ee(...he);let ke="0x";try{ke=await De.call(Se)}catch(J){throw(0,r.isCallException)(J)&&J.data?O.interface.makeError(J.data,Se):J}const ge=Z(...he);return O.interface.decodeFunctionResult(ge,ke)},xe=async(...he)=>Z(...he).constant?await ae(...he):await ie(...he);return(0,r.defineProperties)(xe,{name:O.interface.getFunctionName(H),_contract:O,_key:H,getFragment:Z,estimateGas:fe,populateTransaction:ee,send:ie,staticCall:ae,staticCallResult:le}),Object.defineProperty(xe,"fragment",{configurable:!1,enumerable:!0,get:()=>{const he=O.interface.getFunction(H);return(0,r.assert)(he,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:H}}),he}}),xe}function w(O,H){const Z=function(...ae){const ie=O.interface.getEvent(H,ae);return(0,r.assert)(ie,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:H,args:ae}}),ie},ee=function(...ae){return new p(O,Z(...ae),ae)};return(0,r.defineProperties)(ee,{name:O.interface.getEventName(H),_contract:O,_key:H,getFragment:Z}),Object.defineProperty(ee,"fragment",{configurable:!1,enumerable:!0,get:()=>{const ae=O.interface.getEvent(H);return(0,r.assert)(ae,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:H}}),ae}}),ee}const v=Symbol.for("_ethersInternal_contract"),g=new WeakMap;function A(O,H){g.set(O[v],H)}function S(O){return g.get(O[v])}function _(O){return O&&typeof O=="object"&&"getTopicFilter"in O&&typeof O.getTopicFilter=="function"&&O.fragment}async function k(O,H){let Z,ee=null;if(Array.isArray(H)){const ie=function(fe){if((0,r.isHexString)(fe,32))return fe;const le=O.interface.getEvent(fe);return(0,r.assertArgument)(le,"unknown fragment","name",fe),le.topicHash};Z=H.map(fe=>fe==null?null:Array.isArray(fe)?fe.map(ie):ie(fe))}else H==="*"?Z=[null]:typeof H=="string"?(0,r.isHexString)(H,32)?Z=[H]:(ee=O.interface.getEvent(H),(0,r.assertArgument)(ee,"unknown fragment","event",H),Z=[ee.topicHash]):_(H)?Z=await H.getTopicFilter():"fragment"in H?(ee=H.fragment,Z=[ee.topicHash]):(0,r.assertArgument)(!1,"unknown event name","event",H);Z=Z.map(ie=>{if(ie==null)return null;if(Array.isArray(ie)){const fe=Array.from(new Set(ie.map(le=>le.toLowerCase())).values());return fe.length===1?fe[0]:(fe.sort(),fe)}return ie.toLowerCase()});const ae=Z.map(ie=>ie==null?"null":Array.isArray(ie)?ie.join("|"):ie).join("&");return{fragment:ee,tag:ae,topics:Z}}async function R(O,H){const{subs:Z}=S(O);return Z.get((await k(O,H)).tag)||null}async function D(O,H,Z){const ee=h(O.runner);(0,r.assert)(ee,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:H});const{fragment:ae,tag:ie,topics:fe}=await k(O,Z),{addr:le,subs:xe}=S(O);let he=xe.get(ie);if(!he){const Se={address:le||O,topics:fe},ke=re=>{let ce=ae;if(ce==null)try{ce=O.interface.getEvent(re.topics[0])}catch{}if(ce){const Me=ce,Ze=ae?O.interface.decodeEventLog(ae,re.data,re.topics):[];E(O,Z,Ze,ue=>new a.ContractEventPayload(O,ue,Z,Me,re))}else E(O,Z,[],Me=>new a.ContractUnknownEventPayload(O,Me,Z,re))};let ge=[];he={tag:ie,listeners:[],start:()=>{ge.length||ge.push(ee.on(Se,ke))},stop:async()=>
90{if(ge.length==0)return;let re=ge;ge=[],await Promise.all(re),ee.off(Se,ke)}},xe.set(ie,he)}return he}let B=Promise.resolve();async function M(O,H,Z,ee){await B;const ae=await R(O,H);if(!ae)return!1;const ie=ae.listeners.length;return ae.listeners=ae.listeners.filter(({listener:fe,once:le})=>{const xe=Array.from(Z);ee&&xe.push(ee(le?null:fe));try{fe.call(O,...xe)}catch{}return!le}),ae.listeners.length===0&&(ae.stop(),S(O).subs.delete(ae.tag)),ie>0}async function E(O,H,Z,ee){try{await B}catch{}const ae=M(O,H,Z,ee);return B=ae,await ae}const N=["then"];V=v;const $=class ${constructor(H,Z,ee,ae){de(this,"target");de(this,"interface");de(this,"runner");de(this,"filters");de(this,V);de(this,"fallback");(0,r.assertArgument)(typeof H=="string"||(0,t.isAddressable)(H),"invalid value for Contract target","target",H),ee==null&&(ee=null);const ie=e.Interface.from(Z);(0,r.defineProperties)(this,{target:H,runner:ee,interface:ie}),Object.defineProperty(this,v,{value:{}});let fe,le=null,xe=null;if(ae){const Se=h(ee);xe=new a.ContractTransactionResponse(this.interface,Se,ae)}let he=new Map;if(typeof H=="string")if((0,r.isHexString)(H))le=H,fe=Promise.resolve(H);else{const Se=m(ee,"resolveName");if(!c(Se))throw(0,r.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});fe=Se.resolveName(H).then(ke=>{if(ke==null)throw(0,r.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:H});return S(this).addr=ke,ke})}else fe=H.getAddress().then(Se=>{if(Se==null)throw new Error("TODO");return S(this).addr=Se,Se});A(this,{addrPromise:fe,addr:le,deployTx:xe,subs:he});const De=new Proxy({},{get:(Se,ke,ge)=>{if(typeof ke=="symbol"||N.indexOf(ke)>=0)return Reflect.get(Se,ke,ge);try{return this.getEvent(ke)}catch(J){if(!(0,r.isError)(J,"INVALID_ARGUMENT")||J.argument!=="key")throw J}},has:(Se,ke)=>N.indexOf(ke)>=0?Reflect.has(Se,ke):Reflect.has(Se,ke)||this.interface.hasEvent(String(ke))});return(0,r.defineProperties)(this,{filters:De}),(0,r.defineProperties)(this,{fallback:ie.receive||ie.fallback?C(this):null}),new Proxy(this,{get:(Se,ke,ge)=>{if(typeof ke=="symbol"||ke in Se||N.indexOf(ke)>=0)return Reflect.get(Se,ke,ge);try{return Se.getFunction(ke)}catch(J){if(!(0,r.isError)(J,"INVALID_ARGUMENT")||J.argument!=="key")throw J}},has:(Se,ke)=>typeof ke=="symbol"||ke in Se||N.indexOf(ke)>=0?Reflect.has(Se,ke):Se.interface.hasFunction(ke)})}connect(H){return new $(this.target,this.interface,H)}attach(H){return new $(H,this.interface,this.runner)}async getAddress(){return await S(this).addrPromise}async getDeployedCode(){const H=h(this.runner);(0,r.assert)(H,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const Z=await H.getCode(await this.getAddress());return Z==="0x"?null:Z}async waitForDeployment(){const H=this.deploymentTransaction();if(H)return await H.wait(),this;if(await this.getDeployedCode()!=null)return this;const ee=h(this.runner);return(0,r.assert)(ee!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((ae,ie)=>{const fe=async()=>{try{if(await this.getDeployedCode()!=null)return ae(this);ee.once("block",fe)}catch(le){ie(le)}};fe()})}deploymentTransaction(){return S(this).deployTx}getFunction(H){return typeof H!="string"&&(H=H.format()),T(this,H)}getEvent(H){return typeof H!="string"&&(H=H.format()),w(this,H)}async queryTransaction(H){throw new Error("@TODO")}async queryFilter(H,Z,ee){Z==null&&(Z=0),ee==null&&(ee="latest");const{addr:ae,addrPromise:ie}=S(this),fe=ae||await ie,{fragment:le,topics:xe}=await k(this,H),he={address:fe,topics:xe,fromBlock:Z,toBlock:ee},De=h(this.runner);return(0,r.assert)(De,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await De.getLogs(he)).map(Se=>{let ke=le;if(ke==null)try{ke=this.interface.getEvent(Se.topics[0])}catch{}if(ke)try{return new a.EventLog(Se,this.interface,ke)}catch(ge){return new a.UndecodedEventLog(Se,ge)}return new n.Log(Se,De)})}async on(H,Z){const ee=await D(this,"on",H);return ee.listeners.push({listener:Z,once:!1}),ee.start(),this}async once(H,Z){const ee=await D(this,"once",H);return ee.listeners.push({listener:Z,once:!0}),ee.start(),this}async emit(H,...Z){return await E(this,H,Z,null)}
90async listenerCount(H){if(H){const ae=await R(this,H);return ae?ae.listeners.length:0}const{subs:Z}=S(this);let ee=0;for(const{listeners:ae}of Z.values())ee+=ae.length;return ee}async listeners(H){if(H){const ae=await R(this,H);return ae?ae.listeners.map(({listener:ie})=>ie):[]}const{subs:Z}=S(this);let ee=[];for(const{listeners:ae}of Z.values())ee=ee.concat(ae.map(({listener:ie})=>ie));return ee}async off(H,Z){const ee=await R(this,H);if(!ee)return this;if(Z){const ae=ee.listeners.map(({listener:ie})=>ie).indexOf(Z);ae>=0&&ee.listeners.splice(ae,1)}return(Z==null||ee.listeners.length===0)&&(ee.stop(),S(this).subs.delete(ee.tag)),this}async removeAllListeners(H){if(H){const Z=await R(this,H);if(!Z)return this;Z.stop(),S(this).subs.delete(Z.tag)}else{const{subs:Z}=S(this);for(const{tag:ee,stop:ae}of Z.values())ae(),Z.delete(ee)}return this}async addListener(H,Z){return await this.on(H,Z)}async removeListener(H,Z){return await this.off(H,Z)}static buildClass(H){class Z extends ${constructor(ae,ie=null){super(ae,H,ie)}}return Z}static from(H,Z,ee){return ee==null&&(ee=null),new this(H,Z,ee)}};let I=$;ss.BaseContract=I;function F(){return I}class z extends F(){}return ss.Contract=z,ss}var Xf={},g_;function _le(){if(g_)return Xf;g_=1,Object.defineProperty(Xf,"__esModule",{value:!0}),Xf.ContractFactory=void 0;const e=Pm(),t=Hn(),n=at(),r=YL();class a{constructor(i,l,c){de(this,"interface");de(this,"bytecode");de(this,"runner");const u=e.Interface.from(i);l instanceof Uint8Array||(typeof l=="object"&&(l=l.object),l.startsWith("0x")||(l="0x"+l)),l=(0,n.hexlify)((0,n.getBytes)(l)),(0,n.defineProperties)(this,{bytecode:l,interface:u,runner:c||null})}attach(i){return new r.BaseContract(i,this.interface,this.runner)}async getDeployTransaction(...i){let l={};const c=this.interface.deploy;if(c.inputs.length+1===i.length&&(l=await(0,r.copyOverrides)(i.pop())),c.inputs.length!==i.length)throw new Error("incorrect number of arguments to constructor");const u=await(0,r.resolveArgs)(this.runner,c.inputs,i),f=(0,n.concat)([this.bytecode,this.interface.encodeDeploy(u)]);return Object.assign({},l,{data:f})}async deploy(...i){const l=await this.getDeployTransaction(...i);(0,n.assert)(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await this.runner.sendTransaction(l),u=(0,t.getCreateAddress)(c);return new r.BaseContract(u,this.interface,this.runner,c)}connect(i){return new a(this.interface,this.bytecode,i)}static fromSolidity(i,l){(0,n.assertArgument)(i!=null,"bad compiler output","output",i),typeof i=="string"&&(i=JSON.parse(i));const c=i.abi;let u="";return i.bytecode?u=i.bytecode:i.evm&&i.evm.bytecode&&(u=i.evm.bytecode),new this(c,u,l)}}return Xf.ContractFactory=a,Xf}var x_;function O1(){return x_||(x_=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UndecodedEventLog=e.EventLog=e.ContractTransactionResponse=e.ContractTransactionReceipt=e.ContractUnknownEventPayload=e.ContractEventPayload=e.ContractFactory=e.Contract=e.BaseContract=void 0;var t=YL();Object.defineProperty(e,"BaseContract",{enumerable:!0,get:function(){return t.BaseContract}}),Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return t.Contract}});var n=_le();Object.defineProperty(e,"ContractFactory",{enumerable:!0,get:function(){return n.ContractFactory}});var r=XL();Object.defineProperty(e,"ContractEventPayload",{enumerable:!0,get:function(){return r.ContractEventPayload}}),Object.defineProperty(e,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return r.ContractUnknownEventPayload}}),Object.defineProperty(e,"ContractTransactionReceipt",{enumerable:!0,get:function(){return r.ContractTransactionReceipt}}),Object.defineProperty(e,"ContractTransactionResponse",{enumerable:!0,get:function(){return r.ContractTransactionResponse}}),Object.defineProperty(e,"EventLog",{enumerable:!0,get:function(){return r.EventLog}}),Object.defineProperty(e,"UndecodedEventLog",{enumerable:!0,get:function(){return r.UndecodedEventLog}})})(lw)),lw}var cw={},zl={},pi={},v_;function t$(){var m,h,y,Tu,C,e$;if(v_)return pi;v_=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.EnsResolver=pi.BasicMulticoinProviderPlugin=pi.MulticoinProviderPlugin=void 0;const e=Hn(),t=Am(),n=O1(),r=Ki(),a=at();function s(v){return v.match(/^ipfs:\/\/ipfs\//i)?v=v.substring(12):v.match(/^ipfs:\/\//i)?v=v.substring(7):(0,a.assertArgument)(!1,"unsupported IPFS format","link",v),`https://gateway.ipfs.io/ipfs/${v}`}class i{constructor(g){de(this,"name");(0,a.defineProperties)(this,{name:g})}connect(g){return this}supportsCoinType(g){return!1}async encodeAddress(g,A){throw new Error("unsupported coin")}async decodeAddress(g,A){throw new Error("unsupported coin")}}pi.MulticoinProviderPlugin=i;const l="org.ethers.plugins.provider.BasicMulticoin";class c extends i{constructor(){super(l)}}pi.BasicMulticoinProviderPlugin=c;const u=new RegExp("^(ipfs)://(.*)$","i"),f=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),u,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")],w=class w{constructor(g,A,S){Ce(this,y);de(this,"provider");de(this,"address");de(this,"name");Ce(this,m);Ce(this,h);(0,a.defineProperties)(this,{provider:g,address:A,name:S}),se(this,m,null),se(this,h,new n.Contract(A,["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)"],g))}async supportsWildcard(){return q(this,m)==null&&se(this,m,(async()=>{try{return await q(this,h).supportsInterface("0x9061b923")}catch(g){if((0,a.isError)(g,"CALL_EXCEPTION"))return!1;throw se(this,m,null),g}})()),await q(this,m)}async getAddress(g){if(g==null&&(g=60),g===60)try{const k=await je(this,y,Tu).call(this,"addr(bytes32)");return k==null||k===t.ZeroAddress?null:k}catch(k){if((0,a.isError)(k,"CALL_EXCEPTION"))return null;throw k}if(g>=0&&g<2147483648){let k=g+2147483648;const R=await je(this,y,Tu).call(this,"addr(bytes32,uint)",[k]);if((0,a.isHexString)(R,20))return(0,e.getAddress)(R)}let A=null;for(const k of this.provider.plugins)if(k instanceof i&&k.supportsCoinType(g)){A=k;break}if(A==null)return null;const S=await je(this,y,Tu).call(this,"addr(bytes32,uint)",[g]);if(S==null||S==="0x")return null;const _=await A.decodeAddress(g,S);if(_!=null)return _;(0,a.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${g})`,info:{coinType:g,data:S}})}async getText(g){const A=await je(this,y,Tu).call(this,"text(bytes32,string)",[g]);return A==null||A==="0x"?null:A}async getContentHash(){const g=await je(this,y,Tu).call(this,"contenthash(bytes32)");if(g==null||g==="0x")return null;const A=g.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(A){const _=A[1]==="e3010170"?"ipfs":"ipns",k=parseInt(A[4],16);if(A[5].length===k*2)return`${_}://${(0,a.encodeBase58)("0x"+A[2])}`}const S=g.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(S&&S[1].length===64)return`bzz://${S[1]}`;(0,a.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:g}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const g=[{type:"name",value:this.name}];try{const A=await this.getText("avatar");if(A==null)return g.push({type:"!avatar",value:""}),{url:null,linkage:g};g.push({type:"avatar",value:A});for(let S=0;S<f.length;S++){const _=A.match(f[S]);if(_==null)continue;
90const k=_[1].toLowerCase();switch(k){case"https":case"data":return g.push({type:"url",value:A}),{linkage:g,url:A};case"ipfs":{const R=s(A);return g.push({type:"ipfs",value:A}),g.push({type:"url",value:R}),{linkage:g,url:R}}case"erc721":case"erc1155":{const R=k==="erc721"?"tokenURI(uint256)":"uri(uint256)";g.push({type:k,value:A});const D=await this.getAddress();if(D==null)return g.push({type:"!owner",value:""}),{url:null,linkage:g};const B=(_[2]||"").split("/");if(B.length!==2)return g.push({type:`!${k}caip`,value:_[2]||""}),{url:null,linkage:g};const M=B[1],E=new n.Contract(B[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if(k==="erc721"){const U=await E.ownerOf(M);if(D!==U)return g.push({type:"!owner",value:U}),{url:null,linkage:g};g.push({type:"owner",value:U})}else if(k==="erc1155"){const U=await E.balanceOf(D,M);if(!U)return g.push({type:"!balance",value:"
900"}),{url:null,linkage:g};g.push({type:"balance",value:U.toString()})}let N=await E[R](M);if(N==null||N==="0x")return g.push({type:"!metadata-url",value:""}),{url:null,linkage:g};g.push({type:"metadata-url-base",value:N}),k==="erc1155"&&(N=N.replace("{id}",(0,a.toBeHex)(M,32).substring(2)),g.push({type:"metadata-url-expanded",value:N})),N.match(/^ipfs:/i)&&(N=s(N)),g.push({type:"metadata-url",value:N});let I={};const F=await new a.FetchRequest(N).send();F.assertOk();try{I=F.bodyJson}catch{try{g.push({type:"!metadata",value:F.bodyText})}catch{const $=F.body;return $&&g.push({type:"!metadata",value:(0,a.hexlify)($)}),{url:null,linkage:g}}return{url:null,linkage:g}}if(!I)return g.push({type:"!metadata",value:""}),{url:null,linkage:g};g.push({type:"metadata",value:JSON.stringify(I)});let z=I.image;if(typeof z!="string")return g.push({type:"!imageUrl",value:""}),{url:null,linkage:g};if(!z.match(/^(https:\/\/|data:)/i)){if(z.match(u)==null)return g.push({type:"!imageUrl-ipfs",value:z}),{url:null,linkage:g};g.push({type:"imageUrl-ipfs",value:z}),z=s(z)}return g.push({type:"url",value:z}),{linkage:g,url:z}}}}}catch{}return{linkage:g,url:null}}static async getEnsAddress(g){const A=await g.getNetwork(),S=A.getPlugin("org.ethers.plugins.network.Ens");return(0,a.assert)(S,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:A}}),S.address}static async fromName(g,A){var _;let S=A;for(;;){if(S===""||S==="."||A!=="eth"&&S==="eth")return null;const k=await je(_=w,C,e$).call(_,g,S);if(k!=null){const R=new w(g,k,A);return S!==A&&!await R.supportsWildcard()?null:R}S=S.split(".").slice(1).join(".")}}};m=new WeakMap,h=new WeakMap,y=new WeakSet,Tu=async function(g,A){A=(A||[]).slice();const S=q(this,h).interface;A.unshift((0,r.namehash)(this.name));let _=null;await this.supportsWildcard()&&(_=S.getFunction(g),(0,a.assert)(_,"missing fragment","UNKNOWN_ERROR",{info:{funcName:g}}),A=[(0,r.dnsEncode)(this.name,255),S.encodeFunctionData(_,A)],g="resolve(bytes,bytes)"),A.push({enableCcipRead:!0});try{const k=await q(this,h)[g](...A);return _?S.decodeFunctionResult(_,k)[0]:k}catch(k){if(!(0,a.isError)(k,"CALL_EXCEPTION"))throw k}return null},C=new WeakSet,e$=async function(g,A){const S=await w.getEnsAddress(g);try{const k=await new n.Contract(S,["function resolver(bytes32) view returns (address)"],g).resolver((0,r.namehash)(A),{enableCcipRead:!0});return k===t.ZeroAddress?null:k}catch(_){throw _}return null},Ce(w,C);let p=w;return pi.EnsResolver=p,pi}var cn={},w_;function Ile(){if(w_)return cn;w_=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.formatTransactionResponse=cn.formatTransactionReceipt=cn.formatReceiptLog=cn.formatBlock=cn.formatLog=cn.formatUint256=cn.formatHash=cn.formatData=cn.formatBoolean=cn.object=cn.arrayOf=cn.allowNull=void 0;const e=Hn(),t=Xn(),n=sa(),r=at(),a=BigInt(0);function s(A,S){return(function(_){return _==null?S:A(_)})}cn.allowNull=s;function i(A,S){return(_=>{if(S&&_==null)return null;if(!Array.isArray(_))throw new Error("not an array");return _.map(k=>A(k))})}cn.arrayOf=i;function l(A,S){return(_=>{const k={};for(const R in A){let D=R;if(S&&R in S&&!(D in _)){for(const B of S[R])if(B in _){D=B;break}}try{const B=A[R](_[D]);B!==void 0&&(k[R]=B)}catch(B){const M=B instanceof Error?B.message:"not-an-error";(0,r.assert)(!1,`invalid value for value.${R} (${M})`,"BAD_DATA",{value:_})}}return k})}cn.object=l;function c(A){switch(A){case!0:case"true":return!0;case!1:case"false":return!1}(0,r.assertArgument)(!1,`invalid boolean; ${JSON.stringify(A)}`,"value",A)}cn.formatBoolean=c;function u(A){return(0,r.assertArgument)((0,r.isHexString)(A,!0),"invalid data","value",A),A}cn.formatData=u;function f(A){return(0,r.assertArgument)((0,r.isHexString)(A,32),"invalid hash","value",A),A}cn.formatHash=f;function p(A){if(!(0,r.isHexString)(A))throw new Error("invalid uint256");return(0,r.zeroPadValue)(A,32)}cn.formatUint256=p;const m=l({address:e.getAddress,blockHash:f,blockNumber:r.getNumber,data:u,index:r.getNumber,removed:s(c,!1),topics:i(f),transactionHash:f,transactionIndex:r.getNumber},{index:["logIndex"]});function h(A){return m(A)}cn.formatLog=h;const y=l({hash:s(f),parentHash:f,parentBeaconBlockRoot:s(f,null),number:r.getNumber,timestamp:r.getNumber,nonce:s(u),difficulty:r.getBigInt,gasLimit:r.getBigInt,gasUsed:r.getBigInt,stateRoot:s(f,null),receiptsRoot:s(f,null),blobGasUsed:s(r.getBigInt,null),excessBlobGas:s(r.getBigInt,null),miner:s(e.getAddress),prevRandao:s(f,null),extraData:u,baseFeePerGas:s(r.getBigInt)},{prevRandao:["mixHash"]});function x(A){const S=y(A);return S.transactions=A.transactions.map(_=>typeof _=="string"?_:g(_)),S}cn.formatBlock=x;const C=l({transactionIndex:r.getNumber,blockNumber:r.getNumber,transactionHash:f,address:e.getAddress,topics:i(f),data:u,index:r.getNumber,blockHash:f},{index:["logIndex"]});function T(A){return C(A)}cn.formatReceiptLog=T;
90const w=l({to:s(e.getAddress,null),from:s(e.getAddress,null),contractAddress:s(e.getAddress,null),index:r.getNumber,root:s(r.hexlify),gasUsed:r.getBigInt,blobGasUsed:s(r.getBigInt,null),logsBloom:s(u),blockHash:f,hash:f,logs:i(T),blockNumber:r.getNumber,cumulativeGasUsed:r.getBigInt,effectiveGasPrice:s(r.getBigInt),blobGasPrice:s(r.getBigInt,null),status:s(r.getNumber),type:s(r.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function v(A){return w(A)}cn.formatTransactionReceipt=v;function g(A){A.to&&(0,r.getBigInt)(A.to)===a&&(A.to="0x0000000000000000000000000000000000000000");const S=l({hash:f,index:s(r.getNumber,void 0),type:_=>_==="0x"||_==null?0:(0,r.getNumber)(_),accessList:s(n.accessListify,null),blobVersionedHashes:s(i(f,!0),null),authorizationList:s(i(_=>({address:(0,e.getAddress)(_.address),chainId:(0,r.getBigInt)(_.chainId),nonce:(0,r.getBigInt)(_.nonce),signature:t.Signature.from(_.signature?_.signature:_)}),!1),null),blockHash:s(f,null),blockNumber:s(r.getNumber,null),transactionIndex:s(r.getNumber,null),from:e.getAddress,gasPrice:s(r.getBigInt),maxPriorityFeePerGas:s(r.getBigInt),maxFeePerGas:s(r.getBigInt),maxFeePerBlobGas:s(r.getBigInt,null),gasLimit:r.getBigInt,to:s(e.getAddress,null),value:r.getBigInt,nonce:r.getNumber,data:u,creates:s(e.getAddress,null),chainId:s(r.getBigInt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(A);if(S.to==null&&S.creates==null&&(S.creates=(0,e.getCreateAddress)(S)),(A.type===1||A.type===2)&&A.accessList==null&&(S.accessList=[]),A.signature?S.signature=t.Signature.from(A.signature):S.signature=t.Signature.from(A),S.chainId==null){const _=S.signature.legacyChainId;_!=null&&(S.chainId=_)}return S.blockHash&&(0,r.getBigInt)(S.blockHash)===a&&(S.blockHash=null),S}return cn.formatTransactionResponse=g,cn}var Yf={},xa={},E_;function mE(){var c,f,p;if(E_)return xa;E_=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.FetchUrlFeeDataNetworkPlugin=xa.FeeDataNetworkPlugin=xa.EnsPlugin=xa.GasCostPlugin=xa.NetworkPlugin=void 0;const e=Mc(),t=at(),n="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class r{constructor(h){de(this,"name");(0,e.defineProperties)(this,{name:h})}clone(){return new r(this.name)}}xa.NetworkPlugin=r;class a extends r{constructor(y,x){y==null&&(y=0);super(`org.ethers.network.plugins.GasCost#${y||0}`);de(this,"effectiveBlock");de(this,"txBase");de(this,"txCreate");de(this,"txDataZero");de(this,"txDataNonzero");de(this,"txAccessListStorageKey");de(this,"txAccessListAddress");const C={effectiveBlock:y};function T(w,v){let g=(x||{})[w];g==null&&(g=v),(0,t.assertArgument)(typeof g=="number",`invalud value for ${w}`,"costs",x),C[w]=g}T("txBase",21e3),T("txCreate",32e3),T("txDataZero",4),T("txDataNonzero",16),T("txAccessListStorageKey",1900),T("txAccessListAddress",2400),(0,e.defineProperties)(this,C)}clone(){return new a(this.effectiveBlock,this)}}xa.GasCostPlugin=a;class s extends r{constructor(y,x){super("org.ethers.plugins.network.Ens");de(this,"address");de(this,"targetNetwork");(0,e.defineProperties)(this,{address:y||n,targetNetwork:x??1})}clone(){return new s(this.address,this.targetNetwork)}}xa.EnsPlugin=s;const u=class u extends r{constructor(y){super("org.ethers.plugins.network.FeeData");Ce(this,c);se(this,c,y)}get feeDataFunc(){return q(this,c)}async getFeeData(y){return await q(this,c).call(this,y)}clone(){return new u(q(this,c))}};c=new WeakMap;let i=u;xa.FeeDataNetworkPlugin=i;class l extends r{constructor(y,x){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");Ce(this,f);Ce(this,p);se(this,f,y),se(this,p,x)}get url(){return q(this,f)}get processFunc(){return q(this,p)}clone(){return this}}return f=new WeakMap,p=new WeakMap,xa.FetchUrlFeeDataNetworkPlugin=l,xa}var k_;function ia(){var u,f,p;if(k_)return Yf;k_=1,Object.defineProperty(Yf,"__esModule",{value:!0}),Yf.Network=void 0;const e=sa(),t=at(),n=mE(),r=new Map,m=class m{constructor(y,x){Ce(this,u);Ce(this,f);Ce(this,p);se(this,u,y),se(this,f,(0,t.getBigInt)(x)),se(this,p,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return q(this,u)}set name(y){se(this,u,y)}get chainId(){return q(this,f)}set chainId(y){se(this,f,(0,t.getBigInt)(y,"chainId"))}matches(y){if(y==null)return!1;if(typeof y=="string"){try{return this.chainId===(0,t.getBigInt)(y)}catch{}return this.name===y}if(typeof y=="number"||typeof y=="bigint"){try{return this.chainId===(0,t.getBigInt)(y)}catch{}return!1}if(typeof y=="object"){if(y.chainId!=null){try{return this.chainId===(0,t.getBigInt)(y.chainId)}catch{}return!1}return y.name!=null?this.name===y.name:!1}return!1}get plugins(){return Array.from(q(this,p).values())}attachPlugin(y){if(q(this,p).get(y.name))throw new Error(`cannot replace existing plugin: ${y.name} `);return q(this,p).set(y.name,y.clone()),this}getPlugin(y){return q(this,p).get(y)||null}getPlugins(y){return this.plugins.filter(x=>x.name.split("#")[0]===y)}clone(){const y=new m(this.name,this.chainId);return this.plugins.forEach(x=>{y.attachPlugin(x.clone())}),y}computeIntrinsicGas(y){const x=this.getPlugin("org.ethers.plugins.network.GasCost")||new n.GasCostPlugin;let C=x.txBase;if(y.to==null&&(C+=x.txCreate),y.data)for(let T=2;T<y.data.length;T+=2)y.data.substring(T,T+2)==="00"?C+=x.txDataZero:C+=x.txDataNonzero;if(y.accessList){const T=(0,e.accessListify)(y.accessList);for(const w in T)C+=x.txAccessListAddress+x.txAccessListStorageKey*T[w].storageKeys.length}return C}static from(y){if(c(),y==null)return m.from("mainnet");if(typeof y=="number"&&(y=BigInt(y)),typeof y=="string"||typeof y=="bigint"){const x=r.get(y);if(x)return x();if(typeof y=="bigint")return new m("unknown",y);(0,t.assertArgument)(!1,"unknown network","network",y)}if(typeof y.clone=="function")return y.clone();if(typeof y=="object"){(0,t.assertArgument)(typeof y.name=="string"&&typeof y.chainId=="number","invali
90d network object name or chainId","network",y);const x=new m(y.name,y.chainId);return(y.ensAddress||y.ensNetwork!=null)&&x.attachPlugin(new n.EnsPlugin(y.ensAddress,y.ensNetwork)),x}(0,t.assertArgument)(!1,"invalid network","network",y)}static register(y,x){typeof y=="number"&&(y=BigInt(y));const C=r.get(y);C&&(0,t.assertArgument)(!1,`conflicting network for ${JSON.stringify(C.name)}`,"nameOrChainId",y),r.set(y,x)}};u=new WeakMap,f=new WeakMap,p=new WeakMap;let a=m;Yf.Network=a;function s(h,y){const x=String(h);if(!x.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${h}`);const C=x.split(".");if(C.length===1&&C.push(""),C.length!==2)throw new Error(`invalid gwei value: ${h}`);for(;C[1].length<y;)C[1]+="0";if(C[1].length>9){let T=BigInt(C[1].substring(0,9));C[1].substring(9).match(/^0+$/)||T++,C[1]=T.toString()}return BigInt(C[0]+C[1])}function i(h){return new n.FetchUrlFeeDataNetworkPlugin(h,async(y,x,C)=>{C.setHeader("User-Agent","ethers");let T;try{const[w,v]=await Promise.all([C.send(),y()]);T=w;const g=T.bodyJson.standard;return{gasPrice:v.gasPrice,maxFeePerGas:s(g.maxFee,9),maxPriorityFeePerGas:s(g.maxPriorityFee,9)}}catch(w){(0,t.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(C.url)})`,"SERVER_ERROR",{request:C,response:T,error:w})}})}let l=!1;function c(){if(l)return;l=!0;function h(y,x,C){const T=function(){const w=new a(y,x);return C.ensNetwork!=null&&w.attachPlugin(new n.EnsPlugin(null,C.ensNetwork)),w.attachPlugin(new n.GasCostPlugin),(C.plugins||[]).forEach(v=>{w.attachPlugin(v)}),w};a.register(y,T),a.register(x,T),C.altNames&&C.altNames.forEach(w=>{a.register(w,T)})}h("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),h("ropsten",3,{ensNetwork:3}),h("rinkeby",4,{ensNetwork:4}),h("goerli",5,{ensNetwork:5}),h("kovan",42,{ensNetwork:42}),h("sepolia",11155111,{ensNetwork:11155111}),h("holesky",17e3,{ensNetwork:17e3}),h("classic",61,{}),h("classicKotti",6,{}),h("arbitrum",42161,{ensNetwork:1}),h("arbitrum-goerli",421613,{}),h("arbitrum-sepolia",421614,{}),h("base",8453,{ensNetwork:1}),h("base-goerli",84531,{}),h("base-sepolia",84532,{}),h("bnb",56,{ensNetwork:1}),h("bnbt",97,{}),h("linea",59144,{ensNetwork:1}),h("linea-goerli",59140,{}),h("linea-sepolia",59141,{}),h("matic",137,{ensNetwork:1,plugins:[i("https://gasstation.polygon.technology/v2")]}),h("matic-amoy",80002,{}),h("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[i("https://gasstation-testnet.polygon.technology/v2")]}),h("optimism",10,{ensNetwork:1,plugins:[]}),h("optimism-goerli",420,{}),h("optimism-sepolia",11155420,{}),h("xdai",100,{ensNetwork:1})}return Yf}var lr={},C_;function hE(){var u,f,p,m,h,yb,x,C,T,w,v,g,A,S,_,k,R,D,B,n$;if(C_)return lr;C_=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.PollingEventSubscriber=lr.PollingTransactionSubscriber=lr.PollingOrphanSubscriber=lr.PollingBlockTagSubscriber=lr.OnBlockSubscriber=lr.PollingBlockSubscriber=lr.getPollingSubscriber=void 0;const e=at();function t(E){return JSON.parse(JSON.stringify(E))}function n(E,N){if(N==="block")return new r(E);if((0,e.isHexString)(N,32))return new l(E,N);(0,e.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:N}})}lr.getPollingSubscriber=n;class r{constructor(N){Ce(this,h);Ce(this,u);Ce(this,f);Ce(this,p);Ce(this,m);se(this,u,N),se(this,f,null),se(this,p,4e3),se(this,m,-2)}get pollingInterval(){return q(this,p)}set pollingInterval(N){se(this,p,N)}start(){q(this,f)||(se(this,f,q(this,u)._setTimeout(je(this,h,yb).bind(this),q(this,p))),je(this,h,yb).call(this))}stop(){q(this,f)&&(q(this,u)._clearTimeout(q(this,f)),se(this,f,null))}pause(N){this.stop(),N&&se(this,m,-2)}resume(){this.start()}}u=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakSet,yb=async function(){try{const N=await q(this,u).getBlockNumber();if(q(this,m)===-2){se(this,m,N);return}if(N!==q(this,m)){for(let I=q(this,m)+1;I<=N;I++){if(q(this,f)==null)return;await q(this,u).emit("block",I)}se(this,m,N)}}catch{}q(this,f)!=null&&se(this,f,q(this,u)._setTimeout(je(this,h,yb).bind(this),q(this,p)))},lr.PollingBlockSubscriber=r;class a{constructor(N){Ce(this,x);Ce(this,C);Ce(this,T);se(this,x,N),se(this,T,!1),se(this,C,I=>{this._poll(I,q(this,x))})}async _poll(N,I){throw new Error("sub-classes must override this")}start(){q(this,T)||(se(this,T,!0),q(this,C).call(this,-2),q(this,x).on("block",q(this,C)))}stop(){q(this,T)&&(se(this,T,!1),q(this,x).off("block",q(this,C)))}pause(N){this.stop()}resume(){this.start()}}x=new WeakMap,C=new WeakMap,T=new WeakMap,lr.OnBlockSubscriber=a;class s extends a{constructor(I,F){super(I);Ce(this,w);Ce(this,v);se(this,w,F),se(this,v,-2)}pause(I){I&&se(this,v,-2),super.pause(I)}async _poll(I,F){const z=await F.getBlock(q(this,w));z!=null&&(q(this,v)===-2?se(this,v,z.number):z.number>q(this,v)&&(F.emit(q(this,w),z.number),se(this,v,z.number)))}}w=new WeakMap,v=new WeakMap,lr.PollingBlockTagSubscriber=s;class i extends a{constructor(I,F){super(I);Ce(this,g);se(this,g,t(F))}async _poll(I,F){throw new Error("@TODO")}}g=new WeakMap,lr.PollingOrphanSubscriber=i;class l extends a{constructor(I,F){super(I);Ce(this,A);se(this,A,F)}async _poll(I,F){const z=await F.getTransactionReceipt(q(this,A));z&&F.emit(q(this,A),z)}}A=new WeakMap,lr.PollingTransactionSubscriber=l;class c{constructor(N,I){Ce(this,B);Ce(this,S);Ce(this,_);Ce(this,k);Ce(this,R);Ce(this,D);se(this,S,N),se(this,_,t(I)),se(this,k,je(this,B,n$).bind(this)),se(this,R,!1),se(this,D,-2)}start(){q(this,R)||(se(this,R,!0),q(this,D)===-2&&q(this,S).getBlockNumber().then(N=>{se(this,D,N)}),q(this,S).on("block",q(this,k)))}stop(){q(this,R)&&(se(this,R,!1),q(this,S).off("block",q(this,k)))}pause(N){this.stop(),N&&se(this,D,-2)}resume(){this.start()}}return S=new WeakMap,_=new WeakMap,k=new WeakMap,R=new WeakMap,D=new WeakMap,B=new WeakSet,n$=async function(N){if(q(this,D)===-2)return;const I=t(q(this,_));I.fromBlock=q(this,D)+1,I.toBlock=N;const F=await q(this,S).getLogs(I);if(F.length===0){q(this,D)<N-60&&se(this,D,N-60);return}for(const z of F)q(this,S).emit(q(this,_),z),se(this,D,z.blockNumber)},lr.PollingEventSubscriber=c,lr}var A_;function Sm(){var N,I,F,z,U,V,$,O,H,Z,ee,ae,ie,Ea,R5,O5,d0,M5,f0,bb;if(A_)return zl;
90A_=1,Object.defineProperty(zl,"__esModule",{value:!0}),zl.AbstractProvider=zl.UnmanagedSubscriber=void 0;const e=Hn(),t=Am(),n=O1(),r=Ki(),a=sa(),s=at(),i=t$(),l=Ile(),c=ia(),u=Tm(),f=hE(),p=BigInt(2),m=10;function h(ge){return ge&&typeof ge.then=="function"}function y(ge,J){return ge+":"+JSON.stringify(J,(Y,re)=>{if(re==null)return"null";if(typeof re=="bigint")return`bigint:${re.toString()}`;if(typeof re=="string")return re.toLowerCase();if(typeof re=="object"&&!Array.isArray(re)){const ce=Object.keys(re);return ce.sort(),ce.reduce((Me,Ze)=>(Me[Ze]=re[Ze],Me),{})}return re})}class x{constructor(J){de(this,"name");(0,s.defineProperties)(this,{name:J})}start(){}stop(){}pause(J){}resume(){}}zl.UnmanagedSubscriber=x;function C(ge){return JSON.parse(JSON.stringify(ge))}function T(ge){return ge=Array.from(new Set(ge).values()),ge.sort(),ge}async function w(ge,J){if(ge==null)throw new Error("invalid event");if(Array.isArray(ge)&&(ge={topics:ge}),typeof ge=="string")switch(ge){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:ge,tag:ge}}if((0,s.isHexString)(ge,32)){const Y=ge.toLowerCase();return{type:"transaction",tag:y("tx",{hash:Y}),hash:Y}}if(ge.orphan){const Y=ge;return{type:"orphan",tag:y("orphan",Y),filter:C(Y)}}if(ge.address||ge.topics){const Y=ge,re={topics:(Y.topics||[]).map(ce=>ce==null?null:Array.isArray(ce)?T(ce.map(Me=>Me.toLowerCase())):ce.toLowerCase())};if(Y.address){const ce=[],Me=[],Ze=ue=>{(0,s.isHexString)(ue)?ce.push(ue):Me.push((async()=>{ce.push(await(0,e.resolveAddress)(ue,J))})())};Array.isArray(Y.address)?Y.address.forEach(Ze):Ze(Y.address),Me.length&&await Promise.all(Me),re.address=T(ce.map(ue=>ue.toLowerCase()))}return{filter:re,tag:y("event",re),type:"event"}}(0,s.assertArgument)(!1,"unknown ProviderEvent","event",ge)}function v(){return new Date().getTime()}const g={cacheTimeout:250,pollingInterval:4e3};class A{constructor(J,Y){Ce(this,ie);Ce(this,N);Ce(this,I);Ce(this,F);Ce(this,z);Ce(this,U);Ce(this,V);Ce(this,$);Ce(this,O);Ce(this,H);Ce(this,Z);Ce(this,ee);Ce(this,ae);if(se(this,ae,Object.assign({},g,Y||{})),J==="any")se(this,V,!0),se(this,U,null);else if(J){const re=c.Network.from(J);se(this,V,!1),se(this,U,Promise.resolve(re)),setTimeout(()=>{this.emit("network",re,null)},0)}else se(this,V,!1),se(this,U,null);se(this,O,-1),se(this,$,new Map),se(this,N,new Map),se(this,I,new Map),se(this,F,null),se(this,z,!1),se(this,H,1),se(this,Z,new Map),se(this,ee,!1)}get pollingInterval(){return q(this,ae).pollingInterval}get provider(){return this}get plugins(){return Array.from(q(this,I).values())}attachPlugin(J){if(q(this,I).get(J.name))throw new Error(`cannot replace existing plugin: ${J.name} `);return q(this,I).set(J.name,J.connect(this)),this}getPlugin(J){return q(this,I).get(J)||null}get disableCcipRead(){return q(this,ee)}set disableCcipRead(J){se(this,ee,!!J)}async ccipReadFetch(J,Y,re){if(this.disableCcipRead||re.length===0||J.to==null)return null;const ce=J.to.toLowerCase(),Me=Y.toLowerCase(),Ze=[];for(let ue=0;ue<re.length;ue++){const Q=re[ue],X=Q.replace("{sender}",ce).replace("{data}",Me),ne=new s.FetchRequest(X);Q.indexOf("{data}")===-1&&(ne.body={data:Me,sender:ce}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:ne,index:ue,urls:re});let pe="unknown error",Be;try{Be=await ne.send()}catch(Re){Ze.push(Re.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:ne,result:{error:Re}});continue}try{const Re=Be.bodyJson;if(Re.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:ne,result:Re}),Re.data;Re.message&&(pe=Re.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:ne,result:Re})}catch{}(0,s.assert)(Be.statusCode<400||Be.statusCode>=500,`response not found during CCIP fetch: ${pe}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:J,info:{url:Q,errorMessage:pe}}),Ze.push(pe)}(0,s.assert)(!1,`error encountered during CCIP fetch: ${Ze.map(ue=>JSON.stringify(ue)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:J,info:{urls:re,errorMessages:Ze}}
90)}_wrapBlock(J,Y){return new u.Block((0,l.formatBlock)(J),this)}_wrapLog(J,Y){return new u.Log((0,l.formatLog)(J),this)}_wrapTransactionReceipt(J,Y){return new u.TransactionReceipt((0,l.formatTransactionReceipt)(J),this)}_wrapTransactionResponse(J,Y){return new u.TransactionResponse((0,l.formatTransactionResponse)(J),this)}_detectNetwork(){(0,s.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(J){(0,s.assert)(!1,`unsupported method: ${J.method}`,"UNSUPPORTED_OPERATION",{operation:J.method,info:J})}async getBlockNumber(){const J=(0,s.getNumber)(await je(this,ie,Ea).call(this,{method:"getBlockNumber"}),"%response");return q(this,O)>=0&&se(this,O,J),J}_getAddress(J){return(0,e.resolveAddress)(J,this)}_getBlockTag(J){if(J==null)return"latest";switch(J){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return J}if((0,s.isHexString)(J))return(0,s.isHexString)(J,32)?J:(0,s.toQuantity)(J);if(typeof J=="bigint"&&(J=(0,s.getNumber)(J,"blockTag")),typeof J=="number")return J>=0?(0,s.toQuantity)(J):q(this,O)>=0?(0,s.toQuantity)(q(this,O)+J):this.getBlockNumber().then(Y=>(0,s.toQuantity)(Y+J));(0,s.assertArgument)(!1,"invalid blockTag","blockTag",J)}_getFilter(J){const Y=(J.topics||[]).map(Q=>Q==null?null:Array.isArray(Q)?T(Q.map(X=>X.toLowerCase())):Q.toLowerCase()),re="blockHash"in J?J.blockHash:void 0,ce=(Q,X,ne)=>{let pe;switch(Q.length){case 0:break;case 1:pe=Q[0];break;default:Q.sort(),pe=Q}if(re&&(X!=null||ne!=null))throw new Error("invalid filter");const Be={};return pe&&(Be.address=pe),Y.length&&(Be.topics=Y),X&&(Be.fromBlock=X),ne&&(Be.toBlock=ne),re&&(Be.blockHash=re),Be};let Me=[];if(J.address)if(Array.isArray(J.address))for(const Q of J.address)Me.push(this._getAddress(Q));else Me.push(this._getAddress(J.address));let Ze;"fromBlock"in J&&(Ze=this._getBlockTag(J.fromBlock));let ue;return"toBlock"in J&&(ue=this._getBlockTag(J.toBlock)),Me.filter(Q=>typeof Q!="string").length||Ze!=null&&typeof Ze!="string"||ue!=null&&typeof ue!="string"?Promise.all([Promise.all(Me),Ze,ue]).then(Q=>ce(Q[0],Q[1],Q[2])):ce(Me,Ze,ue)}_getTransactionRequest(J){const Y=(0,u.copyRequest)(J),re=[];if(["to","from"].forEach(ce=>{if(Y[ce]==null)return;const Me=(0,e.resolveAddress)(Y[ce],this);h(Me)?re.push((async function(){Y[ce]=await Me})()):Y[ce]=Me}),Y.blockTag!=null){const ce=this._getBlockTag(Y.blockTag);h(ce)?re.push((async function(){Y.blockTag=await ce})()):Y.blockTag=ce}return re.length?(async function(){return await Promise.all(re),Y})():Y}async getNetwork(){if(q(this,U)==null){const ce=(async()=>{try{const Me=await this._detectNetwork();return this.emit("network",Me,null),Me}catch(Me){throw q(this,U)===ce&&se(this,U,null),Me}})();return se(this,U,ce),(await ce).clone()}const J=q(this,U),[Y,re]=await Promise.all([J,this._detectNetwork()]);return Y.chainId!==re.chainId&&(q(this,V)?(this.emit("network",re,Y),q(this,U)===J&&se(this,U,Promise.resolve(re))):(0,s.assert)(!1,`network changed: ${Y.chainId} => ${re.chainId} `,"NETWORK_ERROR",{event:"changed"})),Y.clone()}async getFeeData(){const J=await this.getNetwork(),Y=async()=>{const{_block:ce,gasPrice:Me,priorityFee:Ze}=await(0,s.resolveProperties)({_block:je(this,ie,M5).call(this,"latest",!1),gasPrice:(async()=>{try{const ne=await je(this,ie,Ea).call(this,{method:"getGasPrice"});return(0,s.getBigInt)(ne,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const ne=await je(this,ie,Ea).call(this,{method:"getPriorityFee"});return(0,s.getBigInt)(ne,"%response")}catch{}return null})()});let ue=null,Q=null;const X=this._wrapBlock(ce,J);return X&&X.baseFeePerGas&&(Q=Ze??BigInt("1000000000"),ue=X.baseFeePerGas*p+Q),new u.FeeData(Me,ue,Q)},re=J.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(re){const ce=new s.FetchRequest(re.url),Me=await re.processFunc(Y,this,ce);return new u.FeeData(Me.gasPrice,Me.maxFeePerGas,Me.maxPriorityFeePerGas)}return await Y()}async estimateGas(J){let Y=this._getTransactionRequest(J);return h(Y)&&(Y=await Y),(0,s.getBigInt)(await je(this,ie,Ea).call(this,{method:"estimateGas",transaction:Y}),"%response")}async call(J){const{tx:Y,blockTag:re}=await(0,s.resolveProperties)({tx:this._getTransactionRequest(J),blockTag:this._getBlockTag(J.blockTag)});return await je(this,ie,O5).call(this,je(this,ie,R5).call(this,Y,re,J.enableCcipRead?0:-1))}async getBalance(J,Y){return(0,s.getBigInt)(await je(this,ie,d0).call(this,{method:"getBalance"},J,Y),"%response")}async getTransactionCount(J,Y){return(0,s.getNumber)(await je(this,ie,d0).call(this,{method:"getTransactionCount"},J,Y),"%response")}async getCode(J,Y){return(0,s.hexlify)(await je(this,ie,d0).call(this,{method:"getCode"},J,Y))}async getStorage(J,Y,re){const ce=(0,s.getBigInt)(Y,"position");return(0,s.hexlify)(await je(this,ie,d0).call(this,{method:"getStorage",position:ce},J,re))}async broadcastTransaction(J){const{blockNumber:Y,hash:re,network:ce}=await(0,s.resolveProperties)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:J}),network:this.getNetwork()}),Me=a.Transaction.from(J);if(Me.hash!==re)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(Me,ce).replaceableTransaction(Y)}async getBlock(J,Y){const{network:re,params:ce}=await(0,s.resolveProperties)({network:this.getNetwork(),params:je(this,ie,M5).call(this,J,!!Y)});return ce==null?null:this._wrapBlock(ce,re)}async getTransaction(J){const{network:Y,params:re}=await(0,s.resolveProperties)({network:this.getNetwork(),params:je(this,ie,Ea).call(this,{method:"getTransaction",hash:J})});return re==null?null:this._wrapTransactionResponse(re,Y)}async getTransactionReceipt(J){const{network:Y,params:re}=await(0,s.resolveProperties)({network:this.getNetwork(),params:je(this,ie,Ea).call(this,{method:"getTransactionReceipt",hash:J})});if(re==null)return null;if(re.gasPrice==null&&re.effectiveGasPrice==null){const ce=await je(this,ie,Ea).call(this,{method:"getTransaction",hash:J});if(ce==null)throw new Error("report this; could not find tx or effectiveGasPrice");re.effectiveGasPrice=ce.gasPrice}return this._wrapTransactionReceipt(re,Y)}async getTransactionResult(J){const{result:Y}=await(0,s.resolveProperties)({network:this.getNetwork(),result:je(this,ie,Ea).call(this,{method:"getTransactionResult",hash:J})});return Y==null?null:(0,s.hexlify)(Y)}async getLogs(J){let Y=this._getFilter(J);h(Y)&&(Y=await Y);const{network:re,params:ce}=await(0,s.resolveProperties)({network:this.getNetwork(),params:je(this,ie,Ea).call(this,{method:"getLogs",filter:Y})});return ce.map(Me=>this._wrapLog(Me,re))}_getProvider(J){(0,s.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}
90async getResolver(J){return await i.EnsResolver.fromName(this,J)}async getAvatar(J){const Y=await this.getResolver(J);return Y?await Y.getAvatar():null}async resolveName(J){const Y=await this.getResolver(J);return Y?await Y.getAddress():null}async lookupAddress(J){J=(0,e.getAddress)(J);const Y=(0,r.namehash)(J.substring(2).toLowerCase()+".addr.reverse");try{const re=await i.EnsResolver.getEnsAddress(this),Me=await new n.Contract(re,["function resolver(bytes32) view returns (address)"],this).resolver(Y);if(Me==null||Me===t.ZeroAddress)return null;const ue=await new n.Contract(Me,["function name(bytes32) view returns (string)"],this).name(Y);return await this.resolveName(ue)!==J?null:ue}catch(re){if((0,s.isError)(re,"BAD_DATA")&&re.value==="0x"||(0,s.isError)(re,"CALL_EXCEPTION"))return null;throw re}return null}async waitForTransaction(J,Y,re){const ce=Y??1;return ce===0?this.getTransactionReceipt(J):new Promise(async(Me,Ze)=>{let ue=null;const Q=(async X=>{try{const ne=await this.getTransactionReceipt(J);if(ne!=null&&X-ne.blockNumber+1>=ce){Me(ne),ue&&(clearTimeout(ue),ue=null);return}}catch(ne){console.log("EEE",ne)}this.once("block",Q)});re!=null&&(ue=setTimeout(()=>{ue!=null&&(ue=null,this.off("block",Q),Ze((0,s.makeError)("timeout","TIMEOUT",{reason:"timeout"})))},re)),Q(await this.getBlockNumber())})}async waitForBlock(J){(0,s.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(J){const Y=q(this,Z).get(J);Y&&(Y.timer&&clearTimeout(Y.timer),q(this,Z).delete(J))}_setTimeout(J,Y){Y==null&&(Y=0);const re=fu(this,H)._++,ce=()=>{q(this,Z).delete(re),J()};if(this.paused)q(this,Z).set(re,{timer:null,func:ce,time:Y});else{const Me=setTimeout(ce,Y);q(this,Z).set(re,{timer:Me,func:ce,time:v()})}return re}_forEachSubscriber(J){for(const Y of q(this,N).values())J(Y.subscriber)}_getSubscriber(J){switch(J.type){case"debug":case"error":case"network":return new x(J.type);case"block":{const Y=new f.PollingBlockSubscriber(this);return Y.pollingInterval=this.pollingInterval,Y}case"safe":case"finalized":return new f.PollingBlockTagSubscriber(this,J.type);case"event":return new f.PollingEventSubscriber(this,J.filter);case"transaction":return new f.PollingTransactionSubscriber(this,J.hash);case"orphan":return new f.PollingOrphanSubscriber(this,J.filter)}throw new Error(`unsupported event: ${J.type}`)}_recoverSubscriber(J,Y){for(const re of q(this,N).values())if(re.subscriber===J){re.started&&re.subscriber.stop(),re.subscriber=Y,re.started&&Y.start(),q(this,F)!=null&&Y.pause(q(this,F));break}}async on(J,Y){const re=await je(this,ie,bb).call(this,J);return re.listeners.push({listener:Y,once:!1}),re.started||(re.subscriber.start(),re.started=!0,q(this,F)!=null&&re.subscriber.pause(q(this,F))),this}async once(J,Y){const re=await je(this,ie,bb).call(this,J);return re.listeners.push({listener:Y,once:!0}),re.started||(re.subscriber.start(),re.started=!0,q(this,F)!=null&&re.subscriber.pause(q(this,F))),this}async emit(J,...Y){const re=await je(this,ie,f0).call(this,J,Y);if(!re||re.listeners.length===0)return!1;const ce=re.listeners.length;return re.listeners=re.listeners.filter(({listener:Me,once:Ze})=>{const ue=new s.EventPayload(this,Ze?null:Me,J);try{Me.call(this,...Y,ue)}catch{}return!Ze}),re.listeners.length===0&&(re.started&&re.subscriber.stop(),q(this,N).delete(re.tag)),ce>0}async listenerCount(J){if(J){const re=await je(this,ie,f0).call(this,J);return re?re.listeners.length:0}let Y=0;for(const{listeners:re}of q(this,N).values())Y+=re.length;return Y}async listeners(J){if(J){const re=await je(this,ie,f0).call(this,J);return re?re.listeners.map(({listener:ce})=>ce):[]}let Y=[];for(const{listeners:re}of q(this,N).values())Y=Y.concat(re.map(({listener:ce})=>ce));return Y}async off(J,Y){const re=await je(this,ie,f0).call(this,J);if(!re)return this;if(Y){const ce=re.listeners.map(({listener:Me})=>Me).indexOf(Y);ce>=0&&re.listeners.splice(ce,1)}return(!Y||re.listeners.length===0)&&(re.started&&re.subscriber.stop(),q(this,N).delete(re.tag)),this}async removeAllListeners(J){if(J){const{tag:Y,started:re,subscriber:ce}=await je(this,ie,bb).call(this,J);re&&ce.stop(),q(this,N).delete(Y)}else for(const[Y,{started:re,subscriber:ce}]of q(this,N))re&&ce.stop(),q(this,N).delete(Y);return this}async addListener(J,Y){return await this.on(J,Y)}async removeListener(J,Y){return this.off(J,Y)}get destroyed(){return q(this,z)}destroy(){this.removeAllListeners();for(const J of q(this,Z).keys())this._clearTimeout(J);se(this,z,!0)}get paused(){return q(this,F)!=null}set paused(J){!!J!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(J){if(se(this,O,-1),q(this,F)!=null){if(q(this,F)==!!J)return;(0,s.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}
90this._forEachSubscriber(Y=>Y.pause(J)),se(this,F,!!J);for(const Y of q(this,Z).values())Y.timer&&clearTimeout(Y.timer),Y.time=v()-Y.time}resume(){if(q(this,F)!=null){this._forEachSubscriber(J=>J.resume()),se(this,F,null);for(const J of q(this,Z).values()){let Y=J.time;Y<0&&(Y=0),J.time=v(),setTimeout(J.func,Y)}}}}N=new WeakMap,I=new WeakMap,F=new WeakMap,z=new WeakMap,U=new WeakMap,V=new WeakMap,$=new WeakMap,O=new WeakMap,H=new WeakMap,Z=new WeakMap,ee=new WeakMap,ae=new WeakMap,ie=new WeakSet,Ea=async function(J){const Y=q(this,ae).cacheTimeout;if(Y<0)return await this._perform(J);const re=y(J.method,J);let ce=q(this,$).get(re);return ce||(ce=this._perform(J),q(this,$).set(re,ce),setTimeout(()=>{q(this,$).get(re)===ce&&q(this,$).delete(re)},Y)),await ce},R5=async function(J,Y,re){(0,s.assert)(re<m,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},J,{blockTag:Y,enableCcipRead:!0})});const ce=(0,u.copyRequest)(J);try{return(0,s.hexlify)(await this._perform({method:"call",transaction:ce,blockTag:Y}))}catch(Me){if(!this.disableCcipRead&&(0,s.isCallException)(Me)&&Me.data&&re>=0&&Y==="latest"&&ce.to!=null&&(0,s.dataSlice)(Me.data,0,4)==="0x556f1830"){const Ze=Me.data,ue=await(0,e.resolveAddress)(ce.to,this);let Q;try{Q=E((0,s.dataSlice)(Me.data,4))}catch(pe){(0,s.assert)(!1,pe.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:ce,info:{data:Ze}})}(0,s.assert)(Q.sender.toLowerCase()===ue.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:Ze,reason:"OffchainLookup",transaction:ce,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:Q.errorArgs}});const X=await this.ccipReadFetch(ce,Q.calldata,Q.urls);(0,s.assert)(X!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:ce,info:{data:Me.data,errorArgs:Q.errorArgs}});const ne={to:ue,data:(0,s.concat)([Q.selector,B([X,Q.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:ne});try{const pe=await je(this,ie,R5).call(this,ne,Y,re+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},ne),result:pe}),pe}catch(pe){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},ne),error:pe}),pe}}throw Me}},O5=async function(J){const{value:Y}=await(0,s.resolveProperties)({network:this.getNetwork(),value:J});return Y},d0=async function(J,Y,re){let ce=this._getAddress(Y),Me=this._getBlockTag(re);return(typeof ce!="string"||typeof Me!="string")&&([ce,Me]=await Promise.all([ce,Me])),await je(this,ie,O5).call(this,je(this,ie,Ea).call(this,Object.assign(J,{address:ce,blockTag:Me})))},M5=async function(J,Y){if((0,s.isHexString)(J,32))return await je(this,ie,Ea).call(this,{method:"getBlock",blockHash:J,includeTransactions:Y});let re=this._getBlockTag(J);return typeof re!="string"&&(re=await re),await je(this,ie,Ea).call(this,{method:"getBlock",blockTag:re,includeTransactions:Y})},f0=async function(J,Y){let re=await w(J,this);return re.type==="event"&&Y&&Y.length>0&&Y[0].removed===!0&&(re=await w({orphan:"drop-log",log:Y[0]},this)),q(this,N).get(re.tag)||null},bb=async function(J){const Y=await w(J,this),re=Y.tag;let ce=q(this,N).get(re);return ce||(ce={subscriber:this._getSubscriber(Y),tag:re,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},q(this,N).set(re,ce)),ce},zl.AbstractProvider=A;function S(ge,J){try{const Y=_(ge,J);if(Y)return(0,s.toUtf8String)(Y)}catch{}return null}function _(ge,J){if(ge==="0x")return null;try{const Y=(0,s.getNumber)((0,s.dataSlice)(ge,J,J+32)),re=(0,s.getNumber)((0,s.dataSlice)(ge,Y,Y+32));return(0,s.dataSlice)(ge,Y+32,Y+32+re)}catch{}return null}function k(ge){const J=(0,s.toBeArray)(ge);if(J.length>32)throw new Error("internal; should not happen");const Y=new Uint8Array(32);return Y.set(J,32-J.length),Y}function R(ge){if(ge.length%32===0)return ge;const J=new Uint8Array(Math.ceil(ge.length/32)*32);return J.set(ge),J}const D=new Uint8Array([]);function B(ge){const J=[];let Y=0;for(let re=0;re<ge.length;re++)J.push(D),Y+=32;for(let re=0;re<ge.length;re++){const ce=(0,s.getBytes)(ge[re]);J[re]=k(Y),J.push(k(ce.length)),J.push(R(ce)),Y+=32+Math.ceil(ce.length/32)*32}return(0,s.concat)(J)}const M="0x0000000000000000000000000000000000000000000000000000000000000000";function E(ge){const J={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,s.assert)((0,s.dataLength)(ge)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const Y=(0,s.dataSlice)(ge,0,32);(0,s.assert)((0,s.dataSlice)(Y,0,12)===(0,s.dataSlice)(M,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),J.sender=(0,s.dataSlice)(Y,12);try{const re=[],ce=(0,s.getNumber)((0,s.dataSlice)(ge,32,64)),Me=(0,s.getNumber)((0,s.dataSlice)(ge,ce,ce+32)),Ze=(0,s.dataSlice)(ge,ce+32);for(let ue=0;ue<Me;ue++){const Q=S(Ze,ue*32);if(Q==null)throw new Error("abort");re.push(Q)}J.urls=re}catch{(0,s.assert)(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{const re=_(ge,64);if(re==null)throw new Error("abort");J.calldata=re}catch{(0,s.assert)(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}(0,s.assert)((0,s.dataSlice)(ge,100,128)===(0,s.dataSlice)(M,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),J.selector=(0,s.dataSlice)(ge,96,100);try{const re=_(ge,128);if(re==null)throw new Error("abort");J.extraData=re}catch{(0,s.assert)(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}
90return J.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map(re=>J[re]),J}return zl}var Hl={},P_;function yE(){var c,gb;if(P_)return Hl;P_=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.VoidSigner=Hl.AbstractSigner=void 0;const e=Hn(),t=sa(),n=at(),r=Tm();function a(p,m){if(p.provider)return p.provider;(0,n.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:m})}async function s(p,m){let h=(0,r.copyRequest)(m);if(h.to!=null&&(h.to=(0,e.resolveAddress)(h.to,p)),h.from!=null){const y=h.from;h.from=Promise.all([p.getAddress(),(0,e.resolveAddress)(y,p)]).then(([x,C])=>((0,n.assertArgument)(x.toLowerCase()===C.toLowerCase(),"transaction from mismatch","tx.from",C),x))}else h.from=p.getAddress();return await(0,n.resolveProperties)(h)}class i{constructor(m){de(this,"provider");(0,n.defineProperties)(this,{provider:m||null})}async getNonce(m){return a(this,"getTransactionCount").getTransactionCount(await this.getAddress(),m)}async populateCall(m){return await s(this,m)}async populateTransaction(m){const h=a(this,"populateTransaction"),y=await s(this,m);y.nonce==null&&(y.nonce=await this.getNonce("pending")),y.gasLimit==null&&(y.gasLimit=await this.estimateGas(y));const x=await this.provider.getNetwork();if(y.chainId!=null){const T=(0,n.getBigInt)(y.chainId);(0,n.assertArgument)(T===x.chainId,"transaction chainId mismatch","tx.chainId",m.chainId)}else y.chainId=x.chainId;const C=y.maxFeePerGas!=null||y.maxPriorityFeePerGas!=null;if(y.gasPrice!=null&&(y.type===2||C)?(0,n.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",m):(y.type===0||y.type===1)&&C&&(0,n.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",m),(y.type===2||y.type==null)&&y.maxFeePerGas!=null&&y.maxPriorityFeePerGas!=null)y.type=2;else if(y.type===0||y.type===1){const T=await h.getFeeData();(0,n.assert)(T.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),y.gasPrice==null&&(y.gasPrice=T.gasPrice)}else{const T=await h.getFeeData();if(y.type==null)if(T.maxFeePerGas!=null&&T.maxPriorityFeePerGas!=null)if(y.authorizationList&&y.authorizationList.length?y.type=4:y.type=2,y.gasPrice!=null){const w=y.gasPrice;delete y.gasPrice,y.maxFeePerGas=w,y.maxPriorityFeePerGas=w}else y.maxFeePerGas==null&&(y.maxFeePerGas=T.maxFeePerGas),y.maxPriorityFeePerGas==null&&(y.maxPriorityFeePerGas=T.maxPriorityFeePerGas);else T.gasPrice!=null?((0,n.assert)(!C,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),y.gasPrice==null&&(y.gasPrice=T.gasPrice),y.type=0):(0,n.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(y.type===2||y.type===3||y.type===4)&&(y.maxFeePerGas==null&&(y.maxFeePerGas=T.maxFeePerGas),y.maxPriorityFeePerGas==null&&(y.maxPriorityFeePerGas=T.maxPriorityFeePerGas))}return await(0,n.resolveProperties)(y)}async populateAuthorization(m){const h=Object.assign({},m);return h.chainId==null&&(h.chainId=(await a(this,"getNetwork").getNetwork()).chainId),h.nonce==null&&(h.nonce=await this.getNonce()),h}async estimateGas(m){return a(this,"estimateGas").estimateGas(await this.populateCall(m))}async call(m){return a(this,"call").call(await this.populateCall(m))}async resolveName(m){return await a(this,"resolveName").resolveName(m)}async sendTransaction(m){const h=a(this,"sendTransaction"),y=await this.populateTransaction(m);delete y.from;const x=t.Transaction.from(y);return await h.broadcastTransaction(await this.signTransaction(x))}authorize(m){(0,n.assert)(!1,"authorization not implemented for this signer","UNSUPPORTED_OPERATION",{operation:"authorize"})}}Hl.AbstractSigner=i;const f=class f extends i{constructor(h,y){super(y);Ce(this,c);de(this,"address");(0,n.defineProperties)(this,{address:h})}async getAddress(){return this.address}connect(h){return new f(this.address,h)}async signTransaction(h){je(this,c,gb).call(this,"transactions","signTransaction")}async signMessage(h){je(this,c,gb).call(this,"messages","signMessage")}async signTypedData(h,y,x){je(this,c,gb).call(this,"typed-data","
90signTypedData")}};c=new WeakSet,gb=function(h,y){(0,n.assert)(!1,`VoidSigner cannot sign ${h}`,"UNSUPPORTED_OPERATION",{operation:y})};let l=f;return Hl.VoidSigner=l,Hl}var ep={},T_;function Go(){if(T_)return ep;T_=1,Object.defineProperty(ep,"__esModule",{value:!0}),ep.showThrottleMessage=void 0;const e=new Set;function t(n){e.has(n)||(e.add(n),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${n} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}return ep.showThrottleMessage=t,ep}var tp={},np={},is={},mi={},S_;function Nle(){var i,l,c,u,f,p,m,D5,F5,x;if(S_)return mi;S_=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.FilterIdPendingSubscriber=mi.FilterIdEventSubscriber=mi.FilterIdSubscriber=void 0;const e=at(),t=hE();function n(C){return JSON.parse(JSON.stringify(C))}class r{constructor(T){Ce(this,m);Ce(this,i);Ce(this,l);Ce(this,c);Ce(this,u);Ce(this,f);Ce(this,p);se(this,i,T),se(this,l,null),se(this,c,je(this,m,D5).bind(this)),se(this,u,!1),se(this,f,null),se(this,p,!1)}_subscribe(T){throw new Error("subclasses must override this")}_emitResults(T,w){throw new Error("subclasses must override this")}_recover(T){throw new Error("subclasses must override this")}start(){q(this,u)||(se(this,u,!0),je(this,m,D5).call(this,-2))}stop(){q(this,u)&&(se(this,u,!1),se(this,p,!0),je(this,m,F5).call(this),q(this,i).off("block",q(this,c)))}pause(T){T&&je(this,m,F5).call(this),q(this,i).off("block",q(this,c))}resume(){this.start()}}i=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakSet,D5=async function(T){try{q(this,l)==null&&se(this,l,this._subscribe(q(this,i)));let w=null;try{w=await q(this,l)}catch(A){if(!(0,e.isError)(A,"UNSUPPORTED_OPERATION")||A.operation!=="eth_newFilter")throw A}if(w==null){se(this,l,null),q(this,i)._recoverSubscriber(this,this._recover(q(this,i)));return}const v=await q(this,i).getNetwork();if(q(this,f)||se(this,f,v),q(this,f).chainId!==v.chainId)throw new Error("chaid changed");if(q(this,p))return;const g=await q(this,i).send("eth_getFilterChanges",[w]);await this._emitResults(q(this,i),g)}catch(w){console.log("@TODO",w)}q(this,i).once("block",q(this,c))},F5=function(){const T=q(this,l);T&&(se(this,l,null),T.then(w=>{q(this,i).destroyed||q(this,i).send("eth_uninstallFilter",[w])}))},mi.FilterIdSubscriber=r;class a extends r{constructor(w,v){super(w);Ce(this,x);se(this,x,n(v))}_recover(w){return new t.PollingEventSubscriber(w,q(this,x))}async _subscribe(w){return await w.send("eth_newFilter",[q(this,x)])}async _emitResults(w,v){for(const g of v)w.emit(q(this,x),w._wrapLog(g,w._network))}}x=new WeakMap,mi.FilterIdEventSubscriber=a;class s extends r{async _subscribe(T){return await T.send("eth_newPendingTransactionFilter",[])}async _emitResults(T,w){for(const v of w)T.emit("pending",v)}}return mi.FilterIdPendingSubscriber=s,mi}var B_;function qa(){var _,k,R,D,B,M,E,N,U5,F,z;if(B_)return is;B_=1,Object.defineProperty(is,"__esModule",{value:!0}),is.JsonRpcProvider=is.JsonRpcApiPollingProvider=is.JsonRpcApiProvider=is.JsonRpcSigner=void 0;const e=Pm(),t=Hn(),n=Ki(),r=sa(),a=at(),s=Sm(),i=yE(),l=ia(),c=Nle(),u=hE(),f="bigint,boolean,function,number,string,symbol".split(/,/g);function p(U){if(U==null||f.indexOf(typeof U)>=0||typeof U.getAddress=="function")return U;if(Array.isArray(U))return U.map(p);if(typeof U=="object")return Object.keys(U).reduce((V,$)=>(V[$]=U[$],V),{});throw new Error(`should not happen: ${U} (${typeof U})`)}function m(U){return new Promise(V=>{setTimeout(V,U)})}function h(U){return U&&U.toLowerCase()}function y(U){return U&&typeof U.pollingInterval=="number"}const x={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class C extends i.AbstractSigner{constructor($,O){super($);de(this,"address");O=(0,t.getAddress)(O),(0,a.defineProperties)(this,{address:O})}connect($){(0,a.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction($){return await this.populateCall($)}async sendUncheckedTransaction($){const O=p($),H=[];if(O.from){const ee=O.from;H.push((async()=>{const ae=await(0,t.resolveAddress)(ee,this.provider);(0,a.assertArgument)(ae!=null&&ae.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",$),O.from=ae})())}else O.from=this.address;if(O.gasLimit==null&&H.push((async()=>
90{O.gasLimit=await this.provider.estimateGas({...O,from:this.address})})()),O.to!=null){const ee=O.to;H.push((async()=>{O.to=await(0,t.resolveAddress)(ee,this.provider)})())}H.length&&await Promise.all(H);const Z=this.provider.getRpcTransaction(O);return this.provider.send("eth_sendTransaction",[Z])}async sendTransaction($){const O=await this.provider.getBlockNumber(),H=await this.sendUncheckedTransaction($);return await new Promise((Z,ee)=>{const ae=[1e3,100];let ie=0;const fe=async()=>{try{const le=await this.provider.getTransaction(H);if(le!=null){Z(le.replaceableTransaction(O));return}}catch(le){if((0,a.isError)(le,"CANCELLED")||(0,a.isError)(le,"BAD_DATA")||(0,a.isError)(le,"NETWORK_ERROR")||(0,a.isError)(le,"UNSUPPORTED_OPERATION")){le.info==null&&(le.info={}),le.info.sendTransactionHash=H,ee(le);return}if((0,a.isError)(le,"INVALID_ARGUMENT")&&(ie++,le.info==null&&(le.info={}),le.info.sendTransactionHash=H,ie>10)){ee(le);return}this.provider.emit("error",(0,a.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:le}))}this.provider._setTimeout(()=>{fe()},ae.pop()||4e3)};fe()})}async signTransaction($){const O=p($);if(O.from){const Z=await(0,t.resolveAddress)(O.from,this.provider);(0,a.assertArgument)(Z!=null&&Z.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",$),O.from=Z}else O.from=this.address;const H=this.provider.getRpcTransaction(O);return await this.provider.send("eth_signTransaction",[H])}async signMessage($){const O=typeof $=="string"?(0,a.toUtf8Bytes)($):$;return await this.provider.send("personal_sign",[(0,a.hexlify)(O),this.address.toLowerCase()])}async signTypedData($,O,H){const Z=p(H),ee=await n.TypedDataEncoder.resolveNames($,O,Z,async ae=>{const ie=await(0,t.resolveAddress)(ae);return(0,a.assertArgument)(ie!=null,"TypedData does not support null address","value",ae),ie});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(n.TypedDataEncoder.getPayload(ee.domain,O,ee.value))])}async unlock($){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),$,null])}async _legacySignMessage($){const O=typeof $=="string"?(0,a.toUtf8Bytes)($):$;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,a.hexlify)(O)])}}is.JsonRpcSigner=C;class T extends s.AbstractProvider{constructor($,O){super($,O);Ce(this,N);Ce(this,_);Ce(this,k);Ce(this,R);Ce(this,D);Ce(this,B);Ce(this,M);Ce(this,E);se(this,k,1),se(this,_,Object.assign({},x,O||{})),se(this,R,[]),se(this,D,null),se(this,M,null),se(this,E,null);{let Z=null;const ee=new Promise(ae=>{Z=ae});se(this,B,{promise:ee,resolve:Z})}const H=this._getOption("staticNetwork");typeof H=="boolean"?((0,a.assertArgument)(!H||$!=="any","staticNetwork cannot be used on special network 'any'","options",O),H&&$!=null&&se(this,M,l.Network.from($))):H&&((0,a.assertArgument)($==null||H.matches($),"staticNetwork MUST match network object","options",O),se(this,M,H))}_getOption($){return q(this,_)[$]}get _network(){return(0,a.assert)(q(this,M),"network is not available yet","NETWORK_ERROR"),q(this,M)}async _perform($){if($.method==="call"||$.method==="estimateGas"){let H=$.transaction;if(H&&H.type!=null&&(0,a.getBigInt)(H.type)&&H.maxFeePerGas==null&&H.maxPriorityFeePerGas==null){const Z=await this.getFeeData();Z.maxFeePerGas==null&&Z.maxPriorityFeePerGas==null&&($=Object.assign({},$,{transaction:Object.assign({},H,{type:void 0})}))}}const O=this.getRpcRequest($);return O!=null?await this.send(O.method,O.args):super._perform($)}async _detectNetwork(){const $=this._getOption("staticNetwork");if($)if($===!0){if(q(this,M))return q(this,M)}else return $;return q(this,E)?await q(this,E):this.ready?(se(this,E,(async()=>{try{const O=l.Network.from((0,a.getBigInt)(await this.send("eth_chainId",[])));return se(this,E,null),O}catch(O){throw se(this,E,null),O}})()),await q(this,E)):(se(this,E,(async()=>{const O={id:fu(this,k)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:O});let H;try{H=(await this._send(O))[0],se(this,E,null)}
90catch(Z){throw se(this,E,null),this.emit("debug",{action:"receiveRpcError",error:Z}),Z}if(this.emit("debug",{action:"receiveRpcResult",result:H}),"result"in H)return l.Network.from((0,a.getBigInt)(H.result));throw this.getRpcError(O,H)})()),await q(this,E))}_start(){q(this,B)==null||q(this,B).resolve==null||(q(this,B).resolve(),se(this,B,null),(async()=>{for(;q(this,M)==null&&!this.destroyed;)try{se(this,M,await this._detectNetwork())}catch($){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",(0,a.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:$}})),await m(1e3)}je(this,N,U5).call(this)})())}async _waitUntilReady(){if(q(this,B)!=null)return await q(this,B).promise}_getSubscriber($){return $.type==="pending"?new c.FilterIdPendingSubscriber(this):$.type==="event"?this._getOption("polling")?new u.PollingEventSubscriber(this,$.filter):new c.FilterIdEventSubscriber(this,$.filter):$.type==="orphan"&&$.filter.orphan==="drop-log"?new s.UnmanagedSubscriber("orphan"):super._getSubscriber($)}get ready(){return q(this,B)==null}getRpcTransaction($){const O={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(H=>{if($[H]==null)return;let Z=H;H==="gasLimit"&&(Z="gas"),O[Z]=(0,a.toQuantity)((0,a.getBigInt)($[H],`tx.${H}`))}),["from","to","data"].forEach(H=>{$[H]!=null&&(O[H]=(0,a.hexlify)($[H]))}),$.accessList&&(O.accessList=(0,r.accessListify)($.accessList)),$.blobVersionedHashes&&(O.blobVersionedHashes=$.blobVersionedHashes.map(H=>H.toLowerCase())),$.authorizationList&&(O.authorizationList=$.authorizationList.map(H=>{const Z=(0,r.authorizationify)(H);return{address:Z.address,nonce:(0,a.toQuantity)(Z.nonce),chainId:(0,a.toQuantity)(Z.chainId),yParity:(0,a.toQuantity)(Z.signature.yParity),r:Z.signature.r,s:Z.signature.s}})),O}getRpcRequest($){switch($.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:[h($.address),$.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[h($.address),$.blockTag]};case"getCode":return{method:"eth_getCode",args:[h($.address),$.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[h($.address),"0x"+$.position.toString(16),$.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[$.signedTransaction]};case"getBlock":if("blockTag"in $)return{method:"eth_getBlockByNumber",args:[$.blockTag,!!$.includeTransactions]};if("blockHash"in $)return{method:"eth_getBlockByHash",args:[$.blockHash,!!$.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[$.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[$.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction($.transaction),$.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction($.transaction)]};case"getLogs":return $.filter&&$.filter.address!=null&&(Array.isArray($.filter.address)?$.filter.address=$.filter.address.map(h):$.filter.address=h($.filter.address)),{method:"eth_getLogs",args:[$.filter]}}return null}getRpcError($,O){const{method:H}=$,{error:Z}=O;if(H==="eth_estimateGas"&&Z.message){const ie=Z.message;if(!ie.match(/revert/i)&&ie.match(/insufficient funds/i))return(0,a.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:$.params[0],info:{payload:$,error:Z}});if(ie.match(/nonce/i)&&ie.match(/too low/i))return(0,a.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:$.params[0],info:{payload:$,error:Z}})}if(H==="eth_call"||H==="eth_estimateGas"){const ie=g(Z),fe=e.AbiCoder.getBuiltinCallException(H==="eth_call"?"call":"estimateGas",$.params[0],ie?ie.data:null);return fe.info={error:Z,payload:$},fe}const ee=JSON.stringify(S(Z));if(typeof Z.message=="string"&&Z.message.match(/user denied|ethers-user-denied/i)){const ie={eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"};return(0,a.makeError)("user rejected action","ACTION_REJECTED",{action:ie[H]||"unknown",reason:"rejected",info:{payload:$,error:Z}})}if(H==="eth_sendRawTransaction"||H==="eth_sendTransaction"){const ie=$.params[0];if(ee.match(/insufficient funds|base fee exceeds gas limit/i))return(0,a.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:ie,info:{error:Z}});if(ee.match(/nonce/i)&&ee.match(/too low/i))return(0,a.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:ie,info:{error:Z}});if(ee.match(/replacement transaction/i)&&ee.match(/underpriced/i))return(0,a.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:ie,info:{error:Z}});if(ee.match(/only replay-protected/i))return(0,a.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:H,info:{transaction:ie,info:{error:Z}}})}let ae=!!ee.match(/the method .* does not exist/i);return ae||Z&&Z.details&&Z.details.startsWith("Unauthorized method:")&&(ae=!0),ae?(0,a.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:$.method,info:{error:Z,payload:$}}
90):(0,a.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:Z,payload:$})}send($,O){if(this.destroyed)return Promise.reject((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:$}));const H=fu(this,k)._++,Z=new Promise((ee,ae)=>{q(this,R).push({resolve:ee,reject:ae,payload:{method:$,params:O,id:H,jsonrpc:"2.0"}})});return je(this,N,U5).call(this),Z}async getSigner($){$==null&&($=0);const O=this.send("eth_accounts",[]);if(typeof $=="number"){const Z=await O;if($>=Z.length)throw new Error("no such account");return new C(this,Z[$])}const{accounts:H}=await(0,a.resolveProperties)({network:this.getNetwork(),accounts:O});$=(0,t.getAddress)($);for(const Z of H)if((0,t.getAddress)(Z)===$)return new C(this,$);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(O=>new C(this,O))}destroy(){q(this,D)&&(clearTimeout(q(this,D)),se(this,D,null));for(const{payload:$,reject:O}of q(this,R))O((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:$.method}));se(this,R,[]),super.destroy()}}_=new WeakMap,k=new WeakMap,R=new WeakMap,D=new WeakMap,B=new WeakMap,M=new WeakMap,E=new WeakMap,N=new WeakSet,U5=function(){if(q(this,D))return;const $=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");se(this,D,setTimeout(()=>{se(this,D,null);const O=q(this,R);for(se(this,R,[]);O.length;){const H=[O.shift()];for(;O.length&&H.length!==q(this,_).batchMaxCount;)if(H.push(O.shift()),JSON.stringify(H.map(ee=>ee.payload)).length>q(this,_).batchMaxSize){O.unshift(H.pop());break}(async()=>{const Z=H.length===1?H[0].payload:H.map(ee=>ee.payload);this.emit("debug",{action:"sendRpcPayload",payload:Z});try{const ee=await this._send(Z);this.emit("debug",{action:"receiveRpcResult",result:ee});for(const{resolve:ae,reject:ie,payload:fe}of H){if(this.destroyed){ie((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:fe.method}));continue}const le=ee.filter(xe=>xe.id===fe.id)[0];if(le==null){const xe=(0,a.makeError)("missing response for request","BAD_DATA",{value:ee,info:{payload:fe}});this.emit("error",xe),ie(xe);continue}if("error"in le){ie(this.getRpcError(fe,le));continue}ae(le.result)}}catch(ee){this.emit("debug",{action:"receiveRpcError",error:ee});for(const{reject:ae}of H)ae(ee)}})()}},$))},is.JsonRpcApiProvider=T;class w extends T{constructor($,O){super($,O);Ce(this,F);let H=this._getOption("pollingInterval");H==null&&(H=x.pollingInterval),se(this,F,H)}_getSubscriber($){const O=super._getSubscriber($);return y(O)&&(O.pollingInterval=q(this,F)),O}get pollingInterval(){return q(this,F)}set pollingInterval($){if(!Number.isInteger($)||$<0)throw new Error("invalid interval");se(this,F,$),this._forEachSubscriber(O=>{y(O)&&(O.pollingInterval=q(this,F))})}}F=new WeakMap,is.JsonRpcApiPollingProvider=w;class v extends w{constructor($,O,H){$==null&&($="http://localhost:8545");super(O,H);Ce(this,z);typeof $=="string"?se(this,z,new a.FetchRequest($)):se(this,z,$.clone())}_getConnection(){return q(this,z).clone()}async send($,O){return await this._start(),await super.send($,O)}async _send($){const O=this._getConnection();O.body=JSON.stringify($),O.setHeader("content-type","application/json");const H=await O.send();H.assertOk();let Z=H.bodyJson;return Array.isArray(Z)||(Z=[Z]),Z}}z=new WeakMap,is.JsonRpcProvider=v;function g(U){if(U==null)return null;if(typeof U.message=="string"&&U.message.match(/revert/i)&&(0,a.isHexString)(U.data))return{message:U.message,data:U.data};if(typeof U=="object"){for(const V in U){const $=g(U[V]);if($)return $}return null}if(typeof U=="string")try{return g(JSON.parse(U))}catch{}return null}function A(U,V){if(U!=null){if(typeof U.message=="string"&&V.push(U.message),typeof U=="object")for(const $ in U)A(U[$],V);if(typeof U=="string")try{return A(JSON.parse(U),V)}catch{}}}function S(U){const V=[];return A(U,V),V}return is}var __;function r$(){if(__)return np;__=1,Object.defineProperty(np,"__esModule",{value:!0}),np.AnkrProvider=void 0;const e=at(),t=Go(),n=ia(),r=qa(),a="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function s(l){switch(l){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";
90case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}(0,e.assertArgument)(!1,"unsupported network","network",l)}class i extends r.JsonRpcProvider{constructor(u,f){u==null&&(u="mainnet");const p=n.Network.from(u);f==null&&(f=a);const m={polling:!0,staticNetwork:p},h=i.getRequest(p,f);super(h,p,m);de(this,"apiKey");(0,e.defineProperties)(this,{apiKey:f})}_getProvider(u){try{return new i(u,this.apiKey)}catch{}return super._getProvider(u)}static getRequest(u,f){f==null&&(f=a);const p=new e.FetchRequest(`https://${s(u.name)}/${f}`);return p.allowGzip=!0,f===a&&(p.retryFunc=async(m,h,y)=>((0,t.showThrottleMessage)("AnkrProvider"),!0)),p}getRpcError(u,f){return u.method==="eth_sendRawTransaction"&&f&&f.error&&f.error.message==="INTERNAL_ERROR: could not replace existing tx"&&(f.error.message="replacement transaction underpriced"),super.getRpcError(u,f)}isCommunityResource(){return this.apiKey===a}}return np.AnkrProvider=i,np}var rp={},I_;function a$(){if(I_)return rp;I_=1,Object.defineProperty(rp,"__esModule",{value:!0}),rp.AlchemyProvider=void 0;const e=at(),t=Go(),n=ia(),r=qa(),a="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";function s(l){switch(l){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}(0,e.assertArgument)(!1,"unsupported network","network",l)}class i extends r.JsonRpcProvider{constructor(u,f){u==null&&(u="mainnet");const p=n.Network.from(u);f==null&&(f=a);const m=i.getRequest(p,f);super(m,p,{staticNetwork:p});de(this,"apiKey");(0,e.defineProperties)(this,{apiKey:f})}_getProvider(u){try{return new i(u,this.apiKey)}catch{}return super._getProvider(u)}async _perform(u){if(u.method==="getTransactionResult"){const{trace:f,tx:p}=await(0,e.resolveProperties)({trace:this.send("trace_transaction",[u.hash]),tx:this.getTransaction(u.hash)});if(f==null||p==null)return null;let m,h=!1;try{m=f[0].result.output,h=f[0].error==="Reverted"}catch{}if(m)return(0,e.assert)(!h,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:m,reason:null,transaction:p,invocation:null,revert:null}),m;(0,e.assert)(!1,"could not parse trace result","BAD_DATA",{value:f})}return await super._perform(u)}isCommunityResource(){return this.apiKey===a}static getRequest(u,f){f==null&&(f=a);const p=new e.FetchRequest(`https://${s(u.name)}/v2/${f}`);return p.allowGzip=!0,f===a&&(p.retryFunc=async(m,h,y)=>((0,t.showThrottleMessage)("alchemy"),!0)),p}}return rp.AlchemyProvider=i,rp}var ap={},N_;function s$(){if(N_)return ap;N_=1,Object.defineProperty(ap,"__esModule",{value:!0}),ap.ChainstackProvider=void 0;const e=at(),t=Go(),n=ia(),r=qa();function a(l){switch(l){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}(0,e.assertArgument)(!1,"unsupported network","network",l)}function s(l){switch(l){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}(0,e.assertArgument)(!1,"unsupported network","network",l)}class i extends r.JsonRpcProvider{constructor(u,f){u==null&&(u="mainnet");const p=n.Network.from(u);
90f==null&&(f=a(p.name));const m=i.getRequest(p,f);super(m,p,{staticNetwork:p});de(this,"apiKey");(0,e.defineProperties)(this,{apiKey:f})}_getProvider(u){try{return new i(u,this.apiKey)}catch{}return super._getProvider(u)}isCommunityResource(){return this.apiKey===a(this._network.name)}static getRequest(u,f){f==null&&(f=a(u.name));const p=new e.FetchRequest(`https://${s(u.name)}/${f}`);return p.allowGzip=!0,f===a(u.name)&&(p.retryFunc=async(m,h,y)=>((0,t.showThrottleMessage)("ChainstackProvider"),!0)),p}}return ap.ChainstackProvider=i,ap}var sp={},R_;function i$(){if(R_)return sp;R_=1,Object.defineProperty(sp,"__esModule",{value:!0}),sp.CloudflareProvider=void 0;const e=at(),t=ia(),n=qa();class r extends n.JsonRpcProvider{constructor(s){s==null&&(s="mainnet");const i=t.Network.from(s);(0,e.assertArgument)(i.name==="mainnet","unsupported network","network",s),super("https://cloudflare-eth.com/",i,{staticNetwork:i})}}return sp.CloudflareProvider=r,sp}var Kl={},O_;function o$(){var x;if(O_)return Kl;O_=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.EtherscanProvider=Kl.EtherscanPlugin=void 0;const e=Pm(),t=O1(),n=sa(),r=at(),a=Sm(),s=ia(),i=mE(),l=Go(),c=2e3;function u(C){return C&&typeof C.then=="function"}const f="org.ethers.plugins.provider.Etherscan";class p extends i.NetworkPlugin{constructor(w){super(f);de(this,"baseUrl");(0,r.defineProperties)(this,{baseUrl:w})}clone(){return new p(this.baseUrl)}}Kl.EtherscanPlugin=p;const m=["enableCcipRead"];let h=1;class y extends a.AbstractProvider{constructor(w,v){const g=v??null;super();de(this,"network");de(this,"apiKey");Ce(this,x);const A=s.Network.from(w);se(this,x,A.getPlugin(f)),(0,r.defineProperties)(this,{apiKey:g,network:A}),this.getBaseUrl()}getBaseUrl(){if(q(this,x))return q(this,x).baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}(0,r.assertArgument)(!1,"unsupported network","network",this.network)}getUrl(w,v){const g=Object.keys(v).reduce((S,_)=>{const k=v[_];return k!=null&&(S+=`&${_}=${k}`),S},""),A=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${w}${g}${A}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(w,v){return v.module=w,v.apikey=this.apiKey,v}async detectNetwork(){return this.network}async fetch(w,v,g){const A=h++,S=g?this.getPostUrl():this.getUrl(w,v),_=g?this.getPostData(w,v):null;this.emit("debug",{action:"sendRequest",id:A,url:S,payload:_});const k=new r.FetchRequest(S);k.setThrottleParams({slotInterval:1e3}),k.retryFunc=(B,M,E)=>(this.isCommunityResource()&&(0,l.showThrottleMessage)("Etherscan"),Promise.resolve(!0)),k.processFunc=async(B,M)=>{const E=M.hasBody()?JSON.parse((0,r.toUtf8String)(M.body)):{},N=(typeof E.result=="string"?E.result:"").toLowerCase().indexOf("rate limit")>=0;return w==="proxy"?E&&E.status==0&&E.message=="NOTOK"&&N&&(this.emit("debug",{action:"receiveError",id:A,reason:"proxy-NOTOK",error:E}),M.throwThrottleError(E.result,c)):N&&(this.emit("debug",{action:"receiveError",id:A,reason:"null result",error:E.result}),M.throwThrottleError(E.result,c)),M},_&&(k.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),k.body=Object.keys(_).map(B=>`${B}=${_[B]}`).join("&"));const R=await k.send();try{R.assertOk()}catch(B){this.emit("debug",{action:"receiveError",id:A,error:B,reason:"assertOk"}),(0,r.assert)(!1,"response error","SERVER_ERROR",{request:k,response:R})}
90R.hasBody()||(this.emit("debug",{action:"receiveError",id:A,error:"missing body",reason:"null body"}),(0,r.assert)(!1,"missing response","SERVER_ERROR",{request:k,response:R}));const D=JSON.parse((0,r.toUtf8String)(R.body));return w==="proxy"?(D.jsonrpc!="2.0"&&(this.emit("debug",{action:"receiveError",id:A,result:D,reason:"invalid JSON-RPC"}),(0,r.assert)(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:k,response:R,info:{result:D}})),D.error&&(this.emit("debug",{action:"receiveError",id:A,result:D,reason:"JSON-RPC error"}),(0,r.assert)(!1,"error response","SERVER_ERROR",{request:k,response:R,info:{result:D}})),this.emit("debug",{action:"receiveRequest",id:A,result:D}),D.result):D.status==0&&(D.message==="No records found"||D.message==="No transactions found")?(this.emit("debug",{action:"receiveRequest",id:A,result:D}),D.result):((D.status!=1||typeof D.message=="string"&&!D.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:A,result:D}),(0,r.assert)(!1,"error response","SERVER_ERROR",{request:k,response:R,info:{result:D}})),this.emit("debug",{action:"receiveRequest",id:A,result:D}),D.result)}_getTransactionPostData(w){const v={};for(let g in w){if(m.indexOf(g)>=0||w[g]==null)continue;let A=w[g];if(!(g==="type"&&A===0)&&!(g==="blockTag"&&A==="latest")){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[g])A=(0,r.toQuantity)(A);else if(g==="accessList")A="["+(0,n.accessListify)(A).map(S=>`{address:"${S.address}",storageKeys:["${S.storageKeys.join('","')}"]}`).join(",")+"]";else if(g==="blobVersionedHashes"){if(A.length===0)continue;(0,r.assert)(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:w}})}else A=(0,r.hexlify)(A);v[g]=A}}return v}_checkError(w,v,g){let A="";if((0,r.isError)(v,"SERVER_ERROR")){try{A=v.info.result.error.message}catch{}if(!A)try{A=v.info.message}catch{}}if(w.method==="estimateGas"&&!A.match(/revert/i)&&A.match(/insufficient funds/i)&&(0,r.assert)(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:w.transaction}),(w.method==="call"||w.method==="estimateGas")&&A.match(/execution reverted/i)){let S="";try{S=v.info.result.error.data}catch{}const _=e.AbiCoder.getBuiltinCallException(w.method,w.transaction,S);throw _.info={request:w,error:v},_}if(A&&w.method==="broadcastTransaction"){const S=n.Transaction.from(w.signedTransaction);A.match(/replacement/i)&&A.match(/underpriced/i)&&(0,r.assert)(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:S}),A.match(/insufficient funds/)&&(0,r.assert)(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:S}),A.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&(0,r.assert)(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:S})}throw v}async _detectNetwork(){return this.network}async _perform(w){switch(w.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if(this.network.name==="mainnet")return"1000000000";if(this.network.name==="optimism")return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:w.address,tag:w.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:w.address,tag:w.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:w.address,tag:w.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:w.address,position:w.position,tag:w.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:w.signedTransaction},!0).catch(v=>this._checkError(w,v,w.signedTransaction));case"getBlock":if("blockTag"in w)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:w.blockTag,boolean:w.includeTransactions?"true":"false"});(0,r.assert)(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:w.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:w.hash});case"call":{if(w.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const v=this._getTransactionPostData(w.transaction);v.module="proxy",v.action="eth_call";try{return await this.fetch("proxy",v,!0)}catch(g){return this._checkError(w,g,w.transaction)}}case"estimateGas":{const v=this._getTransactionPostData(w.transaction);v.module="proxy",v.action="eth_estimateGas";try{return await this.fetch("proxy",v,!0)}catch(g){return this._checkError(w,g,w.transaction)}}}return super._perform(w)}async getNetwork(){return this.network}async getEtherPrice(){return this.network.name!=="mainnet"?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(w){let v=this._getAddress(w);u(v)&&(v=await v);try{const g=await this.fetch("contract",{action:"getabi",address:v}),A=JSON.parse(g);return new t.Contract(v,A,this)}catch{return null}}isCommunityResource(){return this.apiKey==null}}return x=new WeakMap,Kl.EtherscanProvider=y,Kl}var Vl={},ip={},op={},M_;function Rle(){if(M_)return op;M_=1,Object.defineProperty(op,"__esModule",{value:!0}),op.WebSocket=void 0;function e(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof Eb<"u")return Eb;throw new Error("unable to locate global object")}const t=e().WebSocket;return op.WebSocket=t,op}var va={},D_;function j5(){var c,u,f,p,m,h,y,x,C;if(D_)return va;D_=1,Object.defineProperty(va,"__esModule",{value:!0}),va.SocketProvider=va.SocketEventSubscriber=va.SocketPendingSubscriber=va.SocketBlockSubscriber=va.SocketSubscriber=void 0;const e=Sm(),t=at(),n=qa();
90class r{constructor(w,v){Ce(this,c);Ce(this,u);Ce(this,f);Ce(this,p);Ce(this,m);se(this,c,w),se(this,u,JSON.stringify(v)),se(this,f,null),se(this,p,null),se(this,m,null)}get filter(){return JSON.parse(q(this,u))}start(){se(this,f,q(this,c).send("eth_subscribe",this.filter).then(w=>(q(this,c)._register(w,this),w)))}stop(){q(this,f).then(w=>{q(this,c).destroyed||q(this,c).send("eth_unsubscribe",[w])}),se(this,f,null)}pause(w){(0,t.assert)(w,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),se(this,p,!!w)}resume(){se(this,p,null)}_handleMessage(w){if(q(this,f)!=null&&q(this,p)===null){let v=q(this,m);v==null?v=this._emit(q(this,c),w):v=v.then(async()=>{await this._emit(q(this,c),w)}),se(this,m,v.then(()=>{q(this,m)===v&&se(this,m,null)}))}}async _emit(w,v){throw new Error("sub-classes must implemente this; _emit")}}c=new WeakMap,u=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,va.SocketSubscriber=r;class a extends r{constructor(w){super(w,["newHeads"])}async _emit(w,v){w.emit("block",parseInt(v.number))}}va.SocketBlockSubscriber=a;class s extends r{constructor(w){super(w,["newPendingTransactions"])}async _emit(w,v){w.emit("pending",v)}}va.SocketPendingSubscriber=s;class i extends r{constructor(v,g){super(v,["logs",g]);Ce(this,h);se(this,h,JSON.stringify(g))}get logFilter(){return JSON.parse(q(this,h))}async _emit(v,g){v.emit(this.logFilter,v._wrapLog(g,v._network))}}h=new WeakMap,va.SocketEventSubscriber=i;class l extends n.JsonRpcApiProvider{constructor(v,g){const A=Object.assign({},g??{});(0,t.assertArgument)(A.batchMaxCount==null||A.batchMaxCount===1,"sockets-based providers do not support batches","options.batchMaxCount",g),A.batchMaxCount=1,A.staticNetwork==null&&(A.staticNetwork=!0);super(v,A);Ce(this,y);Ce(this,x);Ce(this,C);se(this,y,new Map),se(this,x,new Map),se(this,C,new Map)}_getSubscriber(v){switch(v.type){case"close":return new e.UnmanagedSubscriber("close");case"block":return new a(this);case"pending":return new s(this);case"event":return new i(this,v.filter);case"orphan":if(v.filter.orphan==="drop-log")return new e.UnmanagedSubscriber("drop-log")}return super._getSubscriber(v)}_register(v,g){q(this,x).set(v,g);const A=q(this,C).get(v);if(A){for(const S of A)g._handleMessage(S);q(this,C).delete(v)}}async _send(v){(0,t.assertArgument)(!Array.isArray(v),"WebSocket does not support batch send","payload",v);const g=new Promise((A,S)=>{q(this,y).set(v.id,{payload:v,resolve:A,reject:S})});return await this._waitUntilReady(),await this._write(JSON.stringify(v)),[await g]}async _processMessage(v){const g=JSON.parse(v);if(g&&typeof g=="object"&&"id"in g){const A=q(this,y).get(g.id);if(A==null){this.emit("error",(0,t.makeError)("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:g}));return}q(this,y).delete(g.id),A.resolve(g)}else if(g&&g.method==="eth_subscription"){const A=g.params.subscription,S=q(this,x).get(A);if(S)S._handleMessage(g.params.result);else{let _=q(this,C).get(A);_==null&&(_=[],q(this,C).set(A,_)),_.push(g.params.result)}}else{this.emit("error",(0,t.makeError)("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:g}));return}}async _write(v){throw new Error("sub-classes must override this")}}return y=new WeakMap,x=new WeakMap,C=new WeakMap,va.SocketProvider=l,va}var F_;function bE(){var r,a;if(F_)return ip;F_=1,Object.defineProperty(ip,"__esModule",{value:!0}),ip.WebSocketProvider=void 0;const e=Rle(),t=j5();class n extends t.SocketProvider{constructor(l,c,u){super(c,u);Ce(this,r);Ce(this,a);typeof l=="string"?(se(this,r,()=>new e.WebSocket(l)),se(this,a,q(this,r).call(this))):typeof l=="function"?(se(this,r,l),se(this,a,l())):(se(this,r,null),se(this,a,l)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(f){console.log("failed to start WebsocketProvider",f)}},this.websocket.onmessage=f=>{this._processMessage(f.data)}}get websocket(){if(q(this,a)==null)throw new Error("websocket closed");return q(this,a)}async _write(l){this.websocket.send(l)}async destroy(){q(this,a)!=null&&(q(this,a).close(),se(this,a,null)),super.destroy()}}return r=new WeakMap,a=new WeakMap,ip.WebSocketProvider=n,ip}var U_;
90function l$(){if(U_)return Vl;U_=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.InfuraProvider=Vl.InfuraWebSocketProvider=void 0;const e=at(),t=Go(),n=ia(),r=qa(),a=bE(),s="84842078b09946638c03157f83405213";function i(u){switch(u){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":case"base-goerli":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bsc-mainnet.infura.io";case"bnbt":return"bsc-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}(0,e.assertArgument)(!1,"unsupported network","network",u)}class l extends a.WebSocketProvider{constructor(p,m){const h=new c(p,m),y=h._getConnection();(0,e.assert)(!y.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});const x=y.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(x,h._network);de(this,"projectId");de(this,"projectSecret");(0,e.defineProperties)(this,{projectId:h.projectId,projectSecret:h.projectSecret})}isCommunityResource(){return this.projectId===s}}Vl.InfuraWebSocketProvider=l;class c extends r.JsonRpcProvider{constructor(p,m,h){p==null&&(p="mainnet");const y=n.Network.from(p);m==null&&(m=s),h==null&&(h=null);const x=c.getRequest(y,m,h);super(x,y,{staticNetwork:y});de(this,"projectId");de(this,"projectSecret");(0,e.defineProperties)(this,{projectId:m,projectSecret:h})}_getProvider(p){try{return new c(p,this.projectId,this.projectSecret)}catch{}return super._getProvider(p)}isCommunityResource(){return this.projectId===s}static getWebSocketProvider(p,m){return new l(p,m)}static getRequest(p,m,h){m==null&&(m=s),h==null&&(h=null);const y=new e.FetchRequest(`https://${i(p.name)}/v3/${m}`);return y.allowGzip=!0,h&&y.setCredentials("",h),m===s&&(y.retryFunc=async(x,C,T)=>((0,t.showThrottleMessage)("InfuraProvider"),!0)),y}}return Vl.InfuraProvider=c,Vl}var lp={},j_;function c$(){if(j_)return lp;j_=1,Object.defineProperty(lp,"__esModule",{value:!0}),lp.QuickNodeProvider=void 0;const e=at(),t=Go(),n=ia(),r=qa(),a="919b412a057b5e9c9b6dce193c5a60242d6efadb";function s(l){switch(l){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}(0,e.assertArgument)(!1,"unsupported network","network",l)}class i extends r.JsonRpcProvider{constructor(u,f){u==null&&(u="mainnet");const p=n.Network.from(u);f==null&&(f=a);const m=i.getRequest(p,f);super(m,p,{staticNetwork:p});de(this,"token");(0,e.defineProperties)(this,{token:f})}_getProvider(u){try{return new i(u,this.token)}catch{}return super._getProvider(u)}isCommunityResource(){return this.token===a}
90static getRequest(u,f){f==null&&(f=a);const p=new e.FetchRequest(`https://${s(u.name)}/${f}`);return p.allowGzip=!0,f===a&&(p.retryFunc=async(m,h,y)=>((0,t.showThrottleMessage)("QuickNodeProvider"),!0)),p}}return lp.QuickNodeProvider=i,lp}var cp={},L_;function p$(){var v,g,A,S,u$,L5,d$,f$,$5;if(L_)return cp;L_=1,Object.defineProperty(cp,"__esModule",{value:!0}),cp.FallbackProvider=void 0;const e=at(),t=Sm(),n=ia(),r=BigInt("1"),a=BigInt("2");function s(M){for(let E=M.length-1;E>0;E--){const N=Math.floor(Math.random()*(E+1)),I=M[E];M[E]=M[N],M[N]=I}}function i(M){return new Promise(E=>{setTimeout(E,M)})}function l(){return new Date().getTime()}function c(M){return JSON.stringify(M,(E,N)=>typeof N=="bigint"?{type:"bigint",value:N.toString()}:N)}const u={stallTimeout:400,priority:1,weight:1},f={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function p(M,E){for(;(M.blockNumber<0||M.blockNumber<E)&&(M._updateNumber||(M._updateNumber=(async()=>{try{const N=await M.provider.getBlockNumber();N>M.blockNumber&&(M.blockNumber=N)}catch(N){M.blockNumber=-2,M._lastFatalError=N,M._lastFatalErrorTimestamp=l()}M._updateNumber=null})()),await M._updateNumber,M.outOfSync++,!M._lastFatalError););}function m(M){if(M==null)return"null";if(Array.isArray(M))return"["+M.map(m).join(",")+"]";if(typeof M=="object"&&typeof M.toJSON=="function")return m(M.toJSON());switch(typeof M){case"boolean":case"symbol":return M.toString();case"bigint":case"number":return BigInt(M).toString();case"string":return JSON.stringify(M);case"object":{const E=Object.keys(M);return E.sort(),"{"+E.map(N=>`${JSON.stringify(N)}:${m(M[N])}`).join(",")+"}"}}throw console.log("Could not serialize",M),new Error("Hmm...")}function h(M,E){if("error"in E){const I=E.error;let F;return(0,e.isError)(I,"CALL_EXCEPTION")?F=m(Object.assign({},I,{shortMessage:void 0,reason:void 0,info:void 0})):F=m(I),{tag:F,value:I}}const N=E.result;return{tag:m(N),value:N}}function y(M,E){const N=new Map;for(const{value:F,tag:z,weight:U}of E){const V=N.get(z)||{value:F,weight:0};V.weight+=U,N.set(z,V)}let I=null;for(const F of N.values())F.weight>=M&&(!I||F.weight>I.weight)&&(I=F);if(I)return I.value}function x(M,E){let N=0;const I=new Map;let F=null;const z=[];for(const{value:V,tag:$,weight:O}of E)if(V instanceof Error){const H=I.get($)||{value:V,weight:0};H.weight+=O,I.set($,H),(F==null||H.weight>F.weight)&&(F=H)}else z.push(BigInt(V)),N+=O;if(N<M)return F&&F.weight>=M?F.value:void 0;z.sort((V,$)=>V<$?-1:$>V?1:0);const U=Math.floor(z.length/2);return z.length%2?z[U]:(z[U-1]+z[U]+r)/a}function C(M,E){const N=y(M,E);if(N!==void 0)return N;for(const I of E)if(I.value)return I.value}function T(M,E){if(M===1)return(0,e.getNumber)(x(M,E),"%internal");const N=new Map,I=(U,V)=>{const $=N.get(U)||{result:U,weight:0};$.weight+=V,N.set(U,$)};for(const{weight:U,value:V}of E){const $=(0,e.getNumber)(V);I($-1,U),I($,U),I($+1,U)}let F=0,z;for(const{weight:U,result:V}of N.values())U>=M&&(U>F||z!=null&&U===F&&V>z)&&(F=U,z=V);return z}class w extends t.AbstractProvider{constructor(N,I,F){super(I,F);Ce(this,S);de(this,"quorum");de(this,"eventQuorum");de(this,"eventWorkers");Ce(this,v);Ce(this,g);Ce(this,A);se(this,v,N.map(z=>z instanceof t.AbstractProvider?Object.assign({provider:z},u,f):Object.assign({},u,z,f))),se(this,g,-2),se(this,A,null),F&&F.quorum!=null?this.quorum=F.quorum:this.quorum=Math.ceil(q(this,v).reduce((z,U)=>(z+=U.weight,z),0)/2),this.eventQuorum=1,this.eventWorkers=1,(0,e.assertArgument)(this.quorum<=q(this,v).reduce((z,U)=>z+U.weight,0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return q(this,v).map(N=>{const I=Object.assign({},N);for(const F in I)F[0]==="_"&&delete I[F];return I})}async _detectNetwork(){return n.Network.from((0,e.getBigInt)(await this._perform({method:"chainId"})))}async _translatePerform(N,I){switch(I.method){case"broadcastTransaction":return await N.broadcastTransaction(I.signedTransaction);case"call":return await N.call(Object.assign({},I.transaction,{blockTag:I.blockTag}));case"chainId":return(await N.getNetwork()).chainId;case"estimateGas":return await N.estimateGas(I.transaction);case"getBalance":return await N.getBalance(I.address,I.blockTag);case"getBlock":{const F="blockHash"in I?I.blockHash:I.blockTag;return await N.getBlock(F,I.includeTransactions)}case"getBlockNumber":return await N.getBlockNumber();case"getCode":return await N.getCode(I.address,I.blockTag);case"getGasPrice":return(await N.getFeeData()).gasPrice;case"getPriorityFee":return(await N.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await N.getLogs(I.filter);case"getStorage":return await N.getStorage(I.address,I.position,I.blockTag);case"getTransaction":return await N.getTransaction(I.hash);case"getTransactionCount":return await N.getTransactionCount(I.address,I.blockTag);case"getTransactionReceipt":return await N.getTransactionReceipt(I.hash);case"getTransactionResult":return await N.getTransactionResult(I.hash)}}async _perform(N){if(N.method==="broadcastTransaction"){const U=q(this,v).map(O=>null),V=q(this,v).map(async({provider:O,weight:H},Z)=>{try{const ee=await O._perform(N);U[Z]=Object.assign(h(N.method,{result:ee}),{weight:H})}
90catch(ee){U[Z]=Object.assign(h(N.method,{error:ee}),{weight:H})}});for(;;){const O=U.filter(ee=>ee!=null);for(const{value:ee}of O)if(!(ee instanceof Error))return ee;const H=y(this.quorum,U.filter(ee=>ee!=null));if((0,e.isError)(H,"INSUFFICIENT_FUNDS"))throw H;const Z=V.filter((ee,ae)=>U[ae]==null);if(Z.length===0)break;await Promise.race(Z)}const $=C(this.quorum,U);if((0,e.assert)($!==void 0,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:N,results:U.map(c)}}),$ instanceof Error)throw $;return $}await je(this,S,d$).call(this);const I=new Set;let F=0;for(;;){const U=je(this,S,L5).call(this,I,N);if(U==null||(F+=U.config.weight,F>=this.quorum))break}const z=await je(this,S,$5).call(this,I,N);for(const U of I)U.perform&&U.result==null&&U.config.lateResponses++;return z}async destroy(){for(const{provider:N}of q(this,v))N.destroy();super.destroy()}}return v=new WeakMap,g=new WeakMap,A=new WeakMap,S=new WeakSet,u$=function(N){const I=Array.from(N).map(z=>z.config),F=q(this,v).slice();s(F),F.sort((z,U)=>z.priority-U.priority);for(const z of F)if(!z._lastFatalError&&I.indexOf(z)===-1)return z;return null},L5=function(N,I){const F=je(this,S,u$).call(this,N);if(F==null)return null;const z={config:F,result:null,didBump:!1,perform:null,staller:null},U=l();return z.perform=(async()=>{try{F.requests++;const $=await this._translatePerform(F.provider,I);z.result={result:$}}catch($){F.errorResponses++,z.result={error:$}}const V=l()-U;F._totalTime+=V,F.rollingDuration=.95*F.rollingDuration+.05*V,z.perform=null})(),z.staller=(async()=>{await i(F.stallTimeout),z.staller=null})(),N.add(z),z},d$=async function(){let N=q(this,A);if(!N){const I=[];q(this,v).forEach(F=>{I.push((async()=>{await p(F,0),F._lastFatalError||(F._network=await F.provider.getNetwork())})())}),se(this,A,N=(async()=>{await Promise.all(I);let F=null;for(const z of q(this,v)){if(z._lastFatalError)continue;const U=z._network;F==null?F=U.chainId:U.chainId!==F&&(0,e.assert)(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await N},f$=async function(N,I){const F=[];for(const z of N)if(z.result!=null){const{tag:U,value:V}=h(I.method,z.result);F.push({tag:U,value:V,weight:z.config.weight})}if(!(F.reduce((z,U)=>z+U.weight,0)<this.quorum)){switch(I.method){case"getBlockNumber":{q(this,g)===-2&&se(this,g,Math.ceil((0,e.getNumber)(x(this.quorum,q(this,v).filter(U=>!U._lastFatalError).map(U=>({value:U.blockNumber,tag:(0,e.getNumber)(U.blockNumber).toString(),weight:U.weight}))))));const z=T(this.quorum,F);return z===void 0?void 0:(z>q(this,g)&&se(this,g,z),q(this,g))}case"getGasPrice":case"getPriorityFee":case"estimateGas":return x(this.quorum,F);case"getBlock":return"blockTag"in I&&I.blockTag==="pending"?C(this.quorum,F):y(this.quorum,F);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return y(this.quorum,F);case"broadcastTransaction":return C(this.quorum,F)}(0,e.assert)(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${c(I.method)})`})}},$5=async function(N,I){if(N.size===0)throw new Error("no runners?!");const F=[];let z=0;for(const V of N){if(V.perform&&F.push(V.perform),V.staller){F.push(V.staller);continue}V.didBump||(V.didBump=!0,z++)}const U=await je(this,S,f$).call(this,N,I);if(U!==void 0){if(U instanceof Error)throw U;return U}for(let V=0;V<z;V++)je(this,S,L5).call(this,N,I);return(0,e.assert)(F.length>0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:I,results:Array.from(N).map(V=>c(V.result))}}),await Promise.race(F),await je(this,S,$5).call(this,N,I)},cp.FallbackProvider=w,cp}var $_;function Ole(){if($_)return tp;$_=1,Object.defineProperty(tp,"__esModule",{value:!0}),tp.getDefaultProvider=void 0;const e=at(),t=r$(),n=a$(),r=s$(),a=i$(),s=o$(),i=l$(),l=c$(),c=p$(),u=qa(),f=ia(),p=bE();function m(x){return x&&typeof x.send=="function"&&typeof x.close=="function"}const h="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai b
90nbt".split(" ");function y(x,C){C==null&&(C={});const T=A=>C[A]==="-"?!1:typeof C.exclusive=="string"?A===C.exclusive:Array.isArray(C.exclusive)?C.exclusive.indexOf(A)!==-1:!0;if(typeof x=="string"&&x.match(/^https?:/))return new u.JsonRpcProvider(x);if(typeof x=="string"&&x.match(/^wss?:/)||m(x))return new p.WebSocketProvider(x);let w=null;try{w=f.Network.from(x)}catch{}const v=[];if(T("publicPolygon")&&w&&(w.name==="matic"?v.push(new u.JsonRpcProvider("https://polygon-rpc.com/",w,{staticNetwork:w})):w.name==="matic-amoy"&&v.push(new u.JsonRpcProvider("https://rpc-amoy.polygon.technology/",w,{staticNetwork:w}))),T("alchemy"))try{v.push(new n.AlchemyProvider(x,C.alchemy))}catch{}if(T("ankr")&&C.ankr!=null)try{v.push(new t.AnkrProvider(x,C.ankr))}catch{}if(T("chainstack"))try{v.push(new r.ChainstackProvider(x,C.chainstack))}catch{}if(T("cloudflare"))try{v.push(new a.CloudflareProvider(x))}catch{}if(T("etherscan"))try{v.push(new s.EtherscanProvider(x,C.etherscan))}catch{}if(T("infura"))try{let A=C.infura,S;typeof A=="object"&&(S=A.projectSecret,A=A.projectId),v.push(new i.InfuraProvider(x,A,S))}catch{}if(T("quicknode"))try{let A=C.quicknode;v.push(new l.QuickNodeProvider(x,A))}catch{}if((0,e.assert)(v.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),v.length===1)return v[0];let g=Math.floor(v.length/2);return g>2&&(g=2),w&&h.indexOf(w.name)!==-1&&(g=1),C&&C.quorum&&(g=C.quorum),new c.FallbackProvider(v,void 0,{quorum:g})}return tp.getDefaultProvider=y,tp}var up={},z_;function Mle(){var r,a;if(z_)return up;z_=1,Object.defineProperty(up,"__esModule",{value:!0}),up.NonceManager=void 0;const e=at(),t=yE(),s=class s extends t.AbstractSigner{constructor(c){super(c.provider);de(this,"signer");Ce(this,r);Ce(this,a);(0,e.defineProperties)(this,{signer:c}),se(this,r,null),se(this,a,0)}async getAddress(){return this.signer.getAddress()}connect(c){return new s(this.signer.connect(c))}async getNonce(c){if(c==="pending"){q(this,r)==null&&se(this,r,super.getNonce("pending"));const u=q(this,a);return await q(this,r)+u}return super.getNonce(c)}increment(){fu(this,a)._++}reset(){se(this,a,0),se(this,r,null)}async sendTransaction(c){const u=this.getNonce("pending");return this.increment(),c=await this.signer.populateTransaction(c),c.nonce=await u,await this.signer.sendTransaction(c)}signTransaction(c){return this.signer.signTransaction(c)}signMessage(c){return this.signer.signMessage(c)}signTypedData(c,u,f){return this.signer.signTypedData(c,u,f)}};r=new WeakMap,a=new WeakMap;let n=s;return up.NonceManager=n,up}var dp={},H_;function Dle(){var r,a;if(H_)return dp;H_=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.BrowserProvider=void 0;const e=at(),t=qa(),s=class s extends t.JsonRpcApiPollingProvider{constructor(c,u,f){const p=Object.assign({},f??{},{batchMaxCount:1});(0,e.assertArgument)(c&&c.request,"invalid EIP-1193 provider","ethereum",c);super(u,p);Ce(this,r);Ce(this,a);se(this,a,null),f&&f.providerInfo&&se(this,a,f.providerInfo),se(this,r,async(m,h)=>{const y={method:m,params:h};this.emit("debug",{action:"sendEip1193Request",payload:y});try{const x=await c.request(y);return this.emit("debug",{action:"receiveEip1193Result",result:x}),x}catch(x){const C=new Error(x.message);throw C.code=x.code,C.data=x.data,C.payload=y,this.emit("debug",{action:"receiveEip1193Error",error:C}),C}})}get providerInfo(){return q(this,a)}async send(c,u){return await this._start(),await super.send(c,u)}async _send(c){(0,e.assertArgument)(!Array.isArray(c),"EIP-1193 does not support batch request","payload",c);try{const u=await q(this,r).call(this,c.method,c.params||[]);return[{id:c.id,result:u}]}catch(u){return[{id:c.id,error:{code:u.code,data:u.data,message:u.message}}]}}getRpcError(c,u){switch(u=JSON.parse(JSON.stringify(u)),u.error.code||-1){case 4001:u.error.message=`ethers-user-denied: ${u.error.message}`;break;case 4200:u.error.message=`ethers-unsupported: ${u.error.message}`;break}return super.getRpcError(c,u)}async hasSigner(c){c==null&&(c=0);const u=await this.send("eth_accounts",[]);return typeof c=="number"?u.length>c:(c=c.toLowerCase(),u.filter(f=>f.toLowerCase()===c).length!==0)}async getSigner(c){if(c==null&&(c=0),!await this.hasSigner(c))try{await q(this,r).call(this,"eth_requestAccounts",[])}catch(u){const f=u.payload;throw this.getRpcError(f,{id:f.id,error:u})}return await super.getSigner(c)}static async discover(c){if(c==null&&(c={}),c.provider)return new s(c.provider);const u=c.window?c.window:typeof window<"u"?window:null;if(u==null)return null;const f=c.anyProvider;if(f&&u.ethereum)return new s(u.ethereum);if(!("addEventListener"in u&&"dispatchEvent"in u&&"removeEventListener"in u))return null;const p=c.timeout?c.timeout:300;return p===0?null:await new Promise((m,h)=>{let y=[];const x=w=>{y.push(w.detail),f&&C()},C=()=>
90{if(clearTimeout(T),y.length)if(c&&c.filter){const w=c.filter(y.map(v=>Object.assign({},v.info)));if(w==null)m(null);else if(w instanceof s)m(w);else{let v=null;if(w.uuid&&(v=y.filter(A=>w.uuid===A.info.uuid)[0]),v){const{provider:g,info:A}=v;m(new s(g,void 0,{providerInfo:A}))}else h((0,e.makeError)("filter returned unknown info","UNSUPPORTED_OPERATION",{value:w}))}}else{const{provider:w,info:v}=y[0];m(new s(w,void 0,{providerInfo:v}))}else m(null);u.removeEventListener("eip6963:announceProvider",x)},T=setTimeout(()=>{C()},p);u.addEventListener("eip6963:announceProvider",x),u.dispatchEvent(new Event("eip6963:requestProvider"))})}};r=new WeakMap,a=new WeakMap;let n=s;return dp.BrowserProvider=n,dp}var fp={},K_;function Fle(){if(K_)return fp;K_=1,Object.defineProperty(fp,"__esModule",{value:!0}),fp.BlockscoutProvider=void 0;const e=at(),t=ia(),n=qa();function r(s){switch(s){case"mainnet":return"https://eth.blockscout.com/api/eth-rpc";case"sepolia":return"https://eth-sepolia.blockscout.com/api/eth-rpc";case"holesky":return"https://eth-holesky.blockscout.com/api/eth-rpc";case"classic":return"https://etc.blockscout.com/api/eth-rpc";case"arbitrum":return"https://arbitrum.blockscout.com/api/eth-rpc";case"base":return"https://base.blockscout.com/api/eth-rpc";case"base-sepolia":return"https://base-sepolia.blockscout.com/api/eth-rpc";case"matic":return"https://polygon.blockscout.com/api/eth-rpc";case"optimism":return"https://optimism.blockscout.com/api/eth-rpc";case"optimism-sepolia":return"https://optimism-sepolia.blockscout.com/api/eth-rpc";case"xdai":return"https://gnosis.blockscout.com/api/eth-rpc"}(0,e.assertArgument)(!1,"unsupported network","network",s)}class a extends n.JsonRpcProvider{constructor(l,c){l==null&&(l="mainnet");const u=t.Network.from(l);c==null&&(c=null);const f=a.getRequest(u);super(f,u,{staticNetwork:u});de(this,"apiKey");(0,e.defineProperties)(this,{apiKey:c})}_getProvider(l){try{return new a(l,this.apiKey)}catch{}return super._getProvider(l)}isCommunityResource(){return this.apiKey===null}getRpcRequest(l){const c=super.getRpcRequest(l);return c&&c.method==="eth_estimateGas"&&c.args.length==1&&(c.args=c.args.slice(),c.args.push("latest")),c}getRpcError(l,c){const u=c?c.error:null;if(u&&u.code===-32015&&!(0,e.isHexString)(u.data||"",!0)){const f={"assert(false)":"01","arithmetic underflow or overflow":"11","division or modulo by zero":"12","out-of-bounds array access; popping on an empty array":"31","out-of-bounds access of an array or bytesN":"32"};let p="";u.message==="VM execution error."?p=f[u.data]||"":f[u.message||""]&&(p=f[u.message||""]),p&&(u.message+=` (reverted: ${u.data})`,u.data="0x4e487b7100000000000000000000000000000000000000000000000000000000000000"+p)}else u&&u.code===-32e3&&u.message==="wrong transaction nonce"&&(u.message+=" (nonce too low)");return super.getRpcError(l,c)}static getRequest(l){const c=new e.FetchRequest(r(l.name));return c.allowGzip=!0,c}}return fp.BlockscoutProvider=a,fp}var pp={},V_;function Ule(){if(V_)return pp;V_=1,Object.defineProperty(pp,"__esModule",{value:!0}),pp.PocketProvider=void 0;const e=at(),t=Go(),n=ia(),r=qa(),a="62e1ad51b37b8e00394bda3b";function s(l){switch(l){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}(0,e.assertArgument)(!1,"unsupported network","network",l)}class i extends r.JsonRpcProvider{constructor(u,f,p){u==null&&(u="mainnet");const m=n.Network.from(u);f==null&&(f=a),p==null&&(p=null);const h={staticNetwork:m},y=i.getRequest(m,f,p);super(y,m,h);de(this,"applicationId");de(this,"applicationSecret");(0,e.defineProperties)(this,{applicationId:f,applicationSecret:p})}_getProvider(u){try{return new i(u,this.applicationId,this.applicationSecret)}catch{}return super._getProvider(u)}static getRequest(u,f,p){f==null&&(f=a);const m=new e.FetchRequest(`https://${s(u.name)}/v1/lb/${f}`);return m.allowGzip=!0,p&&m.setCredentials("",p),f===a&&(m.retryFunc=async(h,y,x)=>((0,t.showThrottleMessage)("PocketProvider"),!0)),m}isCommunityResource(){return this.applicationId===a}}return pp.PocketProvider=i,pp}var mp={},G_;function jle(){if(G_)return mp;G_=1,Object.defineProperty(mp,"__esModule",{value:!0}),mp.IpcSocketProvider=void 0;const e=void 0;return mp.IpcSocketProvider=e,mp}var q_;function gE(){return q_||(q_=1,(function(e){Object.defineProperty(e,"__esMo
90dule",{value:!0}),e.SocketEventSubscriber=e.SocketPendingSubscriber=e.SocketBlockSubscriber=e.SocketSubscriber=e.WebSocketProvider=e.SocketProvider=e.IpcSocketProvider=e.QuickNodeProvider=e.PocketProvider=e.InfuraWebSocketProvider=e.InfuraProvider=e.EtherscanPlugin=e.EtherscanProvider=e.ChainstackProvider=e.CloudflareProvider=e.AnkrProvider=e.BlockscoutProvider=e.AlchemyProvider=e.BrowserProvider=e.JsonRpcSigner=e.JsonRpcProvider=e.JsonRpcApiProvider=e.FallbackProvider=e.copyRequest=e.TransactionResponse=e.TransactionReceipt=e.Log=e.FeeData=e.Block=e.FetchUrlFeeDataNetworkPlugin=e.FeeDataNetworkPlugin=e.EnsPlugin=e.GasCostPlugin=e.NetworkPlugin=e.NonceManager=e.Network=e.MulticoinProviderPlugin=e.EnsResolver=e.getDefaultProvider=e.showThrottleMessage=e.VoidSigner=e.AbstractSigner=e.UnmanagedSubscriber=e.AbstractProvider=void 0;var t=Sm();Object.defineProperty(e,"AbstractProvider",{enumerable:!0,get:function(){return t.AbstractProvider}}),Object.defineProperty(e,"UnmanagedSubscriber",{enumerable:!0,get:function(){return t.UnmanagedSubscriber}});var n=yE();Object.defineProperty(e,"AbstractSigner",{enumerable:!0,get:function(){return n.AbstractSigner}}),Object.defineProperty(e,"VoidSigner",{enumerable:!0,get:function(){return n.VoidSigner}});var r=Go();Object.defineProperty(e,"showThrottleMessage",{enumerable:!0,get:function(){return r.showThrottleMessage}});var a=Ole();Object.defineProperty(e,"getDefaultProvider",{enumerable:!0,get:function(){return a.getDefaultProvider}});var s=t$();Object.defineProperty(e,"EnsResolver",{enumerable:!0,get:function(){return s.EnsResolver}}),Object.defineProperty(e,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return s.MulticoinProviderPlugin}});var i=ia();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return i.Network}});var l=Mle();Object.defineProperty(e,"NonceManager",{enumerable:!0,get:function(){return l.NonceManager}});var c=mE();Object.defineProperty(e,"NetworkPlugin",{enumerable:!0,get:function(){return c.NetworkPlugin}}),Object.defineProperty(e,"GasCostPlugin",{enumerable:!0,get:function(){return c.GasCostPlugin}}),Object.defineProperty(e,"EnsPlugin",{enumerable:!0,get:function(){return c.EnsPlugin}}),Object.defineProperty(e,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FeeDataNetworkPlugin}}),Object.defineProperty(e,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FetchUrlFeeDataNetworkPlugin}});var u=Tm();Object.defineProperty(e,"Block",{enumerable:!0,get:function(){return u.Block}}),Object.defineProperty(e,"FeeData",{enumerable:!0,get:function(){return u.FeeData}}),Object.defineProperty(e,"Log",{enumerable:!0,get:function(){return u.Log}}),Object.defineProperty(e,"TransactionReceipt",{enumerable:!0,get:function(){return u.TransactionReceipt}}),Object.defineProperty(e,"TransactionResponse",{enumerable:!0,get:function(){return u.TransactionResponse}}),Object.defineProperty(e,"copyRequest",{enumerable:!0,get:function(){return u.copyRequest}});var f=p$();Object.defineProperty(e,"FallbackProvider",{enumerable:!0,get:function(){return f.FallbackProvider}});var p=qa();Object.defineProperty(e,"JsonRpcApiProvider",{enumerable:!0,get:function(){return p.JsonRpcApiProvider}}),Object.defineProperty(e,"JsonRpcProvider",{enumerable:!0,get:function(){return p.JsonRpcProvider}}),Object.defineProperty(e,"JsonRpcSigner",{enumerable:!0,get:function(){return p.JsonRpcSigner}});var m=Dle();Object.defineProperty(e,"BrowserProvider",{enumerable:!0,get:function(){return m.BrowserProvider}});var h=a$();Object.defineProperty(e,"AlchemyProvider",{enumerable:!0,get:function(){return h.AlchemyProvider}});var y=Fle();Object.defineProperty(e,"BlockscoutProvider",{enumerable:!0,get:function(){return y.BlockscoutProvider}});var x=r$();Object.defineProperty(e,"AnkrProvider",{enumerable:!0,get:function(){return x.AnkrProvider}});var C=i$();Object.defineProperty(e,"CloudflareProvider",{enumerable:!0,get:function(){return C.CloudflareProvider}});var T=s$();Object.defineProperty(e,"ChainstackProvider",{enumerable:!0,get:function(){return T.ChainstackProvider}});var w=o$();Object.defineProperty(e,"EtherscanProvider",{enumerable:!0,get:function(){return w.EtherscanProvider}}),Object.defineProperty(e,"EtherscanPlugin",{enumerable:!0,get:function(){return w.EtherscanPlugin}});var v=l$();Object.defineProperty(e,"InfuraProvider",{enumerable:!0,get:function(){return v.InfuraProvider}}),Object.defineProperty(e,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return v.InfuraWebSocketProvider}});var g=Ule();Object.defineProperty(e,"PocketProvider",{enumerable:!0,get:function(){return g.PocketProvider}});var A=c$();Object.defineProperty(e,"QuickNodeProvider",{enumerable:!0,get:function(){return A.QuickNodeProvider}});const S=jle();Object.defineProperty(e,"IpcSocketProvider",{enumerable:!0,get:function(){return S.IpcSocketProvider}});
90var _=j5();Object.defineProperty(e,"SocketProvider",{enumerable:!0,get:function(){return _.SocketProvider}});var k=bE();Object.defineProperty(e,"WebSocketProvider",{enumerable:!0,get:function(){return k.WebSocketProvider}});var R=j5();Object.defineProperty(e,"SocketSubscriber",{enumerable:!0,get:function(){return R.SocketSubscriber}}),Object.defineProperty(e,"SocketBlockSubscriber",{enumerable:!0,get:function(){return R.SocketBlockSubscriber}}),Object.defineProperty(e,"SocketPendingSubscriber",{enumerable:!0,get:function(){return R.SocketPendingSubscriber}}),Object.defineProperty(e,"SocketEventSubscriber",{enumerable:!0,get:function(){return R.SocketEventSubscriber}})})(cw)),cw}var uw={},hp={},W_;function xE(){var i;if(W_)return hp;W_=1,Object.defineProperty(hp,"__esModule",{value:!0}),hp.BaseWallet=void 0;const e=Hn(),t=Ki(),n=gE(),r=sa(),a=at(),l=class l extends n.AbstractSigner{constructor(f,p){super(p);de(this,"address");Ce(this,i);(0,a.assertArgument)(f&&typeof f.sign=="function","invalid private key","privateKey","[ REDACTED ]"),se(this,i,f);const m=(0,r.computeAddress)(this.signingKey.publicKey);(0,a.defineProperties)(this,{address:m})}get signingKey(){return q(this,i)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(f){return new l(q(this,i),f)}
90async signTransaction(f){f=(0,n.copyRequest)(f);const{to:p,from:m}=await(0,a.resolveProperties)({to:f.to?(0,e.resolveAddress)(f.to,this):void 0,from:f.from?(0,e.resolveAddress)(f.from,this):void 0});p!=null&&(f.to=p),m!=null&&(f.from=m),f.from!=null&&((0,a.assertArgument)((0,e.getAddress)(f.from)===this.address,"transaction from address mismatch","tx.from",f.from),delete f.from);const h=r.Transaction.from(f);return h.signature=this.signingKey.sign(h.unsignedHash),h.serialized}async signMessage(f){return this.signMessageSync(f)}signMessageSync(f){return this.signingKey.sign((0,t.hashMessage)(f)).serialized}authorizeSync(f){(0,a.assertArgument)(typeof f.address=="string","invalid address for authorizeSync","auth.address",f);const p=this.signingKey.sign((0,t.hashAuthorization)(f));return Object.assign({},{address:(0,e.getAddress)(f.address),nonce:(0,a.getBigInt)(f.nonce||0),chainId:(0,a.getBigInt)(f.chainId||0)},{signature:p})}async authorize(f){return f=Object.assign({},f,{address:await(0,e.resolveAddress)(f.address,this)}),this.authorizeSync(await this.populateAuthorization(f))}async signTypedData(f,p,m){const h=await t.TypedDataEncoder.resolveNames(f,p,m,async y=>{(0,a.assert)(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:y}});const x=await this.provider.resolveName(y);return(0,a.assert)(x!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:y}),x});return this.signingKey.sign(t.TypedDataEncoder.hash(h.domain,p,h.value)).serialized}};i=new WeakMap;let s=l;return hp.BaseWallet=s,hp}var dw={},yp={},bp={},Gl={},J_;function m$(){if(J_)return Gl;J_=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.decodeOwl=Gl.decode=void 0;const e=at(),t=" !#$%&'()*+,-./<=>?@[]^_`{|}~",n=/^[a-z]*$/i;function r(i,l){let c=97;return i.reduce((u,f)=>(f===l?c++:f.match(n)?u.push(String.fromCharCode(c)+f):(c=97,u.push(f)),u),[])}function a(i,l){for(let f=t.length-1;f>=0;f--)i=i.split(t[f]).join(l.substring(2*f,2*f+2));const c=[],u=i.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(f,p,m,h)=>{if(m)for(let y=parseInt(m);y>=0;y--)c.push(";");else c.push(p.toLowerCase());return""});if(u)throw new Error(`leftovers: ${JSON.stringify(u)}`);return r(r(c,";"),":")}Gl.decode=a;function s(i){return(0,e.assertArgument)(i[0]==="0","unsupported auwl data","data",i),a(i.substring(1+2*t.length),i.substring(1,1+2*t.length))}return Gl.decodeOwl=s,Gl}var gp={},Z_;function h$(){if(Z_)return gp;Z_=1,Object.defineProperty(gp,"__esModule",{value:!0}),gp.Wordlist=void 0;const e=at();class t{constructor(r){de(this,"locale");(0,e.defineProperties)(this,{locale:r})}split(r){return r.toLowerCase().split(/\s+/g)}join(r){return r.join(" ")}}return gp.Wordlist=t,gp}var Q_;function vE(){var s,i,l,c,z5;if(Q_)return bp;Q_=1,Object.defineProperty(bp,"__esModule",{value:!0}),bp.WordlistOwl=void 0;const e=Ki(),t=at(),n=m$(),r=h$();class a extends r.Wordlist{constructor(m,h,y){super(m);Ce(this,c);Ce(this,s);Ce(this,i);Ce(this,l);se(this,s,h),se(this,i,y),se(this,l,null)}get _data(){return q(this,s)}_decodeWords(){return(0,n.decodeOwl)(q(this,s))}getWord(m){const h=je(this,c,z5).call(this);return(0,t.assertArgument)(m>=0&&m<h.length,`invalid word index: ${m}`,"index",m),h[m]}getWordIndex(m){return je(this,c,z5).call(this).indexOf(m)}}return s=new WeakMap,i=new WeakMap,l=new WeakMap,c=new WeakSet,z5=function(){if(q(this,l)==null){const m=this._decodeWords();if((0,e.id)(m.join(`
91`)+`
92`)!==q(this,i))throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);se(this,l,m)}return q(this,l)},bp.WordlistOwl=a,bp}var X_;function M1(){if(X_)return yp;X_=1,Object.defineProperty(yp,"__esModule",{value:!0}),yp.LangEn=void 0;const e=vE(),t="0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'Ue
92UrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp [email protected]#T2O}OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>
92Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|[email protected])[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO",n="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60";let r=null;class a extends e.WordlistOwl{constructor(){super("en",t,n)}static wordlist(){return r==null&&(r=new a),r}}return yp.LangEn=a,yp}var xp={},Y_;function wE(){if(Y_)return xp;Y_=1,Object.defineProperty(xp,"__esModule",{value:!0}),xp.Mnemonic=void 0;const e=Xn(),t=at(),n=M1();function r(u){return(1<<u)-1<<8-u&255}function a(u){return(1<<u)-1&255}function s(u,f){(0,t.assertNormalize)("NFKD"),f==null&&(f=n.LangEn.wordlist());const p=f.split(u);(0,t.assertArgument)(p.length%3===0&&p.length>
92=12&&p.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const m=new Uint8Array(Math.ceil(11*p.length/8));let h=0;for(let w=0;w<p.length;w++){let v=f.getWordIndex(p[w].normalize("NFKD"));(0,t.assertArgument)(v>=0,`invalid mnemonic word at index ${w}`,"mnemonic","[ REDACTED ]");for(let g=0;g<11;g++)v&1<<10-g&&(m[h>>3]|=1<<7-h%8),h++}const y=32*p.length/3,x=p.length/3,C=r(x),T=(0,t.getBytes)((0,e.sha256)(m.slice(0,y/8)))[0]&C;return(0,t.assertArgument)(T===(m[m.length-1]&C),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),(0,t.hexlify)(m.slice(0,y/8))}function i(u,f){(0,t.assertArgument)(u.length%4===0&&u.length>=16&&u.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),f==null&&(f=n.LangEn.wordlist());const p=[0];let m=11;for(let x=0;x<u.length;x++)m>8?(p[p.length-1]<<=8,p[p.length-1]|=u[x],m-=8):(p[p.length-1]<<=m,p[p.length-1]|=u[x]>>8-m,p.push(u[x]&a(8-m)),m+=3);const h=u.length/4,y=parseInt((0,e.sha256)(u).substring(2,4),16)&r(h);return p[p.length-1]<<=h,p[p.length-1]|=y>>8-h,f.join(p.map(x=>f.getWord(x)))}const l={};class c{constructor(f,p,m,h,y){de(this,"phrase");de(this,"password");de(this,"wordlist");de(this,"entropy");h==null&&(h=""),y==null&&(y=n.LangEn.wordlist()),(0,t.assertPrivate)(f,l,"Mnemonic"),(0,t.defineProperties)(this,{phrase:m,password:h,wordlist:y,entropy:p})}computeSeed(){const f=(0,t.toUtf8Bytes)("mnemonic"+this.password,"NFKD");return(0,e.pbkdf2)((0,t.toUtf8Bytes)(this.phrase,"NFKD"),f,2048,64,"sha512")}static fromPhrase(f,p,m){const h=s(f,m);return f=i((0,t.getBytes)(h),m),new c(l,h,f,p,m)}static fromEntropy(f,p,m){const h=(0,t.getBytes)(f,"entropy"),y=i(h,m);return new c(l,(0,t.hexlify)(h),y,p,m)}static entropyToPhrase(f,p){const m=(0,t.getBytes)(f,"entropy");return i(m,p)}static phraseToEntropy(f,p){return s(f,p)}static isValidMnemonic(f,p){try{return s(f,p),!0}catch{}return!1}}return xp.Mnemonic=c,xp}var wa={},fw={},hi={},eI;function y$(){if(eI)return hi;eI=1;/*! MIT License. Copyright 2015-2022 Richard Moore <[email protected]>. See LICENSE.txt. */var e=hi&&hi.__classPrivateFieldGet||function(_,k,R,D){if(R==="a"&&!D)throw new TypeError("Private accessor was defined without a getter");if(typeof k=="function"?_!==k||!D:!k.has(_))throw new TypeError("Cannot read private member from an object whose class did not declare it");return R==="m"?D:R==="a"?D.call(_):D?D.value:k.get(_)},t=hi&&hi.__classPrivateFieldSet||function(_,k,R,D,B){if(D==="m")throw new TypeError("Private method is not writable");if(D==="a"&&!B)throw new TypeError("Private accessor was defined without a setter");if(typeof k=="function"?_!==k||!B:!k.has(_))throw new TypeError("Cannot write private member to an object whose class did not declare it");return D==="a"?B.call(_,R):B?B.value=R:k.set(_,R),R},n,r,a;Object.defineProperty(hi,"__esModule",{value:!0}),hi.AES=void 0;const s={16:10,24:12,32:14},i=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],c=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,
92111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],u=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,16733
9213503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],f=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],p=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389
92623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],h=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,
92632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],y=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],x=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,12974
9203050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],C=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,60
927398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],T=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],w=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,12
9201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],v=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],g=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861
92748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function A(_){const k=[];for(let R=0;R<_.length;R+=4)k.push(_[R]<<24|_[R+1]<<16|_[R+2]<<8|_[R+3]);return k}class S{get key(){return e(this,n,"f").slice()}constructor(k){if(n.set(this,void 0),r.set(this,void 0),a.set(this,void 0),!(this instanceof S))throw Error("AES must be instanitated with `new`");t(this,n,new Uint8Array(k),"f");const R=s[this.key.length];if(R==null)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");t(this,a,[],"f"),t(this,r,[],"f");for(let z=0;z<=R;z++)e(this,a,"f").push([0,0,0,0]),e(this,r,"f").push([0,0,0,0]);const D=(R+1)*4,B=this.key.length/4,M=A(this.key);let E;for(let z=0;z<B;z++)E=z>>2,e(this,a,"f")[E][z%4]=M[z],e(this,r,"f")[R-E][z%4]=M[z];let N=0,I=B,F;for(;I<D;){if(F=M[B-1],M[0]^=l[F>>16&255]<<24^l[F>>8&255]<<16^l[F&255]<<8^l[F>>24&255]^i[N]<<24,N+=1,B!=8)for(let $=1;$<B;$++)M[$]^=M[$-1];else{for(let $=1;$<B/2;$++)M[$]^=M[$-1];F=M[B/2-1],M[B/2]^=l[F&255]^l[F>>8&255]<<8^l[F>>16&255]<<16^l[F>>24&255]<<24;for(let $=B/2+1;$<B;$++)M[$]^=M[$-1]}let z=0,U,V;for(;z<B&&I<D;)U=I>>2,V=I%4,e(this,a,"f")[U][V]=M[z],e(this,r,"f")[R-U][V]=M[z++],I++}for(let z=1;z<R;z++)for(let U=0;U<4;U++)F=e(this,r,"f")[z][U],e(this,r,"f")[z][U]=T[F>>24&255]^w[F>>16&255]^v[F>>8&255]^g[F&255]}encrypt(k){if(k.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const R=e(this,a,"f").length-1,D=[0,0,0,0];let B=A(k);for(let N=0;N<4;N++)B[N]^=e(this,a,"f")[0][N];for(let N=1;N<R;N++){for(let I=0;I<4;I++)D[I]=u[B[I]>>24&255]^f[B[(I+1)%4]>>16&255]^p[B[(I+2)%4]>>8&255]^m[B[(I+3)%4]&255]^e(this,a,"f")[N][I];B=D.slice()}const M=new Uint8Array(16);let E=0;for(let N=0;N<4;N++)E=e(this,a,"f")[R][N],M[4*N]=(l[B[N]>>24&255]^E>>24)&255,M[4*N+1]=(l[B[(N+1)%4]>>
9216&255]^E>>16)&255,M[4*N+2]=(l[B[(N+2)%4]>>8&255]^E>>8)&255,M[4*N+3]=(l[B[(N+3)%4]&255]^E)&255;return M}decrypt(k){if(k.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const R=e(this,r,"f").length-1,D=[0,0,0,0];let B=A(k);for(let N=0;N<4;N++)B[N]^=e(this,r,"f")[0][N];for(let N=1;N<R;N++){for(let I=0;I<4;I++)D[I]=h[B[I]>>24&255]^y[B[(I+3)%4]>>16&255]^x[B[(I+2)%4]>>8&255]^C[B[(I+1)%4]&255]^e(this,r,"f")[N][I];B=D.slice()}const M=new Uint8Array(16);let E=0;for(let N=0;N<4;N++)E=e(this,r,"f")[R][N],M[4*N]=(c[B[N]>>24&255]^E>>24)&255,M[4*N+1]=(c[B[(N+3)%4]>>16&255]^E>>16)&255,M[4*N+2]=(c[B[(N+2)%4]>>8&255]^E>>8)&255,M[4*N+3]=(c[B[(N+1)%4]&255]^E)&255;return M}}return hi.AES=S,n=new WeakMap,r=new WeakMap,a=new WeakMap,hi}var vp={},tI;function md(){if(tI)return vp;tI=1,Object.defineProperty(vp,"__esModule",{value:!0}),vp.ModeOfOperation=void 0;const e=y$();class t{constructor(r,a,s){if(s&&!(this instanceof s))throw new Error(`${r} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new e.AES(a)},name:{enumerable:!0,value:r}})}}return vp.ModeOfOperation=t,vp}var yi={},nI;function Lle(){if(nI)return yi;nI=1;var e=yi&&yi.__classPrivateFieldSet||function(i,l,c,u,f){if(u==="m")throw new TypeError("Private method is not writable");if(u==="a"&&!f)throw new TypeError("Private accessor was defined without a setter");if(typeof l=="function"?i!==l||!f:!l.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return u==="a"?f.call(i,c):f?f.value=c:l.set(i,c),c},t=yi&&yi.__classPrivateFieldGet||function(i,l,c,u){if(c==="a"&&!u)throw new TypeError("Private accessor was defined without a getter");if(typeof l=="function"?i!==l||!u:!l.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return c==="m"?u:c==="a"?u.call(i):u?u.value:l.get(i)},n,r;Object.defineProperty(yi,"__esModule",{value:!0}),yi.CBC=void 0;const a=md();class s extends a.ModeOfOperation{constructor(l,c){if(super("ECC",l,s),n.set(this,void 0),r.set(this,void 0),c){if(c.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");e(this,n,new Uint8Array(c),"f")}else e(this,n,new Uint8Array(16),"f");e(this,r,this.iv,"f")}get iv(){return new Uint8Array(t(this,n,"f"))}encrypt(l){if(l.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const c=new Uint8Array(l.length);for(let u=0;u<l.length;u+=16){for(let f=0;f<16;f++)t(this,r,"f")[f]^=l[u+f];e(this,r,this.aes.encrypt(t(this,r,"f")),"f"),c.set(t(this,r,"f"),u)}return c}decrypt(l){if(l.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const c=new Uint8Array(l.length);for(let u=0;u<l.length;u+=16){const f=this.aes.decrypt(l.subarray(u,u+16));for(let p=0;p<16;p++)c[u+p]=f[p]^t(this,r,"f")[p],t(this,r,"f")[p]=l[u+p]}return c}}return yi.CBC=s,n=new WeakMap,r=new WeakMap,yi}var bi={},rI;function $le(){if(rI)return bi;rI=1;var e=bi&&bi.__classPrivateFieldSet||function(c,u,f,p,m){if(p==="m")throw new TypeError("Private method is not writable");if(p==="a"&&!m)throw new TypeError("Private accessor was defined without a setter");if(typeof u=="function"?c!==u||!m:!u.has(c))throw new TypeError("Cannot write private member to an object whose class did not declare it");return p==="a"?m.call(c,f):m?m.value=f:u.set(c,f),f},t=bi&&bi.__classPrivateFieldGet||function(c,u,f,p){if(f==="a"&&!p)throw new TypeError("Private accessor was defined without a getter");if(typeof u=="function"?c!==u||!p:!u.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return f==="m"?p:f==="a"?p.call(c):p?p.value:u.get(c)},n,r,a,s;Object.defineProperty(bi,"__esModule",{value:!0}),bi.CFB=void 0;const i=md();class l extends i.ModeOfOperation{constructor(u,f,p=8){if(super("CFB",u,l),n.add(this),r.set(this,void 0),a.set(this,void 0),!Number.isInteger(p)||p%8)throw new TypeError("invalid segmentSize");if(Object.defineProperties(this,{segmentSize:{enumerable:!0,value:p}}),f){if(f.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");e(this,r,new Uint8Array(f),"f")}else e(this,r,new Uint8Array(16),"f");e(this,a,this.iv,"f")}get iv(){return new Uint8Array(t(this,r,"f"))}encrypt(u){if(8*u.length%this.segmentSize)throw new TypeError("invalid plaintext size (must be multiple of segmentSize bytes)");const f=this.segmentSize/8,p=new Uint8Array(u);for(let m=0;m<p.length;
92m+=f){const h=this.aes.encrypt(t(this,a,"f"));for(let y=0;y<f;y++)p[m+y]^=h[y];t(this,n,"m",s).call(this,p.subarray(m))}return p}decrypt(u){if(8*u.length%this.segmentSize)throw new TypeError("invalid ciphertext size (must be multiple of segmentSize bytes)");const f=this.segmentSize/8,p=new Uint8Array(u);for(let m=0;m<p.length;m+=f){const h=this.aes.encrypt(t(this,a,"f"));for(let y=0;y<f;y++)p[m+y]^=h[y];t(this,n,"m",s).call(this,u.subarray(m))}return p}}return bi.CFB=l,r=new WeakMap,a=new WeakMap,n=new WeakSet,s=function(u){const f=this.segmentSize/8;t(this,a,"f").set(t(this,a,"f").subarray(f)),t(this,a,"f").set(u.subarray(0,f),16-f)},bi}var gi={},aI;function zle(){if(aI)return gi;aI=1;var e=gi&&gi.__classPrivateFieldSet||function(l,c,u,f,p){if(f==="m")throw new TypeError("Private method is not writable");if(f==="a"&&!p)throw new TypeError("Private accessor was defined without a setter");if(typeof c=="function"?l!==c||!p:!c.has(l))throw new TypeError("Cannot write private member to an object whose class did not declare it");return f==="a"?p.call(l,u):p?p.value=u:c.set(l,u),u},t=gi&&gi.__classPrivateFieldGet||function(l,c,u,f){if(u==="a"&&!f)throw new TypeError("Private accessor was defined without a getter");if(typeof c=="function"?l!==c||!f:!c.has(l))throw new TypeError("Cannot read private member from an object whose class did not declare it");return u==="m"?f:u==="a"?f.call(l):f?f.value:c.get(l)},n,r,a;Object.defineProperty(gi,"__esModule",{value:!0}),gi.CTR=void 0;const s=md();class i extends s.ModeOfOperation{constructor(c,u){super("CTR",c,i),n.set(this,void 0),r.set(this,void 0),a.set(this,void 0),e(this,a,new Uint8Array(16),"f"),t(this,a,"f").fill(0),e(this,n,t(this,a,"f"),"f"),e(this,r,16,"f"),u==null&&(u=1),typeof u=="number"?this.setCounterValue(u):this.setCounterBytes(u)}get counter(){return new Uint8Array(t(this,a,"f"))}setCounterValue(c){if(!Number.isInteger(c)||c<0||c>Number.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let u=15;u>=0;--u)t(this,a,"f")[u]=c%256,c=Math.floor(c/256)}setCounterBytes(c){if(c.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");t(this,a,"f").set(c)}increment(){for(let c=15;c>=0;c--)if(t(this,a,"f")[c]===255)t(this,a,"f")[c]=0;else{t(this,a,"f")[c]++;break}}encrypt(c){var u,f;const p=new Uint8Array(c);for(let m=0;m<p.length;m++)t(this,r,"f")===16&&(e(this,n,this.aes.encrypt(t(this,a,"f")),"f"),e(this,r,0,"f"),this.increment()),p[m]^=t(this,n,"f")[e(this,r,(f=t(this,r,"f"),u=f++,f),"f"),u];return p}decrypt(c){return this.encrypt(c)}}return gi.CTR=i,n=new WeakMap,r=new WeakMap,a=new WeakMap,gi}var wp={},sI;function Hle(){if(sI)return wp;sI=1,Object.defineProperty(wp,"__esModule",{value:!0}),wp.ECB=void 0;const e=md();class t extends e.ModeOfOperation{constructor(r){super("ECB",r,t)}encrypt(r){if(r.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const a=new Uint8Array(r.length);for(let s=0;s<r.length;s+=16)a.set(this.aes.encrypt(r.subarray(s,s+16)),s);return a}decrypt(r){if(r.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const a=new Uint8Array(r.length);for(let s=0;s<r.length;s+=16)a.set(this.aes.decrypt(r.subarray(s,s+16)),s);return a}}return wp.ECB=t,wp}var xi={},iI;function Kle(){if(iI)return xi;iI=1;var e=xi&&xi.__classPrivateFieldSet||function(l,c,u,f,p){if(f==="m")throw new TypeError("Private method is not writable");if(f==="a"&&!p)throw new TypeError("Private accessor was defined without a setter");if(typeof c=="function"?l!==c||!p:!c.has(l))throw new TypeError("Cannot write private member to an object whose class did not declare it");return f==="a"?p.call(l,u):p?p.value=u:c.set(l,u),u},t=xi&&xi.__classPrivateFieldGet||function(l,c,u,f){if(u==="a"&&!f)throw new TypeError("Private accessor was defined without a getter");if(typeof c=="function"?l!==c||!f:!c.has(l))throw new TypeError("Cannot read private member from an object whose class did not declare it");return u==="m"?f:u==="a"?f.call(l):f?f.value:c.get(l)},n,r,a;Object.defineProperty(xi,"__esModule",{value:!0}),xi.OFB=void 0;const s=md();class i extends s.ModeOfOperation{constructor(c,u){if(super("OFB",c,i),n.set(this,void 0),r.set(this,void 0),a.set(this,void 0),u){if(u.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");e(this,n,new Uint8Array(u),"f")}else e(this,n,new Uint8Array(16),"f");e(this,r,this.iv,"f"),e(this,a,16,"f")}get iv(){return new Uint8Array(t(this,n,"f"))}encrypt(c){var u,f;if(c.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const p=new Uint8Array(c);for(let m=0;m<p.length;
92m++)t(this,a,"f")===16&&(e(this,r,this.aes.encrypt(t(this,r,"f")),"f"),e(this,a,0,"f")),p[m]^=t(this,r,"f")[e(this,a,(f=t(this,a,"f"),u=f++,f),"f"),u];return p}decrypt(c){if(c.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");return this.encrypt(c)}}return xi.OFB=i,n=new WeakMap,r=new WeakMap,a=new WeakMap,xi}var ql={},oI;function Vle(){if(oI)return ql;oI=1,Object.defineProperty(ql,"__esModule",{value:!0}),ql.pkcs7Strip=ql.pkcs7Pad=void 0;function e(n){const r=16-n.length%16,a=new Uint8Array(n.length+r);a.set(n);for(let s=n.length;s<a.length;s++)a[s]=r;return a}ql.pkcs7Pad=e;function t(n){if(n.length<16)throw new TypeError("PKCS#7 invalid length");const r=n[n.length-1];if(r>16)throw new TypeError("PKCS#7 padding byte out of range");const a=n.length-r;for(let s=0;s<r;s++)if(n[a+s]!==r)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(n.subarray(0,a))}return ql.pkcs7Strip=t,ql}var lI;function b$(){return lI||(lI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.pkcs7Strip=e.pkcs7Pad=e.OFB=e.ECB=e.CTR=e.CFB=e.CBC=e.ModeOfOperation=e.AES=void 0;var t=y$();Object.defineProperty(e,"AES",{enumerable:!0,get:function(){return t.AES}});var n=md();Object.defineProperty(e,"ModeOfOperation",{enumerable:!0,get:function(){return n.ModeOfOperation}});var r=Lle();Object.defineProperty(e,"CBC",{enumerable:!0,get:function(){return r.CBC}});var a=$le();Object.defineProperty(e,"CFB",{enumerable:!0,get:function(){return a.CFB}});var s=zle();Object.defineProperty(e,"CTR",{enumerable:!0,get:function(){return s.CTR}});var i=Hle();Object.defineProperty(e,"ECB",{enumerable:!0,get:function(){return i.ECB}});var l=Kle();Object.defineProperty(e,"OFB",{enumerable:!0,get:function(){return l.OFB}});var c=Vle();Object.defineProperty(e,"pkcs7Pad",{enumerable:!0,get:function(){return c.pkcs7Pad}}),Object.defineProperty(e,"pkcs7Strip",{enumerable:!0,get:function(){return c.pkcs7Strip}})})(fw)),fw}var os={},cI;function g$(){if(cI)return os;cI=1,Object.defineProperty(os,"__esModule",{value:!0}),os.spelunk=os.getPassword=os.zpad=os.looseArrayify=void 0;const e=at();function t(s){return typeof s=="string"&&!s.startsWith("0x")&&(s="0x"+s),(0,e.getBytesCopy)(s)}os.looseArrayify=t;function n(s,i){for(s=String(s);s.length<i;)s="0"+s;return s}os.zpad=n;function r(s){return typeof s=="string"?(0,e.toUtf8Bytes)(s,"NFKC"):(0,e.getBytesCopy)(s)}os.getPassword=r;function a(s,i){const l=i.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);(0,e.assertArgument)(l!=null,"invalid path","path",i);const c=l[1],u=l[3],f=l[4]==="!";let p=s;for(const m of c.toLowerCase().split(".")){if(Array.isArray(p)){if(!m.match(/^[0-9]+$/))break;p=p[parseInt(m)]}else if(typeof p=="object"){let h=null;for(const y in p)if(y.toLowerCase()===m){h=p[y];break}p=h}else p=null;if(p==null)break}if((0,e.assertArgument)(!f||p!=null,"missing required value","path",c),u&&p!=null){if(u==="int"){if(typeof p=="string"&&p.match(/^-?[0-9]+$/))return parseInt(p);if(Number.isSafeInteger(p))return p}if(u==="number"&&typeof p=="string"&&p.match(/^-?[0-9.]*$/))return parseFloat(p);if(u==="data"&&typeof p=="string")return t(p);if(u==="array"&&Array.isArray(p)||u===typeof p)return p;(0,e.assertArgument)(!1,`wrong type found for ${u} `,"path",c)}return p}return os.spelunk=a,os}var uI;function EE(){if(uI)return wa;uI=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.encryptKeystoreJson=wa.encryptKeystoreJsonSync=wa.decryptKeystoreJson=wa.decryptKeystoreJsonSync=wa.isKeystoreJson=void 0;const e=b$(),t=Hn(),n=Xn(),r=sa(),a=at(),s=g$(),i=oE(),l="m/44'/60'/0'/0/0";function c(v){try{const g=JSON.parse(v);if((g.version!=null?parseInt(g.version):0)===3)return!0}catch{}return!1}wa.isKeystoreJson=c;function u(v,g,A){if((0,s.spelunk)(v,"crypto.cipher:string")==="aes-128-ctr"){const _=(0,s.spelunk)(v,"crypto.cipherparams.iv:data!"),k=new e.CTR(g,_);return(0,a.hexlify)(k.decrypt(A))}(0,a.assert)(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}function f(v,g){const A=(0,a.getBytes)(g),S=(0,s.spelunk)(v,"crypto.ciphertext:data!"),_=(0,a.hexlify)((0,n.keccak256)((0,a.concat)([A.slice(16,32),S]))).substring(2);(0,a.assertArgument)(_===(0,s.spelunk)(v,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const k=u(v,A.slice(0,16),S),R=(0,r.computeAddress)(k);if(v.address){let M=v.address.toLowerCase();M.startsWith("0x")||(M="0x"+M),(0,a.assertArgument)((0,t.getAddress)(M)===R,"keystore address/privateKey mismatch","address",v.address)}const D={address:R,privateKey:k};if((0,s.spelunk)(v,"x-ethers.version:string")==="0.1"){const M=A.slice(32,64),E=(0,s.spelunk)(v,"x-ethers.mnemonicCiphertext:data!"),N=(0,s.spelunk)(v,"x-ethers.mnemonicCounter:data!"),I=new e.CTR(M,N);D.mnemonic={path:(0,s.spelunk)(v,"x-ethers.path:string")||l,locale:(0,s.spelunk)(v,"x-ethers.locale:string")||"en",entropy:(0,a.hexlify)((0,a.getBytes)(I.decrypt(E)))}}return D}function p(v){const g=(0,s.spelunk)(v,"crypto.kdf:string");if(g&&typeof g=="string"){if(g.toLowerCase()==="scrypt"){const A=(0,s.spelunk)(v,"crypto.kdfparams.salt:data!"),S=(0,s.spelunk)(v,"crypto.kdfparams.n:int!"),_=(0,s.spelunk)(v,"crypto.kdfparams.r:int!"),k=(0,s.spelunk)(v,"crypto.kdfparams.p:int!");(0,a.assertArgument)(S>0&&(S&S-1)===0,"invalid kdf.N","kdf.N",S),(0,a.assertArgument)(_>0&&k>0,"invalid kdf","kdf",g);const R=(0,s.spelunk)(v,"crypto.kdfparams.dklen:int!");
92return(0,a.assertArgument)(R===32,"invalid kdf.dklen","kdf.dflen",R),{name:"scrypt",salt:A,N:S,r:_,p:k,dkLen:64}}else if(g.toLowerCase()==="pbkdf2"){const A=(0,s.spelunk)(v,"crypto.kdfparams.salt:data!"),S=(0,s.spelunk)(v,"crypto.kdfparams.prf:string!"),_=S.split("-").pop();(0,a.assertArgument)(_==="sha256"||_==="sha512","invalid kdf.pdf","kdf.pdf",S);const k=(0,s.spelunk)(v,"crypto.kdfparams.c:int!"),R=(0,s.spelunk)(v,"crypto.kdfparams.dklen:int!");return(0,a.assertArgument)(R===32,"invalid kdf.dklen","kdf.dklen",R),{name:"pbkdf2",salt:A,count:k,dkLen:R,algorithm:_}}}(0,a.assertArgument)(!1,"unsupported key-derivation function","kdf",g)}function m(v,g){const A=JSON.parse(v),S=(0,s.getPassword)(g),_=p(A);if(_.name==="pbkdf2"){const{salt:N,count:I,dkLen:F,algorithm:z}=_,U=(0,n.pbkdf2)(S,N,I,F,z);return f(A,U)}(0,a.assert)(_.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:_});const{salt:k,N:R,r:D,p:B,dkLen:M}=_,E=(0,n.scryptSync)(S,k,R,D,B,M);return f(A,E)}wa.decryptKeystoreJsonSync=m;function h(v){return new Promise(g=>{setTimeout(()=>{g()},v)})}async function y(v,g,A){const S=JSON.parse(v),_=(0,s.getPassword)(g),k=p(S);if(k.name==="pbkdf2"){A&&(A(0),await h(0));const{salt:I,count:F,dkLen:z,algorithm:U}=k,V=(0,n.pbkdf2)(_,I,F,z,U);return A&&(A(1),await h(0)),f(S,V)}(0,a.assert)(k.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:k});const{salt:R,N:D,r:B,p:M,dkLen:E}=k,N=await(0,n.scrypt)(_,R,D,B,M,E,A);return f(S,N)}wa.decryptKeystoreJson=y;function x(v){const g=v.salt!=null?(0,a.getBytes)(v.salt,"options.salt"):(0,n.randomBytes)(32);let A=1<<17,S=8,_=1;return v.scrypt&&(v.scrypt.N&&(A=v.scrypt.N),v.scrypt.r&&(S=v.scrypt.r),v.scrypt.p&&(_=v.scrypt.p)),(0,a.assertArgument)(typeof A=="number"&&A>0&&Number.isSafeInteger(A)&&(BigInt(A)&BigInt(A-1))===BigInt(0),"invalid scrypt N parameter","options.N",A),(0,a.assertArgument)(typeof S=="number"&&S>0&&Number.isSafeInteger(S),"invalid scrypt r parameter","options.r",S),(0,a.assertArgument)(typeof _=="number"&&_>0&&Number.isSafeInteger(_),"invalid scrypt p parameter","options.p",_),{name:"scrypt",dkLen:32,salt:g,N:A,r:S,p:_}}function C(v,g,A,S){const _=(0,a.getBytes)(A.privateKey,"privateKey"),k=S.iv!=null?(0,a.getBytes)(S.iv,"options.iv"):(0,n.randomBytes)(16);(0,a.assertArgument)(k.length===16,"invalid options.iv length","options.iv",S.iv);const R=S.uuid!=null?(0,a.getBytes)(S.uuid,"options.uuid"):(0,n.randomBytes)(16);(0,a.assertArgument)(R.length===16,"invalid options.uuid length","options.uuid",S.iv);const D=v.slice(0,16),B=v.slice(16,32),M=new e.CTR(D,k),E=(0,a.getBytes)(M.encrypt(_)),N=(0,n.keccak256)((0,a.concat)([B,E])),I={address:A.address.substring(2).toLowerCase(),id:(0,a.uuidV4)(R),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,a.hexlify)(k).substring(2)},ciphertext:(0,a.hexlify)(E).substring(2),kdf:"scrypt",kdfparams:{salt:(0,a.hexlify)(g.salt).substring(2),n:g.N,dklen:32,p:g.p,r:g.r},mac:N.substring(2)}};if(A.mnemonic){const F=S.client!=null?S.client:`ethers/${i.version}`,z=A.mnemonic.path||l,U=A.mnemonic.locale||"en",V=v.slice(32,64),$=(0,a.getBytes)(A.mnemonic.entropy,"account.mnemonic.entropy"),O=(0,n.randomBytes)(16),H=new e.CTR(V,O),Z=(0,a.getBytes)(H.encrypt($)),ee=new Date,ie="UTC--"+(ee.getUTCFullYear()+"-"+(0,s.zpad)(ee.getUTCMonth()+1,2)+"-"+(0,s.zpad)(ee.getUTCDate(),2)+"T"+(0,s.zpad)(ee.getUTCHours(),2)+"-"+(0,s.zpad)(ee.getUTCMinutes(),2)+"-"+(0,s.zpad)(ee.getUTCSeconds(),2)+".0Z")+"--"+I.address;I["x-ethers"]={client:F,gethFilename:ie,path:z,locale:U,mnemonicCounter:(0,a.hexlify)(O).substring(2),mnemonicCiphertext:(0,a.hexlify)(Z).substring(2),version:"0.1"}}return JSON.stringify(I)}function T(v,g,A){A==null&&(A={});const S=(0,s.getPassword)(g),_=x(A),k=(0,n.scryptSync)(S,_.salt,_.N,_.r,_.p,64);return C((0,a.getBytes)(k),_,v,A)}wa.encryptKeystoreJsonSync=T;async function w(v,g,A){A==null&&(A={});const S=(0,s.getPassword)(g),_=x(A),k=await(0,n.scrypt)(S,_.salt,_.N,_.r,_.p,64,A.progressCallback);return C((0,a.getBytes)(k),_,v,A)}return wa.encryptKeystoreJson=w,wa}var dI;function x$(){return dI||(dI=1,(function(e){var S,H5,k,p0;
92Object.defineProperty(e,"__esModule",{value:!0}),e.getIndexedAccountPath=e.getAccountPath=e.HDNodeVoidWallet=e.HDNodeWallet=e.defaultPath=void 0;const t=Xn(),n=gE(),r=sa(),a=at(),s=M1(),i=xE(),l=wE(),c=EE();e.defaultPath="m/44'/60'/0'/0/0";const u=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),f=2147483648,p=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),m="0123456789abcdef";function h(B,M){let E="";for(;B;)E=m[B%16]+E,B=Math.trunc(B/16);for(;E.length<M*2;)E="0"+E;return"0x"+E}function y(B){const M=(0,a.getBytes)(B),E=(0,a.dataSlice)((0,t.sha256)((0,t.sha256)(M)),0,4),N=(0,a.concat)([M,E]);return(0,a.encodeBase58)(N)}const x={};function C(B,M,E,N){const I=new Uint8Array(37);B&f?((0,a.assert)(N!=null,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),I.set((0,a.getBytes)(N),1)):I.set((0,a.getBytes)(E));for(let z=24;z>=0;z-=8)I[33+(z>>3)]=B>>24-z&255;const F=(0,a.getBytes)((0,t.computeHmac)("sha512",M,I));return{IL:F.slice(0,32),IR:F.slice(32)}}function T(B,M){const E=M.split("/");(0,a.assertArgument)(E.length>0,"invalid path","path",M),E[0]==="m"&&((0,a.assertArgument)(B.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${B.depth}`,"path",M),E.shift());let N=B;for(let I=0;I<E.length;I++){const F=E[I];if(F.match(/^[0-9]+'$/)){const z=parseInt(F.substring(0,F.length-1));(0,a.assertArgument)(z<f,"invalid path index",`path[${I}]`,F),N=N.deriveChild(f+z)}else if(F.match(/^[0-9]+$/)){const z=parseInt(F);(0,a.assertArgument)(z<f,"invalid path index",`path[${I}]`,F),N=N.deriveChild(z)}else(0,a.assertArgument)(!1,"invalid path component",`path[${I}]`,F)}return N}const D=class D extends i.BaseWallet{constructor(E,N,I,F,z,U,V,$,O){super(N,O);Ce(this,S);de(this,"publicKey");de(this,"fingerprint");de(this,"parentFingerprint");de(this,"mnemonic");de(this,"chainCode");de(this,"path");de(this,"index");de(this,"depth");(0,a.assertPrivate)(E,x,"HDNodeWallet"),(0,a.defineProperties)(this,{publicKey:N.compressedPublicKey});const H=(0,a.dataSlice)((0,t.ripemd160)((0,t.sha256)(this.publicKey)),0,4);(0,a.defineProperties)(this,{parentFingerprint:I,fingerprint:H,chainCode:F,path:z,index:U,depth:V}),(0,a.defineProperties)(this,{mnemonic:$})}connect(E){return new D(x,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,E)}async encrypt(E,N){return await(0,c.encryptKeystoreJson)(je(this,S,H5).call(this),E,{progressCallback:N})}encryptSync(E){return(0,c.encryptKeystoreJsonSync)(je(this,S,H5).call(this),E)}get extendedKey(){return(0,a.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),y((0,a.concat)(["0x0488ADE4",h(this.depth,1),this.parentFingerprint,h(this.index,4),this.chainCode,(0,a.concat)(["0x00",this.privateKey])]))}hasPath(){return this.path!=null}neuter(){return new v(x,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(E){const N=(0,a.getNumber)(E,"index");(0,a.assertArgument)(N<=4294967295,"invalid index","index",N);let I=this.path;I&&(I+="/"+(N&~f),N&f&&(I+="'"));const{IR:F,IL:z}=C(N,this.chainCode,this.publicKey,this.privateKey),U=new t.SigningKey((0,a.toBeHex)(((0,a.toBigInt)(z)+BigInt(this.privateKey))%p,32));return new D(x,U,this.fingerprint,(0,a.hexlify)(F),I,N,this.depth+1,this.mnemonic,this.provider)}derivePath(E){return T(this,E)}static fromExtendedKey(E){const N=(0,a.toBeArray)((0,a.decodeBase58)(E));(0,a.assertArgument)(N.length===82||y(N.slice(0,78))===E,"invalid extended key","extendedKey","[ REDACTED ]");const I=N[4],F=(0,a.hexlify)(N.slice(5,9)),z=parseInt((0,a.hexlify)(N.slice(9,13)).substring(2),16),U=(0,a.hexlify)(N.slice(13,45)),V=N.slice(45,78);switch((0,a.hexlify)(N.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const $=(0,a.hexlify)(V);return new v(x,(0,r.computeAddress)($),$,F,U,null,z,I,null)}case"0x0488ade4":case"0x04358394 ":if(V[0]!==0)break;return new D(x,new t.SigningKey(V.slice(1)),F,U,null,z,I,null,null)}(0,a.assertArgument)(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(E,N,I){var z;E==null&&(E=""),N==null&&(N=e.defaultPath),I==null&&(I=s.LangEn.wordlist());const F=l.Mnemonic.fromEntropy((0,t.randomBytes)(16),E,I);return je(z=D,k,p0).call(z,F.computeSeed(),F).derivePath(N)}static fromMnemonic(E,N){var I;return N||(N=e.defaultPath),je(I=D,k,p0).call(I,E.computeSeed(),E).derivePath(N)}static fromPhrase(E,N,I,F){var U;N==null&&(N=""),I==null&&(I=e.defaultPath),F==null&&(F=s.LangEn.wordlist());const z=l.Mnemonic.fromPhrase(E,N,F);return je(U=D,k,p0).call(U,z.computeSeed(),z).derivePath(I)}static fromSeed(E){var N;return je(N=D,k,p0).call(N,E,null)}};S=new WeakSet,H5=function(){const E={address:this.address,privateKey:this.privateKey},N=this.mnemonic;return this.path&&N&&N.wordlist.locale==="en"&&N.password===""&&(E.mnemonic={path:this.path,locale:"en",entropy:N.entropy}),E},k=new WeakSet,p0=function(E,N){(0,a.assertArgument)((0,a.isBytesLike)(E),"invalid seed","seed","[REDACTED]");const I=(0,a.getBytes)(E,"seed");(0,a.assertArgument)(I.length>
92=16&&I.length<=64,"invalid seed","seed","[REDACTED]");const F=(0,a.getBytes)((0,t.computeHmac)("sha512",u,I)),z=new t.SigningKey((0,a.hexlify)(F.slice(0,32)));return new D(x,z,"0x00000000",(0,a.hexlify)(F.slice(32)),"m",0,0,N,null)},Ce(D,k);let w=D;e.HDNodeWallet=w;class v extends n.VoidSigner{constructor(E,N,I,F,z,U,V,$,O){super(N,O);de(this,"publicKey");de(this,"fingerprint");de(this,"parentFingerprint");de(this,"chainCode");de(this,"path");de(this,"index");de(this,"depth");(0,a.assertPrivate)(E,x,"HDNodeVoidWallet"),(0,a.defineProperties)(this,{publicKey:I});const H=(0,a.dataSlice)((0,t.ripemd160)((0,t.sha256)(I)),0,4);(0,a.defineProperties)(this,{publicKey:I,fingerprint:H,parentFingerprint:F,chainCode:z,path:U,index:V,depth:$})}connect(E){return new v(x,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,E)}get extendedKey(){return(0,a.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),y((0,a.concat)(["0x0488B21E",h(this.depth,1),this.parentFingerprint,h(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(E){const N=(0,a.getNumber)(E,"index");(0,a.assertArgument)(N<=4294967295,"invalid index","index",N);let I=this.path;I&&(I+="/"+(N&~f),N&f&&(I+="'"));const{IR:F,IL:z}=C(N,this.chainCode,this.publicKey,null),U=t.SigningKey.addPoints(z,this.publicKey,!0),V=(0,r.computeAddress)(U);return new v(x,V,U,this.fingerprint,(0,a.hexlify)(F),I,N,this.depth+1,this.provider)}derivePath(E){return T(this,E)}}e.HDNodeVoidWallet=v;function g(B){const M=(0,a.getNumber)(B,"index");return(0,a.assertArgument)(M>=0&&M<f,"invalid account index","index",M),`m/44'/60'/${M}'/0/0`}e.getAccountPath=g;function A(B){const M=(0,a.getNumber)(B,"index");return(0,a.assertArgument)(M>=0&&M<f,"invalid account index","index",M),`m/44'/60'/0'/0/${M}`}e.getIndexedAccountPath=A})(dw)),dw}var Wl={},fI;function v$(){if(fI)return Wl;fI=1,Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.decryptCrowdsaleJson=Wl.isCrowdsaleJson=void 0;const e=b$(),t=Hn(),n=Xn(),r=Ki(),a=at(),s=g$();function i(c){try{if(JSON.parse(c).encseed)return!0}catch{}return!1}Wl.isCrowdsaleJson=i;function l(c,u){const f=JSON.parse(c),p=(0,s.getPassword)(u),m=(0,t.getAddress)((0,s.spelunk)(f,"ethaddr:string!")),h=(0,s.looseArrayify)((0,s.spelunk)(f,"encseed:string!"));(0,a.assertArgument)(h&&h.length%16===0,"invalid encseed","json",c);const y=(0,a.getBytes)((0,n.pbkdf2)(p,p,2e3,32,"sha256")).slice(0,16),x=h.slice(0,16),C=h.slice(16),T=new e.CBC(y,x),w=(0,e.pkcs7Strip)((0,a.getBytes)(T.decrypt(C)));let v="";for(let g=0;g<w.length;g++)v+=String.fromCharCode(w[g]);return{address:m,privateKey:(0,r.id)(v)}}return Wl.decryptCrowdsaleJson=l,Wl}var Ep={},pI;function Gle(){var u,K5;if(pI)return Ep;pI=1,Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.Wallet=void 0;const e=Xn(),t=at(),n=xE(),r=x$(),a=v$(),s=EE(),i=wE();function l(m){return new Promise(h=>{setTimeout(()=>{h()},m)})}const p=class p extends n.BaseWallet{constructor(h,y){typeof h=="string"&&!h.startsWith("0x")&&(h="0x"+h);let x=typeof h=="string"?new e.SigningKey(h):h;super(x,y)}connect(h){return new p(this.signingKey,h)}async encrypt(h,y){const x={address:this.address,privateKey:this.privateKey};return await(0,s.encryptKeystoreJson)(x,h,{progressCallback:y})}encryptSync(h){const y={address:this.address,privateKey:this.privateKey};return(0,s.encryptKeystoreJsonSync)(y,h)}static async fromEncryptedJson(h,y,x){var T;let C=null;return(0,s.isKeystoreJson)(h)?C=await(0,s.decryptKeystoreJson)(h,y,x):(0,a.isCrowdsaleJson)(h)&&(x&&(x(0),await l(0)),C=(0,a.decryptCrowdsaleJson)(h,y),x&&(x(1),await l(0))),je(T=p,u,K5).call(T,C)}static fromEncryptedJsonSync(h,y){var C;let x=null;return(0,s.isKeystoreJson)(h)?x=(0,s.decryptKeystoreJsonSync)(h,y):(0,a.isCrowdsaleJson)(h)?x=(0,a.decryptCrowdsaleJson)(h,y):(0,t.assertArgument)(!1,"invalid JSON wallet","json","[ REDACTED ]"),je(C=p,u,K5).call(C,x)}static createRandom(h){const y=r.HDNodeWallet.createRandom();return h?y.connect(h):y}static fromPhrase(h,y){const x=r.HDNodeWallet.fromPhrase(h);return y?x.connect(y):x}};u=new WeakSet,K5=function(h){if((0,t.assertArgument)(h,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in h&&h.mnemonic&&h.mnemonic.locale==="en"){const x=i.Mnemonic.fromEntropy(h.mnemonic.entropy),C=r.HDNodeWallet.fromMnemonic(x,h.mnemonic.path);
92if(C.address===h.address&&C.privateKey===h.privateKey)return C;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const y=new p(h.privateKey);return(0,t.assertArgument)(y.address===h.address,"address/privateKey mismatch","json","[ REDACTED ]"),y},Ce(p,u);let c=p;return Ep.Wallet=c,Ep}var mI;function qle(){return mI||(mI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wallet=e.Mnemonic=e.encryptKeystoreJsonSync=e.encryptKeystoreJson=e.decryptKeystoreJson=e.decryptKeystoreJsonSync=e.isKeystoreJson=e.decryptCrowdsaleJson=e.isCrowdsaleJson=e.HDNodeVoidWallet=e.HDNodeWallet=e.getIndexedAccountPath=e.getAccountPath=e.defaultPath=e.BaseWallet=void 0;var t=xE();Object.defineProperty(e,"BaseWallet",{enumerable:!0,get:function(){return t.BaseWallet}});var n=x$();Object.defineProperty(e,"defaultPath",{enumerable:!0,get:function(){return n.defaultPath}}),Object.defineProperty(e,"getAccountPath",{enumerable:!0,get:function(){return n.getAccountPath}}),Object.defineProperty(e,"getIndexedAccountPath",{enumerable:!0,get:function(){return n.getIndexedAccountPath}}),Object.defineProperty(e,"HDNodeWallet",{enumerable:!0,get:function(){return n.HDNodeWallet}}),Object.defineProperty(e,"HDNodeVoidWallet",{enumerable:!0,get:function(){return n.HDNodeVoidWallet}});var r=v$();Object.defineProperty(e,"isCrowdsaleJson",{enumerable:!0,get:function(){return r.isCrowdsaleJson}}),Object.defineProperty(e,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return r.decryptCrowdsaleJson}});var a=EE();Object.defineProperty(e,"isKeystoreJson",{enumerable:!0,get:function(){return a.isKeystoreJson}}),Object.defineProperty(e,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return a.decryptKeystoreJsonSync}}),Object.defineProperty(e,"decryptKeystoreJson",{enumerable:!0,get:function(){return a.decryptKeystoreJson}}),Object.defineProperty(e,"encryptKeystoreJson",{enumerable:!0,get:function(){return a.encryptKeystoreJson}}),Object.defineProperty(e,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return a.encryptKeystoreJsonSync}});var s=wE();Object.defineProperty(e,"Mnemonic",{enumerable:!0,get:function(){return s.Mnemonic}});var i=Gle();Object.defineProperty(e,"Wallet",{enumerable:!0,get:function(){return i.Wallet}})})(uw)),uw}var pw={},kp={},Cp={},Ap={},hI;function Wle(){if(hI)return Ap;hI=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.decodeBits=void 0;const e=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function t(n,r){const a=(1<<n)-1,s=[];let i=0,l=0,c=0;for(let u=0;u<r.length;u++)for(i=i<<6|e.indexOf(r[u]),l+=6;l>=n;){const f=i>>l-n;i&=(1<<l-n)-1,l-=n,f===0?c+=a:(s.push(f+c),c=0)}return s}return Ap.decodeBits=t,Ap}var yI;function Jle(){if(yI)return Cp;yI=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.decodeOwlA=void 0;const e=at(),t=Wle(),n=m$();function r(a,s){let i=(0,n.decodeOwl)(a).join(",");return s.split(/,/g).forEach(l=>{const c=l.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);(0,e.assertArgument)(c!==null,"internal error parsing accents","accents",s);let u=0;const f=(0,t.decodeBits)(parseInt(c[3]),c[4]),p=parseInt(c[2]),m=new RegExp(`([${c[1]}])`,"g");i=i.replace(m,(h,y)=>(--f[u]===0&&(y=String.fromCharCode(y.charCodeAt(0),p),u++),y))}),i.split(",")}return Cp.decodeOwlA=r,Cp}var bI;function Zle(){var r;if(bI)return kp;bI=1,Object.defineProperty(kp,"__esModule",{value:!0}),kp.WordlistOwlA=void 0;const e=vE(),t=Jle();class n extends e.WordlistOwl{constructor(i,l,c,u){super(i,l,u);Ce(this,r);se(this,r,c)}get _accent(){return q(this,r)}_decodeWords(){return(0,t.decodeOwlA)(this._data,this._accent)}}return r=new WeakMap,kp.WordlistOwlA=n,kp}var Pp={},gI;function Qle(){if(gI)return Pp;gI=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.wordlists=void 0;const e=M1();return Pp.wordlists={en:e.LangEn.wordlist()},Pp}var xI;function Xle(){return xI||(xI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.wordlists=e.WordlistOwlA=e.WordlistOwl=e.LangEn=e.Wordlist=void 0;var t=h$();Object.defineProperty(e,"Wordlist",{enumerable:!0,get:function(){return t.Wordlist}});var n=M1();Object.defineProperty(e,"LangEn",{enumerable:!0,get:function(){return n.LangEn}});var r=vE();Object.defineProperty(e,"WordlistOwl",{enumerable:!0,get:function(){return r.WordlistOwl}});var a=Zle();Object.defineProperty(e,"WordlistOwlA",{enumerable:!0,get:function(){return a.WordlistOwlA}});var s=Qle();Object.defineProperty(e,"wordlists",{enumerable:!0,get:function(){return s.wordlists}})})(pw)),pw}var vI;function wI(){return vI||(vI=1,(function(e){Object.defineProperty(e,"__esMo
92dule",{value:!0}),e.ripemd160=e.keccak256=e.randomBytes=e.computeHmac=e.UndecodedEventLog=e.EventLog=e.ContractUnknownEventPayload=e.ContractTransactionResponse=e.ContractTransactionReceipt=e.ContractEventPayload=e.ContractFactory=e.Contract=e.BaseContract=e.MessagePrefix=e.EtherSymbol=e.ZeroHash=e.N=e.MaxInt256=e.MinInt256=e.MaxUint256=e.WeiPerEther=e.ZeroAddress=e.resolveAddress=e.isAddress=e.isAddressable=e.getCreate2Address=e.getCreateAddress=e.getIcapAddress=e.getAddress=e.Typed=e.TransactionDescription=e.Result=e.LogDescription=e.Interface=e.Indexed=e.ErrorDescription=e.checkResultErrors=e.StructFragment=e.ParamType=e.NamedFragment=e.FunctionFragment=e.FallbackFragment=e.Fragment=e.EventFragment=e.ErrorFragment=e.ConstructorFragment=e.AbiCoder=e.encodeBytes32String=e.decodeBytes32String=e.version=void 0,e.WebSocketProvider=e.SocketProvider=e.IpcSocketProvider=e.QuickNodeProvider=e.PocketProvider=e.InfuraWebSocketProvider=e.InfuraProvider=e.EtherscanProvider=e.CloudflareProvider=e.ChainstackProvider=e.BlockscoutProvider=e.AnkrProvider=e.AlchemyProvider=e.BrowserProvider=e.JsonRpcSigner=e.JsonRpcProvider=e.JsonRpcApiProvider=e.FallbackProvider=e.AbstractProvider=e.VoidSigner=e.NonceManager=e.AbstractSigner=e.TransactionResponse=e.TransactionReceipt=e.Log=e.FeeData=e.Block=e.getDefaultProvider=e.verifyTypedData=e.TypedDataEncoder=e.solidityPackedSha256=e.solidityPackedKeccak256=e.solidityPacked=e.verifyMessage=e.hashMessage=e.verifyAuthorization=e.hashAuthorization=e.dnsEncode=e.namehash=e.isValidName=e.ensNormalize=e.id=e.SigningKey=e.Signature=e.lock=e.scryptSync=e.scrypt=e.pbkdf2=e.sha512=e.sha256=void 0,e.FetchCancelSignal=e.FetchResponse=e.FetchRequest=e.EventPayload=e.isError=e.isCallException=e.makeError=e.assertPrivate=e.assertNormalize=e.assertArgumentCount=e.assertArgument=e.assert=e.resolveProperties=e.defineProperties=e.zeroPadValue=e.zeroPadBytes=e.stripZerosLeft=e.isBytesLike=e.isHexString=e.hexlify=e.getBytesCopy=e.getBytes=e.dataSlice=e.dataLength=e.concat=e.encodeBase64=e.decodeBase64=e.encodeBase58=e.decodeBase58=e.Transaction=e.recoverAddress=e.computeAddress=e.authorizationify=e.accessListify=e.showThrottleMessage=e.copyRequest=e.UnmanagedSubscriber=e.SocketSubscriber=e.SocketPendingSubscriber=e.SocketEventSubscriber=e.SocketBlockSubscriber=e.MulticoinProviderPlugin=e.NetworkPlugin=e.GasCostPlugin=e.FetchUrlFeeDataNetworkPlugin=e.FeeDataNetworkPlugin=e.EtherscanPlugin=e.EnsPlugin=e.Network=e.EnsResolver=void 0,e.wordlists=e.WordlistOwlA=e.WordlistOwl=e.LangEn=e.Wordlist=e.encryptKeystoreJsonSync=e.encryptKe
92ystoreJson=e.decryptKeystoreJson=e.decryptKeystoreJsonSync=e.decryptCrowdsaleJson=e.isKeystoreJson=e.isCrowdsaleJson=e.getIndexedAccountPath=e.getAccountPath=e.defaultPath=e.Wallet=e.HDNodeVoidWallet=e.HDNodeWallet=e.BaseWallet=e.Mnemonic=e.uuidV4=e.encodeRlp=e.decodeRlp=e.Utf8ErrorFuncs=e.toUtf8String=e.toUtf8CodePoints=e.toUtf8Bytes=e.parseUnits=e.formatUnits=e.parseEther=e.formatEther=e.mask=e.toTwos=e.fromTwos=e.toQuantity=e.toNumber=e.toBeHex=e.toBigInt=e.toBeArray=e.getUint=e.getNumber=e.getBigInt=e.FixedNumber=void 0;var t=oE();Object.defineProperty(e,"version",{enumerable:!0,get:function(){return t.version}});var n=Pm();Object.defineProperty(e,"decodeBytes32String",{enumerable:!0,get:function(){return n.decodeBytes32String}}),Object.defineProperty(e,"encodeBytes32String",{enumerable:!0,get:function(){return n.encodeBytes32String}}),Object.defineProperty(e,"AbiCoder",{enumerable:!0,get:function(){return n.AbiCoder}}),Object.defineProperty(e,"ConstructorFragment",{enumerable:!0,get:function(){return n.ConstructorFragment}}),Object.defineProperty(e,"ErrorFragment",{enumerable:!0,get:function(){return n.ErrorFragment}}),Object.defineProperty(e,"EventFragment",{enumerable:!0,get:function(){return n.EventFragment}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return n.Fragment}}),Object.defineProperty(e,"FallbackFragment",{enumerable:!0,get:function(){return n.FallbackFragment}}),Object.defineProperty(e,"FunctionFragment",{enumerable:!0,get:function(){return n.FunctionFragment}}),Object.defineProperty(e,"NamedFragment",{enumerable:!0,get:function(){return n.NamedFragment}}),Object.defineProperty(e,"ParamType",{enumerable:!0,get:function(){return n.ParamType}}),Object.defineProperty(e,"StructFragment",{enumerable:!0,get:function(){return n.StructFragment}}),Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return n.checkResultErrors}}),Object.defineProperty(e,"ErrorDescription",{enumerable:!0,get:function(){return n.ErrorDescription}}),Object.defineProperty(e,"Indexed",{enumerable:!0,get:function(){return n.Indexed}}),Object.defineProperty(e,"Interface",{enumerable:!0,get:function(){return n.Interface}}),Object.defineProperty(e,"LogDescription",{enumerable:!0,get:function(){return n.LogDescription}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return n.Result}}),Object.defineProperty(e,"TransactionDescription",{enumerable:!0,get:function(){return n.TransactionDescription}}),Object.defineProperty(e,"Typed",{enumerable:!0,get:function(){return n.Typed}});var r=Hn();Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return r.getAddress}}),Object.defineProperty(e,"getIcapAddress",{enumerable:!0,get:function(){return r.getIcapAddress}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return r.getCreateAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return r.getCreate2Address}}),Object.defineProperty(e,"isAddressable",{enumerable:!0,get:function(){return r.isAddressable}}),Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return r.isAddress}}),Object.defineProperty(e,"resolveAddress",{enumerable:!0,get:function(){return r.resolveAddress}});var a=Am();Object.defineProperty(e,"ZeroAddress",{enumerable:!0,get:function(){return a.ZeroAddress}}),Object.defineProperty(e,"WeiPerEther",{enumerable:!0,get:function(){return a.WeiPerEther}}),Object.defineProperty(e,"MaxUint256",{enumerable:!0,get:function(){return a.MaxUint256}}),Object.defineProperty(e,"MinInt256",{enumerable:!0,get:function(){return a.MinInt256}}),Object.defineProperty(e,"MaxInt256",{enumerable:!0,get:function(){return a.MaxInt256}}),Object.defineProperty(e,"N",{enumerable:!0,get:function(){return a.N}}),Object.defineProperty(e,"ZeroHash",{enumerable:!0,get:function(){return a.ZeroHash}}),Object.defineProperty(e,"EtherSymbol",{enumerable:!0,get:function(){return a.EtherSymbol}}),Object.defineProperty(e,"MessagePrefix",{enumerable:!0,get:function(){return a.MessagePrefix}});var s=O1();Object.defineProperty(e,"BaseContract",{enumerable:!0,get:function(){return s.BaseContract}}),Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return s.Contract}}),Object.defineProperty(e,"ContractFactory",{enumerable:!0,get:function(){return s.ContractFactory}}),Object.defineProperty(e,"ContractEventPayload",{enumerable:!0,get:function(){return s.ContractEventPayload}}),Object.defineProperty(e,"ContractTransactionReceipt",{enumerable:!0,get:function(){return s.ContractTransactionReceipt}}),Object.defineProperty(e,"ContractTransactionResponse",{enumerable:!0,get:function(){return s.ContractTransactionResponse}}),Object.defineProperty(e,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return s.ContractUnknownEventPayload}}),Object.defineProperty(e,"EventLog",{enumerable:!0,get:function(){return s.EventLog}}),Object.defineProperty(e,"UndecodedEventLog",{enumerable:!0,get:function(){return s.UndecodedEventLog}});var i=Xn();Object.defineProperty(e,"computeHmac",{enumerable:!0,get:function(){return i.computeHmac}}),Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return i.randomBytes}}),Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return i.keccak256}}),Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return i.ripemd160}}),Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return i.sha256}}),Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return i.sha512}}),Object.defineProperty(e,"pbkdf2",{enumerable:!0,get:function(){return i.pbkdf2}}),Object.defineProperty(e,"scrypt",{enumerable:!0,get:function(){return i.scrypt}}),Object.defineProperty(e,"scryptSync",{enumerable:!0,get:function(){return i.scryptSync}}),Object.defineProperty(e,"lock",{enumerable:!0,get:function(){return i.lock}}),Object.defineProperty(e,"Signature",{enumerable:!0,get:function(){return i.Signature}}),Object.defineProperty(e,"SigningKey",{enumerable:!0,get:function(){return i.SigningKey}});var l=Ki();Object.defineProperty(e,"id",{enumerable:!0,get:function(){return l.id}}),Object.defineProperty(e,"ensNormalize",{enumerable:!0,get:function(){return l.ensNormalize}}),Object.defineProperty(e,"isValidName",{enumerable:!0,get:function(){return l.isValidName}}),Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return l.namehash}}),Object.defineProperty(e,"dnsEncode",{enumerable:!0,get:function(){return l.dnsEncode}}),Object.defineProperty(e,"hashAuthorization",{enumerable:!0,get:function(){return l.hashAuthorization}}),Object.defineProperty(e,"verifyAuthorization",{enumerable:!0,get:function(){return l.verifyAuthorization}}),Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return l.hashMessage}}),Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return l.verifyMessage}}),Object.defineProperty(e,"solidityPacked",{enumerable:!0,get:function(){return l.solidityPacked}}),Object.defineProperty(e,"solidityPackedKeccak256",{enumerable:!0,get:function(){return l.solidityPackedKeccak256}}),Object.defineProperty(e,"solidityPackedSha256",{enumerable:!0,get:function(){return l.solidityPackedSha256}}),Object.defineProperty(e,"TypedDataEncoder",{enumerable:!0,get:function(){return l.TypedDataEncoder}}),Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return l.verifyTypedData}
92});var c=gE();Object.defineProperty(e,"getDefaultProvider",{enumerable:!0,get:function(){return c.getDefaultProvider}}),Object.defineProperty(e,"Block",{enumerable:!0,get:function(){return c.Block}}),Object.defineProperty(e,"FeeData",{enumerable:!0,get:function(){return c.FeeData}}),Object.defineProperty(e,"Log",{enumerable:!0,get:function(){return c.Log}}),Object.defineProperty(e,"TransactionReceipt",{enumerable:!0,get:function(){return c.TransactionReceipt}}),Object.defineProperty(e,"TransactionResponse",{enumerable:!0,get:function(){return c.TransactionResponse}}),Object.defineProperty(e,"AbstractSigner",{enumerable:!0,get:function(){return c.AbstractSigner}}),Object.defineProperty(e,"NonceManager",{enumerable:!0,get:function(){return c.NonceManager}}),Object.defineProperty(e,"VoidSigner",{enumerable:!0,get:function(){return c.VoidSigner}}),Object.defineProperty(e,"AbstractProvider",{enumerable:!0,get:function(){return c.AbstractProvider}}),Object.defineProperty(e,"FallbackProvider",{enumerable:!0,get:function(){return c.FallbackProvider}}),Object.defineProperty(e,"JsonRpcApiProvider",{enumerable:!0,get:function(){return c.JsonRpcApiProvider}}),Object.defineProperty(e,"JsonRpcProvider",{enumerable:!0,get:function(){return c.JsonRpcProvider}}),Object.defineProperty(e,"JsonRpcSigner",{enumerable:!0,get:function(){return c.JsonRpcSigner}}),Object.defineProperty(e,"BrowserProvider",{enumerable:!0,get:function(){return c.BrowserProvider}}),Object.defineProperty(e,"AlchemyProvider",{enumerable:!0,get:function(){return c.AlchemyProvider}}),Object.defineProperty(e,"AnkrProvider",{enumerable:!0,get:function(){return c.AnkrProvider}}),Object.defineProperty(e,"BlockscoutProvider",{enumerable:!0,get:function(){return c.BlockscoutProvider}}),Object.defineProperty(e,"ChainstackProvider",{enumerable:!0,get:function(){return c.ChainstackProvider}}),Object.defineProperty(e,"CloudflareProvider",{enumerable:!0,get:function(){return c.CloudflareProvider}}),Object.defineProperty(e,"EtherscanProvider",{enumerable:!0,get:function(){return c.EtherscanProvider}}),Object.defineProperty(e,"InfuraProvider",{enumerable:!0,get:function(){return c.InfuraProvider}}),Object.defineProperty(e,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return c.InfuraWebSocketProvider}}),Object.defineProperty(e,"PocketProvider",{enumerable:!0,get:function(){return c.PocketProvider}}),Object.defineProperty(e,"QuickNodeProvider",{enumerable:!0,get:function(){return c.QuickNodeProvider}}),Object.defineProperty(e,"IpcSocketProvider",{enumerable:!0,get:function(){return c.IpcSocketProvider}}),Object.defineProperty(e,"SocketProvider",{enumerable:!0,get:function(){return c.SocketProvider}}),Object.defineProperty(e,"WebSocketProvider",{enumerable:!0,get:function(){return c.WebSocketProvider}}),Object.defineProperty(e,"EnsResolver",{enumerable:!0,get:function(){return c.EnsResolver}}),Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return c.Network}}),Object.defineProperty(e,"EnsPlugin",{enumerable:!0,get:function(){return c.EnsPlugin}}),Object.defineProperty(e,"EtherscanPlugin",{enumerable:!0,get:function(){return c.EtherscanPlugin}}),Object.defineProperty(e,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FeeDataNetworkPlugin}}),Object.defineProperty(e,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return c.FetchUrlFeeDataNetworkPlugin}}),Object.defineProperty(e,"GasCostPlugin",{enumerable:!0,get:function(){return c.GasCostPlugin}}),Object.defineProperty(e,"NetworkPlugin",{enumerable:!0,get:function(){return c.NetworkPlugin}}),Object.defineProperty(e,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return c.MulticoinProviderPlugin}}),Object.defineProperty(e,"SocketBlockSubscriber",{enumerable:!0,get:function(){return c.SocketBlockSubscriber}}),Object.defineProperty(e,"SocketEventSubscriber",{enumerable:!0,get:function(){return c.SocketEventSubscriber}}),Object.defineProperty(e,"SocketPendingSubscriber",{enumerable:!0,get:function(){return c.SocketPendingSubscriber}}),Object.defineProperty(e,"SocketSubscriber",{enumerable:!0,get:function(){return c.SocketSubscriber}}),Object.defineProperty(e,"UnmanagedSubscriber",{enumerable:!0,get:function(){return c.UnmanagedSubscriber}}),Object.defineProperty(e,"copyRequest",{enumerable:!0,get:function(){return c.copyRequest}}),Object.defineProperty(e,"showThrottleMessage",{enumerable:!0,get:function(){return c.showThrottleMessage}});var u=sa();Object.defineProperty(e,"accessListify",{enumerable:!0,get:function(){return u.accessListify}}),Object.defineProperty(e,"authorizationify",{enumerable:!0,get:function(){return u.authorizationify}}),Object.defineProperty(e,"computeAddress",{enumerable:!0,get:function(){return u.computeAddress}}),Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return u.recoverAddress}}),Object.defineProperty(e,"Transaction",{enumerable:!0,get:function(){return u.Transaction}});var f=at();Object.defineProperty(e,"decodeBase58",{enumerable:!0,get:function(){return f.decodeBase58}}),Object.defineProperty(e,"encodeBase58",{enumerable:!0,get:function(){return f.encodeBase58}}),Object.defineProperty(e,"decodeBase64",{enumerable:!0,get:function(){return f.decodeBase64}}),Object.defineProperty(e,"encodeBase64",{enumerable:!0,get:function(){return f.encodeBase64}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return f.concat}}),Object.defineProperty(e,"dataLength",{enumerable:!0,get:function(){return f.dataLength}}),Object.defineProperty(e,"dataSlice",{enumerable:!0,get:function(){return f.dataSlice}}),Object.defineProperty(e,"getBytes",{enumerable:!0,get:function(){return f.getBytes}}),Object.defineProperty(e,"getBytesCopy",{enumerable:!0,get:function(){return f.getBytesCopy}}),Object.defineProperty(e,"hexlify",{enumerable:!0,get:function(){return f.hexlify}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return f.isHexString}}),Object.defineProperty(e,"isBytesLike",{enumerable:!0,get:function(){return f.isBytesLike}}),Object.defineProperty(e,"stripZerosLeft",{enumerable:!0,get:function(){return f.stripZerosLeft}}),Object.defineProperty(e,"zeroPadBytes",{enumerable:!0,get:function(){return f.zeroPadBytes}}),Object.defineProperty(e,"zeroPadValue",{enumerable:!0,get:function(){return f.zeroPadValue}}),Object.defineProperty(e,"defineProperties",{enumerable:!0,get:function(){return f.defineProperties}}),Object.defineProperty(e,"resolveProperties",{enumerable:!0,get:function(){return f.resolveProperties}}),Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return f.assert}}),Object.defineProperty(e,"assertArgument",{enumerable:!0,get:function(){return f.assertArgument}}),Object.defineProperty(e,"assertArgumentCount",{enumerable:!0,get:function(){return f.assertArgumentCount}}),Object.defineProperty(e,"assertNormalize",{enumerable:!0,get:function(){return f.assertNormalize}}),Object.defineProperty(e,"assertPrivate",{enumerable:!0,get:function(){return f.assertPrivate}}
92),Object.defineProperty(e,"makeError",{enumerable:!0,get:function(){return f.makeError}}),Object.defineProperty(e,"isCallException",{enumerable:!0,get:function(){return f.isCallException}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return f.isError}}),Object.defineProperty(e,"EventPayload",{enumerable:!0,get:function(){return f.EventPayload}}),Object.defineProperty(e,"FetchRequest",{enumerable:!0,get:function(){return f.FetchRequest}}),Object.defineProperty(e,"FetchResponse",{enumerable:!0,get:function(){return f.FetchResponse}}),Object.defineProperty(e,"FetchCancelSignal",{enumerable:!0,get:function(){return f.FetchCancelSignal}}),Object.defineProperty(e,"FixedNumber",{enumerable:!0,get:function(){return f.FixedNumber}}),Object.defineProperty(e,"getBigInt",{enumerable:!0,get:function(){return f.getBigInt}}),Object.defineProperty(e,"getNumber",{enumerable:!0,get:function(){return f.getNumber}}),Object.defineProperty(e,"getUint",{enumerable:!0,get:function(){return f.getUint}}),Object.defineProperty(e,"toBeArray",{enumerable:!0,get:function(){return f.toBeArray}}),Object.defineProperty(e,"toBigInt",{enumerable:!0,get:function(){return f.toBigInt}}),Object.defineProperty(e,"toBeHex",{enumerable:!0,get:function(){return f.toBeHex}}),Object.defineProperty(e,"toNumber",{enumerable:!0,get:function(){return f.toNumber}}),Object.defineProperty(e,"toQuantity",{enumerable:!0,get:function(){return f.toQuantity}}),Object.defineProperty(e,"fromTwos",{enumerable:!0,get:function(){return f.fromTwos}}),Object.defineProperty(e,"toTwos",{enumerable:!0,get:function(){return f.toTwos}}),Object.defineProperty(e,"mask",{enumerable:!0,get:function(){return f.mask}}),Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return f.formatEther}}),Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return f.parseEther}}),Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return f.formatUnits}}),Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return f.parseUnits}}),Object.defineProperty(e,"toUtf8Bytes",{enumerable:!0,get:function(){return f.toUtf8Bytes}}),Object.defineProperty(e,"toUtf8CodePoints",{enumerable:!0,get:function(){return f.toUtf8CodePoints}}),Object.defineProperty(e,"toUtf8String",{enumerable:!0,get:function(){return f.toUtf8String}}),Object.defineProperty(e,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return f.Utf8ErrorFuncs}}),Object.defineProperty(e,"decodeRlp",{enumerable:!0,get:function(){return f.decodeRlp}}),Object.defineProperty(e,"encodeRlp",{enumerable:!0,get:function(){return f.encodeRlp}}),Object.defineProperty(e,"uuidV4",{enumerable:!0,get:function(){return f.uuidV4}});var p=qle();Object.defineProperty(e,"Mnemonic",{enumerable:!0,get:function(){return p.Mnemonic}}),Object.defineProperty(e,"BaseWallet",{enumerable:!0,get:function(){return p.BaseWallet}}),Object.defineProperty(e,"HDNodeWallet",{enumerable:!0,get:function(){return p.HDNodeWallet}}),Object.defineProperty(e,"HDNodeVoidWallet",{enumerable:!0,get:function(){return p.HDNodeVoidWallet}}),Object.defineProperty(e,"Wallet",{enumerable:!0,get:function(){return p.Wallet}}),Object.defineProperty(e,"defaultPath",{enumerable:!0,get:function(){return p.defaultPath}}),Object.defineProperty(e,"getAccountPath",{enumerable:!0,get:function(){return p.getAccountPath}}),Object.defineProperty(e,"getIndexedAccountPath",{enumerable:!0,get:function(){return p.getIndexedAccountPath}}),Object.defineProperty(e,"isCrowdsaleJson",{enumerable:!0,get:function(){return p.isCrowdsaleJson}}),Object.defineProperty(e,"isKeystoreJson",{enumerable:!0,get:function(){return p.isKeystoreJson}}),Object.defineProperty(e,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return p.decryptCrowdsaleJson}}),Object.defineProperty(e,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return p.decryptKeystoreJsonSync}}),Object.defineProperty(e,"decryptKeystoreJson",{enumerable:!0,get:function(){return p.decryptKeystoreJson}}),Object.defineProperty(e,"encryptKeystoreJson",{enumerable:!0,get:function(){return p.encryptKe
92ystoreJson}}),Object.defineProperty(e,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return p.encryptKeystoreJsonSync}});var m=Xle();Object.defineProperty(e,"Wordlist",{enumerable:!0,get:function(){return m.Wordlist}}),Object.defineProperty(e,"LangEn",{enumerable:!0,get:function(){return m.LangEn}}),Object.defineProperty(e,"WordlistOwl",{enumerable:!0,get:function(){return m.WordlistOwl}}),Object.defineProperty(e,"WordlistOwlA",{enumerable:!0,get:function(){return m.WordlistOwlA}}),Object.defineProperty(e,"wordlists",{enumerable:!0,get:function(){return m.wordlists}})})(q6)),q6}var EI;function Rr(){return EI||(EI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ethers=void 0;const t=Doe,n=t.__importStar(wI());e.ethers=n,t.__exportStar(wI(),e)})(G6)),G6}var kI;function w$(){var r;if(kI)return vf;kI=1,Object.defineProperty(vf,"__esModule",{value:!0}),vf.Adapter__factory=void 0;const e=Rr(),t=[{type:"function",name:"getHash",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"event",name:"HashStored",inputs:[{name:"id",type:"uint256",indexed:!0,internalType:"uint256"},{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"}],anonymous:!1},{type:"error",name:"ConflictingBlockHeader",inputs:[{name:"blockNumber",type:"uint256",internalType:"uint256"},{name:"blockHash",type:"bytes32",internalType:"bytes32"},{name:"storedBlockHash",type:"bytes32",internalType:"bytes32"}]},{type:"error",name:"InvalidBlockHeaderRLP",inputs:[]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return vf.Adapter__factory=n,vf}var Tp={},CI;function E$(){var r;if(CI)return Tp;CI=1,Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.AxelarAdapter__factory=void 0;const e=Rr(),t=[{type:"constructor",inputs:[{name:"axelarGateway",type:"address",internalType:"address"}],stateMutability:"nonpayable"},{type:"function",name:"PROVIDER",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"chainIds",inputs:[{name:"",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"enabledReporters",inputs:[{name:"",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"commandId",type:"bytes32",internalType:"bytes32"},{name:"sourceChain",type:"string",internalType:"string"},{name:"sourceAddress",type:"string",internalType:"string"},{name:"payload",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"gateway",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IAxelarGateway"}],stateMutability:"view"},{type:"function",name:"getHash",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setReporterByChain",inputs:[{name:"chainId",type:"uint256",internalType:"uint256"},{name:"chainName",type:"string",internalType:"string"},{name:"reporter",type:"string",internalType:"string"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"event",name:"HashStored",inputs:[{name:"id",type:"uint256",indexed:!0,internalType:"uint256"},{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1}
92,{type:"event",name:"ReporterSet",inputs:[{name:"chainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"name",type:"string",indexed:!1,internalType:"string"},{name:"reporter",type:"string",indexed:!0,internalType:"string"}],anonymous:!1},{type:"error",name:"ConflictingBlockHeader",inputs:[{name:"blockNumber",type:"uint256",internalType:"uint256"},{name:"blockHash",type:"bytes32",internalType:"bytes32"},{name:"storedBlockHash",type:"bytes32",internalType:"bytes32"}]},{type:"error",name:"InvalidAddress",inputs:[]},{type:"error",name:"InvalidBlockHeaderRLP",inputs:[]},{type:"error",name:"NotApprovedByGateway",inputs:[]},{type:"error",name:"UnauthorizedAxelarReceive",inputs:[]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return Tp.AxelarAdapter__factory=n,Tp}var Sp={},AI;function k$(){var r;if(AI)return Sp;AI=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.AxelarReporter__factory=void 0;const e=Rr(),t=[{type:"constructor",inputs:[{name:"headerStorage",type:"address",internalType:"address"},{name:"yaho",type:"address",internalType:"address"},{name:"axelarGateway",type:"address",internalType:"address"},{name:"axelarGasService",type:"address",internalType:"address"}],stateMutability:"nonpayable"},{type:"receive",stateMutability:"payable"},{type:"function",name:"AXELAR_GAS_SERVICE",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IAxelarGasService"}],stateMutability:"view"},{type:"function",name:"AXELAR_GATEWAY",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IAxelarGateway"}],stateMutability:"view"},{type:"function",name:"HEADER_STORAGE",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"PROVIDER",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"YAHO",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"chainNames",inputs:[{name:"",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"dispatchBlocks",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"blockNumbers",type:"uint256[]",internalType:"uint256[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"function",name:"dispatchMessages",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"messageIds",type:"uint256[]",internalType:"uint256[]"},{name:"messageHashes",type:"bytes32[]",internalType:"bytes32[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"function",name:"fee",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setChainNameByChainId",inputs:[{name:"chainId",type:"uint256",internalType:"uint256"},{name:"chainName",type:"string",internalType:"string"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setFee",inputs:[{name:"fee_",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"event",name:"BlockDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"blockNumber",type:"uint256",indexed:!0,internalType:"uint256"},{name:"blockHeader",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1}
92,{type:"event",name:"ChainNameSet",inputs:[{name:"chainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"chainName",type:"string",indexed:!0,internalType:"string"}],anonymous:!1},{type:"event",name:"FeeSet",inputs:[{name:"fee",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"event",name:"MessageDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"messageId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"messageHash",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"error",name:"ChainIdNotSupported",inputs:[{name:"chainId",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NotYaho",inputs:[{name:"sender",type:"address",internalType:"address"},{name:"expectedYaho",type:"address",internalType:"address"}]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return Sp.AxelarReporter__factory=n,Sp}var Bp={},PI;function C$(){var r;if(PI)return Bp;PI=1,Object.defineProperty(Bp,"__esModule",{value:!0}),Bp.CCIPAdapter__factory=void 0;const e=Rr(),t=[{type:"constructor",inputs:[{name:"ccipRouter",type:"address",internalType:"address"}],stateMutability:"nonpayable"},{type:"function",name:"PROVIDER",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"ccipReceive",inputs:[{name:"message",type:"tuple",internalType:"struct Client.Any2EVMMessage",components:[{name:"messageId",type:"bytes32",internalType:"bytes32"},{name:"sourceChainSelector",type:"uint64",internalType:"uint64"},{name:"sender",type:"bytes",internalType:"bytes"},{name:"data",type:"bytes",internalType:"bytes"},{name:"destTokenAmounts",type:"tuple[]",internalType:"struct Client.EVMTokenAmount[]",components:[{name:"token",type:"address",internalType:"address"},{name:"amount",type:"uint256",internalType:"uint256"}]}]}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"chainIds",inputs:[{name:"",type:"uint64",internalType:"uint64"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"enabledReporters",inputs:[{name:"",type:"uint64",internalType:"uint64"}],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getHash",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"}
92,{type:"function",name:"getRouter",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setReporterByChain",inputs:[{name:"chainId",type:"uint256",internalType:"uint256"},{name:"chainSelector",type:"uint64",internalType:"uint64"},{name:"reporter",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"pure"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"event",name:"HashStored",inputs:[{name:"id",type:"uint256",indexed:!0,internalType:"uint256"},{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"event",name:"ReporterSet",inputs:[{name:"chainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"chainSelector",type:"uint64",indexed:!0,internalType:"uint64"},{name:"reporter",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"error",name:"ConflictingBlockHeader",inputs:[{name:"blockNumber",type:"uint256",internalType:"uint256"},{name:"blockHash",type:"bytes32",internalType:"bytes32"},{name:"storedBlockHash",type:"bytes32",internalType:"bytes32"}]},{type:"error",name:"InvalidBlockHeaderRLP",inputs:[]}
92,{type:"error",name:"InvalidRouter",inputs:[{name:"router",type:"address",internalType:"address"}]},{type:"error",name:"UnauthorizedCCIPReceive",inputs:[]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return Bp.CCIPAdapter__factory=n,Bp}var _p={},TI;function A$(){var r;if(TI)return _p;TI=1,Object.defineProperty(_p,"__esModule",{value:!0}),_p.CCIPReporter__factory=void 0;const e=Rr(),t=[{type:"constructor",inputs:[{name:"headerStorage",type:"address",internalType:"address"},{name:"yaho",type:"address",internalType:"address"},{name:"ccipRouter",type:"address",internalType:"address"}],stateMutability:"nonpayable"},{type:"receive",stateMutability:"payable"},{type:"function",name:"CCIP_ROUTER",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IRouterClient"}],stateMutability:"view"},{type:"function",name:"HEADER_STORAGE",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"PROVIDER",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"YAHO",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"chainSelectors",inputs:[{name:"",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"uint64",internalType:"uint64"}],stateMutability:"view"},{type:"function",name:"defaultGasLimit",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"dispatchBlocks",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"blockNumbers",type:"uint256[]",internalType:"uint256[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"function",name:"dispatchMessages",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"messageIds",type:"uint256[]",internalType:"uint256[]"},{name:"messageHashes",type:"bytes32[]",internalType:"bytes32[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"function",name:"fee",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"feeToken",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setChainSelectorByChainId",inputs:[{name:"chainId",type:"uint256",internalType:"uint256"},{name:"chainSelector",type:"uint64",internalType:"uint64"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setDefaultGasLimit",inputs:[{name:"defaultGasLimit_",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setFee",inputs:[{name:"fee_",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setFeeToken",inputs:[{name:"feeToken_",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"event",name:"BlockDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"blockNumber",type:"uint256",indexed:!0,internalType:"uint256"},{name:"blockHeader",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"ChainSelectorSet",inputs:[{name:"chainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"chainSelector",type:"uint64",indexed:!0,internalType:"uint64"}],anonymous:!1}
92,{type:"event",name:"DefaultGasLimitSet",inputs:[{name:"defaultGasLimit",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"event",name:"FeeSet",inputs:[{name:"fee",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"event",name:"FeeTokenSet",inputs:[{name:"feeToken",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"event",name:"MessageDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"messageId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"messageHash",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"error",name:"ChainSelectorNotAvailable",inputs:[]},{type:"error",name:"InsufficientFeeBalance",inputs:[{name:"required",type:"uint256",internalType:"uint256"},{name:"available",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NotYaho",inputs:[{name:"sender",type:"address",internalType:"address"},{name:"expectedYaho",type:"address",internalType:"address"}]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return _p.CCIPReporter__factory=n,_p}var Ip={},SI;function P$(){var r;if(SI)return Ip;SI=1,Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.DeBridgeAdapter__factory=void 0;const e=Rr(),t=[{type:"constructor",inputs:[{name:"_deBridgeGate",type:"address",internalType:"address"}],stateMutability:"nonpayable"},{type:"function",name:"PROVIDER",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"deBridgeGate",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IDeBridgeGate"}],stateMutability:"view"},{type:"function",name:"enabledReporters",inputs:[{name:"",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getHash",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setReporterByChainId",inputs:[{name:"chainId",type:"uint256",internalType:"uint256"},{name:"reporter",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"storeHashes",inputs:[{name:"ids",type:"uint256[]",internalType:"uint256[]"},{name:"hashes",type:"bytes32[]",internalType:"bytes32[]"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"event",name:"HashStored",inputs:[{name:"id",type:"uint256",indexed:!0,internalType:"uint256"},{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"event",name:"ReporterSet",inputs:[{name:"chainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"reporter",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"error",name:"ConflictingBlockHeader",inputs:[{name:"blockNumber",type:"uint256",internalType:"uint256"},{name:"blockHash",type:"bytes32",internalType:"bytes32"},{name:"storedBlockHash",type:"bytes32",internalType:"bytes32"}]},{type:"error",name:"InvalidBlockHeaderRLP",inputs:[]},{type:"error",name:"NotProxy",inputs:[]}
92,{type:"error",name:"UnauthorizedSender",inputs:[{name:"sender",type:"address",internalType:"address"},{name:"chainId",type:"uint256",internalType:"uint256"}]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return Ip.DeBridgeAdapter__factory=n,Ip}var Np={},BI;function T$(){var r;if(BI)return Np;BI=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.DeBridgeReporter__factory=void 0;const e=Rr(),t=[{type:"constructor",inputs:[{name:"headerStorage",type:"address",internalType:"address"},{name:"yaho",type:"address",internalType:"address"},{name:"deBridgeGate_",type:"address",internalType:"address"}],stateMutability:"nonpayable"},{type:"receive",stateMutability:"payable"},{type:"function",name:"HEADER_STORAGE",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"PROVIDER",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"YAHO",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"deBridgeGate",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IDeBridgeGate"}],stateMutability:"view"},{type:"function",name:"dispatchBlocks",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"blockNumbers",type:"uint256[]",internalType:"uint256[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"function",name:"dispatchMessages",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"messageIds",type:"uint256[]",internalType:"uint256[]"},{name:"messageHashes",type:"bytes32[]",internalType:"bytes32[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setFee",inputs:[{name:"fee_",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"event",name:"BlockDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"blockNumber",type:"uint256",indexed:!0,internalType:"uint256"},{name:"blockHeader",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"FeeSet",inputs:[{name:"fee",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"event",name:"MessageDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"messageId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"messageHash",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"error",name:"NotYaho",inputs:[{name:"sender",type:"address",internalType:"address"},{name:"expectedYaho",type:"address",internalType:"address"}]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return Np.DeBridgeReporter__factory=n,Np}var Rp={},_I;function S$(){var r;if(_I)return Rp;_I=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.Hashi__factory=void 0;const e=Rr(),t=[{type:"function",name:"checkHashWithThresholdFromAdapters",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"getHash",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}],outputs:[{name:"hash",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"}
92,{type:"function",name:"getHashFromAdapter",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getHashesFromAdapters",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}],outputs:[{name:"",type:"bytes32[]",internalType:"bytes32[]"}],stateMutability:"view"},{type:"error",name:"AdaptersDisagree",inputs:[{name:"adapterOne",type:"address",internalType:"contract IAdapter"},{name:"adapterTwo",type:"address",internalType:"contract IAdapter"}]},{type:"error",name:"HashNotAvailableInAdapter",inputs:[{name:"adapter",type:"address",internalType:"contract IAdapter"}]},{type:"error",name:"InvalidThreshold",inputs:[{name:"threshold",type:"uint256",internalType:"uint256"},{name:"maxThreshold",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoAdaptersGiven",inputs:[]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return Rp.Hashi__factory=n,Rp}var Op={},II;function B$(){var r;if(II)return Op;II=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.LayerZeroAdapter__factory=void 0;const e=Rr(),t=[{type:"constructor",inputs:[{name:"lzEndpoint",type:"address",internalType:"address"},{name:"delegate",type:"address",internalType:"address"}],stateMutability:"nonpayable"}
92,{type:"function",name:"LAYER_ZERO_ENDPOINT",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"PROVIDER",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"allowInitializePath",inputs:[{name:"origin",type:"tuple",internalType:"struct Origin",components:[{name:"srcEid",type:"uint32",internalType:"uint32"},{name:"sender",type:"bytes32",internalType:"bytes32"},{name:"nonce",type:"uint64",internalType:"uint64"}]}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"chainIds",inputs:[{name:"",type:"uint32",internalType:"uint32"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"enabledReporters",inputs:[{name:"",type:"uint32",internalType:"uint32"}],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"endpoint",inputs:[],outputs:[{name:"",type:"address",internalType:"contract ILayerZeroEndpointV2"}],stateMutability:"view"},{type:"function",name:"getHash",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"lzReceive",inputs:[{name:"_origin",type:"tuple",internalType:"struct Origin",components:[{name:"srcEid",type:"uint32",internalType:"uint32"},{name:"sender",type:"bytes32",internalType:"bytes32"},{name:"nonce",type:"uint64",internalType:"uint64"}]},{name:"",type:"bytes32",internalType:"bytes32"},{name:"_message",type:"bytes",internalType:"bytes"},{name:"",type:"address",internalType:"address"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"nextNonce",inputs:[{name:"",type:"uint32",internalType:"uint32"},{name:"",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"nonce",type:"uint64",internalType:"uint64"}],stateMutability:"pure"},{type:"function",name:"oAppVersion",inputs:[],outputs:[{name:"senderVersion",type:"uint64",internalType:"uint64"},{name:"receiverVersion",type:"uint64",internalType:"uint64"}],stateMutability:"pure"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"peers",inputs:[{name:"eid",type:"uint32",internalType:"uint32"}],outputs:[{name:"peer",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setDelegate",inputs:[{name:"_delegate",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setPeer",inputs:[{name:"_eid",type:"uint32",internalType:"uint32"},{name:"_peer",type:"bytes32",internalType:"bytes32"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setReporterByChain",inputs:[{name:"chainId",type:"uint256",internalType:"uint256"},{name:"endpointId",type:"uint32",internalType:"uint32"},{name:"reporter",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"event",name:"HashStored",inputs:[{name:"id",type:"uint256",indexed:!0,internalType:"uint256"},{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"event",name:"PeerSet",inputs:[{name:"eid",type:"uint32",indexed:!1,internalType:"uint32"},{name:"peer",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"ReporterSet",inputs:[{name:"chainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"endpointId",type:"uint32",indexed:!0,internalType:"uint32"},{name:"reporter",type:"address",indexed:!0,internalType:"address"}],anonymous:!1}
92,{type:"error",name:"ConflictingBlockHeader",inputs:[{name:"blockNumber",type:"uint256",internalType:"uint256"},{name:"blockHash",type:"bytes32",internalType:"bytes32"},{name:"storedBlockHash",type:"bytes32",internalType:"bytes32"}]},{type:"error",name:"InvalidBlockHeaderRLP",inputs:[]},{type:"error",name:"InvalidDelegate",inputs:[]},{type:"error",name:"InvalidEndpointCall",inputs:[]},{type:"error",name:"NoPeer",inputs:[{name:"eid",type:"uint32",internalType:"uint32"}]},{type:"error",name:"OnlyPeer",inputs:[{name:"eid",type:"uint32",internalType:"uint32"},{name:"sender",type:"bytes32",internalType:"bytes32"}]},{type:"error",name:"UnauthorizedLayerZeroReceive",inputs:[]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return Op.LayerZeroAdapter__factory=n,Op}var Mp={},NI;function _$(){var r;if(NI)return Mp;NI=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.LayerZeroReporter__factory=void 0;const e=Rr(),t=[{type:"constructor",inputs:[{name:"headerStorage",type:"address",internalType:"address"},{name:"yaho",type:"address",internalType:"address"},{name:"lzEndpoint",type:"address",internalType:"address"},{name:"delegate",type:"address",internalType:"address"},{name:"refundAddress_",type:"address",internalType:"address"},{name:"defaultGasLimit_",type:"uint128",internalType:"uint128"}],stateMutability:"nonpayable"},{type:"receive",stateMutability:"payable"},{type:"function",name:"HEADER_STORAGE",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"}
92,{type:"function",name:"LAYER_ZERO_ENDPOINT",inputs:[],outputs:[{name:"",type:"address",internalType:"contract ILayerZeroEndpointV2"}],stateMutability:"view"},{type:"function",name:"PROVIDER",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"YAHO",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"dispatchBlocks",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"blockNumbers",type:"uint256[]",internalType:"uint256[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"function",name:"dispatchMessages",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"messageIds",type:"uint256[]",internalType:"uint256[]"},{name:"messageHashes",type:"bytes32[]",internalType:"bytes32[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"function",name:"endpoint",inputs:[],outputs:[{name:"",type:"address",internalType:"contract ILayerZeroEndpointV2"}],stateMutability:"view"},{type:"function",name:"endpointIds",inputs:[{name:"",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"uint32",internalType:"uint32"}],stateMutability:"view"},{type:"function",name:"gasLimit",inputs:[],outputs:[{name:"",type:"uint128",internalType:"uint128"}],stateMutability:"view"},{type:"function",name:"oAppVersion",inputs:[],outputs:[{name:"senderVersion",type:"uint64",internalType:"uint64"},{name:"receiverVersion",type:"uint64",internalType:"uint64"}],stateMutability:"pure"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"peers",inputs:[{name:"eid",type:"uint32",internalType:"uint32"}],outputs:[{name:"peer",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setDefaultRefundAddress",inputs:[{name:"refundAddress_",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setDelegate",inputs:[{name:"_delegate",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setEndpointIdByChainId",inputs:[{name:"chainId",type:"uint256",internalType:"uint256"},{name:"endpointId",type:"uint32",internalType:"uint32"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setGasLimit",inputs:[{name:"gasLimit_",type:"uint128",internalType:"uint128"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setPeer",inputs:[{name:"_eid",type:"uint32",internalType:"uint32"},{name:"_peer",type:"bytes32",internalType:"bytes32"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"event",name:"BlockDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"blockNumber",type:"uint256",indexed:!0,internalType:"uint256"},{name:"blockHeader",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"EndpointIdSet",inputs:[{name:"chainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"endpointId",type:"uint32",indexed:!0,internalType:"uint32"}],anonymous:!1},{type:"event",name:"GasLimitSet",inputs:[{name:"gasLimit",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"event",name:"MessageDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"messageId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"messageHash",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1}
92,{type:"event",name:"PeerSet",inputs:[{name:"eid",type:"uint32",indexed:!1,internalType:"uint32"},{name:"peer",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"error",name:"EndpointIdNotAvailable",inputs:[]},{type:"error",name:"InvalidDelegate",inputs:[]},{type:"error",name:"InvalidEndpointCall",inputs:[]},{type:"error",name:"InvalidOptionType",inputs:[{name:"optionType",type:"uint16",internalType:"uint16"}]},{type:"error",name:"NoPeer",inputs:[{name:"eid",type:"uint32",internalType:"uint32"}]},{type:"error",name:"NotYaho",inputs:[{name:"sender",type:"address",internalType:"address"},{name:"expectedYaho",type:"address",internalType:"address"}]},{type:"error",name:"OnlyPeer",inputs:[{name:"eid",type:"uint32",internalType:"uint32"},{name:"sender",type:"bytes32",internalType:"bytes32"}]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return Mp.LayerZeroReporter__factory=n,Mp}var Dp={},RI;function I$(){var r;if(RI)return Dp;RI=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.Reporter__factory=void 0;const e=Rr(),t=[{type:"function",name:"HEADER_STORAGE",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"YAHO",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"dispatchBlocks",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"blockNumbers",type:"uint256[]",internalType:"uint256[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"function",name:"dispatchMessages",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"messageIds",type:"uint256[]",internalType:"uint256[]"},{name:"messageHashes",type:"bytes32[]",internalType:"bytes32[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"event",name:"BlockDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"blockNumber",type:"uint256",indexed:!0,internalType:"uint256"},{name:"blockHeader",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"MessageDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"messageId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"messageHash",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"error",name:"NotYaho",inputs:[{name:"sender",type:"address",internalType:"address"},{name:"expectedYaho",type:"address",internalType:"address"}]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return Dp.Reporter__factory=n,Dp}var Fp={},OI;function N$(){var r;if(OI)return Fp;OI=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.VeaAdapter__factory=void 0;const e=Rr(),t=[{type:"constructor",inputs:[{name:"veaOutbox_",type:"address",internalType:"address"},{name:"sourceChainId",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"PROVIDER",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"REPORTER",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"SOURCE_CHAIN_ID",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"VEA_OUTBOX",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getHash",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"}
92,{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"receiveMessage",inputs:[{name:"sourceMsgSender",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"senderGateway",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"setReporter",inputs:[{name:"reporter",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"veaOutbox",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"event",name:"HashStored",inputs:[{name:"id",type:"uint256",indexed:!0,internalType:"uint256"},{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"error",name:"ArrayLengthMissmatch",inputs:[]},{type:"error",name:"ConflictingBlockHeader",inputs:[{name:"blockNumber",type:"uint256",internalType:"uint256"},{name:"blockHash",type:"bytes32",internalType:"bytes32"},{name:"storedBlockHash",type:"bytes32",internalType:"bytes32"}]},{type:"error",name:"InvalidBlockHeaderRLP",inputs:[]},{type:"error",name:"InvalidReporter",inputs:[{name:"reporter",type:"address",internalType:"address"},{name:"expectedReporter",type:"address",internalType:"address"}]},{type:"error",name:"InvalidVeaOutbox",inputs:[{name:"veaOutbox",type:"address",internalType:"address"},{name:"expectedVeaOutboux",type:"address",internalType:"address"}]},{type:"error",name:"OwnableInvalidOwner",inputs:[{name:"owner",type:"address",internalType:"address"}]},{type:"error",name:"OwnableUnauthorizedAccount",inputs:[{name:"account",type:"address",internalType:"address"}]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return Fp.VeaAdapter__factory=n,Fp}var Up={},MI;function R$(){var r;if(MI)return Up;MI=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.VeaReporter__factory=void 0;const e=Rr(),t=[{type:"constructor",inputs:[{name:"headerStorage",type:"address",internalType:"address"},{name:"yaho",type:"address",internalType:"address"},{name:"veaInbox_",type:"address",internalType:"contract IVeaInbox"},{name:"adapter",type:"address",internalType:"address"},{name:"expectedTargetChainId",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"ADAPTER",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"EXPECTED_TARGET_CHAIN_ID",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"HEADER_STORAGE",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"PROVIDER",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"VEA_INBOX",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IVeaInbox"}],stateMutability:"view"},{type:"function",name:"YAHO",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"dispatchBlocks",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"blockNumbers",type:"uint256[]",internalType:"uint256[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"function",name:"dispatchMessages",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"messageIds",type:"uint256[]",internalType:"uint256[]"},{name:"messageHashes",type:"bytes32[]",internalType:"bytes32[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"function",name:"receiverGateway",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"veaInbox",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IVeaInbox"}],stateMutability:"view"},{type:"event",name:"BlockDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"blockNumber",type:"uint256",indexed:!0,internalType:"uint256"},{name:"blockHeader",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"MessageDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"messageId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"messageHash",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1}
92,{type:"error",name:"InvalidAdapter",inputs:[{name:"adapter",type:"address",internalType:"address"},{name:"expectedAdapter",type:"address",internalType:"address"}]},{type:"error",name:"InvalidTargetChainId",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"expectedTargetChainId",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NotYaho",inputs:[{name:"sender",type:"address",internalType:"address"},{name:"expectedYaho",type:"address",internalType:"address"}]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return Up.VeaReporter__factory=n,Up}var jp={},DI;function O$(){var r;if(DI)return jp;DI=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.Yaho__factory=void 0;const e=Rr(),t=[{type:"function",name:"calculateMessageHash",inputs:[{name:"message",type:"tuple",internalType:"struct Message",components:[{name:"nonce",type:"uint256",internalType:"uint256"},{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"sender",type:"address",internalType:"address"},{name:"receiver",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}]}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"pure"},{type:"function",name:"calculateMessageId",inputs:[{name:"sourceChainId",type:"uint256",internalType:"uint256"},{name:"dispatcherAddress",type:"address",internalType:"address"},{name:"messageHash",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"pure"},{type:"function",name:"currentNonce",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"dispatchMessage",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"receiver",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"dispatchMessageToAdapters",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"receiver",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}],outputs:[{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes32[]",internalType:"bytes32[]"}],stateMutability:"payable"},{type:"function",name:"dispatchMessagesToAdapters",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"thresholds",type:"uint256[]",internalType:"uint256[]"},{name:"receivers",type:"address[]",internalType:"address[]"},{name:"data",type:"bytes[]",internalType:"bytes[]"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}],outputs:[{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"bytes32[]",internalType:"bytes32[]"}],stateMutability:"payable"},{type:"function",name:"getPendingMessageHash",inputs:[{name:"messageId",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"relayMessagesToAdapters",inputs:[{name:"messages",type:"tuple[]",internalType:"struct Message[]",components:[{name:"nonce",type:"uint256",internalType:"uint256"},{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"sender",type:"address",internalType:"address"},{name:"receiver",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}]}],outputs:[{name:"",type:"bytes32[]",internalType:"bytes32[]"}],stateMutability:"payable"},{type:"event",name:"MessageDispatched",inputs:[{name:"messageId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"message",type:"tuple",indexed:!1,internalType:"struct Message",components:[{name:"nonce",type:"uint256",internalType:"uint256"},{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"sender",type:"address",internalType:"address"},{name:"receiver",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}]}],anonymous:!1},{type:"error",name:"InvalidMessage",inputs:[{name:"message",type:"tuple",internalType:"struct Message",components:[{name:"nonce",type:"uint256",internalType:"uint256"},{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"sender",type:"address",internalType:"address"},{name:"receiver",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}]}]}
92,{type:"error",name:"InvalidThreshold",inputs:[{name:"threshold",type:"uint256",internalType:"uint256"},{name:"maxThreshold",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MessageHashNotFound",inputs:[{name:"messageId",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoAdaptersGiven",inputs:[]},{type:"error",name:"NoMessageIdsGiven",inputs:[]},{type:"error",name:"NoMessagesGiven",inputs:[]},{type:"error",name:"NoReportersGiven",inputs:[]},{type:"error",name:"UnequalArrayLengths",inputs:[{name:"arrayOne",type:"uint256",internalType:"uint256"},{name:"arrayTwo",type:"uint256",internalType:"uint256"}]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return jp.Yaho__factory=n,jp}var Lp={},FI;function M$(){var r;if(FI)return Lp;FI=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.Yaru__factory=void 0;const e=Rr(),t=[{type:"constructor",inputs:[{name:"hashi",type:"address",internalType:"address"},{name:"yaho_",type:"address",internalType:"address"},{name:"sourceChainId",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"HASHI",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"SOURCE_CHAIN_ID",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"YAHO",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"calculateMessageHash",inputs:[{name:"message",type:"tuple",internalType:"struct Message",components:[{name:"nonce",type:"uint256",internalType:"uint256"},{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"sender",type:"address",internalType:"address"},{name:"receiver",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}]}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"pure"},{type:"function",name:"calculateMessageId",inputs:[{name:"sourceChainId",type:"uint256",internalType:"uint256"},{name:"dispatcherAddress",type:"address",internalType:"address"},{name:"messageHash",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"pure"},{type:"function",name:"executeMessages",inputs:[{name:"messages",type:"tuple[]",internalType:"struct Message[]",components:[{name:"nonce",type:"uint256",internalType:"uint256"},{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"sender",type:"address",internalType:"address"},{name:"receiver",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}]}],outputs:[{name:"",type:"bytes[]",internalType:"bytes[]"}],stateMutability:"nonpayable"},{type:"function",name:"executed",inputs:[{name:"",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"event",name:"MessageExecuted",inputs:[{name:"messageId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"message",type:"tuple",indexed:!1,internalType:"struct Message",components:[{name:"nonce",type:"uint256",internalType:"uint256"},{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"sender",type:"address",internalType:"address"},{name:"receiver",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}]}],anonymous:!1},{type:"error",name:"CallFailed",inputs:[]},{type:"error",name:"InvalidToChainId",inputs:[{name:"chainId",type:"uint256",internalType:"uint256"},{name:"expectedChainId",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MessageIdAlreadyExecuted",inputs:[{name:"messageId",type:"uint256",internalType:"uint256"}]}
92,{type:"error",name:"ThresholdNotMet",inputs:[]}];let n=(r=class{static createInterface(){return new e.Interface(t)}static connect(s,i){return new e.Contract(s,t,i)}},de(r,"abi",t),r);return Lp.Yaru__factory=n,Lp}var UI;function Yle(){return UI||(UI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Yaru__factory=e.Yaho__factory=e.VeaReporter__factory=e.VeaAdapter__factory=e.Reporter__factory=e.LayerZeroReporter__factory=e.LayerZeroAdapter__factory=e.Hashi__factory=e.DeBridgeReporter__factory=e.DeBridgeAdapter__factory=e.CCIPReporter__factory=e.CCIPAdapter__factory=e.AxelarReporter__factory=e.AxelarAdapter__factory=e.Adapter__factory=void 0;var t=w$();Object.defineProperty(e,"Adapter__factory",{enumerable:!0,get:function(){return t.Adapter__factory}});var n=E$();Object.defineProperty(e,"AxelarAdapter__factory",{enumerable:!0,get:function(){return n.AxelarAdapter__factory}});var r=k$();Object.defineProperty(e,"AxelarReporter__factory",{enumerable:!0,get:function(){return r.AxelarReporter__factory}});var a=C$();Object.defineProperty(e,"CCIPAdapter__factory",{enumerable:!0,get:function(){return a.CCIPAdapter__factory}});var s=A$();Object.defineProperty(e,"CCIPReporter__factory",{enumerable:!0,get:function(){return s.CCIPReporter__factory}});var i=P$();Object.defineProperty(e,"DeBridgeAdapter__factory",{enumerable:!0,get:function(){return i.DeBridgeAdapter__factory}});var l=T$();Object.defineProperty(e,"DeBridgeReporter__factory",{enumerable:!0,get:function(){return l.DeBridgeReporter__factory}});var c=S$();Object.defineProperty(e,"Hashi__factory",{enumerable:!0,get:function(){return c.Hashi__factory}});var u=B$();Object.defineProperty(e,"LayerZeroAdapter__factory",{enumerable:!0,get:function(){return u.LayerZeroAdapter__factory}});var f=_$();Object.defineProperty(e,"LayerZeroReporter__factory",{enumerable:!0,get:function(){return f.LayerZeroReporter__factory}});var p=I$();Object.defineProperty(e,"Reporter__factory",{enumerable:!0,get:function(){return p.Reporter__factory}});var m=N$();Object.defineProperty(e,"VeaAdapter__factory",{enumerable:!0,get:function(){return m.VeaAdapter__factory}});var h=R$();Object.defineProperty(e,"VeaReporter__factory",{enumerable:!0,get:function(){return h.VeaReporter__factory}});var y=O$();Object.defineProperty(e,"Yaho__factory",{enumerable:!0,get:function(){return y.Yaho__factory}});var x=M$();Object.defineProperty(e,"Yaru__factory",{enumerable:!0,get:function(){return x.Yaru__factory}})})(V6)),V6}var jI;function ece(){return jI||(jI=1,(function(e){var t=li&&li.__createBinding||(Object.create?(function(v,g,A,S){S===void 0&&(S=A);var _=Object.getOwnPropertyDescriptor(g,A);(!_||("get"in _?!g.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return g[A]}}),Object.defineProperty(v,S,_)}):(function(v,g,A,S){S===void 0&&(S=A),v[S]=g[A]})),n=li&&li.__setModuleDefault||(Object.create?(function(v,g){Object.defineProperty(v,"default",{enumerable:!0,value:g})}):function(v,g){v.default=g}),r=li&&li.__importStar||(function(){var v=function(g){return v=Object.getOwnPropertyNames||function(A){var S=[];for(var _ in A)Object.prototype.hasOwnProperty.call(A,_)&&(S[S.length]=_);return S},v(g)};return function(g){if(g&&g.__esModule)return g;var A={};if(g!=null)for(var S=v(g),_=0;_<S.length;_++)S[_]!=="default"&&t(A,g,S[_]);return n(A,g),A}})();Object.defineProperty(e,"__esModule",{value:!0}),e.Yaru__factory=e.Yaho__factory=e.VeaReporter__factory=e.VeaAdapter__factory=e.Reporter__factory=e.LayerZeroReporter__factory=e.LayerZeroAdapter__factory=e.Hashi__factory=e.DeBridgeReporter__factory=e.DeBridgeAdapter__factory=e.CCIPReporter__factory=e.CCIPAdapter__factory=e.AxelarReporter__factory=e.AxelarAdapter__factory=e.Adapter__factory=e.factories=void 0,e.factories=r(Yle());var a=w$();Object.defineProperty(e,"Adapter__factory",{enumerable:!0,get:function(){return a.Adapter__factory}});var s=E$();Object.defineProperty(e,"AxelarAdapter__factory",{enumerable:!0,get:function(){return s.AxelarAdapter__factory}});var i=k$();Object.defineProperty(e,"AxelarReporter__factory",{enumerable:!0,get:function(){return i.AxelarReporter__factory}});var l=C$();Object.defineProperty(e,"CCIPAdapter__factory",{enumerable:!0,get:function(){return l.CCIPAdapter__factory}});var c=A$();Object.defineProperty(e,"CCIPReporter__factory",{enumerable:!0,get:function(){return c.CCIPReporter__factory}});var u=P$();Object.defineProperty(e,"DeBridgeAdapter__factory",{enumerable:!0,get:function(){return u.DeBridgeAdapter__factory}});var f=T$();Object.defineProperty(e,"DeBridgeReporter__factory",{enumerable:!0,get:function(){return f.DeBridgeReporter__factory}});var p=S$();Object.defineProperty(e,"Hashi__factory",{enumerable:!0,get:function(){return p.Hashi__factory}});var m=B$();Object.defineProperty(e,"LayerZeroAdapter__factory",{enumerable:!0,get:function(){return m.LayerZeroAdapter__factory}});var h=_$();Object.defineProperty(e,"LayerZeroReporter__factory",{enumerable:!0,get:function(){return h.LayerZeroReporter__factory}});var y=I$();Object.defineProperty(e,"Reporter__factory",{enumerable:!0,get:function(){return y.Reporter__factory}});var x=N$();Object.defineProperty(e,"VeaAdapter__factory",{enumerable:!0,get:function(){return x.VeaAdapter__factory}});var C=R$();Object.defineProperty(e,"VeaReporter__factory",{enumerable:!0,get:function(){return C.VeaReporter__factory}});var T=O$();Object.defineProperty(e,"Yaho__factory",{enumerable:!0,get:function(){return T.Yaho__factory}});
92var w=M$();Object.defineProperty(e,"Yaru__factory",{enumerable:!0,get:function(){return w.Yaru__factory}})})(li)),li}var Tr={};const tce=[{type:"function",name:"getHash",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"event",name:"HashStored",inputs:[{name:"id",type:"uint256",indexed:!0,internalType:"uint256"},{name:"hash",type:"bytes32",indexed:!0,internalType:"bytes32"}],anonymous:!1},{type:"error",name:"ConflictingBlockHeader",inputs:[{name:"blockNumber",type:"uint256",internalType:"uint256"},{name:"blockHash",type:"bytes32",internalType:"bytes32"},{name:"storedBlockHash",type:"bytes32",internalType:"bytes32"}]},{type:"error",name:"InvalidBlockHeaderRLP",inputs:[]}],nce=JSON.parse('[{"type":"function","name":"calculateMessageHash","inputs":[{"name":"message","type":"tuple","internalType":"struct Message","components":[{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"targetChainId","type":"uint256","internalType":"uint256"},{"name":"threshold","type":"uint256","internalType":"uint256"},{"name":"sender","type":"address","internalType":"address"},{"name":"receiver","type":"address","internalType":"address"},{"name":"data","type":"bytes","internalType":"bytes"},{"name":"reporters","type":"address[]","internalType":"contract IReporter[]"},{"name":"adapters","type":"address[]","internalType":"contract IAdapter[]"}]}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"pure"},{"type":"function","name":"calculateMessageId","inputs":[{"name":"sourceChainId","type":"uint256","internalType":"uint256"},{"name":"dispatcherAddress","type":"address","internalType":"address"},{"name":"messageHash","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"pure"},{"type":"function","name":"currentNonce","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"dispatchMessage","inputs":[{"name":"targetChainId","type":"uint256","internalType":"uint256"},{"name":"threshold","type":"uint256","internalType":"uint256"},{"name":"receiver","type":"address","internalType":"address"},{"name":"data","type":"bytes","internalType":"bytes"},{"name":"reporters","type":"address[]","internalType":"contract IReporter[]"},{"name":"adapters","type":"address[]","internalType":"contract IAdapter[]"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"function","name":"dispatchMessageToAdapters","inputs":[{"name":"targetChainId","type":"uint256","internalType":"uint256"},{"name":"threshold","type":"uint256","internalType":"uint256"},{"name":"receiver","type":"address","internalType":"address"},{"name":"data","type":"bytes","internalType":"bytes"},{"name":"reporters","type":"address[]","internalType":"contract IReporter[]"},{"name":"adapters","type":"address[]","internalType":"contract IAdapter[]"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"},{"name":"","type":"bytes32[]","internalType":"bytes32[]"}],"stateMutability":"payable"},{"type":"function","name":"dispatchMessagesToAdapters","inputs":[{"name":"targetChainId","type":"uint256","internalType":"uint256"},{"name":"thresholds","type":"uint256[]","internalType":"uint256[]"},{"name":"receivers","type":"address[]","internalType":"address[]"},{"name":"data","type":"bytes[]","internalType":"bytes[]"},{"name":"reporters","type":"address[]","internalType":"contract IReporter[]"},{"name":"adapters","type":"address[]","internalType":"contract IAdapter[]"}],"outputs":[{"name":"","type":"uint256[]","internalType":"uint256[]"},{"name":"","type":"bytes32[]","internalType":"bytes32[]"}],"stateMutability":"payable"},{"type":"function","name":"getPendingMessageHash","inputs":[{"name":"messageId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"relayMessagesToAdapters","inputs":[{"name":"messages","type":"tuple[]","internalType":"struct Message[]","components":[{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"targetChainId","type":"uint256","internalType":"uint256"},{"name":"threshold","type":"uint256","internalType":"uint256"},{"name":"sender","type":"address","internalType":"address"},{"name":"receiver","type":"address","internalType":"address"},{"name":"data","type":"bytes","internalType":"bytes"},{"name":"reporters","type":"address[]","internalType":"contract IReporter[]"},{"name":"adapters","type":"address[]","internalType":"contract IAdapter[]"}]}],"outputs":[{"name":"","type":"bytes32[]","internalType":"bytes32[]"}],"stateMutability":"payable"},{"type":"event","name":"MessageDispatched","inputs":[{"name":"messageId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"message","type":"tuple","indexed":false,"internalType":"struct Message","components":[{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"targetChainId","type":"uint256","internalType":"uint256"},{"name":"threshold","type":"uint256","internalType":"uint256"},{"name":"sender","type":"address","internalType":"address"},{"name":"receiver","type":"address","internalType":"address"},{"name":"data","type":"bytes","internalType":"bytes"},{"name":"reporters","type":"address[]","internalType":"contract IReporter[]"},{"name":"adapters","type":"address[]","internalType":"contract IAdapter[]"}]}],"anonymous":false},{"type":"error","name":"InvalidMessage","inputs":[{"name":"message","type":"tuple","internalType":"struct Message","components":[{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"targetChainId","type":"uint256","internalType":"uint256"},{"name":"threshold","type":"uint256","internalType":"uint256"},{"name":"sender","type":"address","internalType":"address"},{"name":"receiver","type":"address","internalType":"address"},{"name":"data","type":"bytes","internalType":"bytes"},{"name":"reporters","type":"address[]","internalType":"contract IReporter[]"},{"name":"adapters","type":"address[]","internalType":"contract IAdapter[]"}]}]},{"type":"error","name":"InvalidThreshold","inputs":[{"name":"threshold","type":"uint256","internalType":"uint256"},{"name":"maxThreshold","type":"uint256","internalType":"uint256"}]},{"type":"error","name":"MessageHashNotFound","inputs":[{"name":"messageId","type":"uint256","internalType":"uint256"}]},{"type":"error","name":"NoAdaptersGiven","inputs":[]},{"type":"error","name":"NoMessageIdsGiven","inputs":[]},{"type":"error","name":"NoMessagesGiven","inputs":[]},{"type":"error","name":"NoReportersGiven","inputs":[]},{"type":"error","name":"UnequalArrayLengths","inputs":[{"name":"arrayOne","type":"uint256","internalType":"uint256"},{"name":"arrayTwo","type":"uint256","internalType":"uint256"}]}]'),rce=[{type:"constructor",inputs:[{name:"hashi",type:"address",internalType:"address"},{name:"yaho_",type:"address",internalType:"address"},{name:"sourceChainId",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"HASHI",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"SOURCE_CHAIN_ID",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"YAHO",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"calculateMessageHash",inputs:[{name:"message",type:"tuple",internalType:"struct Message",components:[{name:"nonce",type:"uint256",internalType:"uint256"},{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"sender",type:"address",internalType:"address"},{name:"receiver",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}]}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"pure"},{type:"function",name:"calculateMessageId",inputs:[{name:"sourceChainId",type:"uint256",internalType:"uint256"},{name:"dispatcherAddress",type:"address",internalType:"address"},{name:"messageHash",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"pure"},{type:"function",name:"executeMessages",inputs:[{name:"messages",type:"tuple[]",internalType:"struct Message[]",components:[{name:"nonce",type:"uint256",internalType:"uint256"},{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"sender",type:"address",internalType:"address"},{name:"receiver",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}]}],outputs:[{name:"",type:"bytes[]",internalType:"bytes[]"}],stateMutability:"nonpayable"},{type:"function",name:"executed",inputs:[{name:"",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"event",name:"MessageExecuted",inputs:[{name:"messageId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"message",type:"tuple",indexed:!1,internalType:"struct Message",components:[{name:"nonce",type:"uint256",internalType:"uint256"},{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"sender",type:"address",internalType:"address"},{name:"receiver",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"reporters",type:"address[]",internalType:"contract IReporter[]"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}]}],anonymous:!1},{type:"error",name:"CallFailed",inputs:[]},{type:"error",name:"InvalidToChainId",inputs:[{name:"chainId",type:"uint256",internalType:"uint256"},{name:"expectedChainId",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MessageIdAlreadyExecuted",inputs:[{name:"messageId",type:"uint256",internalType:"uint256"}]}
92,{type:"error",name:"ThresholdNotMet",inputs:[]}],ace=[{type:"function",name:"checkHashWithThresholdFromAdapters",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"},{name:"threshold",type:"uint256",internalType:"uint256"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"getHash",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}],outputs:[{name:"hash",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getHashFromAdapter",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"getHashesFromAdapters",inputs:[{name:"domain",type:"uint256",internalType:"uint256"},{name:"id",type:"uint256",internalType:"uint256"},{name:"adapters",type:"address[]",internalType:"contract IAdapter[]"}],outputs:[{name:"",type:"bytes32[]",internalType:"bytes32[]"}],stateMutability:"view"},{type:"error",name:"AdaptersDisagree",inputs:[{name:"adapterOne",type:"address",internalType:"contract IAdapter"},{name:"adapterTwo",type:"address",internalType:"contract IAdapter"}]},{type:"error",name:"HashNotAvailableInAdapter",inputs:[{name:"adapter",type:"address",internalType:"contract IAdapter"}]},{type:"error",name:"InvalidThreshold",inputs:[{name:"threshold",type:"uint256",internalType:"uint256"},{name:"maxThreshold",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoAdaptersGiven",inputs:[]}],sce=[{type:"function",name:"HEADER_STORAGE",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"YAHO",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"dispatchBlocks",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"blockNumbers",type:"uint256[]",internalType:"uint256[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"function",name:"dispatchMessages",inputs:[{name:"targetChainId",type:"uint256",internalType:"uint256"},{name:"adapter",type:"address",internalType:"contract IAdapter"},{name:"messageIds",type:"uint256[]",internalType:"uint256[]"},{name:"messageHashes",type:"bytes32[]",internalType:"bytes32[]"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"payable"},{type:"event",name:"BlockDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"blockNumber",type:"uint256",indexed:!0,internalType:"uint256"},{name:"blockHeader",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"MessageDispatched",inputs:[{name:"targetChainId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"adapter",type:"address",indexed:!1,internalType:"contract IAdapter"},{name:"messageId",type:"uint256",indexed:!0,internalType:"uint256"},{name:"messageHash",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"error",name:"NotYaho",inputs:[{name:"sender",type:"address",internalType:"address"},{name:"expectedYaho",type:"address",internalType:"address"}]}];var LI;function ice(){if(LI)return Tr;LI=1;var e=Tr&&Tr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.ReporterAbi=Tr.HashiAbi=Tr.YaruAbi=Tr.YahoAbi=Tr.AdapterAbi=void 0;const t=e(tce);Tr.AdapterAbi=t.default;const n=e(nce);Tr.YahoAbi=n.default;const r=e(rce);Tr.YaruAbi=r.default;const a=e(ace);Tr.HashiAbi=a.default;const s=e(sce);return Tr.ReporterAbi=s.default,Tr}var $I;function oce(){return $I||($I=1,(function(e){var t=xl&&xl.__createBinding||(Object.create?(function(r,a,s,i){i===void 0&&(i=s);var l=Object.getOwnPropertyDescriptor(a,s);(!l||("get"in l?!a.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(r,i,l)}):(function(r,a,s,i){i===void 0&&(i=s),r[i]=a[s]})),n=xl&&xl.__exportStar||function(r,a){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&t(a,r,s)};
92Object.defineProperty(e,"__esModule",{value:!0}),n(fL(),e),n(Toe(),e),n(pL(),e),n(ece(),e),n(ice(),e)})(xl)),xl}var Ht=oce();function j(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(r){return a=>{const s=typeof a=="function"?a(r):a,i={...r,...s};return Object.assign(i,{extend:n(i)})}}return Object.assign(t,{extend:n(t)})}function lce(){return{}}const cce=j({id:16600,name:"0G Newton Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-newton.0g.ai"}},testnet:!0}),uce=j({id:16601,name:"0G Galileo Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-galileo.0g.ai"}},testnet:!0}),dce=j({id:16661,name:"0G Mainnet",nativeCurrency:{name:"0G",symbol:"0G",decimals:18},rpcUrls:{default:{http:["https://evmrpc.0g.ai"]}},blockExplorers:{default:{name:"0G Chainscan",url:"https://chainscan.0g.ai"}},testnet:!1}),fce=j({id:16602,name:"0G Galileo Testnet",nativeCurrency:{name:"0G",symbol:"0G",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G Chainscan",url:"https://chainscan-galileo.0g.ai"}},testnet:!0}),pce=j({id:995,name:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Mainnet Explorer",url:"https://5irescan.io/"}},testnet:!1}),mce=j({id:179,name:"ABEY Mainnet",nativeCurrency:{name:"ABEY",symbol:"ABEY",decimals:18},rpcUrls:{default:{http:["https://rpc.abeychain.com"]}},blockExplorers:{default:{name:"Abey Scan",url:"https://abeyscan.com"}},testnet:!1}),D$="2.56.9";let $p={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${D$}`},Oe=class V5 extends Error{constructor(t,n={}){var l;const r=(()=>{var c;return n.cause instanceof V5?n.cause.details:(c=n.cause)!=null&&c.message?n.cause.message:n.details})(),a=n.cause instanceof V5&&n.cause.docsPath||n.docsPath,s=(l=$p.getDocsUrl)==null?void 0:l.call($p,{...n,docsPath:a}),i=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...$p.version?[`Version: ${$p.version}`]:[]].join(`
93`);super(i,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=D$}walk(t){return F$(this,t)}};function F$(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?F$(e.cause,t):t?null:e}let kE=class extends Oe{constructor({max:t,min:n,signed:r,size:a,value:s}){super(`Number "${s}" is not in safe ${a?`${a*8}-bit ${r?"signed":"unsigned"} `:""}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},hce=class extends Oe{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}};class yce extends Oe{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}let bce=class extends Oe{constructor(t){super(`Hex value "${t}" is an odd length (${t.length}). It must be an even length.`,{name:"InvalidHexValueError"})}};class gce extends Oe{constructor({limit:t}){super(`RLP depth limit of \`${t}
93\` exceeded.`,{name:"RlpDepthLimitExceededError"})}}class xce extends Oe{constructor({consumed:t,declared:n}){super(`RLP list items consumed \`${t}\` bytes but the list declared a length of \`${n}\`.`,{name:"RlpListBoundaryExceededError"})}}class vce extends Oe{constructor({count:t}){super(`RLP payload encodes a single item, but \`${t}\` trailing ${t===1?"byte remains":"bytes remain"}.`,{name:"RlpTrailingBytesError"})}}let wce=class extends Oe{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}};function It(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function wn(e){return It(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function na(e,{dir:t="left"}={}){let n=typeof e=="string"?e.replace("0x",""):e,r=0;for(let a=0;a<n.length-1&&n[t==="left"?a:n.length-a-1].toString()==="0";a++)r++;return n=t==="left"?n.slice(r):n.slice(0,n.length-r),typeof e=="string"?(n.length===1&&t==="right"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}let U$=class extends Oe{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}},j$=class extends Oe{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};class zI extends Oe{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${t} ${r} long.`,{name:"InvalidBytesLengthError"})}}function qo(e,{dir:t,size:n=32}={}){return typeof e=="string"?Ds(e,{dir:t,size:n}):Ece(e,{dir:t,size:n})}function Ds(e,{dir:t,size:n=32}={}){if(n===null)return e;const r=e.replace("0x","");if(r.length>n*2)throw new j$({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function Ece(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new j$({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let a=0;a<n;a++){const s=t==="right";r[s?a:n-a-1]=e[s?a:e.length-a-1]}return r}const kce=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Kt(e,t={}){return typeof e=="number"||typeof e=="bigint"?nt(e,t):typeof e=="string"?zb(e,t):typeof e=="boolean"?L$(e,t):Nn(e,t)}function L$(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(Es(n,{size:t.size}),qo(n,{size:t.size})):n}function Nn(e,t={}){let n="";for(let a=0;a<e.length;a++)n+=kce[e[a]];const r=`0x${n}`;return typeof t.size=="number"?(Es(r,{size:t.size}),qo(r,{dir:"right",size:t.size})):r}function nt(e,t={}){const{signed:n,size:r}=t,a=BigInt(e);let s;r?n?s=(1n<<BigInt(r)*8n-1n)-1n:s=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof s=="bigint"&&n?-s-1n:0;if(s&&a>s||a<i){const c=typeof e=="bigint"?"n":"";throw new kE({max:s?`${s}${c}`:void 0,min:`${i}${c}`,signed:n,size:r,value:`${e}${c}`})}const l=`0x${(n&&a<0?(1n<<BigInt(r*8))+BigInt(a):a).toString(16)}`;return r?qo(l,{size:r}):l}const Cce=new TextEncoder;function zb(e,t={}){const n=Cce.encode(e);return Nn(n,t)}const Ace=new TextEncoder;function Mi(e,t={}){return typeof e=="number"||typeof e=="bigint"?Tce(e,t):typeof e=="boolean"?Pce(e,t):It(e)?ra(e,t):cc(e,t)}function Pce(e,t={}){const n=new Uint8Array(1);return n[0]=Number(e),typeof t.size=="number"?(Es(n,{size:t.size}),qo(n,{size:t.size})):n}const vi={zero:48,nine:57,A:65,F:70,a:97,f:102};function HI(e){if(e>=vi.zero&&e<=vi.nine)return e-vi.zero;if(e>=vi.A&&e<=vi.F)return e-(vi.A-10);if(e>=vi.a&&e<=vi.f)return e-(vi.a-10)}function ra(e,t={}){let n=e;t.size&&(Es(n,{size:t.size}),n=qo(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const a=r.length/2,s=new Uint8Array(a);for(let i=0,l=0;i<a;i++){const c=HI(r.charCodeAt(l++)),u=HI(r.charCodeAt(l++));if(c===void 0||u===void 0)throw new Oe(`Invalid byte sequence ("${r[l-2]}${r[l-1]}" in "${r}").`);s[i]=c*16+u}return s}function Tce(e,t){const n=nt(e,t);return ra(n)}function cc(e,t={}){const n=Ace.encode(e);return typeof t.size=="number"?(Es(n,{size:t.size}),qo(n,{dir:"right",size:t.size})):n}function Es(e,{size:t}){if(wn(e)>t)throw new wce({givenSize:wn(e),maxSize:t})}function Pt(e,t={}){const{signed:n}=t;t.size&&Es(e,{size:t.size});const r=BigInt(e);if(!n)return r;const a=Math.ceil((e.length-2)/2),s=(1n<<BigInt(a)*8n-1n)-1n;return r<=s?r:r-BigInt(`0x${"f".padStart(a*2,"f")}`)-1n}function Sce(e,t={}){let n=e;if(t.size&&(Es(n,{size:t.size}),n=na(n)),na(n)==="0x00")return!1;if(na(n)==="0x01")return!0;throw new yce(n)}function Pn(e,t={}){const n=Pt(e,t),r=Number(n);if(!Number.isSafeInteger(r))throw new kE({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return r}function D1(e,t){return({exclude:n,format:r})=>({exclude:n,format:(a,s)=>{const i=t(a,s);if(n)for(const l of n)delete i[l];return{...i,...r(a,s)}},type:e})}const $$={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Dc(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...e.blockTimestamp!=null&&{blockTimestamp:BigInt(e.blockTimestamp)},chainId:e.chainId?Pn(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?Pn(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?$$[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=Bce(e.authorizationList)),n.yParity=(()=>
93{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const F1=D1("transaction",Dc);function Bce(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function U1(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:Dc(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const CE=D1("block",U1);function ps(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const _ce={"0x0":"reverted","0x1":"success"};function Bm(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(r=>ps(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Pn(e.transactionIndex):null,status:e.status?_ce[e.status]:null,type:e.type?$$[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const AE=D1("transactionReceipt",Bm),Ice={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Vi(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=Nce(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>Nn(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=nt(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=nt(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=nt(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=nt(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=nt(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=nt(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=Ice[e.type]),typeof e.value<"u"&&(n.value=nt(e.value)),n}const PE=D1("transactionRequest",Vi);function Nce(e){return e.map(t=>({address:t.address,r:t.r?nt(BigInt(t.r)):t.r,s:t.s?nt(BigInt(t.s)):t.s,chainId:nt(t.chainId),nonce:nt(t.nonce),...typeof t.yParity<"u"?{yParity:nt(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:nt(t.v)}:{}}))}const Rce=2n**16n-1n,yc=2n**256n-1n,TE=50000n,KI=Rce*32n,z$={block:CE({format(e){var n;const t=(n=e.transactions)==null?void 0:n.map(r=>{var s;if(typeof r=="string")return r;const a=(s=z$.transaction)==null?void 0:s.format(r);return a.typeHex==="0x71"?a.type="eip712":a.typeHex==="0xff"&&(a.type="priority"),a});
93return{l1BatchNumber:e.l1BatchNumber?Pt(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?Pt(e.l1BatchTimestamp):null,transactions:t}}}),transaction:F1({format(e){const t={};return e.type==="0x71"?t.type="eip712":e.type==="0xff"&&(t.type="priority"),{...t,l1BatchNumber:e.l1BatchNumber?Pt(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?Pt(e.l1BatchTxIndex):null}}}),transactionReceipt:AE({format(e){return{l1BatchNumber:e.l1BatchNumber?Pt(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?Pt(e.l1BatchTxIndex):null,logs:e.logs.map(t=>({...ps(t),l1BatchNumber:t.l1BatchNumber?Pt(t.l1BatchNumber):null,transactionLogIndex:Pn(t.transactionLogIndex),logType:t.logType})),l2ToL1Logs:e.l2ToL1Logs.map(t=>({blockNumber:Pt(t.blockHash),blockHash:t.blockHash,l1BatchNumber:t.l1BatchNumber?Pt(t.l1BatchNumber):null,transactionIndex:Pt(t.transactionIndex),shardId:Pt(t.shardId),isService:t.isService,sender:t.sender,key:t.key,value:t.value,transactionHash:t.transactionHash,logIndex:Pt(t.logIndex)}))}}}),transactionRequest:PE({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format(e){return e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:Kt(e.gasPerPubdata)}:{gasPerPubdata:Kt(TE)},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from(ra(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps.map(t=>Array.from(ra(t)))}:{},...e.customSignature?{customSignature:Array.from(ra(e.customSignature))}:{}},type:"0x71"}:{}}})};function Ku(e){return typeof e[0]=="string"?Zn(e):Oce(e)}function Oce(e){let t=0;for(const a of e)t+=a.length;const n=new Uint8Array(t);let r=0;for(const a of e)n.set(a,r),r+=a.length;return n}function Zn(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}let VI=class extends Oe{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},H$=class extends Oe{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},Mce=class extends Oe{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const Dce={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Mce({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new H$({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new VI({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new VI({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function j1(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(Dce);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function js(e,t="hex"){const n=K$(e),r=j1(new Uint8Array(n.length));return n.encode(r),t==="hex"?Nn(r.bytes):r.bytes}function K$(e){return Array.isArray(e)?Fce(e.map(t=>K$(t))):Uce(e)}function Fce(e){const t=e.reduce((a,s)=>a+s.length,0),n=V$(t);return{length:t<=55?1+t:1+n+t,encode(a){t<=55?a.pushByte(192+t):(a.pushByte(247+n),n===1?a.pushUint8(t):n===2?a.pushUint16(t):n===3?a.pushUint24(t):a.pushUint32(t));for(const{encode:s}of e)s(a)}}}function Uce(e){const t=typeof e=="string"?ra(e):e,n=V$(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(a){t.length===1&&t[0]<128?a.pushBytes(t):t.length<=55?(a.pushByte(128+t.length),a.pushBytes(t)):(a.pushByte(183+n),n===1?a.pushUint8(t.length):n===2?a.pushUint16(t.length):n===3?a.pushUint24(t.length):a.pushUint32(t.length),a.pushBytes(t))}}}function V$(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new Oe("Length is too large.")}const Hb={wei:0,gwei:9,szabo:12,finney:15,ether:18};function SE(e,t=0){if(!Number.isInteger(t)||t<0)throw new $ce({decimals:t});let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[a,s]=[n.slice(0,n.length-t),n.slice(n.length-t)];return s=s.replace(/(0+)$/,""),`${r?"-":""}${a||"0"}${s?`.${s}`:""}`}function jce(e,t="wei"){return SE(e,Hb.ether-Hb[t])}function Lce(e,t="wei"){return SE(e,Hb.gwei-Hb[t])}
93class $ce extends Error{constructor({decimals:t}){super(`\`decimals\` must be a non-negative integer. Got \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalsError"})}}function BE(e,t="wei"){return jce(e,t)}function aa(e,t="wei"){return Lce(e,t)}function _m(e){const t=Object.entries(e).map(([r,a])=>a===void 0||a===!1?null:[r,a]).filter(Boolean),n=t.reduce((r,[a])=>Math.max(r,a.length),0);return t.map(([r,a])=>`  ${`${r}:`.padEnd(n+1)}  ${a}`).join(`
94`)}class G$ extends Oe{constructor({filledNonce:t,requestedNonce:n}){super("The filled transaction nonce does not match the requested nonce.",{metaMessages:[`Requested Nonce: ${n}`,`Filled Nonce: ${t}`],name:"FeePayerNonceMismatchError"})}}class q$ extends Oe{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}let zce=class extends Oe{constructor({yParity:t}){super(`Invalid \`yParity\` value "${t}". Expected 0 or 1.`,{name:"InvalidYParityError"})}};class Hce extends Oe{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",_m(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class Kce extends Oe{constructor({serializedType:t}){super(`Serialized transaction type "${t}" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=t}}class Im extends Oe{constructor({attributes:t,serializedTransaction:n,type:r}){const a=Object.entries(t).map(([s,i])=>typeof i>"u"?s:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${n}"`,a.length>0?`Missing Attributes: ${a.join(", ")}`:""].filter(Boolean),name:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=n,this.type=r}}let Vce=class extends Oe{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}};class Gce extends Oe{constructor(t,{account:n,docsPath:r,chain:a,data:s,gas:i,gasPrice:l,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:f,to:p,value:m}){var y;const h=_m({chain:a&&`${a==null?void 0:a.name} (id: ${a==null?void 0:a.id})`,from:n==null?void 0:n.address,to:p,value:typeof m<"u"&&`${BE(m)} ${((y=a==null?void 0:a.nativeCurrency)==null?void 0:y.symbol)||"ETH"}`,data:s,gas:i,gasPrice:typeof l<"u"&&`${aa(l)} gwei`,maxFeePerGas:typeof c<"u"&&`${aa(c)} gwei`,maxPriorityFeePerGas:typeof u<"u"&&`${aa(u)} gwei`,nonce:f});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",h].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class _E extends Oe{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:a,index:s}){let i="Transaction";r&&s!==void 0&&(i=`Transaction at block time "${r}" at index "${s}"`),t&&s!==void 0&&(i=`Transaction at block hash "${t}" at index "${s}"`),n&&s!==void 0&&(i=`Transaction at block number "${n}" at index "${s}"`),a&&(i=`Transaction with hash "${a}"`),super(`${i} could not be found.`,{name:"TransactionNotFoundError"})}}class W$ extends Oe{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class qce extends Oe{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class Wce extends Oe{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}
vendor: 8,899 bytes, line 94
94function Jce(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:r,nonce:a,...s}=n,i=n.address;t.push([r?Kt(r):"0x",i,a?Kt(a):"0x",...yd({},s)])}return t}function IE(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(s=>ra(s)):e.blobs,a=[];for(const s of r)a.push(Uint8Array.from(t.blobToKzgCommitment(s)));return n==="bytes"?a:a.map(s=>Nn(s))}function NE(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(i=>ra(i)):e.blobs,a=typeof e.commitments[0]=="string"?e.commitments.map(i=>ra(i)):e.commitments,s=[];for(let i=0;i<r.length;i++){const l=r[i],c=a[i];s.push(Uint8Array.from(t.computeBlobKzgProof(l,c)))}return n==="bytes"?s:s.map(i=>Nn(i))}const yu=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Zce(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function _0(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function bc(e,...t){if(!Zce(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Qce(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");_0(e.outputLen),_0(e.blockLen)}function Vu(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 J$(e,t){bc(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function Xce(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Io(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function mw(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Ns(e,t){return e<<32-t|e>>>t}const Yce=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function eue(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function tue(e){for(let t=0;t<e.length;t++)e[t]=eue(e[t]);return e}const GI=Yce?e=>e:tue;function nue(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function L1(e){return typeof e=="string"&&(e=nue(e)),bc(e),e}function rue(...e){let t=0;for(let r=0;r<e.length;r++){const a=e[r];bc(a),t+=a.length}const n=new Uint8Array(t);for(let r=0,a=0;r<e.length;r++){const s=e[r];n.set(s,a),a+=s.length}return n}class RE{}function $1(e){const t=r=>e().update(L1(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function aue(e=32){if(yu&&typeof yu.getRandomValues=="function")return yu.getRandomValues(new Uint8Array(e));if(yu&&typeof yu.randomBytes=="function")return Uint8Array.from(yu.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function sue(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const a=BigInt(32),s=BigInt(4294967295),i=Number(n>>a&s),l=Number(n&s),c=r?4:0,u=r?0:4;e.setUint32(t+c,i,r),e.setUint32(t+u,l,r)}function iue(e,t,n){return e&t^~e&n}function oue(e,t,n){return e&t^e&n^t&n}class Z$ extends RE{constructor(t,n,r,a){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=a,this.buffer=new Uint8Array(t),this.view=mw(this.buffer)}update(t){Vu(this),t=L1(t),bc(t);const{view:n,buffer:r,blockLen:a}=this,s=t.length;for(let i=0;i<s;){const l=Math.min(a-this.pos,s-i);if(l===a){const c=mw(t);for(;a<=s-i;i+=a)this.process(c,i);continue}r.set(t.subarray(i,i+l),this.pos),this.pos+=l,i+=l,this.pos===a&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Vu(this),J$(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:a,isLE:s}=this;let{pos:i}=this;n[i++]=128,Io(this.buffer.subarray(i)),this.padOffset>a-i&&(this.process(r,0),i=0);for(let p=i;p<a;p++)n[p]=0;sue(r,a-8,BigInt(this.length*8),s),this.process(r,0);const l=mw(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,f=this.get();if(u>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<u;p++)l.setUint32(4*p,f[p],s)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:a,finished:s,destroyed:i,pos:l}=this;return t.destroyed=i,t.finished=s,t.length=a,t.pos=l,a%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const xo=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),gr=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),xr=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),gy=BigInt(2**32-1),qI=BigInt(32);function lue(e,t=!1){return t?{h:Number(e&gy),l:Number(e>>qI&gy)}:{h:Number(e>>qI&gy)|0,l:Number(e&gy)|0}}function Q$(e,t=!1){const n=e.length;let r=new Uint32Array(n),a=new Uint32Array(n);for(let s=0;s<n;s++){const{h:i,l}=lue(e[s],t);[r[s],a[s]]=[i,l]}return[r,a]}const WI=(e,t,n)=>e>>>n,JI=(e,t,n)=>e<<32-n|t>>>n,bu=(e,t,n)=>e>>>n|t<<32-n,gu=(e,t,n)=>e<<32-n|t>>>n,xy=(e,t,n)=>e<<64-n|t>>>n-32,vy=(e,t,n)=>e>>>n-32|t<<64-n,cue=(e,t,n)=>e<<n|t>>>32-n,uue=(e,t,n)=>t<<n|e>>>32-n,due=(e,t,n)=>t<<n-32|e>>>64-n,fue=(e,t,n)=>e<<n-32|t>>>64-n;function wi(e,t,n,r){const a=(t>>>0)+(r>>>0);return{h:e+n+(a/2**32|0)|0,l:a|0}}const pue=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),mue=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,hue=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),yue=(e,t,n,r,a)=>t+n+r+a+(e/2**32|0)|0,bue=(e,t,n,r,a)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0),gue=(e,t,n,r,a,s)=>t+n+r+a+s+(e/2**32|0)|0,xue=Uint32Array.from([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]),vo=new Uint32Array(64);class vue extends Z${constructor(t=32){super(64,t,8,!1),this.A=xo[0]|0,this.B=xo[1]|0,this.C=xo[2]|0,this.D=xo[3]|0,this.E=xo[4]|0,this.F=xo[5]|0,this.G=xo[6]|0,this.H=xo[7]|0}get(){const{A:t,B:n,C:r,D:a,E:s,F:i,G:l,H:c}=this;return[t,n,r,a,s,i,l,c]}set(t,n,r,a,s,i,l,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=a|0,this.E=s|0,this.F=i|0,this.G=l|0,this.H=c|0}process(t,n){for(let p=0;p<16;p++,n+=4)vo[p]=t.getUint32(n,!1);for(let p=16;p<64;p++){const m=vo[p-15],h=vo[p-2],y=Ns(m,7)^Ns(m,18)^m>>>3,x=Ns(h,17)^Ns(h,19)^h>>>10;vo[p]=x+vo[p-7]+y+vo[p-16]|0}let{A:r,B:a,C:s,D:i,E:l,F:c,G:u,H:f}=this;for(let p=0;p<64;p++){const m=Ns(l,6)^Ns(l,11)^Ns(l,25),h=f+m+iue(l,c,u)+xue[p]+vo[p]|0,x=(Ns(r,2)^Ns(r,13)^Ns(r,22))+oue(r,a,s)|0;f=u,u=c,c=l,l=i+h|0,i=s,s=a,a=r,r=h+x|0}r=r+this.A|0,a=a+this.B|0,s=s+this.C|0,i=i+this.D|0,l=l+this.E|0,c=c+this.F|0,u=u+this.G|0,f=f+this.H|0,this.set(r,a,s,i,l,c,u,f)}roundClean(){Io(vo)}destroy(){this.set(0,0,0,0,0,0,0,0),Io(this.buffer)}}const X$=Q$(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
945771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),wue=X$[0],Eue=X$[1],wo=new Uint32Array(80),Eo=new Uint32Array(80);class Y$ extends Z${constructor(t=64){super(128,t,16,!1),this.Ah=xr[0]|0,this.Al=xr[1]|0,this.Bh=xr[2]|0,this.Bl=xr[3]|0,this.Ch=xr[4]|0,this.Cl=xr[5]|0,this.Dh=xr[6]|0,this.Dl=xr[7]|0,this.Eh=xr[8]|0,this.El=xr[9]|0,this.Fh=xr[10]|0,this.Fl=xr[11]|0,this.Gh=xr[12]|0,this.Gl=xr[13]|0,this.Hh=xr[14]|0,this.Hl=xr[15]|0}get(){const{Ah:t,Al:n,Bh:r,Bl:a,Ch:s,Cl:i,Dh:l,Dl:c,Eh:u,El:f,Fh:p,Fl:m,Gh:h,Gl:y,Hh:x,Hl:C}=this;return[t,n,r,a,s,i,l,c,u,f,p,m,h,y,x,C]}set(t,n,r,a,s,i,l,c,u,f,p,m,h,y,x,C){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=a|0,this.Ch=s|0,this.Cl=i|0,this.Dh=l|0,this.Dl=c|0,this.Eh=u|0,this.El=f|0,this.Fh=p|0,this.Fl=m|0,this.Gh=h|0,this.Gl=y|0,this.Hh=x|0,this.Hl=C|0}process(t,n){for(let v=0;v<16;v++,n+=4)wo[v]=t.getUint32(n),Eo[v]=t.getUint32(n+=4);for(let v=16;v<80;v++){const g=wo[v-15]|0,A=Eo[v-15]|0,S=bu(g,A,1)^bu(g,A,8)^WI(g,A,7),_=gu(g,A,1)^gu(g,A,8)^JI(g,A,7),k=wo[v-2]|0,R=Eo[v-2]|0,D=bu(k,R,19)^xy(k,R,61)^WI(k,R,6),B=gu(k,R,19)^vy(k,R,61)^JI(k,R,6),M=hue(_,B,Eo[v-7],Eo[v-16]),E=yue(M,S,D,wo[v-7],wo[v-16]);wo[v]=E|0,Eo[v]=M|0}let{Ah:r,Al:a,Bh:s,Bl:i,Ch:l,Cl:c,Dh:u,Dl:f,Eh:p,El:m,Fh:h,Fl:y,Gh:x,Gl:C,Hh:T,Hl:w}=this;for(let v=0;v<80;v++){const g=bu(p,m,14)^bu(p,m,18)^xy(p,m,41),A=gu(p,m,14)^gu(p,m,18)^vy(p,m,41),S=p&h^~p&x,_=m&y^~m&C,k=bue(w,A,_,Eue[v],Eo[v]),R=gue(k,T,g,S,wue[v],wo[v]),D=k|0,B=bu(r,a,28)^xy(r,a,34)^xy(r,a,39),M=gu(r,a,28)^vy(r,a,34)^vy(r,a,39),E=r&s^r&l^s&l,N=a&i^a&c^i&c;T=x|0,w=C|0,x=h|0,C=y|0,h=p|0,y=m|0,{h:p,l:m}=wi(u|0,f|0,R|0,D|0),u=l|0,f=c|0,l=s|0,c=i|0,s=r|0,i=a|0;const I=pue(D,M,N);r=mue(I,R,B,E),a=I|0}({h:r,l:a}=wi(this.Ah|0,this.Al|0,r|0,a|0)),{h:s,l:i}=wi(this.Bh|0,this.Bl|0,s|0,i|0),{h:l,l:c}=wi(this.Ch|0,this.Cl|0,l|0,c|0),{h:u,l:f}=wi(this.Dh|0,this.Dl|0,u|0,f|0),{h:p,l:m}=wi(this.Eh|0,this.El|0,p|0,m|0),{h,l:y}=wi(this.Fh|0,this.Fl|0,h|0,y|0),{h:x,l:C}=wi(this.Gh|0,this.Gl|0,x|0,C|0),{h:T,l:w}=wi(this.Hh|0,this.Hl|0,T|0,w|0),this.set(r,a,s,i,l,c,u,f,p,m,h,y,x,C,T,w)}roundClean(){Io(wo,Eo)}destroy(){Io(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class kue extends Y${constructor(){super(48),this.Ah=gr[0]|0,this.Al=gr[1]|0,this.Bh=gr[2]|0,this.Bl=gr[3]|0,this.Ch=gr[4]|0,this.Cl=gr[5]|0,this.Dh=gr[6]|0,this.Dl=gr[7]|0,this.Eh=gr[8]|0,this.El=gr[9]|0,this.Fh=gr[10]|0,this.Fl=gr[11]|0,this.Gh=gr[12]|0,this.Gl=gr[13]|0,this.Hh=gr[14]|0,this.Hl=gr[15]|0}}const OE=$1(()=>new vue),Cue=$1(()=>new Y$),Aue=$1(()=>new kue),ez=OE;function tz(e,t){const n=t||"hex",r=ez(It(e,{strict:!1})?Mi(e):e);return n==="bytes"?r:Kt(r)}function Pue(e){const{commitment:t,version:n=1}=e,r=e.to??(typeof t=="string"?"hex":"bytes"),a=tz(t,"bytes");return a.set([n],0),r==="bytes"?a:Nn(a)}function nz(e){const{commitments:t,version:n}=e,r=e.to??(typeof t[0]=="string"?"hex":"bytes"),a=[];for(const s of t)a.push(Pue({commitment:s,to:r,version:n}));return a}const ZI=6,rz=32,ME=4096,az=rz*ME,QI=az*ZI-1-1*ME*ZI,sz=1;class Tue extends Oe{constructor({maxSize:t,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class iz extends Oe{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class Sue extends Oe{constructor({hash:t,size:n}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class Bue extends Oe{constructor({hash:t,version:n}){super(`Versioned hash "${t}
94" version is invalid.`,{metaMessages:[`Expected: ${sz}`,`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}function _ue(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),n=typeof e.data=="string"?ra(e.data):e.data,r=wn(n);if(!r)throw new iz;if(r>QI)throw new Tue({maxSize:QI,size:r});const a=[];let s=!0,i=0;for(;s;){const l=j1(new Uint8Array(az));let c=0;for(;c<ME;){const u=n.slice(i,i+(rz-1));if(l.pushByte(0),l.pushBytes(u),u.length<31){l.pushByte(128),s=!1;break}c++,i+=31}a.push(l)}return t==="bytes"?a.map(l=>l.bytes):a.map(l=>Nn(l.bytes))}function DE(e){const{data:t,kzg:n,to:r}=e,a=e.blobs??_ue({data:t,to:r}),s=e.commitments??IE({blobs:a,kzg:n,to:r}),i=e.proofs??NE({blobs:a,commitments:s,kzg:n,to:r}),l=[];for(let c=0;c<a.length;c++)l.push({blob:a[c],commitment:s[c],proof:i[c]});return l}let Ln=class extends Oe{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}};class G5 extends Oe{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class Iue extends Oe{constructor({chain:t,currentChainId:n}){super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID:  ${n}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class Nue extends Oe{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
95`),{name:"ChainNotFoundError"})}}class oz extends Oe{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}let hd=class extends Oe{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}
95" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}};class rc extends Oe{constructor({cause:t,message:n}={}){var a;const r=(a=n==null?void 0:n.replace("execution reverted: ",""))==null?void 0:a.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(rc,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(rc,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});let No=class extends Oe{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${aa(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}};Object.defineProperty(No,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class q5 extends Oe{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${aa(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(q5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class W5 extends Oe{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(W5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class J5 extends Oe{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
96`),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(J5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Z5 extends Oe{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(Z5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Q5 extends Oe{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
97`),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Q5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class X5 extends Oe{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(X5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Y5 extends Oe{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Y5,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class e3 extends Oe{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(e3,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});let Gu=class extends Oe{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${aa(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${aa(r)} gwei`:""}).`].join(`
98`),{cause:t,name:"TipAboveFeeCapError"})}};Object.defineProperty(Gu,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class Nm extends Oe{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}let Rm=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&(super.delete(t),super.set(t,n)),n}set(t,n){if(super.has(t)&&super.delete(t),super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=super.keys().next().value;r!==void 0&&super.delete(r)}return this}};const Rue=BigInt(0),zp=BigInt(1),Oue=BigInt(2),Mue=BigInt(7),Due=BigInt(256),Fue=BigInt(113),lz=[],cz=[],uz=[];for(let e=0,t=zp,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],lz.push(2*(5*r+n)),cz.push((e+1)*(e+2)/2%64);let a=Rue;for(let s=0;s<7;s++)t=(t<<zp^(t>>
98Mue)*Fue)%Due,t&Oue&&(a^=zp<<(zp<<BigInt(s))-zp);uz.push(a)}const dz=Q$(uz,!0),Uue=dz[0],jue=dz[1],XI=(e,t,n)=>n>32?due(e,t,n):cue(e,t,n),YI=(e,t,n)=>n>32?fue(e,t,n):uue(e,t,n);function Lue(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let i=0;i<10;i++)n[i]=e[i]^e[i+10]^e[i+20]^e[i+30]^e[i+40];for(let i=0;i<10;i+=2){const l=(i+8)%10,c=(i+2)%10,u=n[c],f=n[c+1],p=XI(u,f,1)^n[l],m=YI(u,f,1)^n[l+1];for(let h=0;h<50;h+=10)e[i+h]^=p,e[i+h+1]^=m}let a=e[2],s=e[3];for(let i=0;i<24;i++){const l=cz[i],c=XI(a,s,l),u=YI(a,s,l),f=lz[i];a=e[f],s=e[f+1],e[f]=c,e[f+1]=u}for(let i=0;i<50;i+=10){for(let l=0;l<10;l++)n[l]=e[i+l];for(let l=0;l<10;l++)e[i+l]^=~n[(l+2)%10]&n[(l+4)%10]}e[0]^=Uue[r],e[1]^=jue[r]}Io(n)}class FE extends RE{constructor(t,n,r,a=!1,s=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=a,this.rounds=s,_0(r),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=Xce(this.state)}clone(){return this._cloneInto()}keccak(){GI(this.state32),Lue(this.state32,this.rounds),GI(this.state32),this.posOut=0,this.pos=0}update(t){Vu(this),t=L1(t),bc(t);const{blockLen:n,state:r}=this,a=t.length;for(let s=0;s<a;){const i=Math.min(n-this.pos,a-s);for(let l=0;l<i;l++)r[this.pos++]^=t[s++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:n,pos:r,blockLen:a}=this;t[r]^=n,(n&128)!==0&&r===a-1&&this.keccak(),t[a-1]^=128,this.keccak()}writeInto(t){Vu(this,!1),bc(t),this.finish();const n=this.state,{blockLen:r}=this;for(let a=0,s=t.length;a<s;){this.posOut>=r&&this.keccak();const i=Math.min(r-this.posOut,s-a);t.set(n.subarray(this.posOut,this.posOut+i),a),this.posOut+=i,a+=i}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return _0(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(J$(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,Io(this.state)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:a,rounds:s,enableXOF:i}=this;return t||(t=new FE(n,r,a,i,s)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=s,t.suffix=r,t.outputLen=a,t.enableXOF=i,t.destroyed=this.destroyed,t}}const $ue=(e,t,n)=>$1(()=>new FE(t,e,n)),fz=$ue(1,136,256/8);function Wn(e,t){const n=t||"hex",r=fz(It(e,{strict:!1})?Mi(e):e);return n==="bytes"?r:Kt(r)}const hw=new Rm(8192);function z1(e,t){if(hw.has(`${e}.${t}`))return hw.get(`${e}.${t}`);const n=e.substring(2).toLowerCase(),r=Wn(cc(n),"bytes"),a=n.split("");for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&a[i]&&(a[i]=a[i].toUpperCase()),(r[i>>1]&15)>=8&&a[i+1]&&(a[i+1]=a[i+1].toUpperCase());const s=`0x${a.join("")}`;return hw.set(`${e}.${t}`,s),s}function I0(e,t){if(!dn(e,{strict:!1}))throw new Ln({address:e});return z1(e,t)}const zue=/^0x[a-fA-F0-9]{40}$/,yw=new Rm(8192);function dn(e,t){const{strict:n=!0}=t??{},r=`${e}.${n}`;if(yw.has(r))return yw.get(r);const a=zue.test(e)?e.toLowerCase()===e?!0:n?z1(e)===e:!0:!1;return yw.set(r,a),a}function Ro(e,t,n,{strict:r}={}){return It(e,{strict:!1})?yz(e,t,n,{strict:r}):hz(e,t,n,{strict:r})}function pz(e,t){if(typeof t=="number"&&t>0&&t>wn(e)-1)throw new U$({offset:t,position:"start",size:wn(e)})}function mz(e,t,n){if(typeof t=="number"&&typeof n=="number"&&wn(e)!==n-t)throw new U$({offset:n,position:"end",size:wn(e)})}function hz(e,t,n,{strict:r}={}){pz(e,t);const a=e.slice(t,n);return r&&mz(a,t,n),a}function yz(e,t,n,{strict:r}={}){pz(e,t);const a=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&mz(a,t,n),a}function bz(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:r}=n,a=n.address;if(!dn(a))throw new Ln({address:a});if(r<0)throw new hd({chainId:r})}H1(e)}function gz(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new iz;for(const n of t){const r=wn(n),a=Pn(Ro(n,0,1));if(r!==32)throw new Sue({hash:n,size:r});if(a!==sz)throw new Bue({hash:n,version:a})}}H1(e)}function H1(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:a}=e;if(t<=0)throw new hd({chainId:t});if(a&&!dn(a))throw new Ln({address:a});if(r&&r>yc)throw new No({maxFeePerGas:r});if(n&&r&&n>r)throw new Gu({maxFeePerGas:r,maxPriorityFeePerGas:n})}function xz(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:s}=e;if(t<=0)throw new hd({chainId:t});if(s&&!dn(s))throw new Ln({address:s});if(n||a)throw new Oe("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>yc)throw new No({maxFeePerGas:r})}function vz(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:s}=e;if(s&&!dn(s))throw new Ln({address:s});if(typeof t<"u"&&t<=0)throw new hd({chainId:t});if(n||a)throw new Oe("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>yc)throw new No({maxFeePerGas:r})}function UE(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new Hce({transaction:e})}
98function Om(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n<e.length;n++){const{address:r,storageKeys:a}=e[n];for(let s=0;s<a.length;s++)if(a[s].length-2!==64)throw new Vce({storageKey:a[s]});if(!dn(r,{strict:!1}))throw new Ln({address:r});t.push([r,a])}return t}function Kb(e,t){const n=UE(e);return n==="eip1559"?Vue(e,t):n==="eip2930"?Gue(e,t):n==="eip4844"?Kue(e,t):n==="eip7702"?Hue(e,t):que(e,t)}function Hue(e,t){const{authorizationList:n,chainId:r,gas:a,nonce:s,to:i,value:l,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:f,data:p}=e;bz(e);const m=Om(f),h=Jce(n);return Zn(["0x04",js([nt(r),s?nt(s):"0x",u?nt(u):"0x",c?nt(c):"0x",a?nt(a):"0x",i??"0x",l?nt(l):"0x",p??"0x",m,h,...yd(e,t)])])}function Kue(e,t){const{chainId:n,gas:r,nonce:a,to:s,value:i,maxFeePerBlobGas:l,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:f,data:p}=e;gz(e);let m=e.blobVersionedHashes,h=e.sidecars;if(e.blobs&&(typeof m>"u"||typeof h>"u")){const v=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(S=>Nn(S)),g=e.kzg,A=IE({blobs:v,kzg:g});if(typeof m>"u"&&(m=nz({commitments:A})),typeof h>"u"){const S=NE({blobs:v,commitments:A,kzg:g});h=DE({blobs:v,commitments:A,proofs:S})}}const y=Om(f),x=[nt(n),a?nt(a):"0x",u?nt(u):"0x",c?nt(c):"0x",r?nt(r):"0x",s??"0x",i?nt(i):"0x",p??"0x",y,l?nt(l):"0x",m??[],...yd(e,t)],C=[],T=[],w=[];if(h)for(let v=0;v<h.length;v++){const{blob:g,commitment:A,proof:S}=h[v];C.push(g),T.push(A),w.push(S)}return Zn(["0x03",js(h?[x,C,T,w]:x)])}function Vue(e,t){const{chainId:n,gas:r,nonce:a,to:s,value:i,maxFeePerGas:l,maxPriorityFeePerGas:c,accessList:u,data:f}=e;H1(e);const p=Om(u),m=[nt(n),a?nt(a):"0x",c?nt(c):"0x",l?nt(l):"0x",r?nt(r):"0x",s??"0x",i?nt(i):"0x",f??"0x",p,...yd(e,t)];return Zn(["0x02",js(m)])}function Gue(e,t){const{chainId:n,gas:r,data:a,nonce:s,to:i,value:l,accessList:c,gasPrice:u}=e;xz(e);const f=Om(c),p=[nt(n),s?nt(s):"0x",u?nt(u):"0x",r?nt(r):"0x",i??"0x",l?nt(l):"0x",a??"0x",f,...yd(e,t)];return Zn(["0x01",js(p)])}function que(e,t){const{chainId:n=0,gas:r,data:a,nonce:s,to:i,value:l,gasPrice:c}=e;vz(e);let u=[s?nt(s):"0x",c?nt(c):"0x",r?nt(r):"0x",i??"0x",l?nt(l):"0x",a??"0x"];if(t){const f=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);const h=27n+(t.v===27n?0n:1n);if(t.v!==h)throw new q$({v:t.v});return h})(),p=na(t.r),m=na(t.s);u=[...u,nt(f),p==="0x00"?"0x":p,m==="0x00"?"0x":m]}else n>0&&(u=[...u,nt(n),"0x","0x"]);return js(u)}function yd(e,t){const n=t??e,{v:r,yParity:a}=n;if(typeof n.r>"u")return[];if(typeof n.s>"u")return[];if(typeof r>"u"&&typeof a>"u")return[];const s=na(n.r),i=na(n.s);return[typeof a=="number"?a?nt(1):"0x":r===0n?"0x":r===1n?nt(1):r===27n?"0x":nt(1),s==="0x00"?"0x":s,i==="0x00"?"0x":i]}class Wue extends Oe{constructor(){super(["Transaction is not an EIP712 transaction.","","Transaction must:",'  - include `type: "eip712"`',"  - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`"].join(`
99`),{name:"InvalidEip712TransactionError"})}}function wz(e){return!!(e.type==="eip712"||"customSignature"in e&&e.customSignature||"paymaster"in e&&e.paymaster||"paymasterInput"in e&&e.paymasterInput||"gasPerPubdata"in e&&typeof e.gasPerPubdata=="bigint"||"factoryDeps"in e&&e.factoryDeps)}function Ez(e){const{chainId:t,to:n,from:r,paymaster:a,paymasterInput:s}=e;if(!wz(e))throw new Wue;if(!t||t<=0)throw new hd({chainId:t});if(n&&!dn(n))throw new Ln({address:n});if(r&&!dn(r))throw new Ln({address:r});if(a&&!dn(a))throw new Ln({address:a});if(a&&!s)throw new Oe("`paymasterInput` must be provided when `paymaster` is defined");if(!a&&s)throw new Oe("`paymaster` must be provided when `paymasterInput` is defined")}function Jue(e,t){return wz(e)?Que(e):Kb(e,t)}const Zue={transaction:Jue};function Que(e){const{chainId:t,gas:n,nonce:r,to:a,from:s,value:i,maxFeePerGas:l,maxPriorityFeePerGas:c,customSignature:u,factoryDeps:f,paymaster:p,paymasterInput:m,gasPerPubdata:h,data:y}=e;Ez(e);const x=[r?Kt(r):"0x",c?Kt(c):"0x",l?Kt(l):"0x",n?Kt(n):"0x",a??"0x",i?Kt(i):"0x",y??"0x",Kt(t),Kt(""),Kt(""),Kt(t),s??"0x",Kt(h||TE),f??[],u??"0x",p&&m?[p,m]:[]];return Zn(["0x71",js(x)])}class Xue extends Oe{constructor({givenLength:t,maxBytecodeSize:n}){super(`Bytecode cannot be longer than ${n} bytes. Given length: ${t}`,{name:"BytecodeLengthExceedsMaxSizeError"})}}class Yue extends Oe{constructor({givenLengthInWords:t}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${t}`,{name:"BytecodeLengthInWordsMustBeOddError"})}}class ede extends Oe{constructor({givenLength:t}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${t}`,{name:"BytecodeLengthMustBeDivisibleBy32Error"})}}function tde(e){const t=Mi(e);if(t.length%32!==0)throw new ede({givenLength:t.length});if(t.length>KI)throw new Xue({givenLength:t.length,maxBytecodeSize:KI});const n=tz(t),r=Mi(n),a=t.length/32;if(a%2===0)throw new Yue({givenLengthInWords:a});const s=Mi(a),i=qo(s,{size:2}),l=new Uint8Array([1,0]);return r.set(l,0),r.set(i,2),r}const nde=e=>{Ez(e);const t=rde(e);return{domain:{name:"zkSync",version:"2",chainId:e.chainId},types:{Transaction:[{name:"txType",type:"uint256"},{name:"from",type:"uint256"},{name:"to",type:"uint256"},{name:"gasLimit",type:"uint256"},{name:"gasPerPubdataByteLimit",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymaster",type:"uint256"},{name:"nonce",type:"uint256"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"factoryDeps",type:"bytes32[]"},{name:"paymasterInput",type:"bytes"}]},primaryType:"Transaction",message:t}};function rde(e){const{gas:t,nonce:n,to:r,from:a,value:s,maxFeePerGas:i,maxPriorityFeePerGas:l,factoryDeps:c,paymaster:u,paymasterInput:f,gasPerPubdata:p,data:m}=e;
99return{txType:113n,from:BigInt(a),to:r?BigInt(r):0n,gasLimit:t??0n,gasPerPubdataByteLimit:p??TE,maxFeePerGas:i??0n,maxPriorityFeePerGas:l??0n,paymaster:u?BigInt(u):0n,nonce:n?BigInt(n):0n,value:s??0n,data:m??"0x",factoryDeps:(c==null?void 0:c.map(h=>Kt(tde(h))))??[],paymasterInput:f||"0x"}}const Or={blockTime:1e3,formatters:z$,serializers:Zue,custom:{getEip712Domain:nde}},ade=j({...Or,blockTime:200,id:2741,name:"Abstract",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.mainnet.abs.xyz"],webSocket:["wss://api.mainnet.abs.xyz/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.mainnet.abs.xyz"}},contracts:{multicall3:{address:"0xAa4De41dba0Ca5dCBb288b7cC6b708F3aaC759E7",blockCreated:5288},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:5263}}}),sde=j({...Or,blockTime:200,id:11124,name:"Abstract Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.testnet.abs.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.testnet.abs.xyz"}},testnet:!0,contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:358349},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:431682}}}),ide=j({id:787,name:"Acala",network:"acala",nativeCurrency:{name:"Acala",symbol:"ACA",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]}},blockExplorers:{default:{name:"Acala Blockscout",url:"https://blockscout.acala.network",apiUrl:"https://blockscout.acala.network/api"}},testnet:!1}),ode=j({id:47,name:"Acria IntelliChain",nativeCurrency:{decimals:18,name:"ACRIA",symbol
99:"ACRIA"},rpcUrls:{default:{http:["https://aic.acria.ai"]}},blockExplorers:{default:{name:"Acria Explorer",url:"https://explorer.acria.ai"}},testnet:!1}),lde=j({id:1215,name:"ADF Chain",nativeCurrency:{name:"ADDFILL",symbol:"ADF",decimals:18},rpcUrls:{default:{http:["https://mainnet.adftechnology.com"]}},blockExplorers:{default:{name:"ADF Mainnet Explorer",url:"https://explorer.adftechnology.com"}},testnet:!1}),cde=j({id:36900,name:"ADI_Chain",nativeCurrency:{decimals:18,name:"ADI",symbol:"ADI"},rpcUrls:{default:{http:["https://rpc.adifoundation.ai"]}},blockExplorers:{default:{name:"ADI Explorer",url:"https://explorer.adifoundation.ai"}},testnet:!1}),ude=j({id:9990,name:"Agung Network",nativeCurrency:{decimals:18,name:"Agung",symbol:"AGNG"},rpcUrls:{default:{http:["https://wss-async.agung.peaq.network"],webSocket:["wss://wss-async.agung.peaq.network"]}},blockExplorers:{default:{name:"Subscan",url:"https://agung-testnet.subscan.io"}},testnet:!0}),dde=j({id:168,name:"AIOZ Network",nativeCurrency:{decimals:18,name:"AIOZ",symbol:"AIOZ"},rpcUrls:{default:{http:["https://eth-dataseed.aioz.network"]}},blockExplorers:{default:{name:"AIOZ Explorer",url:"https://explorer.aioz.network"}},testnet:!1}),fde=j({id:41455,name:"Aleph Zero",nativeCurrency:{name:"Aleph Zero",symbol:"AZERO",decimals:18},rpcUrls:{default:{http:["https://rpc.alephzero.raas.gelato.cloud"]}},blockExplorers:{default:{name:"Aleph Zero EVM Explorer",url:"https://evm-explorer.alephzero.org",apiUrl:"https://evm-explorer.alephzero.org/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4603377}}}),pde=j({id:2039,name:"Aleph Zero Testnet",nativeCurrency:{name:"TZERO",symbol:"TZERO",decimals:18},rpcUrls:{default:{http:["https://rpc.alephzero-testnet.gelato.digital"],webSocket:["wss://ws.alephzero-testnet.gelato.digital"]}},blockExplorers:{default:{name:"Aleph Zero EVM Testnet explorer",url:"https://evm-explorer-testnet.alephzero.org",apiUrl:"https://evm-explorer-testnet.alephzero.org/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2861745}},testnet:!0}),mde=j({id:10241024,name:"AlienX Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.alienxchain.io/http"]}},blockExplorers:{default:{name:"AlienX Explorer",url:"https://explorer.alienxchain.io"}},testnet:!1}),hde=j({id:10241025,name:"ALIENX Hal Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://hal-rpc.alienxchain.io/http"]}},blockExplorers:{default:{name:"AlienX Explorer",url:"https://hal-explorer.alienxchain.io"}},testnet:!0}),yde=j({id:8150,name:"Alpen Testnet",nativeCurrency:{name:"Signet BTC",symbol:"sBTC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.alpenlabs.io"]}},blockExplorers:{default:{name:"Alpen Explorer",url:"https://explorer.testnet.alpenlabs.io",apiUrl:"https://explorer.testnet.alpenlabs.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:290408}},testnet:!0}),kz={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},jE={block:CE({format(e){var n;return{transactions:(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const a=Dc(r);return a.typeHex==="0x7e"&&(a.isSystemTx=r.isSystemTx,a.mint=r.mint?Pt(r.mint):void 0,a.sourceHash=r.sourceHash,a.type="deposit"),a}),stateRoot:e.stateRoot}}}),transaction:F1({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?Pt(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:AE({format(e){return{...e.depositNonce?{depositNonce:Pt(e.depositNonce)}:{},...e.depositReceiptVersion?{depositReceiptVersion:Pn(e.depositReceiptVersion)}:{},l1GasPrice:e.l1GasPrice?Pt(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?Pt(e.l1GasUsed):null,l1Fee:e.l1Fee?Pt(e.l1Fee):null,l1FeeScalar:e.l
991FeeScalar?Number(e.l1FeeScalar):null}}})};function Cz(e,t){return xde(e)?gde(e):Kb(e,t)}const bde={transaction:Cz};function gde(e){vde(e);const{sourceHash:t,data:n,from:r,gas:a,isSystemTx:s,mint:i,to:l,value:c}=e,u=[t,r,l??"0x",i?Kt(i):"0x",c?Kt(c):"0x",a?Kt(a):"0x",s?"0x1":"0x",n??"0x"];return Zn(["0x7e",js(u)])}function xde(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function vde(e){const{from:t,to:n}=e;if(t&&!dn(t))throw new Ln({address:t});if(n&&!dn(n))throw new Ln({address:n})}const $e={blockTime:2e3,contracts:kz,formatters:jE,serializers:bde},wy=1,wde=j({...$e,id:888888888,name:"Ancient8",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 explorer",url:"https://scan.ancient8.gg",apiUrl:"https://scan.ancient8.gg/api"}},contracts:{...$e.contracts,l2OutputOracle:{[wy]:{address:"0xB09DC08428C8b4EFB4ff9C0827386CDF34277996"}},portal:{[wy]:{address:"0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68",blockCreated:19070571}},l1StandardBridge:{[wy]:{address:"0xd5e3eDf5b68135D559D572E26bF863FBC1950033",blockCreated:19070571}}},sourceId:wy}),Ey=11155111,Ede=j({...$e,id:28122024,name:"Ancient8 Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpcv2-testnet.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 Celestia Testnet explorer",url:"https://scanv2-testnet.ancient8.gg",apiUrl:"https://scanv2-testnet.ancient8.gg/api"}},contracts:{...$e.contracts,l2OutputOracle:{[Ey]:{address:"0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB"}},portal:{[Ey]:{address:"0xfa1d9E26A6aCD7b22115D27572c1221B9803c960",blockCreated:4972908}},l1StandardBridge:{[Ey]:{address:"0xF6Bc0146d3c74D48306e79Ae134A260E418C9335",blockCreated:4972908}}},sourceId:Ey,testnet:!0}),kde=j({id:31337,name:"Anvil",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}}),Cde=42161,Ade=j({id:33139,name:"ApeChain",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.apechain.com/http"],webSocket:["wss://rpc.apechain.com/ws"]}},blockExplorers:{default:{name:"Apescan",url:"https://apescan.io",apiUrl:"https://api.apescan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:20889}},sourceId:Cde}),Pde=j({id:3993,name:"APEX Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.apexlayer.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-testnet.apexlayer.xyz",apiUrl:"https://exp-testnet.apexlayer.xyz/api"}},contracts:{multicall3:{address:"0xf7642be33a6b18D16a995657adb5a68CD0438aE2",blockCreated:283775}},testnet:!0}),Tde=j({id:62606,name:"Apollo",nativeCurrency:{decimals:18,name:"Apollo",symbol:"APOLLO"},rpcUrls:{default:{http:["https://mainnet-rpc.apolloscan.io"]}},blockExplorers:{default:{name:"Apollo Explorer",url:"https://apolloscan.io"}}}),Sde=j({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),Bde=j({id:421613,name:"Arbitrum Goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18}
vendor: 24,317 bytes, line 99
99,rpcUrls:{default:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0}),_de=j({id:42170,name:"Arbitrum Nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://nova.arbiscan.io",apiUrl:"https://api-nova.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}}),Ide=j({id:421614,name:"Arbitrum Sepolia",blockTime:250,nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://api-sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0}),Nde=j({id:5042,name:"Arc",nativeCurrency:{name:"USDC",symbol:"USDC",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.arc.io","https://rpc.blockdaemon.mainnet.arc.io","https://rpc.drpc.mainnet.arc.io","https://rpc.quicknode.mainnet.arc.io"]}},blockExplorers:{default:{name:"Arc Explorer",url:"https://explorer.arc.io",apiUrl:"https://explorer.arc.io/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),Rde=j({id:5042002,name:"Arc Testnet",nativeCurrency:{name:"USDC",symbol:"USDC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.arc.network","https://rpc.quicknode.testnet.arc.network","https://rpc.blockdaemon.testnet.arc.network"],webSocket:["wss://rpc.testnet.arc.network","wss://rpc.quicknode.testnet.arc.network"]}},blockExplorers:{default:{name:"ArcScan",url:"https://testnet.arcscan.app",apiUrl:"https://testnet.arcscan.app/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}),Ode=j({id:7897,name:"Arena-Z",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.arena-z.gg"]}},blockExplorers:{default:{name:"Arena-Z Explorer",url:"https://explorer.arena-z.gg",apiUrl:"https://explorer.arena-z.gg"}}}),Mde=j({id:463,name:"Areon Network",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areon.network"],webSocket:["wss://mainnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:353286}},testnet:!1}),Dde=j({id:462,name:"Areon Network Testnet",nativeCurrency:{decimals:18,name:"TAREA",symbol:"TAREA"},rpcUrls:{default:{http:["https://testnet-rpc.areon.network"],webSocket:["wss://testnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},testnet:!0}),Fde=j({id:463,name:"Areum",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areum.network"],webSocket:["wss://mainnet-ws.areum.network"]}},blockExplorers:{default:{name:"Areum Explorer",url:"https://explorer.areum.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:353286}},testnet:!1}),Ude=j({id:11822,name:"Artela Testnet",nativeCurrency:{name:"ART",symbol:"ART",decimals:18},rpcUrls:{default:{http:["https://betanet-rpc1.artela.network"]}},blockExplorers:{default:{name:"Artela",url:"https://betanet-scan.artela.network",apiUrl:"https://betanet-scan.artela.network/api"}},contracts:{multicall3:{address:"0xd07c8635f76e8745Ee7092fbb6e8fbc5FeF09DD7",blockCreated:7001871}},testnet:!0}),jde=j({id:10242,name:"Arthera",nativeCurrency:{name:"Arthera",symbol:"AA",decimals:18},rpcUrls:{default:{http:["https://rpc.arthera.net"]}},blockExplorers:{default:{name:"Arthera EVM Explorer",url:"https://explorer.arthera.net",apiUrl:"https://explorer.arthera.net/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4502791}}}),Lde=j({id:10243,name:"Arthera Testnet",nativeCurrency:{name:"Arthera",symbol:"AA",decimals:18},rpcUrls:{default:{http:["https://rpc-test.arthera.net"]}},blockExplorers:{default:{name:"Arthera EVM Explorer",url:"https://explorer-test.arthera.net",apiUrl:"https://explorer-test.arthera.net/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:22051}},testnet:!0}),$de=j({id:42420,name:"AssetChain Mainnet",nativeCurrency:{decimals:18,name:"Real World Asset",symbol:"RWA"},rpcUrls:{default:{http:["https://mainnet-rpc.assetchain.org"]}},blockExplorers:{default:{name:"Asset Chain Explorer",url:"https://scan.assetchain.org",apiUrl:"https://scan.assetchain.org/api"}},testnet:!1,contracts:{}}),zde=j({id:42421,name:"AssetChain Testnet",nativeCurrency:{decimals:18,name:"Real World Asset",symbol:"RWA"},rpcUrls:{default:{http:["https://enugu-rpc.assetchain.org"]}},blockExplorers:{default:{name:"Asset Chain Testnet Explorer",url:"https://scan-testnet.assetchain.org",apiUrl:"https://scan-testnet.assetchain.org/api"}},testnet:!0,contracts:{multicall3:{address:"0x989F832D35988cb5e3eB001Fa2Fe789469EC31Ea",blockCreated:17177}}}),Hde=j({id:592,name:"Astar",network:"astar-mainnet",nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},rpcUrls:{default:{http:["https://astar.api.onfinality.io/public"]}},blockExplorers:{default:{name:"Astar Subscan",url:"https://astar.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:761794}},testnet:!1}),Kde=j({id:3776,name:"Astar zkEVM",network:"AstarZkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-zkevm.astar.network"]}},blockExplorers:{default:{name:"Astar zkEVM Explorer",url:"https://astar-zkevm.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:93528}},testnet:!1}),Vde=j({id:6038361,name:"Astar zkEVM Testnet zKyoto",network:"zKyoto",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.startale.com/zkyoto"]}},blockExplorers:{default:{name:"zKyoto Explorer",url:"https://zkyoto.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:196153}},testnet:!0}),Gde=j({id:2340,name:"Atleta Olympia",nativeCurrency:{decimals:18,name:"Atla",symbol:"ATLA"},rpcUrls:{default:{http:["https://testnet-rpc.atleta.network:9944","https://testnet-rpc.atleta.network"],ws:["wss://testnet-rpc.atleta.network:9944"]}},blockExplorers:{default:{name:"Atleta Olympia Explorer",url:"https://blockscout.atleta.network",apiUrl:"https://blockscout.atleta.network/api"}},contracts:{multicall3:{address:"0x1472ec6392180fb84F345d2455bCC75B26577115",blockCreated:1076473}},testnet:!0}),qde=j({id:1313161554,name:"Aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://aurorascan.dev",apiUrl:"https://aurorascan.dev/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:62907816}}}),Wde=j({id:1313161555,name:"Aurora Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev",apiUrl:"https://testnet.aurorascan.dev/api"}},testnet:!0}),Jde=j({id:205205,name:"Auroria Testnet",network:"auroria",nativeCurrency:{name:"Auroria Stratis",symbol:"tSTRAX",decimals:18},rpcUrls:{default:{http:["https://auroria.rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Auroria Testnet Explorer",url:"https://auroria.explorer.stratisevm.com"}},testnet:!0}),Zde=j({id:785,name:"Autheo Testnet",nativeCurrency:{decimals:18,name:"Autheo",symbol:"THEO"},rpcUrls:{default:{http:["https://testnet-rpc1.autheo.com","https://testnet-rpc2.autheo.com"]}},blockExplorers:{default:{name:"Autheo Testnet Block Explorer",url:"https://testnet-explorer.autheo.com/"}},testnet:!0}),Qde=j({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),Xde=j({id:43113,name:"Avalanche Fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://testnet.snowtrace.io",apiUrl:"https://api-testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0}),Yde=8453,efe=j({id:8333,name:"B3",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.b3.fun/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.b3.fun"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},sourceId:Yde}),tfe=168587773,nfe=j({id:1993,name:"B3 Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.b3.fun/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.b3.fun"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},testnet:!0,sourceId:tfe}),rfe=j({id:5165,network:"bahamut",name:"Bahamut",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.bahamut.io","https://bahamut-rpc.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut-rpc.publicnode.com","wss://ws2.sahara.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://www.ftnscan.com",apiUrl:"https://www.ftnscan.com/api"}}}),Hp=1,Az=j({...$e,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...$e.contracts,disputeGameFactory:{[Hp]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[Hp]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[Hp]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[Hp]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:Hp}),afe=j({...Az,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://mainnet-preconf.base.org"]}}}),sfe=j({id:123420001114,name:"Basecamp Testnet",nativeCurrency:{decimals:18,name:"Camp",symbol:"CAMP"},rpcUrls:{default:{http:["https://rpc.basecamp.t.raas.gelato.cloud"]}},blockExplorers:{default:{name:"basecamp",url:"https://basecamp.cloud.blockscout.com"}},testnet:!0}),ky=5,ife=j({...$e,id:84531,name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://goerli.basescan.org",apiUrl:"https://goerli.basescan.org/api"}},contracts:{...$e.contracts,l2OutputOracle:{[ky]:{address:"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988},portal:{[ky]:{address:"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA"}},l1StandardBridge:{[ky]:{address:"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a"}}},testnet:!0,sourceId:ky}),Kp=11155111,Pz=j({...$e,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...$e.contracts,disputeGameFactory:{[Kp]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[Kp]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[Kp]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[Kp]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:Kp}),ofe=j({...Pz,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-preconf.base.org"]}}}),lfe=j({...Or,id:626,name:"BattleChain Mainnet",network:"battlechain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.battlechain.com"]}},blockExplorers:{default:{name:"BattleChain Explorer",url:"https://explorer.battlechain.com",apiUrl:"https://block-explorer-api.battlechain.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:40}}}),cfe=j({...Or,id:627,name:"BattleChain Testnet",network:"battlechain-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.battlechain.com"]}},blockExplorers:{default:{name:"BattleChain Explorer",url:"https://explorer.testnet.battlechain.com",blockExplorerApi:"https://block-explorer-api.testnet.battlechain.com/api"}},testnet:!0}),ufe=j({id:4337,name:"Beam",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{default:{http:["https://build.onbeam.com/rpc"],webSocket:["wss://build.onbeam.com/ws"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets.avax.network/beam"}},contracts:{multicall3:{address:"0x4956f15efdc3dc16645e90cc356eafa65ffc65ec",blockCreated:1}}}),dfe=j({id:13337,name:"Beam Testnet",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{default:{http:["https://build.onbeam.com/rpc/testnet"],webSocket:["wss://build.onbeam.com/ws/testnet"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets-test.avax.network/beam"}},contracts:{multicall3:{address:"0x9bf49b704ee2a095b95c1f2d4eb9010510c41c9e",blockCreated:3}},testnet:!0}),ffe=j({id:641230,name:"Bear Network Chain Mainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net",apiUrl:"https://brnkscan.bearnetwork.net/api"}}}),pfe=j({id:751230,name:"Bear Network Chain Testnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net",apiUrl:"https://brnktest-scan.bearnetwork.net/api"}},testnet:!0}),mfe=j({id:80094,name:"Berachain",blockTime:2e3,nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},ensRegistry:{address:"0x5b22280886a2f5e09a49bea7e320eab0e5320e28",blockCreated:877007},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:9310021}},rpcUrls:{default:{http:["https://rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://berascan.com"}},ensTlds:[".bera"],testnet:!1}),hfe=j({id:80069,blockTime:2e3,name:"Berachain Bepolia",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},rpcUrls:{default:{http:["https://bepolia.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://testnet.berascan.com"}},testnet:!0}),yfe=j({id:80085,name:"Berachain Artio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},rpcUrls:{default:{http:["https://artio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain",url:"https://artio.beratrail.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:866924}},testnet:!0}),bfe=j({id:80084,name:"Berachain bArtio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:109269},ensRegistry:{address:"0xB0eef18971290b333450586D33dcA6cE122651D2",blockCreated:7736794},ensUniversalResolver:{address:"0x41692Ef1EA0C79E6b73077E4A67572D2BDbD7057",blockCreated:7736795}},ensTlds:[".bera"],rpcUrls:{default:{http:["https://bartio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain bArtio Beratrail",url:"https://bartio.beratrail.io"}},testnet:!0}),gfe=j({id:11501,name:"BEVM Mainnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet-1.bevm.io"]}},blockExplorers:{default:{name:"Bevmscan",url:"https://scan-mainnet.bevm.io",apiUrl:"https://scan-mainnet-api.bevm.io/api"}}}),xfe=j({id:3068,name:"Bifrost Mainnet",nativeCurrency:{name:"BFC",symbol:"BFC",decimals:18},rpcUrls:{default:{http:["https://public-01.mainnet.bifrostnetwork.com/rpc"]}},blockExplorers:{default:{name:"Bifrost Blockscout",url:"https://explorer.mainnet.bifrostnetwork.com"}},testnet:!1}),vfe=j({id:53456,name:"BirdLayer",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.birdlayer.xyz","https://rpc1.birdlayer.xyz"],webSocket:["wss://rpc.birdlayer.xyz/ws"]}},blockExplorers:{default:{name:"BirdLayer Explorer",url:"https://scan.birdlayer.xyz"}}}),wfe=j({id:32520,name:"Bitgert Mainnet",nativeCurrency:{decimals:18,name:"Brise",symbol:"Brise"},rpcUrls:{default:{http:["https://rpc-bitgert.icecreamswap.com"]}},blockExplorers:{default:{name:"Bitgert Scan",url:"https://brisescan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2118034}},testnet:!1}),Efe=j({id:96,name:"KUB Mainnet",nativeCurrency:{name:"KUB Coin",symbol:"KUB",decimals:18},rpcUrls:{default:{http:["https://rpc.bitkubchain.io"]}},blockExplorers:{default:{name:"KUB Chain Mainnet Explorer",url:"https://www.bkcscan.com",apiUrl:"https://www.bkcscan.com/api"}}}),kfe=j({id:25925,name:"Bitkub Testnet",network:"Bitkub Testnet",nativeCurrency:{name:"Bitkub Test",symbol:"tKUB",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.bitkubchain.io"]}},blockExplorers:{default:{name:"Bitkub Chain Testnet Explorer",url:"https://testnet.bkcscan.com",apiUrl:"https://testnet.bkcscan.com/api"}},testnet:!0}),Cfe=j({id:200901,name:"Bitlayer Mainnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org"],webSocket:["wss://ws.bitlayer.org"]}},blockExplorers:{default:{name:"bitlayer mainnet scan",url:"https://www.btrscan.com"}},contracts:{multicall3:{address:"0x5B256fE9e993902eCe49D138a5b1162cBb529474",blockCreated:2421963}}}),Afe=j({id:200810,name:"Bitlayer Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bitlayer.org"],webSocket:["wss://testnet-ws.bitlayer.org"]}},blockExplorers:{default:{name:"bitlayer testnet scan",url:"https://testnet.btrscan.com"}},contracts:{multicall3:{address:"0x5B256fE9e993902eCe49D138a5b1162cBb529474",blockCreated:4135671}},testnet:!0}),Pfe=j({id:7171,name:"Bitrock Mainnet",nativeCurrency:{name:"BROCK",symbol:"BROCK",decimals:18},rpcUrls:{default:{http:["https://brockrpc.io"]}},blockExplorers:{default:{name:"Bitrock Explorer",url:"https://explorer.bit-rock.io"}},testnet:!1}),Tfe=j({id:199,name:"BitTorrent",network:"bittorrent-chain-mainnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://rpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://bttcscan.com",apiUrl:"https://api.bttcscan.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:31078552}}}),Sfe=j({id:1028,name:"BitTorrent Chain Testnet",network:"bittorrent-chain-testnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://testrpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://testnet.bttcscan.com",apiUrl:"https://testnet.bttcscan.com/api"}},testnet:!0}),Cy=1,Bfe=j({...$e,id:81457,name:"Blast",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://blastscan.io",apiUrl:"https://api.blastscan.io/api"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:212929},l2OutputOracle:{[Cy]:{address:"0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76",blockCreated:19300358}},portal:{[Cy]:{address:"0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb",blockCreated:19300357}},l1StandardBridge:{[Cy]:{address:"0x697402166Fbf2F22E970df8a6486Ef171dbfc524",blockCreated:19300360}}},sourceId:Cy}),_fe=11155111,Ife=j({id:168587773,name:"Blast Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://sepolia.blastscan.io",apiUrl:"https://api-sepolia.blastscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:756690}},testnet:!0,sourceId:_fe}),bw=1,Nfe=j({...$e,id:60808,name:"BOB",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.gobob.xyz"],webSocket:["wss://rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Explorer",url:"https://explorer.gobob.xyz"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:23131},l2OutputOracle:{[bw]:{address:"0xdDa53E23f8a32640b04D7256e651C1db98dB11C1",blockCreated:4462615}},portal:{[bw]:{address:"0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E",blockCreated:4462615}}},sourceId:bw}),Rfe=j({id:288,name:"Boba Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}}),Ofe=j({id:28882,name:"Boba Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://testnet.bobascan.com"}},testnet:!0}),gw=11155111,Mfe=j({...$e,id:808813,name:"BOB Sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://bob-sepolia.rpc.gobob.xyz"],webSocket:["wss://bob-sepolia.rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Sepolia Explorer",url:"https://bob-sepolia.explorer.gobob.xyz"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:35677},l2OutputOracle:{[gw]:{address:"0x14D0069452b4AE2b250B395b8adAb771E4267d2f",blockCreated:4462615}},portal:{[gw]:{address:"0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4",blockCreated:4462615}}},testnet:!0,sourceId:gw}),Dfe=j({id:11100,name:"Bool Beta Mainnet",nativeCurrency:{decimals:18,name:"BOL",symbol:"BOL"},rpcUrls:{default:{http:["https://beta-rpc-node-http.bool.network"]}},blockExplorers:{default:{name:"BoolScan",url:"https://beta-mainnet.boolscan.com/"}},testnet:!1}),Ffe=j({id:3637,name:"Botanix",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.botanixlabs.com"],webSocket:["wss://rpc.botanixlabs.com/ws"]}},blockExplorers:{default:{name:"Botanixscan",url:"https://botanixscan.io"}}}),Ufe=j({id:3636,name:"Botanix Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://node.botanixlabs.dev"]}},blockExplorers:{default:{name:"Botanix Testnet Explorer",url:"https://testnet.botanixscan.io"}},testnet:!0}),jfe=j({id:6001,name:"BounceBit Mainnet",nativeCurrency:{name:"BounceBit",symbol:"BB",decimals:18},rpcUrls:{default:{http:["https://fullnode-mainnet.bouncebitapi.com"]}}
99,blockExplorers:{default:{name:"BB Scan",url:"https://bbscan.io"}},testnet:!1}),Lfe=j({id:6e3,name:"BounceBit Testnet",nativeCurrency:{name:"BounceBit",symbol:"BB",decimals:18},rpcUrls:{default:{http:["https://fullnode-testnet.bouncebitapi.com"]}},blockExplorers:{default:{name:"BB Scan",url:"https://testnet.bbscan.io"}},testnet:!0}),$fe=j({id:1039,name:"Bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}}),zfe=j({id:1038,name:"Bronos Testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0}),Hfe=j({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),Kfe=j({id:1017,name:"BNB Greenfield Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://greenfield-chain.bnbchain.org"]}},blockExplorers:{default:{name:"BNB Greenfield Mainnet Scan",url:"https://greenfieldscan.com"}},testnet:!1}),Vfe=j({id:97,name:"BNB Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://api-testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0}),Gfe=j({id:223,name:"B2",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bsquared.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.bsquared.network"}}}),qfe=j({id:1123,name:"B2 Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bsquared.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet-explorer.bsquared.network"}},testnet:!0}),Wfe=j({id:200901,name:"Bitlayer",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org","https://rpc.bitlayer-rpc.com"],webSocket:["wss://ws.bitlayer.org","wss://ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://www.btrscan.com"}}}),Jfe=j({id:200810,name:"Bitlayer Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bitlayer.org"],webSocket:["wss://testnet-ws.bitlayer.org","wss://testnet-ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://testnet.btrscan.com"}},testnet:!0}),Zfe=j({id:4999,name:"BlackFort Exchange Network",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network",apiUrl:"https://explorer.blackfort.network/api"}}}),Qfe=j({id:4777,name:"BlackFort Exchange Network Testnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network",apiUrl:"https://testnet-explorer.blackfort.network/api"}},testnet:!0}),Xfe=j({id:13370,name:"Cannon",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),Yfe=j({id:7700,name:"Canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}}),epe={estimateFeesPerGas:async e=>{var a;if(!((a=e.request)!=null&&a.feeCurrency))return null;const[t,n]=await Promise.all([tpe(e.client,e.request.feeCurrency),npe(e.client,e.request.feeCurrency)]);return{maxFeePerGas:e.multiply(t-n)+n,maxPriorityFeePerGas:n}}};async function tpe(e,t){const n=await e.request({method:"eth_gasPrice",params:[t]});return BigInt(n)}async function npe(e,t){const n=await e.request({method:"eth_maxPriorityFeePerGas",params:[t]});return BigInt(n)}function Tz(e){return e===0||e===0n||e===void 0||e===null||e==="0"||e===""||typeof e=="string"&&(na(e).toLowerCase()==="0x"||na(e).toLowerCase()==="0x00")}function m0(e){return!Tz(e)}function rpe(e){return typeof e.maxFeePerGas<"u"&&typeof e.maxPriorityFeePerGas<"u"}function Sz(e){return e.type==="cip64"?!0:rpe(e)&&m0(e.feeCurrency)}const ape={block:CE({format(e){var n;return{transactions:(n=e.transactions)==null?void 0:n.map(r=>typeof r=="string"?r:{...Dc(r),...r.gatewayFee?{gatewayFee:Pt(r.gatewayFee),gatewayFeeRecipient:r.gatewayFeeRecipient}:{},feeCurrency:r.feeCurrency})}}}),transaction:F1({format(e){if(e.type==="0x7e")return{isSystemTx:e.isSystemTx,mint:e.mint?Pt(e.mint):void 0,sourceHash:e.sourceHash,type:"deposit"};const t={feeCurrency:e.feeCurrency};return e.type==="0x7b"?t.type="cip64":(e.type==="0x7c"&&(t.type="cip42"),t.gatewayFee=e.gatewayFee?Pt(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),transactionRequest:PE({format(e){const t={};return e.feeCurrency&&(t.feeCurrency=e.feeCurrency),Sz(e)&&(t.type="0x7b"),t}})};function spe(e,t){return Sz(e)?ope(e,t):Cz(e,t)}const ipe={transaction:spe};function ope(e,t){cpe(e);const{chainId:n,gas:r,nonce:a,to:s,value:i,maxFeePerGas:l,maxPriorityFeePerGas:c,accessList:u,feeCurrency:f,data:p}
vendor: 20,929 bytes, line 99
99=e,m=[Kt(n),a?Kt(a):"0x",c?Kt(c):"0x",l?Kt(l):"0x",r?Kt(r):"0x",s??"0x",i?Kt(i):"0x",p??"0x",Om(u),f,...yd(e,t)];return Zn(["0x7b",js(m)])}const lpe=yc;function cpe(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:s,feeCurrency:i}=e;if(t<=0)throw new hd({chainId:t});if(s&&!dn(s))throw new Ln({address:s});if(r)throw new Oe("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(m0(a)&&a>lpe)throw new No({maxFeePerGas:a});if(m0(n)&&m0(a)&&n>a)throw new Gu({maxFeePerGas:a,maxPriorityFeePerGas:n});if(m0(i)&&!dn(i))throw new Oe("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(Tz(i))throw new Oe("`feeCurrency` must be provided for CIP-64 transactions.")}const N0={blockTime:1e3,contracts:kz,formatters:ape,serializers:ipe,fees:epe},upe=j({...N0,id:42220,name:"Celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://celoscan.io",apiUrl:"https://api.celoscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1}),Ay=17e3,dpe=j({...N0,id:44787,name:"Alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Alfajores Explorer",url:"https://celo-alfajores.blockscout.com",apiUrl:"https://celo-alfajores.blockscout.com/api"}},contracts:{...N0.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001},portal:{[Ay]:{address:"0x82527353927d8D069b3B452904c942dA149BA381",blockCreated:2411324}},disputeGameFactory:{[Ay]:{address:"0xE28AAdcd9883746c0e5068F58f9ea06027b214cb",blockCreated:2411324}},l2OutputOracle:{[Ay]:{address:"0x4a2635e9e4f6e45817b1D402ac4904c1d1752438",blockCreated:2411324}},l1StandardBridge:{[Ay]:{address:"0xD1B0E0581973c9eB7f886967A606b9441A897037",blockCreated:2411324}}},testnet:!0}),xw=11155111,fpe=j({...N0,id:11142220,name:"Celo Sepolia Testnet",nativeCurrency:{decimals:18,name:"CELO",symbol:"S-CELO"},rpcUrls:{default:{http:["https://forno.celo-sepolia.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Sepolia Explorer",url:"https://celo-sepolia.blockscout.com/",apiUrl:"https://celo-sepolia.blockscout.com/api"}},contracts:{...N0.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1},portal:{[xw]:{address:"0x44ae3d41a335a7d05eb533029917aad35662dcc2",blockCreated:8825790}},disputeGameFactory:{[xw]:{address:"0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa",blockCreated:8825790}},l1StandardBridge:{[xw]:{address:"0xec18a3c30131a0db4246e785355fbc16e2eaf408",blockCreated:8825790}}},testnet:!0}),ppe=j({id:5858,name:"Chang Chain Foundation Mainnet",nativeCurrency:{decimals:18,name:"CTH",symbol:"CTH"},rpcUrls:{default:{http:["https://rpc.cthscan.com"]}},blockExplorers:{default:{name:"Chang Chain explorer",url:"https://cthscan.com"}}}),mpe=j({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.chiliz.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com",apiUrl:"https://scan.chiliz.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:8080847}}}),hpe=j({id:2882,name:"Chips Network",network:"CHIPS",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://node.chips.ooo/wasp/api/v1/chains/iota1pp3d3mnap3ufmgqnjsnw344sqmf5svjh26y2khnmc89sv6788y3r207a8fn/evm"]}}}),ype=j({id:40204,name:"Citrate",nativeCurrency:{name:"SALT",symbol:"SALT",decimals:18},rpcUrls:{default:{http:["https://rpc.citrate.ai"],webSocket:["wss://rpc.citrate.ai"]}},testnet:!0}),bpe=j({id:4114,name:"Citrea Mainnet",nativeCurrency:{name:"Citrea Bitcoin",symbol:"cBTC",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.citrea.xyz"]}},blockExplorers:{default:{name:"Citrea Explorer",url:"https://explorer.mainnet.citrea.xyz",apiUrl:"https://explorer.mainnet.citrea.xyz/api"}},testnet:!1}),gpe=j({id:5115,name:"Citrea Testnet",nativeCurrency:{name:"cBTC",symbol:"cBTC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.citrea.xyz"]}},blockExplorers:{default:{name:"Citrea Explorer",url:"https://explorer.testnet.citrea.xyz",apiUrl:"https://explorer.testnet.citrea.xyz/api"}},testnet:!0}),xpe=j({id:61,name:"Ethereum Classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}}),Py=1,vpe=j({...$e,id:81224,name:"Codex",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.codex.xyz"]}},blockExplorers:{default:{name:"Codex Explorer",url:"https://explorer.codex.xyz",apiUrl:"https://explorer.codex.xyz/api"}},contracts:{...$e.contracts,disputeGameFactory:{[Py]:{address:"0x6A3855dc26e2beA8Ac73f82Cda79f3808B6C6F6C"}},portal:{[Py]:{address:"0x52759C07A759c81BAab28AE1BE5A19e6450959bD"}},l1StandardBridge:{[Py]:{address:"0xa6b1A05a592719B0C8a70c69eac114C48410aDE4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},sourceId:Py}),Ty=11155111,wpe=j({...$e,id:812242,name:"Codex Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.codex-stg.xyz"]}},blockExplorers:{default:{name:"Codex Testnet Explorer",url:"https://explorer.codex-stg.xyz",apiUrl:"https://explorer.codex-stg.xyz/api"}},contracts:{...$e.contracts,disputeGameFactory:{[Ty]:{address:"0x390e24E8324E56f13A8d48eB938b6f9De24CD205"}},portal:{[Ty]:{address:"0x037F161D12c829A9ca4742eEd9371830CA54fcB2"}},l1StandardBridge:{[Ty]:{address:"0xCf4df2bDB14C8FDB25FdacCEC10Ce5C4bAEDB3De"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},sourceId:Ty,testnet:!0}),Epe=j({id:112,name:"Coinbit Mainnet",nativeCurrency:{name:"GIDR",symbol:"GIDR",decimals:18},rpcUrls:{default:{http:["https://coinbit-rpc-mainnet.chain.sbcrypto.app"]}},blockExplorers:{default:{name:"Coinbit Explorer",url:"https://coinbit-explorer.chain.sbcrypto.app"}},testnet:!1}),kpe=j({id:52,name:"CoinEx Mainnet",nativeCurrency:{name:"cet",symbol:"cet",decimals:18},rpcUrls:{default:{http:["https://rpc.coinex.net"]}},blockExplorers:{default:{name:"CoinEx Explorer",url:"https://www.coinex.net"}},testnet:!1}),Cpe=j({id:1030,name:"Conflux eSpace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.com"],webSocket:["wss://evm.confluxrpc.com/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.org"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}}),Ape=j({id:71,name:"Conflux eSpace Testnet",network:"cfx-espace-testnet",testnet:!0,nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evmtestnet.confluxrpc.com"],webSocket:["wss://evmtestnet.confluxrpc.com/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evmtestnet.confluxscan.org"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:117499050}}}),Ppe=j({id:1116,name:"Core Dao",nativeCurrency:{decimals:18,name:"Core",symbol:"CORE"},rpcUrls:{default:{http:["https://rpc.coredao.org"]}},blockExplorers:{default:{name:"CoreDao",url:"https://scan.coredao.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11907934}},testnet:!1}),Tpe=j({id:1115,name:"Core Testnet",nativeCurrency:{decimals:18,name:"tCore",symbol:"TCORE"},rpcUrls:{default:{http:["https://rpc.test.btcs.network"]}},blockExplorers:{default:{name:"Core Testnet",url:"https://scan.test.btcs.network",apiUrl:"https://api.test.btcs.network/api"}},contracts:{multicall3:{address:"0xCcddF20A1932537123C2E48Bd8e00b108B8f7569",blockCreated:29350509}},testnet:!0}),Spe=j({id:1114,name:"Core Testnet2",nativeCurrency:{decimals:18,name:"tCore2",symbol:"TCORE2"},rpcUrls:{default:{http:["https://rpc.test2.btcs.network"]}},blockExplorers:{default:{name:"Core Testnet2",url:"https://scan.test2.btcs.network",apiUrl:"https://api.test2.btcs.network/api"}},contracts:{multicall3:{address:"0x3CB285ff3Cd5C7C7e570b1E7DE3De17A0f985e56",blockCreated:3838600}},testnet:!0}),Bpe=1,_pe=j({id:21e6,name:"Corn",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Explorer",url:"https://cornscan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3228}},sourceId:Bpe}),Ipe=11155111,Npe=j({id:21000001,name:"Corn Testnet",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000001.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Testnet Explorer",url:"https://testnet.cornscan.io",apiUrl:"https://api.routescan.io/v2/network/testnet/evm/21000001/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4886}},testnet:!0,sourceId:Ipe}),Rpe=j({id:86608,name:"CpChain",nativeCurrency:{decimals:18,name:"CpChain",symbol:"CP"},rpcUrls:{default:{http:["https://rpc.cpchain.com"]}},blockExplorers:{default:{name:"CpChain Explorer",url:"https://explorer.cpchain.com"}},testnet:!1}),Ope=j({id:44,name:"Crab Network",nativeCurrency:{decimals:18,name:"Crab Network Native Token",symbol:"CRAB"},rpcUrls:{default:{http:["https://crab-rpc.darwinia.network"],webSocket:["wss://crab-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://crab-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3032593}}}),Mpe=j({id:66665,name:"Creator",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.creatorchain.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.creatorchain.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0}),Dpe=j({id:102032,name:"Creditcoin Devnet",nativeCurrency:{name:"Devnet CTC",symbol:"devCTC",decimals:18},rpcUrls:{default:{http:["https://rpc.cc3-devnet.creditcoin.network"],webSocket:["wss://rpc.cc3-devnet.creditcoin.network/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin-devnet.blockscout.com",apiUrl:"https://creditcoin3-dev.subscan.io"}},testnet:!0}),Fpe=j({id:102030,name:"Creditcoin",nativeCurrency:{name:"Creditcoin",symbol:"CTC",decimals:18},rpcUrls:{default:{http:["https://mainnet3.creditcoin.network"],webSocket:["wss://mainnet3.creditcoin.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin.blockscout.com",apiUrl:"https://creditcoin.blockscout.com/api"}},testnet:!1}),Upe=j({id:102031,name:"Creditcoin Testnet",nativeCurrency:{name:"Creditcoin Testnet",symbol:"tCTC",decimals:18},rpcUrls:{default:{http:["https://rpc.cc3-testnet.creditcoin.network"],webSocket:["wss://rpc.cc3-testnet.creditcoin.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin-testnet.blockscout.com",apiUrl:"https://creditcoin-testnet.blockscout.com/api"}},testnet:!0}),jpe=j({id:25,name:"Cronos Mainnet",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://explorer.cronos.org",apiUrl:"https://explorer-api.cronos.org/mainnet/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}}),Lpe=j({id:338,name:"Cronos Testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer (Testnet)",url:"https://explorer.cronos.org/testnet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0}),$pe=j({id:388,name:"Cronos zkEVM Mainnet",nativeCurrency:{decimals:18,name:"Cronos zkEVM CRO",symbol:"zkCRO"},rpcUrls:{default:{http:["https://mainnet.zkevm.cronos.org"]}},blockExplorers:{default:{name:"Cronos zkEVM (Mainnet) Chain Explorer",url:"https://explorer.zkevm.cronos.org"}},contracts:{multicall3:{address:"0x06f4487d7c4a5983d2660db965cc6d2565e4cfaa",blockCreated:72}}}),zpe=j({id:282,name:"Cronos zkEVM Testnet",nativeCurrency:{decimals:18,name:"Cronos zkEVM Test Coin",symbol:"zkTCRO"},rpcUrls:{default:{http:["https://testnet.zkevm.cronos.org"]}},blockExplorers:{default:{name:"Cronos zkEVM Testnet Explorer",url:"https://explorer.zkevm.cronos.org/testnet"}},testnet:!0}),Hpe=j({id:3737,name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io",apiUrl:"https://scan.crossbell.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:38246031}}}),Kpe=j({id:4158,name:"CrossFi Mainnet",nativeCurrency:{decimals:18,name:"CrossFi",symbol:"XFI"},rpcUrls:{default:{http:["https://rpc.mainnet.ms"]}},blockExplorers:{default:{name:"CrossFi Blockchain Explorer",url:"https://xfiscan.com"}},testnet:!1}),Vpe=j({id:33111,name:"Curtis",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.curtis.apechain.com"]}},blockExplorers:{default:{name:"Curtis Explorer",url:"https://explorer.curtis.apechain.com"}},testnet:!0}),Gpe=j({id:7560,name:"Cyber",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://cyberscan.co",apiUrl:"https://cyberscan.co/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),qpe=j({id:111557560,name:"Cyber Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber-testnet.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet.cyberscan.co",apiUrl:"https://testnet.cyberscan.co/api"}},contracts:{multicall3:{address:"0xffc391F0018269d4758AEA1a144772E8FB99545E",blockCreated:304545}},testnet:!0}),Wpe=j({id:824,name:"Daily Network Mainnet",nativeCurrency:{decimals:18,name:"Daily",symbol:"DLY"},rpcUrls:{default:{http:["https://rpc.mainnet.dailycrypto.net"]}},blockExplorers:{default:{name:"Daily Mainnet Explorer",url:"https://explorer.mainnet.dailycrypto.net"}},testnet:!1}),Jpe=j({id:825,name:"Daily Network Testnet",nativeCurrency:{decimals:18,name:"Daily",symbol:"DLY"},rpcUrls:{default:{http:["https://rpc.testnet.dailycrypto.net"]}},blockExplorers:{default:{name:"Daily Testnet Explorer",url:"https://explorer.testnet.dailycrypto.net"}},testnet:!0}),Zpe=j({id:46,name:"Darwinia Network",nativeCurrency:{decimals:18,name:"RING",symbol:"RING"},rpcUrls:{default:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69420}}}),Qpe=j({id:55931,name:"Datahaven Testnet",nativeCurrency:{decimals:18,name:"MOCK",symbol:"MOCK"},rpcUrls:{default:{http:["https://services.datahaven-testnet.network/testnet"],webSocket:["wss://services.datahaven-testnet.network/testnet"]}},blockExplorers:{default:{name:"DhScan",url:"https://testnet.dhscan.io/",apiUrl:"https://testnet.dhscan.io/api-docs"}},contracts:{},testnet:!0}),Xpe=j({id:20240603,name:"DBK chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.dbkchain.io"]}},blockExplorers:{default:{name:"DBK Chain Explorer",url:"https://scan.dbkchain.io"}},testnet:!1}),Ype=j({...$e,id:2716446429837e3,name:"Dchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://dchain-2716446429837000-1.jsonrpc.sagarpc.io"]}},blockExplorers:{default:{name:"Dchain Explorer",url:"https://dchain-2716446429837000-1.sagaexplorer.io",apiUrl:"https://api-dchain-2716446429837000-1.sagaexplorer.io/api"}},contracts:{...$e.contracts}}),e0e=j({...$e,id:2713017997578e3,name:"Dchain Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://dchaintestnet-2713017997578000-1.jsonrpc.testnet.sagarpc.io"]}},blockExplorers:{default:{name:"Dchain Explorer",url:"https://dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io",apiUrl:"https://api-dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io/api"}},contracts:{...$e.contracts},testnet:!0}),t0e=j({id:1130,network:"defichain-evm",name:"DeFiChain EVM Mainnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},rpcUrls:{default:{http:["https://eth.mainnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:137852}}}),n0e=j({id:1131,network:"defichain-evm-testnet",name:"DeFiChain EVM Testnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},rpcUrls:{default:{http:["https://eth.testnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live/?network=TestNet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:156462}},testnet:!0}),r0e=j({id:138,name:"Defi Oracle Meta Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc-http-pub.d-bis.org","https://rpc.d-bis.org","https://rpc2.d-bis.org","https://rpc.public-0138.defi-oracle.io","https://rpc.defi-oracle.io"],webSocket:["wss://rpc-ws-pub.d-bis.org","wss://ws.rpc.d-bis.org","wss://ws.rpc2.d-bis.org","wss://rpc.public-0138.defi-oracle.io","wss://wss.defi-oracle.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.d-bis.org"}}}),a0e=j({id:666666666,name:"Degen",nativeCurrency:{decimals:18,name:"Degen",symbol:"DEGEN"},rpcUrls:{default:{http:["https://rpc.degen.tips"],webSocket:["wss://rpc.degen.tips"]}},blockExplorers:{default:{name:"Degen Chain Explorer",url:"https://explorer.degen.tips",apiUrl:"https://explorer.degen.tips/api/v2"}}}),s0e=j({id:53935,name:"DFK Chain",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14790551}}}),i0e=j({id:15,name:"Diode Prenet",nativeCurrency:{decimals:18,name:"DIODE",symbol:"DIODE"},rpcUrls:{default:{http:["https://prenet.diode.io:8443"],webSocket:["wss://prenet.diode.io:8443/ws"]}},blockExplorers:{default:{name:"Diode Explorer",url:"https://diode.io/prenet"}},testnet:!1}),o0e=j({id:513100,name:"DisChain",nativeCurrency:{decimals:18,name:"DIS",symbol:"DIS"},rpcUrls:{default:{http:["https://rpc.dischain.xyz"]}},blockExplorers:{default:{name:"DisChain Explorer",url:"https://www.oklink.com/dis"}}}),l0e=j({id:53457,name:"DODOchain Testnet",nativeCurrency:{decimals:18,name:"DODO",symbol:"DODO"},rpcUrls:{default:{http:["https://dodochain-testnet.alt.technology"],webSocket:["wss://dodochain-testnet.alt.technology/ws"]}},blockExplorers:{default:{name:"DODOchain Testnet (Sepolia) Explorer",url:"https://testnet-scan.dodochain.com"}},testnet:!0}),c0e=j({id:2e3,name:"Dogechain",nativeCurrency:{decimals:18,name:"Wrapped Dogecoin",symbol:"WDOGE"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog",apiUrl:"https://explorer.dogechain.dog/api"}},contracts:{multicall3:{address:"0x68a8609a60a008EFA633dfdec592c03B030cC508",blockCreated:25384031}}}),u0e=j({id:97476,name:"Doma Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc-testnet.doma.xyz"]}},blockExplorers:{default:{name:"Doma Testnet Explorer",url:"https://explorer-testnet.doma.xyz"}},testnet:!0}),d0e=j({id:42026,name:"Donatuz",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.donatuz.com"]}},blockExplorers:{default:{name:"Donatuz Explorer",url:"https://explorer.donatuz.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),f0e=j({id:7979,name:"DOS Chain",nativeCurrency:{decimals:18,name:"DOS Chain",symbol:"DOS"},rpcUrls:{default:{http:["https://main.doschain.com"]}},blockExplorers:{default:{name:"DOS Chain Explorer",url:"https://doscan.io",apiUrl:"https://api.doscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:161908}}}
99),p0e=j({id:3939,name:"DOS Chain Testnet",nativeCurrency:{decimals:18,name:"DOS Chain Testnet",symbol:"DOS"},rpcUrls:{default:{http:["https://test.doschain.com"]}},blockExplorers:{default:{name:"DOS Chain Testnet Explorer",url:"https://test.doscan.io",apiUrl:"https://api-test.doscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69623}},testnet:!0}),m0e=j({id:23451,name:"DreyerX Mainnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["https://rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Scan",url:"https://scan.dreyerx.com"}}});function h0e({chain:e,currentChainId:t}){if(!e)throw new Nue;if(t!==e.id)throw new Iue({chain:e,currentChainId:t})}function bd({blockNumber:e,chain:t,contract:n}){var a;const r=(a=t==null?void 0:t.contracts)==null?void 0:a[n];if(!r)throw new G5({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new G5({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}const y0e=j({id:23452,name:"DreyerX Testnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["http://testnet-rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Testnet Scan",url:"https://testnet-scan.dreyerx.com"}},testnet:!0}),b0e=j({id:555888,name:"DustBoy IoT",nativeCurrency:{name:"Ether",symbol:"DST",decimals:18},rpcUrls:{default:{http:["https://dustboy-rpc.jibl2.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://dustboy.jibl2.com",apiUrl:"https://dustboy.jibl2.com/api"}},contracts:{multicall3:{address:"0xFFD34aa2C62B2D52E00A361e466C229788f4eD6a",blockCreated:526569}},testnet:!1}),g0e=j({id:1100,name:"Dymension",nativeCurrency:{name:"DYM",symbol:"DYM",decimals:18},rpcUrls:{default:{http:["https://dymension-evm-rpc.publicnode.com"],webSocket:["wss://dymension-evm-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Dym FYI",url:"https://dym.fyi"}},testnet:!1}),x0e=j({id:4111,name:"E Canna Mainnet",nativeCurrency:{name:"E Canna",symbol:"ECNA",decimals:18},rpcUrls:{default:{http:["https://rpc.ecnascan.com"]}},blockExplorers:{default:{name:"ECNA Scan",url:"https://explorer.ecnascan.com"}}}),v0e=j({id:4112,name:"E Canna Testnet",nativeCurrency:{name:"E Canna Testnet",symbol:"tECNA",decimals:18},rpcUrls:{default:{http:["https://testnetrpc.ecnascan.com"]}},blockExplorers:{default:{name:"ECNA Scan Testnet",url:"https://testnetexplorer.ecnascan.com"}},testnet:!0}),w0e=j({id:714,name:"Eden",nativeCurrency:{name:"TIA",symbol:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.eden.gateway.fm"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},blockExplorers:{default:{name:"Blockscout",url:"https://eden.blockscout.com",apiUrl:"https://eden.blockscout.com/api"}}}),E0e=j({id:5424,name:"edeXa",nativeCurrency:{name:"edeXa",symbol:"EDX",decimals:18},rpcUrls:{default:{http:["https://rpc.edexa.network"]}},blockExplorers:{default:{name:"edeXa Explorer",url:"https://explorer.edexa.network",apiUrl:"https://explorer.edexa.network/api/v2"}}}),k0e=j({id:1995,name:"edeXa Testnet",nativeCurrency:{name:"edeXa",symbol:"tEDX",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.edexa.network"]}},blockExplorers:{default:{name:"edeXa Testnet Explorer",url:"https://explorer.testnet.edexa.network",apiUrl:"https://explorer.testnet.edexa.network/api/v2"}},testnet:!0}),C0e=j({id:2026,name:"Edgeless Network",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://rpc.edgeless.network/http"],webSocket:["wss://rpc.edgeless.network/ws"]}},blockExplorers:{default:{name:"Edgeless Explorer",url:"https://explorer.edgeless.network"}}}),A0e=j({id:202,name:"Edgeless Testnet",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://edgeless-testnet.rpc.caldera.xyz/http"],webSocket:["wss://edgeless-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Edgeless Testnet Explorer",url:"https://testnet.explorer.edgeless.network"}},testnet:!0}),P0e=j({id:2021,name:"Edgeware EdgeEVM Mainnet",nativeCurrency:{decimals:18,name:"Edgeware",symbol
vendor: 71,337 bytes, lines 99-119
99:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",apiUrl:"https://edgscan.live/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}}),T0e=j({id:2022,name:"Beresheet BereEVM Testnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",apiUrl:"https://testnet.edgscan.live/api"}},testnet:!0}),S0e=j({id:41923,name:"EDU Chain",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.educhain.xyz"],webSocket:["wss://rpc.educhain.xyz"]}},blockExplorers:{default:{name:"EDU Chain Explorer",url:"https://explorer.educhain.xyz/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:16410660}},testnet:!1}),B0e=j({id:656476,name:"EDU Chain Testnet",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.testnet.educhain.xyz"],webSocket:["wss://rpc.testnet.educhain.xyz"]}},blockExplorers:{default:{name:"EDU Chain Testnet Explorer",url:"https://explorer.testnet.educhain.xyz/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:15514133}},testnet:!0}),_0e=j({id:20,name:"Elastos Smart Chain",nativeCurrency:{name:"ELA",symbol:"ELA",decimals:18},rpcUrls:{default:{http:["https://api2.elastos.io/eth"]}},blockExplorers:{default:{name:"Elastos Explorer",url:"https://esc.elastos.io"}},testnet:!1}),I0e=j({id:21,name:"Elastos Smart Chain Testnet",nativeCurrency:{name:"tELA",symbol:"tELA",decimals:18},rpcUrls:{default:{http:["https://api-testnet.elastos.io/eth"]}},blockExplorers:{default:{name:"Elastos Explorer",url:"https://esc-testnet.elastos.io"}},testnet:!0}),N0e=j({id:52014,name:"Electroneum Mainnet",nativeCurrency:{name:"ETN",symbol:"ETN",decimals:18},rpcUrls:{default:{http:["https://rpc.electroneum.com"]}},blockExplorers:{default:{name:"Electroneum Block Explorer",url:"https://blockexplorer.electroneum.com"}},testnet:!1}),R0e=j({id:5201420,name:"Electroneum Testnet",nativeCurrency:{name:"ETN",symbol:"ETN",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.electroneum.com"]}},blockExplorers:{default:{name:"Electroneum Block Explorer",url:"https://blockexplorer.thesecurityteam.rocks"}},testnet:!0}),O0e=j({...$e,id:1338,name:"Elysium Testnet",nativeCurrency:{decimals:18,name:"LAVA",symbol:"LAVA"},rpcUrls:{default:{http:["https://elysium-test-rpc.vulcanforged.com"]}},blockExplorers:{default:{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com"}},testnet:!0}),M0e=j({id:246,name:"Energy Mainnet",nativeCurrency:{name:"EWT",symbol:"EWT",decimals:18},rpcUrls:{default:{http:["https://rpc.energyweb.org"]}},blockExplorers:{default:{name:"EnergyWeb Explorer",url:"https://explorer.energyweb.org"}},testnet:!1}),D0e=j({id:173,name:"ENI Mainnet",nativeCurrency:{decimals:18,name:"ENI",symbol:"ENI"},rpcUrls:{default:{http:["https://rpc.eniac.network"]}},blockExplorers:{default:{name:"ENI Explorer",url:"https://scan.eniac.network"}},testnet:!1}),F0e=j({id:6912115,name:"ENI Testnet",nativeCurrency:{decimals:18,name:"ENI Testnet Token",symbol:"ENI"},rpcUrls:{default:{http:["https://rpc-testnet.eniac.network"]}},blockExplorers:{default:{name:"ENI Testnet Explorer",url:"https://scan-testnet.eniac.network"}},testnet:!0}),U0e=j({id:119,name:"ENULS Mainnet",nativeCurrency:{decimals:18,name:"NULS",symbol:"NULS"},rpcUrls:{default:{http:["https://evmapi2.nuls.io"]}},blockExplorers:{default:{name:"ENULS Explorer",url:"https://evmscan.nuls.io"}},testnet:!1}),j0e=j({id:7332,name:"Horizen EON",nativeCurrency:{decimals:18,name:"ZEN",symbol:"ZEN"},rpcUrls:{default:{http:["https://eon-rpc.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"EON Explorer",url:"https://eon-explorer.horizenlabs.io"}},contracts:{}}),L0e=j({id:17777,name:"EOS EVM",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com",apiUrl:"https://explorer.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}}),$0e=j({id:15557,name:"EOS EVM Testnet",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com",apiUrl:"https://explorer.testnet.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0}),z0e=j({id:140,name:"Eteria",nativeCurrency:{name:"Eteria",symbol:"ERA",decimals:18},rpcUrls:{default:{http:["https://mainnet.eteria.io/v1"]}},blockExplorers:{default:{name:"Eteria Explorer",url:"https://explorer.eteria.io",apiUrl:"https://explorer.eteria.io/api"}}}),H0e=j({id:42793,name:"Etherlink",blockTime:4830,nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.mainnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink",url:"https://explorer.etherlink.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:33899}}}),K0e=j({id:127823,name:"Etherlink Shadownet Testnet",nativeCurrency:{decimals:18,name:"tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.shadownet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Shadownet Testnet Explorer",url:"https://shadownet.explorer.etherlink.com"}},testnet:!0}),V0e=j({id:128123,name:"Etherlink Testnet",nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.ghostnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Testnet",url:"https://testnet.explorer.etherlink.com"}},testnet:!0}),G0e=j({id:183,name:"Ethernity",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.ethernitychain.io"]}},blockExplorers:{default:{name:"Ethernity Explorer",url:"https://ernscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1}),q0e=j({id:20256789,name:"ETP Mainnet",nativeCurrency:{decimals:18,name:"ETP Chain Native Token",symbol:"ETP"},rpcUrls:{default:{http:["https://rpc.etpscan.xyz"]}},blockExplorers:{default:{name:"ETP Scan",url:"https://etpscan.xyz"}}}),W0e=j({id:9001,name:"Evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}}),J0e=j({id:9e3,name:"Evmos Testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}},testnet:!0}),Z0e=j({id:22052002,name:"Excelon Mainnet",network:"XLON",nativeCurrency:{decimals:18,name:"Excelon",symbol:"xlon"},rpcUrls:{default:{http:["https://edgewallet1.xlon.org"]}},blockExplorers:{default:{name:"Excelon explorer",url:"https://explorer.excelon.io"}}}),Q0e=j({id:2,name:"Expanse Network",nativeCurrency:{decimals:18,name:"EXP",symbol:"EXP"},rpcUrls:{default:{http:["https://node.expanse.tech"]}},blockExplorers:{default:{name:"Expanse Explorer",url:"https://explorer.expanse.tech"}},testnet:!1}),X0e=j({id:7200,name:"exSat Network",nativeCurrency:{decimals:18,name:"BTC",symbol:"BTC"},rpcUrls:{default:{http:["https://evm.exsat.network"]}},blockExplorers:{default:{name:"exSat Explorer",url:"https://scan.exsat.network",apiUrl:"https://scan.exsat.network/api"}}}),Y0e=j({id:839999,name:"exSat Testnet",nativeCurrency:{decimals:18,name:"BTC",symbol:"BTC"},rpcUrls:{default:{http:["https://evm-tst3.exsat.network"]}},blockExplorers:{default:{name:"exSat Explorer",url:"https://scan-testnet.exsat.network",apiUrl:"https://scan-testnet.exsat.network/api"}},testnet:!0}),eme=j({id:250,name:"Fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://250.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"FTMScan",url:"https://ftmscan.com",apiUrl:"https://api.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}}),tme=j({id:64240,name:"Fantom Sonic Open Testnet",network:"fantom-sonic-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpcapi.sonic.fantom.network"]}},blockExplorers:{default:{name:"Fantom Sonic Open Testnet Explorer",url:"https://public-sonic.fantom.network"}},testnet:!0}),nme=j({id:4002,name:"Fantom Testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{default:{name:"FTMScan",url:"https://testnet.ftmscan.com",apiUrl:"https://testnet.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}},testnet:!0}),rme=j({id:12306,name:"Fibo Chain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}}),ame=j({id:314,name:"Filecoin Mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328594}}}),sme=j({id:314159,name:"Filecoin Calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}},testnet:!0}),ime=j({id:3141,name:"Filecoin Hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"}},testnet:!0}),ome=j({id:253368190,name:"Flame",network:"flame",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.flame.astria.org"],webSocket:["wss://ws.flame.astria.org"]}},blockExplorers:{default:{name:"Flame Explorer",url:"https://explorer.flame.astria.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6829148}}}),lme=j({id:14,name:"Flare Mainnet",nativeCurrency:{decimals:18,name:"Flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network",apiUrl:"https://flare-explorer.flare.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3002461}}}),cme=j({id:114,name:"Flare Testnet Coston2",nativeCurrency:{decimals:18,name:"Coston2 Flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network",apiUrl:"https://coston2-explorer.flare.network/api"}},testnet:!0}),ume=j({id:747,name:"Flow EVM Mainnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://mainnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Mainnet Explorer",url:"https://evm.flowscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6205}},blockTime:800}),dme=j({id:646,name:"Flow EVM Previewnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://previewnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Previewnet Explorer",url:"https://previewnet.flowdiver.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6205}},testnet:!0}),fme=j({id:545,name:"Flow EVM Testnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://testnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Flow Diver",url:"https://evm-testnet.flowscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:137518}},testnet:!0,blockTime:800}),pme=j({id:9999999,name:"Fluence",nativeCurrency:{name:"FLT",symbol:"FLT",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.fluence.dev"],webSocket:["wss://ws.mainnet.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.mainnet.fluence.dev",apiUrl:"https://blockscout.mainnet.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:207583}}}),mme=j({id:123420000220,name:"Fluence Stage",nativeCurrency:{name:"tFLT",symbol:"tFLT",decimals:18},rpcUrls:{default:{http:["https://rpc.stage.fluence.dev"],webSocket:["wss://ws.stage.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.stage.fluence.dev",apiUrl:"https://blockscout.stage.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83227}},testnet:!0}),hme=j({id:52164803,name:"Fluence Testnet",nativeCurrency:{name:"tFLT",symbol:"tFLT",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.fluence.dev"],webSocket:["wss://ws.testnet.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.testnet.fluence.dev",apiUrl:"https://blockscout.testnet.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96424}},testnet:!0}),yme=j({id:25363,name:"Fluent",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.fluent.xyz"]}},blockExplorers:{default:{name:"Fluent Explorer",url:"https://fluentscan.xyz"}},testnet:!1}),bme=j({id:20993,name:"Fluent Devnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.devnet.fluent.xyz"]}},blockExplorers:{default:{name:"Fluent Devnet Explorer",url:"https://devnet.fluentscan.xyz"}},testnet:!0}),gme=j({id:20994,name:"Fluent Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.fluent.xyz"]}},blockExplorers:{default:{name:"Fluent Testnet Explorer",url:"https://testnet.fluentscan.xyz"}},testnet:!0}),xu=1,xme=j({id:478,name:"Form Network",nativeCurrency:{decimals:18,name:"Ethereum",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.form.network/http"],webSocket:["wss://rpc.form.network/ws"]}},blockExplorers:{default:{name:"Form Explorer",url:"https://explorer.form.network"}},contracts:{...$e.contracts,addressManager:{[xu]:{address:"0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B"}},l1CrossDomainMessenger:{[xu]:{address:"0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c"}},l2OutputOracle:{[xu]:{address:"0x4ccAAF69F41c5810cA875183648B577CaCf1F67E"}},portal:{[xu]:{address:"0x4E259Ee5F4136408908160dD32295A5031Fa426F"}},l1StandardBridge:{[xu]:{address:"0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:xu}),vme=j({id:984122,name:"Forma",network:"forma",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.forma.art"],webSocket:["wss://ws.forma.art"]}},blockExplorers:{default:{name:"Forma Explorer",url:"https://explorer.forma.art"}},contracts:{multicall3:{address:"0xd53C6FFB123F7349A32980F87faeD8FfDc9ef079",blockCreated:252705}}}),vu=11155111,wme=j({id:132902,name:"Form Testnet",nativeCurrency:{decimals:18,name:"Ethereum",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia-rpc.form.network/http"],webSocket:["wss://sepolia-rpc.form.network/ws"]}},blockExplorers:{default:{name:"Form Testnet Explorer",url:"https://sepolia-explorer.form.network"}},contracts:{...$e.contracts,addressManager:{[vu]:{address:"0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373"}},l1CrossDomainMessenger:{[vu]:{address:"0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa"}},l2OutputOracle:{[vu]:{address:"0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2"}},portal:{[vu]:{address:"0x60377e3cE15dF4CCA24c4beF076b60314240b032"}},l1StandardBridge:{[vu]:{address:"0xD4531f633942b2725896F47cD2aFd260b44Ab1F7"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0,sourceId:vu}),Eme=j({id:80931,name:"Forta Chain",nativeCurrency:{symbol:"FORT",name:"FORT",decimals:18},rpcUrls:{default:{http:["https://rpc-forta-chain-8gj1qndmfc.t.conduit.xyz"]}},blockExplorers:{default:{name:"Forta Explorer",url:"https://explorer.forta.org"}}}),kme=j({id:31337,name:"Foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}}),Sy=1,Cme=j({...$e,id:252,name:"Fraxtal",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.frax.com"]}},blockExplorers:{default:{name:"fraxscan",url:"https://fraxscan.com",apiUrl:"https://api.fraxscan.com/api"}},contracts:{...$e.contracts,l2OutputOracle:{[Sy]:{address:"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Sy]:{address:"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D",blockCreated:19135323}},l1StandardBridge:{[Sy]:{address:"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2",blockCreated:19135323}}},sourceId:Sy}),By=17e3,Ame=j({...$e,id:2522,name:"Fraxtal Testnet",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.frax.com"]}},blockExplorers:{default:{name:"fraxscan testnet",url:"https://holesky.fraxscan.com",apiUrl:"https://api-holesky.fraxscan.com/api"}},contracts:{...$e.contracts,l2OutputOracle:{[By]:{address:"0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[By]:{address:"0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d",blockCreated:318416}},l1StandardBridge:{[By]:{address:"0x0BaafC217162f64930909aD9f2B27125121d6332",blockCreated:318416}}},sourceId:By,testnet:!0}),Pme=1,Tme=j({...$e,id:33979,name:"Funki",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.funkichain.com"]}},blockExplorers:{default:{name:"Funki Mainnet Explorer",url:"https://funkiscan.io"}},contracts:{...$e.contracts},sourceId:Pme}),Sme=11155111,Bme=j({...$e,id:3397901,network:"funkiSepolia",name:"Funki Sepolia Sandbox",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://funki-testnet.alt.technology"]}},blockExplorers:{default:{name:"Funki Sepolia Sandbox Explorer",url:"https://sepolia-sandbox.funkichain.com/"}},testnet:!0,contracts:{...$e.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},sourceId:Sme}),_me=j({id:122,name:"Fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io",apiUrl:"https://explorer.fuse.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:16146628}}}),Ime=j({id:123,name:"Fuse Sparknet",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io",apiUrl:"https://explorer.fusespark.io/api"}}}),Nme=j({id:32659,name:"Fusion Mainnet",nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},rpcUrls:{default:{http:["https://mainnet.fusionnetwork.io"],webSocket:["wss://mainnet.fusionnetwork.io"]}},blockExplorers:{default:{name:"FSNscan",url:"https://fsnscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10441605}},testnet:!1}),Rme=j({id:46688,name:"Fusion Testnet",nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},rpcUrls:{default:{http:["https://testnet.fusionnetwork.io"],webSocket:["wss://testnet.fusionnetwork.io"]}},blockExplorers:{default:{name:"FSNscan",url:"https://testnet.fsnscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10428309}},testnet:!0}),_y=17e3,Ome=j({...$e,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:_y,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"],webSocket:["wss://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}},contracts:{...$e.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[_y]:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{[_y]:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{[_y]:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}}),Mme=j({id:86,name:"GateChain Mainnet",nativeCurrency:{name:"GateChainToken",symbol:"GT",decimals:18},rpcUrls:{default:{http:["https://evm.nodeinfo.cc"],webSocket:["wss://evm-ws.gatenode.cc"]}},blockExplorers:{default:{name:"Gate Scan",url:"https://www.gatescan.org",apiUrl:"https://gatescan.org/api"}},testnet:!1}),Dme=j({id:63157,name:"Geist Mainnet",nativeCurrency:{decimals:18,name:"Aavegotchi GHST Token",symbol:"GHST"},rpcUrls:{default:{http:["https://geist-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://geist-mainnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:660735}}}),Fme=j({id:16507,name:"Genesys Mainnet",nativeCurrency:{decimals:18,name:"GSYS",symbol:"GSYS"},rpcUrls:{default:{http:["https://rpc.genesys.network"]}},blockExplorers:{default:{name:"Genesys Explorer",url:"https://gchainexplorer.genesys.network"}},testnet:!1}),Ume=j({id:685689,name:"Gensyn Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://gensyn-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://gensyn-mainnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),Iy=11155111,Bz=j({...$e,id:91342,network:"giwa-sepolia",name:"GIWA Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://sepolia-rpc.giwa.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-explorer.giwa.io",apiUrl:"https://sepolia-explorer.giwa.io/api"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{[Iy]:{address:"0x37347caB2afaa49B776372279143D71ad1f354F6"}},portal:{[Iy]:{address:"0x956962C34687A954e611A83619ABaA37Ce6bC78A"}},l1StandardBridge:{[Iy]:{address:"0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7"}}},testnet:!0,sourceId:Iy}),jme=j({...Bz,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-rpc-flashblocks.giwa.io"]}}}),Lme=j({id:251,name:"Glide L1 Protocol XP",nativeCurrency:{name:"GLXP",symbol:"GLXP",decimals:18},rpcUrls:{default:{http:["https://rpc-api.glideprotocol.xyz/l1-rpc"],webSocket:["wss://rpc-api.glideprotocol.xyz/l1-rpc"]}},blockExplorers:{default:{name:"Glide Protocol Explore",url:"https://blockchain-explorer.glideprotocol.xyz"}},testnet:!1}),$me=j({id:253,name:"Glide L2 Protocol XP",nativeCurrency:{name:"GLXP",symbol:"GLXP",decimals:18},rpcUrls:{default:{http:["https://rpc-api.glideprotocol.xyz/l2-rpc"],webSocket:["wss://rpc-api.glideprotocol.xyz/l2-rpc"]}},blockExplorers:{default:{name:"Glide Protocol Explore",url:"https://blockchain-explorer.glideprotocol.xyz"}},testnet:!1}),zme=j({id:100,name:"Gnosis",nativeCurrency:{decimals:18,name:"xDAI",symbol:"XDAI"},blockTime:5e3,rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io",apiUrl:"https://api.gnosisscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),Hme=j({id:10200,name:"Gnosis Chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},blockTime:5e3,rpcUrls:{default:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net",apiUrl:"https://blockscout.chiadochain.net/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4967313}},testnet:!0}),Kme=j({id:2345,name:"GOAT",nativeCurrency:{decimals:18,name:"Bitcoin",symbol:"BTC"},rpcUrls:{default:{http:["https://rpc.goat.network"]}},blockExplorers:{default:{name:"Goat Explorer",url:"https://explorer.goat.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),Vme=j({id:1663,name:"Horizen Gobi Testnet",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0}),Gme=j({id:60,name:"GoChain",nativeCurrency:{decimals:18,name:"GO",symbol:"GO"},rpcUrls:{default:{http:["https://rpc.gochain.io"]}},blockExplorers:{default:{name:"GoChain Explorer",url:"https://explorer.gochain.io"}},testnet:!1}),qme=j({id:71402,name:"Godwoken Mainnet",nativeCurrency:{decimals:18,name:"pCKB",symbol:"pCKB"},rpcUrls:{default:{http:["https://v1.mainnet.godwoken.io/rpc"]}},blockExplorers:{default:{name:"GW Scan",url:"https://v1.gwscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:15034}},testnet:!1}),Wme=j({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://5.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),Jme=j({id:440017,name:"Graphite Network",nativeCurrency:{name:"Graphite",symbol:"@G",decimals:18},rpcUrls:{default:{http:["https://anon-entrypoint-1.atgraphite.com"],webSocket:["wss://ws-anon-entrypoint-1.atgraphite.com"]}},blockExplorers:{default:{name:"Graphite Spectre",url:"https://main.atgraphite.com",apiUrl:"https://api.main.atgraphite.com/api"}},testnet:!1}),Zme=j({id:54170,name:"Graphite Network Testnet",nativeCurrency:{name:"Graphite",symbol:"@G",decimals:18},rpcUrls:{default:{http:["https://anon-entrypoint-test-1.atgraphite.com"],webSocket:["wss://ws-anon-entrypoint-test-1.atgraphite.com"]}},blockExplorers:{default:{name:"Graphite Testnet Spectre",url:"https://test.atgraphite.com",apiUrl:"https://api.test.atgraphite.com/api"}},testnet:!0}),Qme=j({id:127001,name:"Gravity",nativeCurrency:{name:"Gravity",symbol:"G",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.gravity.xyz"]}},blockExplorers:{default:{name:"Gravity Mainnet Explorer",url:"https://mainnet-explorer.gravity.xyz",apiUrl:"https://mainnet-explorer.gravity.xyz/api"}},contracts:{},testnet:!1}),Xme=j({id:1625,name:"Gravity Alpha Mainnet",nativeCurrency:{name:"G",symbol:"G",decimals:18},rpcUrls:{default:{http:["https://rpc.gravity.xyz"]}},blockExplorers:{default:{name:"Gravity Explorer",url:"https://explorer.gravity.xyz",apiUrl:"https://explorer.gravity.xyz/api"}},contracts:{multicall3:{address:"0xf8ac4BEB2F75d2cFFb588c63251347fdD629B92c",blockCreated:16851}}}),Yme=j({id:43419,name:"Gunz Mainnet",nativeCurrency:{name:"GUN",symbol:"GUN",decimals:18},rpcUrls:{default:{http:["https://rpc.gunzchain.io/ext/bc/2M47TxWHGnhNtq6pM5zPXdATBtuqubxn5EPFgFmEawCQr9WFML/rpc"]}},blockExplorers:{default:{name:"Gunz Explorer",url:"https://gunzscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:70502}}}),ehe=j({id:260,name:"Guru Network Mainnet",nativeCurrency:{name:"GURU Token",symbol:"GURU",decimals:18},rpcUrls:{default:{http:["https://rpc-main.gurunetwork.ai","https://rpc.gurunetwork.ai/archive/260"]}},blockExplorers:{default:{name:"Guruscan",url:"https://scan.gurunetwork.ai"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:271691}},testnet:!1}),the=j({id:261,name:"Guru Network Testnet",nativeCurrency:{name:"tGURU Token",symbol:"tGURU",decimals:18},rpcUrls:{default:{http:["https://rpc-test.gurunetwork.ai","https://rpc.gurunetwork.ai/archive/261"]}},blockExplorers:{default:{name:"Guruscan",url:"https://sepolia.gurunetwork.ai"}},testnet:!0}),nhe=j({id:5112,name:"Ham",nativeCurrency:{decimals:18,name:"Ham",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.ham.fun"],webSocket:["wss://rpc.ham.fun"]}},blockExplorers:{default:{name:"Ham Chain Explorer",url:"https://explorer.ham.fun",apiUrl:"https://explorer.ham.fun/api/v2"}}}),rhe=j({id:216,name:"Happychain Testnet",nativeCurrency:{symbol:"HAPPY",name:"HAPPY",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.happy.tech/http"],webSocket:["wss://rpc.testnet.happy.tech/ws"]}},blockExplorers:{default:{name:"Happy Chain Testnet Explorer",url:"https://explorer.testnet.happy.tech"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0}),ahe=j({id:11235,name:"HAQQ Mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network",apiUrl:"https://explorer.haqq.network/api"}}}),she=j({id:54211,name:"HAQQ Testedge 2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",apiUrl:"https://explorer.testedge2.haqq.network/api"}},testnet:!0}),ihe=j({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),ohe=j({id:16666e5,name:"Harmony One",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{default:{http:["https://1666600000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}}),lhe=j({id:177,name:"HashKey Chain",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://mainnet.hsk.xyz"]}},blockExplorers:{default:{name:"HashKey Chain Explorer",url:"https://hashkey.blockscout.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),che=j({id:133,name:"HashKey Chain Testnet",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://testnet.hsk.xyz"]}},blockExplorers:{default:{name:"HashKey Chain Testnet explorer",url:"https://testnet-explorer.hsk.xyz"}},testnet:!0}),uhe=j({id:2443,name:"Haus Chain Testnet",nativeCurrency:{decimals:18,name:"Haus",symbol:"HAUS"},rpcUrls:{default:{http:["https://rpc-testnet.hausserver.xyz"]}},blockExplorers:{default:{name:"Haus Chain Testnet Explorer",url:"https://explorer-testnet.hausserver.xyz",apiUrl:"https://explorer-testnet.hausserver.xyz/api"}},testnet:!0}),dhe=j({id:1523903251,name:"Haust Network Testnet",nativeCurrency:{decimals:18,name:"HAUST",symbol:"HAUST"},rpcUrls:{default:{http:["https://rpc-testnet.haust.app"]}},blockExplorers:{default:{name:"Haust Network Testnet Explorer",url:"https://explorer-testnet.haust.app"}},testnet:!0}),fhe=j({id:295,name:"Hedera Mainnet",network:"hedera-mainnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://mainnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/mainnet"}},testnet:!1}),phe=j({id:297,name:"Hedera Previewnet",network:"hedera-previewnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://previewnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/previewnet"}},testnet:!0}),mhe=j({id:296,name:"Hedera Testnet",network:"hedera-testnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://testnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/testnet"}},testnet:!0}),hhe=j({id:8668,name:"Hela Mainnet",nativeCurrency:{name:"HLUSD",symbol:"HLUSD",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.helachain.com"]}},blockExplorers:{default:{name:"Hela explorer",url:"https://mainnet-blockexplorer.helachain.com"}},testnet:!1}),yhe=j({id:42e3,name:"Helios Testnet",network:"helios-testnet",nativeCurrency:{symbol:"HLS",name:"Helios",decimals:18},rpcUrls:{default:{http:["https://testnet1.helioschainlabs.org"]}},blockExplorers:{default:{name:"Helios Testnet Explorer",url:"https://explorer.helioschainlabs.org/"}},testnet:!0}),bhe=j({id:43111,name:"Hemi",network:"Hemi",blockTime:12e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hemi.network/rpc"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.hemi.xyz"}},testnet:!1}),ghe=j({id:743111,name:"Hemi Sepolia",network:"Hemi Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.rpc.hemi.network/rpc"]}},blockExplorers:{default:{name:"Hemi Sepolia explorer",url:"https://testnet.explorer.hemi.xyz"}},testnet:!0}),xhe=j({id:68414,name:"Henesys",nativeCurrency:{name:"NEXPACE",symbol:"NXPC",decimals:18},rpcUrls:{default:{http:["https://henesys-rpc.msu.io"]}},blockExplorers:{default:{name:"Avalanche Explorer",url:"https://subnets.avax.network/henesys"}}}),vhe=j({id:17e3,name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://holesky.etherscan.io",apiUrl:"https://api-holesky.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:4295055}},testnet:!0}),whe=j({id:560048,name:"Hoodi",nativeCurrency:{name:"Hoodi Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hoodi.ethpandaops.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://hoodi.etherscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2589}},testnet:!0}),Ehe=j({id:2651420,name:"Horizen Testnet",network:"horizen-testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://horizen-testnet.rpc.caldera.xyz/http"]}},blockExplorers:{default:{name:"Horizen Testnet Caldera Explorer",url:"https://horizen-testnet.explorer.caldera.xyz"}},testnet:!0}),khe=j({id:269,name:"High Performance Blockchain",nativeCurrency:{name:"HPB",symbol:"HPB",decimals:18},rpcUrls:{default:{http:["https://hpbnode.com"]}},blockExplorers:{default:{name:"hpbScan",url:"https://hscan.org"}},testnet:!1}),Che=j({id:190415,name:"HPP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.hpp.io"],webSocket:["wss://mainnet.hpp.io"]}},blockExplorers:{default:{name:"HPP Mainnet Explorer",url:"https://explorer.hpp.io"}},testnet:!1}),Ahe=j({id:181228,name:"HPP Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.hpp.io"],webSocket:["wss://testnet.hpp.io"]}},blockExplorers:{default:{name:"HPP Sepolia Explorer",url:"https://sepolia-explorer.hpp.io"}},testnet:!0}),Phe=42161,The=j({id:12323,name:"Huddle01 dRTC Chain",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://huddle01.calderachain.xyz/http"],webSocket:["wss://huddle01.calderachain.xyz/ws"]}},blockExplorers:{default:{name:"Huddle01 Caldera Explorer",url:"https://huddle01.calderaexplorer.xyz",apiUrl:"https://huddle01.calderaexplorer.xyz/api"}},sourceId:Phe}),She=421614,Bhe=j({id:2524852,name:"Huddle01 dRTC Chain Testnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://huddle-testnet.rpc.caldera.xyz/http"],webSocket:["wss://huddle-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Huddle01 Caldera Explorer",url:"https://huddle-testnet.explorer.caldera.xyz",apiUrl:"https://huddle-testnet.explorer.caldera.xyz/api"}},sourceId:She,testnet:!0}),_he=j({id:6985385,name:"Humanity",nativeCurrency:{name:"H",symbol:"H",decimals:18},rpcUrls:{default:{http:["https://humanity-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Humanity Mainnet Explorer",url:"https://humanity-mainnet.explorer.alchemy.com",apiUrl:"https://humanity-mainnet.explorer.alchemy.com/api"}},testnet:!1}),Ihe=j({id:7080969,name:"Humanity Testnet",nativeCurrency:{name:"tHP",symbol:"tHP",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.humanity.org"]}},blockExplorers:{default:{name:"Humanity Testnet Explorer",url:"https://humanity-testnet.explorer.alchemy.com",apiUrl:"https://humanity-testnet.explorer.alchemy.com/api"}},testnet:!0}),Nhe=j({id:5234,name:"Humanode",nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},rpcUrls:{default:{http:["https://explorer-rpc-http.mainnet.stages.humanode.io"],webSocket:["wss://explorer-rpc-ws.mainnet.stages.humanode.io"]}},blockExplorers:{default:{name:"Subscan",url:"https://humanode.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4413097}}}),Rhe=j({id:14853,name:"Humanode Testnet 5",nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},rpcUrls:{default:{http:["https://explorer-rpc-http.testnet5.stages.humanode.io"],webSocket:["wss://explorer-rpc-ws.testnet5.stages.humanode.io"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},testnet:!0}),Ohe=j({id:2911,name:"HYCHAIN",nativeCurrency:{name:"HYTOPIA",symbol:"TOPIA",decimals:18},rpcUrls:{default:{http:["https://rpc.hychain.com/http"]}},blockExplorers:{default:{name:"HYCHAIN Explorer",url:"https://explorer.hychain.com"}},testnet:!1}),Mhe=j({id:29112,name:"HYCHAIN Testnet",nativeCurrency:{name:"HYTOPIA",symbol:"TOPIA",decimals:18},rpcUrls:{default:{http:["https://rpc.hychain.com/http"]}},blockExplorers:{default:{name:"HYCHAIN Explorer",url:"https://testnet-rpc.hychain.com/http"}},testnet:!0}),eN=j({id:999,name:"HyperEVM",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},blockExplorers:{default:{name:"HyperEVMScan",url:"https://hyperevmscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13051}},rpcUrls:{default:{http:["https://rpc.hyperliquid.xyz/evm"]}},testnet:!1}),Dhe=j({id:998,name:"Hyperliquid EVM Testnet",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},rpcUrls:{default:{http:["https://rpc.hyperliquid-testnet.xyz/evm"]}},testnet:!0}),Fhe=j({id:7847,name:"HyveChain",nativeCurrency:{name:"HYVE",symbol:"HYVE",decimals:18},rpcUrls:{default:{http:["https://rpc.hyvechain.com"],webSocket:["wss://ws.hyvechain.com"]}},blockExplorers:{default:{name:"HyveChain Explorer",url:"https://explorer.hyvechain.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4090846}},testnet:!1}),Uhe=j({id:73115,name:"ICB Network",nativeCurrency:{decimals:18,name:"ICB Native Token",symbol:"ICBX"},rpcUrls:{default:{http:["https://rpc1-mainnet.icbnetwork.info"]}},blockExplorers:{default:{name:"ICB Explorer",url:"https://icbscan.io",apiUrl:"https://icbscan.io/api"}},testnet:!1}),jhe=j({id:74,name:"IDChain Mainnet",nativeCurrency:{decimals:18,name:"EIDI",symbol:"EIDI"},rpcUrls:{default:{http:["https://idchain.one/rpc"],webSocket:["wss://idchain.one/ws"]}},blockExplorers:{default:{name:"IDChain Explorer",url:"https://explorer.idchain.one"}},testnet:!1}),Lhe=j({id:38833,name:"Igra Network",nativeCurrency:{decimals:18,name:"iKAS",symbol:"iKAS"},rpcUrls:{default:{http:["https://rpc.igralabs.com:8545"]}},blockExplorers:{default:{name:"Igra Explorer",url:"https://explorer.igralabs.com"}},testnet:!1}),$he=j({id:13371,name:"Immutable zkEVM",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.immutable.com"]}},blockExplorers:{default:{name:"Immutable Explorer",url:"https://explorer.immutable.com",apiUrl:"https://explorer.immutable.com/api"}},contracts:{multicall3:{address:"0x236bdA4589e44e6850f5aC6a74BfCa398a86c6c0",blockCreated:4335972}}}),zhe=j({id:13473,name:"Immutable zkEVM Testnet",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.testnet.immutable.com"]}},blockExplorers:{default:{name:"Immutable Testnet Explorer",url:"https://explorer.testnet.immutable.com/"}},contracts:{multicall3:{address:"0x2CC787Ed364600B0222361C4188308Fa8E68bA60",blockCreated:5977391}},testnet:!0}),Hhe=j({id:2525,name:"inEVM Mainnet",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://mainnet.rpc.inevm.com/http"]}},blockExplorers:{default:{name:"inEVM Explorer",url:"https://inevm.calderaexplorer.xyz",apiUrl:"https://inevm.calderaexplorer.xyz/api/v2"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:118606}}}),Khe=j({id:7233,name:"InitVerse Mainnet",nativeCurrency:{decimals:18,name:"InitVerse",symbol:"INI"},rpcUrls:{default:{http:["https://rpc-mainnet.inichain.com"]}},blockExplorers:{default:{name:"InitVerseScan",url:"https://www.iniscan.com",apiUrl:"https://explorer-api.inichain.com/api"}},contracts:{multicall3:{address:"0x83466BE48A067115FFF91f7b892Ed1726d032e47",blockCreated:2318}}}),Vhe=j({id:7234,name:"InitVerse Genesis Testnet",nativeCurrency:{decimals:18,name:"InitVerse",symbol:"INI"},rpcUrls:{default:{http:["https://rpc-testnet.inichain.com"]}},blockExplorers:{default:{name:"InitVerseGenesisScan",url:"https://genesis-testnet.iniscan.com",apiUrl:"https://explorer-testnet-api.inichain.com/api"}},contracts:{multicall3:{address:"0x0cF32CBDd6c437331EA4f85ed2d881A5379B5a6F",blockCreated:16361}},testnet:!0}),Ghe=j({id:1776,name:"Injective",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://sentry.evm-rpc.injective.network"],webSocket:["wss://sentry.evm-ws.injective.network"]}},blockExplorers:{default:{name:"Injective Explorer",url:"https://blockscout.injective.network",apiUrl:"https://blockscout.injective.network/api"}},testnet:!1}),qhe=j({id:1439,name:"Injective Testnet",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://k8s.testnet.json-rpc.injective.network"],webSocket:["wss://k8s.testnet.ws.injective.network"]}},blockExplorers:{default:{name:"Injective Explorer",url:"https://testnet.blockscout.injective.network",apiUrl:"https://testnet.blockscout.injective.network/api"}},testnet:!0}),Ny=1,Whe=j({...$e,id:57073,name:"Ink",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel.inkonchain.com","https://rpc-qnd.inkonchain.com"],webSocket:["wss://rpc-gel.inkonchain.com","wss://rpc-qnd.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.inkonchain.com",apiUrl:"https://explorer.inkonchain.com/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},...$e.contracts,disputeGameFactory:{[Ny]:{address:"0x10d7b35078d3baabb96dd45a9143b94be65b12cd"}},portal:{[Ny]:{address:"0x5d66c1782664115999c47c9fa5cd031f495d3e4f"}},l1StandardBridge:{[Ny]:{address:"0x88ff1e5b602916615391f55854588efcbb7663f0"}}},testnet:!1,sourceId:Ny}),Ry=11155111,Jhe=j({...$e,id:763373,name:"Ink Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel-sepolia.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer-sepolia.inkonchain.com/",apiUrl:"https://explorer-sepolia.inkonchain.com/api/v2"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{[Ry]:{address:"0x860e626c700af381133d9f4af31412a2d1db3d5d"}},portal:{[Ry]:{address:"0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7"}},l1StandardBridge:{[Ry]:{address:"0x33f60714bbd74d62b66d79213c348614de51901c"}}},testnet:!0,sourceId:Ry}),Zhe=j({id:8822,name:"IOTA EVM",network:"iotaevm",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://json-rpc.evm.iotaledger.net"],webSocket:["wss://ws.json-rpc.evm.iotaledger.net"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.evm.iota.org",apiUrl:"https://explorer.evm.iota.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:25022}}}),Qhe=j({id:1075,name:"IOTA EVM Testnet",network:"iotaevm-testnet",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.iotaledger.net"],webSocket:["wss://ws.json-rpc.evm.testnet.iotaledger.net"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.evm.testnet.iotaledger.net",apiUrl:"https://explorer.evm.testnet.iotaledger.net/api"}},testnet:!0}),Xhe=j({id:4689,name:"IoTeX",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:22163670}}}),Yhe=j({id:4690,name:"IoTeX Testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}},contracts:{multicall3:{address:"0xb5cecD6894c6f473Ec726A176f1512399A2e355d",blockCreated:24347592}},testnet:!0}),eye=j({id:8017,name:"iSunCoin Mainnet",nativeCurrency:{decimals:18,name:"ISC",symbol:"ISC"},rpcUrls:{default:{http:["https://mainnet.isuncoin.com"]}},blockExplorers:{default:{name:"iSunCoin Explorer",url:"https://baifa.io/app/chains/8017"}}}),tye=j({id:680,name:"Jasmy Chain",network:"jasmyChain",nativeCurrency:{name:"JasmyCoin",symbol:"JASMY",decimals:18},rpcUrls:{default:{http:["https://rpc.jasmychain.io"],webSocket:["wss://rpc.jasmychain.io"]}},testnet:!1}),nye=j({id:681,name:"Jasmy Chain Testnet",network:"jasmyChainTestnet",nativeCurrency:{name:"JasmyCoin",symbol:"JASMY",decimals:18},rpcUrls:{default:{http:["https://rpc_testnet.jasmychain.io"],webSocket:["wss://rpc_testnet.jasmychain.io"]}},testnet:!0}),rye=j({id:8899,name:"JB Chain",network:"jbc",nativeCurrency:{name:"JBC",symbol:"JBC",decimals:18},rpcUrls:{default:{http:["https://rpc-l1.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-l1.jibchain.net",apiUrl:"https://exp-l1.jibchain.net/api"}},contracts:{multicall3:{address:"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC",blockCreated:2299048}},testnet:!1}),aye=j({id:88991,name:"Jibchain Testnet",nativeCurrency:{name:"tJBC",symbol:"tJBC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp.testnet.jibchain.net",apiUrl:"https://exp.testnet.jibchain.net/api"}},contracts:{multicall3:{address:"0xa1a858ad9041B4741e620355a3F96B3c78e70ecE",blockCreated:32848}},testnet:!0}),sye=j({id:81,name:"Japan Open Chain Mainnet",nativeCurrency:{decimals:18,name:"Japan Open Chain Token",symbol:"JOC"},rpcUrls:{default:{http:["https://rpc-1.japanopenchain.org:8545","https://rpc-2.japanopenchain.org:8545","https://rpc-3.japanopenchain.org"]}},blockExplorers:{default:{name:"Block Explorer",url:"https://explorer.japanopenchain.org"}},testnet:!1}),iye=j({id:10081,name:"Japan Open Chain Testnet",nativeCurrency:{decimals:18,name:"Japan Open Chain Testnet Token",symbol:"JOCT"},rpcUrls:{default:{http:["https://rpc-1.testnet.japanopenchain.org:8545","https://rpc-2.testnet.japanopenchain.org:8545","https://rpc-3.testnet.japanopenchain.org"]}},blockExplorers:{default:{name:"Testnet Block Explorer",url:"https://explorer.testnet.japanopenchain.org"}},testnet:!0}),oye=j({id:5734951,name:"Jovay Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.jovay.io"]}},blockExplorers:{default:{name:"Jovay Explorer",url:"https://explorer.jovay.io/l2"}},testnet:!1}),lye=j({id:2019775,name:"Jovay Sepolia Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://api.zan.top/public/jovay-testnet"]}},blockExplorers:{default:{name:"Jovay Testnet Explorer",url:"https://sepolia-explorer.jovay.io/l2"}},testnet:!0}),cye=j({id:45003,name:"Juneo JUNE-Chain",nativeCurrency:{decimals:18,name:"JUNE-Chain",symbol:"JUNE"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/JUNE/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/2",apiUrl:"https://juneoscan.io/chain/2/api"}}}),uye=j({id:45013,name:"Juneo BCH1-Chain",nativeCurrency:{decimals:18,name:"Juneo BCH1-Chain",symbol:"BCH1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/BCH1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/12",apiUrl:"https://juneoscan.io/chain/12/api"}}}),dye=j({id:45004,name:"Juneo DAI1-Chain",nativeCurrency:{decimals:18,name:"Juneo DAI1-Chain",symbol:"DAI1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/DAI1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/5",apiUrl:"https://juneoscan.io/chain/5/api"}}}),fye=j({id:45010,name:"Juneo DOGE1-Chain",nativeCurrency:{decimals:18,name:"Juneo DOGE1-Chain",symbol:"DOGE1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/DOGE1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/10",apiUrl:"https://juneoscan.io/chain/10/api"}}}),pye=j({id:45011,name:"Juneo EUR1-Chain",nativeCurrency:{decimals:18,name:"Juneo EUR1-Chain",symbol:"EUR1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/EUR1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/6",apiUrl:"https://juneoscan.io/chain/6/api"}}}),mye=j({id:45008,name:"Juneo GLD1-Chain",nativeCurrency:{decimals:18,name:"Juneo GLD1-Chain",symbol:"GLD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/GLD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/8",apiUrl:"https://juneoscan.io/chain/8/api"}}}),hye=j({id:45014,name:"Juneo LINK1-Chain",nativeCurrency:{decimals:18,name:"Juneo LINK1-Chain",symbol:"LINK1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/LINK1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/13",apiUrl:"https://juneoscan.io/chain/13/api"}}}),yye=j({id:45009,name:"Juneo LTC1-Chain",nativeCurrency:{decimals:18,name:"Juneo LTC1-Chain",symbol:"LTC1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/LTC1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/11",apiUrl:"https://juneoscan.io/chain/11/api"}}}),bye=j({id:45007,name:"Juneo mBTC1-Chain",nativeCurrency:{decimals:18,name:"Juneo mBTC1-Chain",symbol:"mBTC1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/mBTC1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/9",apiUrl:"https://juneoscan.io/chain/9/api"}}}),gye=j({id:45012,name:"Juneo SGD1-Chain",nativeCurrency:{decimals:18,name:"Juneo SGD1-Chain",symbol:"SGD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/SGD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/7",apiUrl:"https://juneoscan.io/chain/7/api"}}}),xye=j({id:101003,name:"Socotra JUNE-Chain",nativeCurrency:{decimals:18,name:"Socotra JUNE-Chain",symbol:"JUNE"},rpcUrls:{default:{http:["https://rpc.socotra-testnet.network/ext/bc/JUNE/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://socotra.juneoscan.io/chain/2",apiUrl:"https://socotra.juneoscan.io/chain/2/api"}},testnet:!0}),vye=j({id:45006,name:"Juneo USD1-Chain",nativeCurrency:{decimals:18,name:"Juneo USD1-Chain",symbol:"USD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/USD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/4",apiUrl:"https://juneoscan.io/chain/4/api"}}}),wye=j({id:45005,name:"Juneo USDT1-Chain",nativeCurrency:{decimals:18,name:"Juneo USDT1-Chain",symbol:"USDT1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/USDT1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/3",apiUrl:"https://juneoscan.io/chain/3/api"}}}),Eye=j({id:8217,name:"Kaia",nativeCurrency:{decimals:18,name:"Kaia",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScan",url:"https://kaiascan.io",apiUrl:"https://api-cypress.klaytnscope.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),kye=j({id:1001,name:"Kairos Testnet",network:"kairos",nativeCurrency:{decimals:18,name:"Kairos KAIA",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en-kairos.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScan",url:"https://kairos.kaiascan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),Cye=j({id:1802203764,name:"Kakarot Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0}),Aye=j({id:920637907288165,name:"Kakarot Starknet Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0}),Pye=j({id:24,name:"KardiaChain Mainnet",nativeCurrency:{name:"KAI",symbol:"KAI",decimals:18},rpcUrls:{default:{http:["https://rpc.kardiachain.io"]}},blockExplorers:{default:{name:"KardiaChain Explorer",url:"https://explorer.kardiachain.io"}},testnet:!1}),Tye=j({id:686,name:"Karura",network:"karura",nativeCurrency:{name:"Karura",symbol:"KAR",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]}},blockExplorers:{default:{name:"Karura Blockscout",url:"https://blockscout.karura.network",apiUrl:"https://blockscout.karura.network/api"}},testnet:!1}),Sye=j({id:747474,name:"Katana",network:"katana",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katana.network"]}},blockExplorers:{default:{name:"katana explorer",url:"https://katanascan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1}),Bye=j({id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com",apiUrl:"https://kavascan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1}),_ye=j({id:2221,name:"Kava EVM Testnet",network:"kava-testnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.testnet.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Testnet Explorer",url:"https://testnet.kavascan.com/",apiUrl:"https://testnet.kavascan.com/api"}},contracts:{multicall3:{address:"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6",blockCreated:7242179}},testnet:!0}),Iye=j({id:321,name:"KCC Mainnet",network:"KCC Mainnet",nativeCurrency:{decimals:18,name:"KCS",symbol:"KCS"},rpcUrls:{default:{http:["https://kcc-rpc.com"]}},blockExplorers:{default:{name:"KCC Explorer",url:"https://explorer.kcc.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11760430}},testnet:!1}),Nye=j({id:1783,name:"KiiChain",network:"kii-chain",nativeCurrency:{name:"Kii",symbol:"KII",decimals:18},rpcUrls:{default:{http:["https://json-rpc.kiivalidator.com"]}},blockExplorers:{default:{name:"KiiExplorer",url:"https://explorer.kiichain.io"}}}),Rye=j({id:1336,name:"Kii Testnet Oro",network:"kii-testnet-oro",nativeCurrency:{name:"Kii",symbol:"KII",decimals:18},rpcUrls:{default:{http:["https://json-rpc.uno.sentry.testnet.v3.kiivalidator.com"]}},blockExplorers:{default:{name:"KiiExplorer",url:"https://testnet.explorer.kiichain.io"}},testnet:!0}),Oye=j({id:7887,name:"Kinto Mainnet",network:"Kinto Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.kinto.xyz/http"]}},blockExplorers:{default:{name:"Kinto Explorer",url:"https://explorer.kinto.xyz"}},testnet:!1}),Mye=j({id:8217,name:"Klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-cypress.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),Dye=j({id:1001,name:"Klaytn Baobab Testnet",network:"klaytn-baobab",nativeCurrency:{decimals:18,name:"Baobab Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-baobab.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),Fye=j({id:701,name:"Koi Network",nativeCurrency:{decimals:18,name:"Koi Network Native Token",symbol:"KRING"},rpcUrls:{default:{http:["https://koi-rpc.darwinia.network"],webSocket:["wss://koi-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://koi-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:180001}},testnet:!0}),Uye=j({id:255,name:"Kroma",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.kroma.network"]}},blockExplorers:{default:{name:"Kroma Explorer",url:"https://blockscout.kroma.network",apiUrl:"https://blockscout.kroma.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:16054868}},testnet:!1}),jye=j({id:2358,name:"Kroma Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.sepolia.kroma.network"]}},blockExplorers:{default:{name:"Kroma Sepolia Explorer",url:"https://blockscout.sepolia.kroma.network",apiUrl:"https://blockscout.sepolia.kroma.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:8900914}},testnet:!0}),Lye=j({id:1983,name:"Krown",nativeCurrency:{decimals:18,name:"Krown",symbol:"KROWN"},rpcUrls:{default:{http:["https://mainnet.krown.network"]}},blockExplorers:{default:{name:"Krown Explorer",url:"https://explorer.krown.network"}},testnet:!1}),$ye=j({id:12324,name:"L3X Protocol",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.l3x.com"],webSocket:["wss://rpc-mainnet.l3x.com"]}},blockExplorers:{default:{name:"L3X Mainnet Explorer",url:"https://explorer.l3x.com",apiUrl:"https://explorer.l3x.com/api/v2"}},testnet:!1}),zye=j({id:12325,name:"L3X Protocol Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.l3x.com"],webSocket:["wss://rpc-testnet.l3x.com"]}},blockExplorers:{default:{name:"L3X Testnet Explorer",url:"https://explorer-testnet.l3x.com",apiUrl:"https://explorer-testnet.l3x.com/api/v2"}},testnet:!0}),Hye=j({id:589,name:"LadyChain",nativeCurrency:{name:"Lady",symbol:"LADY",decimals:18},rpcUrls:{default:{http:["https://ladyrpc.us/rpc"]}},blockExplorers:{default:{name:"LadyScan",url:"https://ladyscan.us"}},testnet:!1}),Kye=j({id:360890,name:"LAVITA Mainnet",nativeCurrency:{name:"vTFUEL",symbol:"vTFUEL",decimals:18},rpcUrls:{default:{http:["https://tsub360890-eth-rpc.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"LAVITA Explorer",url:"https://tsub360890-explorer.thetatoken.org"}},testnet:!1}),Vye=j({id:232,name:"Lens",nativeCurrency:{name:"GHO",symbol:"GHO",decimals:18},rpcUrls:{default:{http:["https://rpc.lens.xyz"]}},blockExplorers:{default:{name:"Lens Block Explorer",url:"https://explorer.lens.xyz",apiUrl:"https://explorer.lens.xyz/api"}}}),Gye=j({id:37111,name:"Lens Testnet",nativeCurrency:{name:"GRASS",symbol:"GRASS",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.lens.dev"],webSocket:["wss://rpc.testnet.lens.dev/ws"]}},blockExplorers:{default:{name:"Lens Block Explorer",url:"https://block-explorer.testnet.lens.dev",apiUrl:"https://block-explorer-api.staging.lens.dev/api"}},testnet:!0}),qye=j({id:21363,name:"Lestnet",nativeCurrency:{name:"Lestnet Ether",symbol:"LETH",decimals:18},rpcUrls:{default:{http:["https://service.lestnet.org"]}},blockExplorers:{default:{name:"Lestnet Explorer",url:"https://explore.lestnet.org"}},testnet:!0}),Wye=j({id:1891,name:"LightLink Pegasus Testnet",network:"lightlink-pegasus",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.pegasus.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Pegasus Explorer",url:"https://pegasus.lightlink.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:127188532}},testnet:!0}),Jye=j({id:1890,name:"LightLink Phoenix Mainnet",network:"lightlink-phoenix",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.phoenix.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Phoenix Explorer",url:"https://phoenix.lightlink.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:125499184}},testnet:!1});function nn(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}class Mm extends Oe{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
100`),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class vw extends Oe{constructor({docsPath:t,metaMessages:n,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:t,metaMessages:n,name:"AccountTypeNotSupportedError"})}}const Zye={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},_z={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},Qye={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function ms(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new dbe(e.type);return`${e.name}(${K1(e.inputs,{includeName:t})})`}function K1(e,{includeName:t=!1}={}){return e?e.map(n=>Xye(n,{includeName:t})).join(t?", ":","):""}function Xye(e,{includeName:t}){return e.type.startsWith("tuple")?`(${K1(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}class Yye extends Oe{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
101`),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class tN extends Oe{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
102`),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class Iz extends Oe{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`
103`),{metaMessages:[`Params: (${K1(n,{includeName:!0})})`,`Data:   ${t} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=n,this.size=r}}class Dm extends Oe{constructor({cause:t}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:t})}}class ebe extends Oe{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(`
104`),{name:"AbiEncodingArrayLengthMismatchError"})}}class tbe extends Oe{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${wn(n)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class nbe extends Oe{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(`
105`),{name:"AbiEncodingLengthMismatchError"})}}class rbe extends Oe{constructor(t,{docsPath:n}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`
106`),{docsPath:n,name:"AbiErrorInputsNotFoundError"})}}class nN extends Oe{constructor(t,{docsPath:n}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
107`),{docsPath:n,name:"AbiErrorNotFoundError"})}}class Nz extends Oe{constructor(t,{docsPath:n,cause:r}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`
108`),{docsPath:n,name:"AbiErrorSignatureNotFoundError",cause:r}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class abe extends Oe{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class sbe extends Oe{constructor(t,{docsPath:n}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`
109`),{docsPath:n,name:"AbiEventSignatureNotFoundError"})}}class rN extends Oe{constructor(t,{docsPath:n}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
110`),{docsPath:n,name:"AbiEventNotFoundError"})}}class qu extends Oe{constructor(t,{docsPath:n}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
111`),{docsPath:n,name:"AbiFunctionNotFoundError"})}}class Rz extends Oe{constructor(t,{docsPath:n}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`
112`),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}}class ibe extends Oe{constructor(t,{docsPath:n}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`
113`),{docsPath:n,name:"AbiFunctionSignatureNotFoundError"})}}class obe extends Oe{constructor(t,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${ms(t.abiItem)}\`, and`,`\`${n.type}\` in \`${ms(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}let lbe=class extends Oe{constructor({expectedSize:t,givenSize:n}){super(`Expected bytes${t}, got bytes${n}.`,{name:"BytesSizeMismatchError"})}};class Vb extends Oe{constructor({abiItem:t,data:n,params:r,size:a}){super([`Data size of ${a} bytes is too small for non-indexed event parameters.`].join(`
114`),{metaMessages:[`Params: (${K1(r,{includeName:!0})})`,`Data:   ${n} (${a} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=n,this.params=r,this.size=a}}class LE extends Oe{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${ms(t,{includeName:!0})}".`].join(`
115`),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class cbe extends Oe{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
116`),{docsPath:n,name:"InvalidAbiEncodingType"})}}class ube extends Oe{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
117`),{docsPath:n,name:"InvalidAbiDecodingType"})}}let Oz=class extends Oe{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
118`),{name:"InvalidArrayError"})}};class dbe extends Oe{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
119`),{name:"InvalidDefinitionTypeError"})}}const fbe=e=>Wn(Mi(e));function pbe(e){return fbe(e)}const mbe="1.2.3";
119let Wa=class t3 extends Error{constructor(t,n={}){var i;const r=n.cause instanceof t3?n.cause.details:(i=n.cause)!=null&&i.message?n.cause.message:n.details,a=n.cause instanceof t3&&n.cause.docsPath||n.docsPath,s=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${mbe}`].join(`
120`);super(s),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.shortMessage=t}};function Gi(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const Mz=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Dz=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Fz=/^\(.+?\).*?$/,aN=/^tuple(?<array>(\[(\d*)\])*)$/;function n3(e){let t=e.type;if(aN.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let a=0;a<n;a++){const s=e.components[a];t+=n3(s),a<n-1&&(t+=", ")}const r=Gi(aN,e.type);return t+=`)${(r==null?void 0:r.array)||""}`,n3({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function Vp(e){let t="";const n=e.length;for(let r=0;r<n;r++){const a=e[r];t+=n3(a),r!==n-1&&(t+=", ")}return t}function hbe(e){var t;return e.type==="function"?`function ${e.name}(${Vp(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${Vp(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${Vp(e.inputs)})`:e.type==="error"?`error ${e.name}(${Vp(e.inputs)})`:e.type==="constructor"?`constructor(${Vp(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}const Uz=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function ybe(e){return Uz.test(e)}function bbe(e){return Gi(Uz,e)}const jz=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function gbe(e){return jz.test(e)}function xbe(e){return Gi(jz,e)}const Lz=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function vbe(e){return Lz.test(e)}function wbe(e){return Gi(Lz,e)}const $z=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function zz(e){return $z.test(e)}function Ebe(e){return Gi($z,e)}const Hz=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function kbe(e){return Hz.test(e)}function Cbe(e){return Gi(Hz,e)}const Kz=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function Abe(e){return Kz.test(e)}function Pbe(e){return Gi(Kz,e)}const Tbe=/^receive\(\) external payable$/;function Sbe(e){return Tbe.test(e)}const Bbe=new Set(["indexed"]),r3=new Set(["calldata","memory","storage"]);let _be=class extends Wa{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}},Ibe=class extends Wa{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}},Nbe=class extends Wa{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}},Rbe=class extends Wa{constructor({param:t,name:n}
vendor: 4,306 bytes, line 120
120){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}},Obe=class extends Wa{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}},Mbe=class extends Wa{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}},Dbe=class extends Wa{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}},gd=class extends Wa{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}},Fbe=class extends Wa{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}},Ube=class extends Wa{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}},jbe=class extends Wa{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}},Lbe=class extends Wa{constructor({current:t,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}};function $be(e,t,n){let r="";if(n)for(const a of Object.entries(n)){if(!a)continue;let s="";for(const i of a[1])s+=`[${i.type}${i.name?`:${i.name}`:""}]`;r+=`(${a[0]}{${s}})`}return t?`${t}:${e}${r}`:`${e}${r}`}const ww=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);
120function zbe(e,t={}){if(vbe(e))return Hbe(e,t);if(gbe(e))return Kbe(e,t);if(ybe(e))return Vbe(e,t);if(kbe(e))return Gbe(e,t);if(Abe(e))return qbe(e);if(Sbe(e))return{type:"receive",stateMutability:"payable"};throw new Fbe({signature:e})}function Hbe(e,t={}){const n=wbe(e);if(!n)throw new gd({signature:e,type:"function"});const r=us(n.parameters),a=[],s=r.length;for(let l=0;l<s;l++)a.push(gc(r[l],{modifiers:r3,structs:t,type:"function"}));const i=[];if(n.returns){const l=us(n.returns),c=l.length;for(let u=0;u<c;u++)i.push(gc(l[u],{modifiers:r3,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:i}}function Kbe(e,t={}){const n=xbe(e);if(!n)throw new gd({signature:e,type:"event"});const r=us(n.parameters),a=[],s=r.length;for(let i=0;i<s;i++)a.push(gc(r[i],{modifiers:Bbe,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:a}}function Vbe(e,t={}){const n=bbe(e);if(!n)throw new gd({signature:e,type:"error"});const r=us(n.parameters),a=[],s=r.length;for(let i=0;i<s;i++)a.push(gc(r[i],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:a}}function Gbe(e,t={}){const n=Cbe(e);if(!n)throw new gd({signature:e,type:"constructor"});const r=us(n.parameters),a=[],s=r.length;for(let i=0;i<s;i++)a.push(gc(r[i],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}function qbe(e){const t=Pbe(e);if(!t)throw new gd({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}const Wbe=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Jbe=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Zbe=/^u?int$/;function gc(e,t){var p,m;const n=$be(e,t==null?void 0:t.type,t==null?void 0:t.structs);if(ww.has(n))return ww.get(n);const r=Fz.test(e),a=Gi(r?Jbe:Wbe,e);if(!a)throw new Nbe({param:e});if(a.name&&Xbe(a.name))throw new Rbe({param:e,name:a.name});const s=a.name?{name:a.name}:{},i=a.modifier==="indexed"?{indexed:!0}:{},l=(t==null?void 0:t.structs)??{};let c,u={};if(r){c="tuple";const h=us(a.type),y=[],x=h.length;for(let C=0;C<x;C++)y.push(gc(h[C],{structs:l}));u={components:y}}else if(a.type in l)c="tuple",u={components:l[a.type]};else if(Zbe.test(a.type))c=`${a.type}256`;else if(a.type==="address payable")c="address";else if(c=a.type,(t==null?void 0:t.type)!=="struct"&&!Vz(c))throw new Ibe({type:c});if(a.modifier){if(!((m=(p=t==null?void 0:t.modifiers)==null?void 0:p.has)!=null&&m.call(p,a.modifier)))throw new Obe({param:e,type:t==null?void 0:t.type,modifier:a.modifier});if(r3.has(a.modifier)&&!Ybe(c,!!a.array))throw new Mbe({param:e,type:t==null?void 0:t.type,modifier:a.modifier})}const f={type:`${c}${a.array??""}`,...s,...i,...u};return ww.set(n,f),f}function us(e,t=[],n="",r=0){const a=e.trim().length;for(let s=0;s<a;s++){const i=e[s],l=e.slice(s+1);switch(i){case",":return r===0?us(l,[...t,n.trim()]):us(l,t,`${n}${i}`,r);case"(":return us(l,t,`${n}${i}`,r+1);case")":return us(l,t,`${n}${i}`,r-1);default:return us(l,t,`${n}${i}`,r)}}if(n==="")return t;if(r!==0)throw new Lbe({current:n,depth:r});return t.push(n.trim()),t}function Vz(e){return e==="address"||e==="bool"||e==="function"||e==="string"||Mz.test(e)||Dz.test(e)}const Qbe=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function Xbe(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||Mz.test(e)||Dz.test(e)||Qbe.test(e)}function Ybe(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function e1e(e){const t={},n=e.length;for(let i=0;i<n;i++){const l=e[i];if(!zz(l))continue;const c=Ebe(l);if(!c)throw new gd({signature:l,type:"struct"});const u=c.properties.split(";"),f=[],p=u.length;for(let m=0;m<p;m++){const y=u[m].trim();if(!y)continue;const x=gc(y,{type:"struct"});f.push(x)}if(!f.length)throw new Ube({signature:l});t[c.name]=f}const r={},a=Object.entries(t),s=a.length;for(let i=0;i<s;i++){const[l,c]=a[i];r[l]=Gz(c,t)}return r}const t1e=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function Gz(e=[],t={},n=new Set){const r=[],a=e.length;for(let s=0;s<a;s++){const i=e[s];if(Fz.test(i.type))r.push(i);else{const c=Gi(t1e,i.type);if(!(c!=null&&c.type))throw new Dbe({abiParameter:i});const{array:u,type:f}=c;if(f in t){if(n.has(f))throw new jbe({type:f});r.push({...i,type:`tuple${u??""}`,components:Gz(t[f],t,new Set([...n,f]))})}else if(Vz(f))r.push(i);else throw new _be({type:f})}}return r}function qz(e){const t=e1e(e),n=[],r=e.length;for(let a=0;a<r;a++){const s=e[a];zz(s)||n.push(zbe(s,t))}return n}function n1e(e){let t=!0,n="",r=0,a="",s=!1;for(let i=0;i<e.length;i++){const l=e[i];if(["(",")",","].includes(l)&&(t=!0),l==="("&&r++,l===")"&&r--,!!t){if(r===0){if(l===" "&&["event","function",""].includes(a))a="";else if(a+=l,l===")"){s=!0;break}continue}if(l===" "){e[i-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}a+=l,n+=l}}if(!s)throw new Oe("Unable to normalize signature.");return a}const r1e=e=>{const t=typeof e=="string"?e:hbe(e);return n1e(t)};function Wz(e){return pbe(r1e(e))}const Fm=e=>Ro(Wz(e),0,4);function a1e(e,t={}){typeof t.size<"u"&&Es(e,{size:t.size});const n=Nn(e);return Pt(n,t)}function s1e(e,t={}){let n=e;if(typeof t.size<"u"&&(Es(n,{size:t.size}),n=na(n)),n.length>1||n[0]>1)throw new hce(n);return!!n[0]}function Di(e,t={}){typeof t.size<"u"&&Es(e,{size:t.size});const n=Nn(e);return Pn(n,t)}function i1e(e,t={}){let n=e;return typeof t.size<"u"&&(Es(n,{size:t.size}),n=na(n,{dir:"right"})),new TextDecoder().decode(n)}const o1e=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Jz=/^(u?int)(8|
12016|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Fc(e,t){if(e.length!==t.length)throw new nbe({expectedLength:e.length,givenLength:t.length});const n=l1e({params:e,values:t});return zE(n)}function l1e({params:e,values:t}){const n=[];for(let r=0;r<e.length;r++)n.push($E({param:e[r],value:t[r]}));return n}function $E({param:e,value:t}){const n=V1(e.type);if(n){const[r,a]=n;return u1e(t,{length:r,param:{...e,type:a}})}if(e.type==="tuple")return h1e(t,{param:e});if(e.type==="address")return c1e(t);if(e.type==="bool")return f1e(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const r=e.type.startsWith("int"),[,,a="256"]=Jz.exec(e.type)??[];return p1e(t,{signed:r,size:Number(a)})}if(e.type.startsWith("bytes"))return d1e(t,{param:e});if(e.type==="string")return m1e(t);throw new cbe(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function zE(e){let t=0;for(let s=0;s<e.length;s++){const{dynamic:i,encoded:l}=e[s];i?t+=32:t+=wn(l)}const n=[],r=[];let a=0;for(let s=0;s<e.length;s++){const{dynamic:i,encoded:l}=e[s];i?(n.push(nt(t+a,{size:32})),r.push(l),a+=wn(l)):n.push(l)}return Zn([...n,...r])}function c1e(e){if(!dn(e))throw new Ln({address:e});return{dynamic:!1,encoded:Ds(e.toLowerCase())}}function u1e(e,{length:t,param:n}){const r=t===null;if(!Array.isArray(e))throw new Oz(e);if(!r&&e.length!==t)throw new ebe({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let a=e.length===0&&a3(n);const s=[];for(let i=0;i<e.length;i++){const l=$E({param:n,value:e[i]});l.dynamic&&(a=!0),s.push(l)}if(r||a){const i=zE(s);if(r){const l=nt(s.length,{size:32});return{dynamic:!0,encoded:Zn([l,i])}}if(a)return{dynamic:!0,encoded:i}}return{dynamic:!1,encoded:Zn(s.map(({encoded:i})=>i))}}function d1e(e,{param:t}){const[,n]=t.type.split("bytes"),r=wn(e);if(!n){let a=e;return r%32!==0&&(a=Ds(a,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Zn([Ds(nt(r,{size:32})),a])}}if(r!==Number.parseInt(n,10))throw new tbe({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:Ds(e,{dir:"right"})}}function f1e(e){if(typeof e!="boolean")throw new Oe(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Ds(L$(e))}}function p1e(e,{signed:t,size:n=256}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,a=t?-r-1n:0n;if(e>r||e<a)throw new kE({max:r.toString(),min:a.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:nt(e,{size:32,signed:t})}}function m1e(e){const t=zb(e),n=Math.ceil(wn(t)/32),r=[];for(let a=0;a<n;a++)r.push(Ds(Ro(t,a*32,(a+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Zn([Ds(nt(wn(t),{size:32})),...r])}}function h1e(e,{param:t}){let n=!1;const r=[];for(let a=0;a<t.components.length;a++){const s=t.components[a],i=Array.isArray(e)?a:s.name,l=$E({param:s,value:e[i]});r.push(l),l.dynamic&&(n=!0)}return{dynamic:n,encoded:n?zE(r):Zn(r.map(({encoded:a})=>a))}}function V1(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function a3(e){const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return e.components.some(a3);const n=V1(t);return n?a3({...e,type:n[1]}):!1}function Um(e,t){const n=typeof t=="string"?ra(t):t,r=j1(n);if(wn(n)===0&&e.length>0)throw new Dm;if(wn(t)&&wn(t)<32)throw new Iz({data:typeof t=="string"?t:Nn(t),params:e,size:wn(t)});let a=0;const s=[];for(let i=0;i<e.length;++i){const l=e[i];a<n.length&&r.setPosition(a);const[c,u]=Fu(r,l,{staticPosition:0});a+=u,s.push(c)}return s}function Fu(e,t,{staticPosition:n}){const r=V1(t.type);if(r){const[a,s]=r;return b1e(e,{...t,type:s},{length:a,staticPosition:n})}if(t.type==="tuple")return w1e(e,t,{staticPosition:n});if(t.type==="address")return y1e(e);if(t.type==="bool")return g1e(e);if(t.type.startsWith("bytes"))return x1e(e,t,{staticPosition:n});if(t.type.startsWith("uint")||t.type.startsWith("int"))return v1e(e,t);if(t.type==="string")return E1e(e,{staticPosition:n});throw new ube(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const sN=32,s3=32;function y1e(e){const t=e.readBytes(32);return[z1(Nn(hz(t,-20))),32]}function b1e(e,t,{length:n,staticPosition:r}){if(n===null){const i=Di(e.readBytes(s3)),l=r+i,c=l+sN;e.setPosition(l);const u=Di(e.readBytes(sN)),f=R0(t);let p=0;const m=[];for(let h=0;h<u;++h){e.setPosition(c+(f?h*32:p));const[y,x]=Fu(e,t,{staticPosition:c});p+=x,m.push(y),x===0&&(e.assertReadLimit(),e._touch())}return e.setPosition(r+32),[m,32]}if(R0(t)){const i=Di(e.readBytes(s3)),l=r+i,c=[];for(let u=0;u<n;++u){e.setPosition(l+u*32);const[f]=Fu(e,t,{staticPosition:l});c.push(f)}return e.setPosition(r+32),[c,32]}let a=0;const s=[];for(let i=0;i<n;++i){const[l,c]=Fu(e,t,{staticPosition:r+a});a+=c,s.push(l),c===0&&(e.assertReadLimit(),e._touch())}return[s,a]}function g1e(e){return[s1e(e.readBytes(32),{size:32}),32]}function x1e(e,t,{staticPosition:n}){const[r,a]=t.type.split("bytes");if(!a){const i=Di(e.readBytes(32));e.setPosition(n+i);const l=Di(e.readBytes(32));if(l===0)return e.setPosition(n+32),["0x",32];const c=e.readBytes(l);return e.setPosition(n+32),[Nn(c),32]}return[Nn(e.readBytes(Number.parseInt(a,10),32)),32]}function v1e(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),a=e.readBytes(32);return[r>48?a1e(a,{signed:n}):Di(a,{signed:n}),32]}function w1e(e,t,{staticPosition:n}){const r=t.components.length===0||t.components.some(({name:i})=>!i),a=r?[]:{};let s=0;if(R0(t)){const i=Di(e.readBytes(s3)),l=n+i;for(let c=0;c<t.components.length;++c){const u=t.components[c];e.setPosition(l+s);const[f,p]=Fu(e,u,{staticPosition:l});s+=p,a[r?c:u==null?void 0:u.name]=f}return e.setPosition(n+32),[a,32]}for(let i=0;i<t.components.length;++i){const l=t.components[i],[c,u]=Fu(e,l,{staticPosition:n});a[r?i:l==null?void 0:l.name]=c,s+=u}return[a,s]}function E1e(e,{staticPosition:t}){const n=Di(e.readBytes(32)),r=t+n;e.setPosition(r);const a=Di(e.readBytes(32));if(a===0)return e.setPosition(t+32),["",32];const s=e.readBytes(a,32),i=i1e(s);return e.setPosition(t+32),[i,32]}function R0(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;
120if(t==="tuple")return(r=e.components)==null?void 0:r.some(R0);const n=V1(e.type);return!!(n&&R0({...e,type:n[1]}))}function k1e(e){const{abi:t,data:n,cause:r}=e,a=Ro(n,0,4);if(a==="0x")throw new Dm({cause:r});const i=[...t||[],_z,Qye].find(l=>l.type==="error"&&a===Fm(ms(l)));if(!i)throw new Nz(a,{docsPath:"/docs/contract/decodeErrorResult",cause:r});return{abiItem:i,args:"inputs"in i&&i.inputs&&i.inputs.length>0?Um(i.inputs,Ro(n,4)):void 0,errorName:i.name}}const Jn=(e,t,n)=>JSON.stringify(e,(r,a)=>typeof a=="bigint"?a.toString():a,n);function Zz({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((a,s)=>`${r&&a.name?`${a.name}: `:""}${typeof t[s]=="object"?Jn(t[s]):t[s]}`).join(", ")})`}const G1=Wz;function Uc(e){const{abi:t,args:n=[],name:r}=e,a=It(r,{strict:!1}),s=t.filter(l=>a?l.type==="function"?Fm(l)===r:l.type==="event"?G1(l)===r:!1:"name"in l&&l.name===r);if(s.length===0)return;if(s.length===1)return s[0];let i;for(const l of s){if(!("inputs"in l))continue;if(!n||n.length===0){if(!l.inputs||l.inputs.length===0)return l;continue}if(!l.inputs||l.inputs.length===0||l.inputs.length!==n.length)continue;if(n.every((u,f)=>{const p="inputs"in l&&l.inputs[f];return p?i3(u,p):!1})){if(i&&"inputs"in i&&i.inputs){const u=Qz(l.inputs,i.inputs,n);if(u)throw new obe({abiItem:l,type:u[0]},{abiItem:i,type:u[1]})}i=l}}return i||s[0]}function i3(e,t){const n=typeof e,r=t.type;switch(r){case"address":return dn(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((a,s)=>n==="object"&&i3(Object.values(e)[s],a)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(a=>i3(a,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Qz(e,t,n){for(const r in e){const a=e[r],s=t[r];if(a.type==="tuple"&&s.type==="tuple"&&"components"in a&&"components"in s)return Qz(a.components,s.components,n[r]);const i=[a.type,s.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")?dn(n[r],{strict:!1}):i.includes("address")&&i.includes("bytes")?dn(n[r],{strict:!1}):!1)return i}}class C1e extends Oe{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class A1e extends Oe{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function iN(e){return e.reduce((t,{slot:n,value:r})=>`${t}        ${n}: ${r}
121`,"")}function P1e(e){return e.reduce((t,{address:n,...r})=>{let a=`${t}    ${n}:
122`;return r.nonce&&(a+=`      nonce: ${r.nonce}
123`),r.balance&&(a+=`      balance: ${r.balance}
124`),r.code&&(a+=`      code: ${r.code}
125`),r.state&&(a+=`      state:
126`,a+=iN(r.state)),r.stateDiff&&(a+=`      stateDiff:
127`,a+=iN(r.stateDiff)),a},`  State Override:
128`).slice(0,-1)}const T1e=e=>e;function Oo(e){if(e!=null&&e.reason)return e.reason;if(typeof DOMException=="function")return new DOMException("This operation was aborted","AbortError");const t=new Error("This operation was aborted");return t.name="AbortError",t}function xd(e){return typeof e=="object"&&e!==null&&"name"in e&&e.name==="AbortError"}const HE=e=>{try{const t=new URL(e);return!t.username&&!t.password?e:(t.username="",t.password="",t.toString())}catch{return e}};class KE extends Oe{constructor(t,{account:n,docsPath:r,chain:a,data:s,gas:i,gasPrice:l,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:f,to:p,value:m,stateOverride:h}){var C;const y=n?nn(n):void 0;let x=_m({from:y==null?void 0:y.address,to:p,value:typeof m<"u"&&`${BE(m)} ${((C=a==null?void 0:a.nativeCurrency)==null?void 0:C.symbol)||"ETH"}`,data:s,gas:i,gasPrice:typeof l<"u"&&`${aa(l)} gwei`,maxFeePerGas:typeof c<"u"&&`${aa(c)}
128 gwei`,maxPriorityFeePerGas:typeof u<"u"&&`${aa(u)} gwei`,nonce:f});h&&(x+=`
129${P1e(h)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",x].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Xz extends Oe{constructor(t,{abi:n,args:r,contractAddress:a,docsPath:s,functionName:i,sender:l}){const c=Uc({abi:n,args:r,name:i}),u=c?Zz({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=c?ms(c,{includeName:!0}):void 0,p=_m({address:a&&T1e(a),function:f,args:u&&u!=="()"&&`${[...Array((i==null?void 0:i.length)??0).keys()].map(()=>" ").join("")}${u}`,sender:l});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:s,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],p&&"Contract Call:",p].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=a,this.functionName=i,this.sender=l}}class o3 extends Oe{constructor({abi:t,data:n,functionName:r,message:a,cause:s}){let i,l,c,u;if(n&&n!=="0x")try{l=k1e({abi:t,data:n,cause:s});const{abiItem:p,errorName:m,args:h}=l;if(m==="Error")u=h[0];else if(m==="Panic"){const[y]=h;u=Zye[y]}else{const y=p?ms(p,{includeName:!0}):void 0,x=p&&h?Zz({abiItem:p,args:h,includeFunctionName:!1,includeName:!1}):void 0;c=[y?`Error: ${y}`:"",x&&x!=="()"?`       ${[...Array((m==null?void 0:m.length)??0).keys()].map(()=>" ").join("")}${x}`:""]}}catch(p){i=p}else a&&(u=a);let f;i instanceof Nz&&(f=i.signature,c=[`Unable to decode signature "${f}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${f}.`]),super(u&&u!=="execution reverted"||f?[`The contract function "${r}" reverted with the following ${f?"signature":"reason"}:`,u||f].join(`
130`):`The contract function "${r}" reverted.`,{cause:i??s,metaMessages:c,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=l,this.raw=n,this.reason=u,this.signature=f}}class S1e extends Oe{constructor({functionName:t,cause:n}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",`  - The contract does not have the function "${t}",`,"  - The parameters passed to the contract function may be invalid, or","  - The address is not a contract."],name:"ContractFunctionZeroDataError",cause:n})}}class B1e extends Oe{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class q1 extends Oe{constructor({data:t,message:n}){super(n||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}class x0 extends Oe{constructor({body:t,cause:n,details:r,headers:a,status:s,url:i}){super("HTTP request failed.",{cause:n,details:r,metaMessages:[s&&`Status: ${s}`,`URL: ${HE(i)}`,t&&`Request body: ${Jn(t)}
130`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=a,this.status=s,this.url=i}}class xb extends Oe{constructor({maxSize:t,size:n}){super("HTTP response body exceeded the size limit.",{metaMessages:[`Max: ${t} bytes`,`Received: ${n} bytes`],name:"ResponseBodyTooLargeError"}),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t,this.size=n}}class VE extends Oe{constructor({body:t,error:n,url:r}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${HE(r)}`,`Request body: ${Jn(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data,this.url=r}}class oN extends Oe{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${HE(n)}`,`Request body: ${Jn(t)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=n}}const _1e=-1;class oa extends Oe{constructor(t,{code:n,docsPath:r,metaMessages:a,name:s,shortMessage:i}){super(i,{cause:t,docsPath:r,metaMessages:a||(t==null?void 0:t.metaMessages),name:s||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s||t.name,this.code=t instanceof VE?t.code:n??_1e}}class la extends oa{constructor(t,n){super(t,n),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}}class O0 extends oa{constructor(t){super(t,{code:O0.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(O0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class M0 extends oa{constructor(t){super(t,{code:M0.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(M0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class D0 extends oa{constructor(t,{method:n}={}){super(t,{code:D0.code,name:"MethodNotFoundRpcError",shortMessage:`The method${n?` "${n}"`:""} does not exist / is not available.`})}}Object.defineProperty(D0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class F0 extends oa{constructor(t){super(t,{code:F0.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
131`)})}}Object.defineProperty(F0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class xc extends oa{constructor(t){super(t,{code:xc.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(xc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class Mo extends oa{constructor(t){super(t,{code:Mo.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
132`)})}}Object.defineProperty(Mo,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class U0 extends oa{constructor(t){super(t,{code:U0.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(U0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});
132class j0 extends oa{constructor(t){super(t,{code:j0.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(j0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class L0 extends oa{constructor(t){super(t,{code:L0.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(L0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class ac extends oa{constructor(t,{method:n}={}){super(t,{code:ac.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${n?` "${n}"`:""} is not supported.`})}}Object.defineProperty(ac,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Wu extends oa{constructor(t){super(t,{code:Wu.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(Wu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class $0 extends oa{constructor(t){super(t,{code:$0.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty($0,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Uu extends la{constructor(t){super(t,{code:Uu.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Uu,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class z0 extends la{constructor(t){super(t,{code:z0.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(z0,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class H0 extends la{constructor(t,{method:n}={}){super(t,{code:H0.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${n?` " ${n}"`:""}.`})}}Object.defineProperty(H0,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class K0 extends la{constructor(t){super(t,{code:K0.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(K0,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class V0 extends la{constructor(t){super(t,{code:V0.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(V0,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class G0 extends la{constructor(t){super(t,{code:G0.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(G0,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class q0 extends la{constructor(t){super(t,{code:q0.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(q0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class W0 extends la{constructor(t){super(t,{code:W0.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(W0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class J0 extends la{constructor(t){super(t,{code:J0.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(J0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Z0 extends la{constructor(t){super(t,{code:Z0.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Z0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class Q0 extends la{constructor(t){super(t,{code:Q0.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(Q0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class X0 extends la{constructor(t){super(t,{code:X0.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(X0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750}
132);class Y0 extends la{constructor(t){super(t,{code:Y0.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Y0,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class em extends la{constructor(t){super(t,{code:em.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(em,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class I1e extends oa{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}function W1(e,t){const n=(e.details||"").toLowerCase(),r=e instanceof Oe?e.walk(a=>(a==null?void 0:a.code)===rc.code):e;return r instanceof Oe?new rc({cause:e,message:r.details}):rc.nodeMessage.test(n)?new rc({cause:e,message:e.details}):No.nodeMessage.test(n)?new No({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):q5.nodeMessage.test(n)?new q5({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):W5.nodeMessage.test(n)?new W5({cause:e,nonce:t==null?void 0:t.nonce}):J5.nodeMessage.test(n)?new J5({cause:e,nonce:t==null?void 0:t.nonce}):Z5.nodeMessage.test(n)?new Z5({cause:e,nonce:t==null?void 0:t.nonce}):Q5.nodeMessage.test(n)?new Q5({cause:e}):X5.nodeMessage.test(n)?new X5({cause:e,gas:t==null?void 0:t.gas}):Y5.nodeMessage.test(n)?new Y5({cause:e,gas:t==null?void 0:t.gas}):e3.nodeMessage.test(n)?new e3({cause:e}):Gu.nodeMessage.test(n)?new Gu({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new Nm({cause:e})}function GE(e,{docsPath:t,...n}){const r=(()=>{const a=W1(e,n);return a instanceof Nm?e:a})();return new KE(r,{docsPath:t,...n})}function vd(e,{format:t}){if(!t)return{};const n={};function r(s){const i=Object.keys(s);for(const l of i)l in e&&(n[l]=e[l]),s[l]&&typeof s[l]=="object"&&!Array.isArray(s[l])&&r(s[l])}const a=t(e||{});return r(a),n}function lN(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new zI({size:n.length,targetSize:66,type:"hex"});if(r.length!==66)throw new zI({size:r.length,targetSize:66,type:"hex"});return t[n]=r,t},{})}function N1e(e){const{balance:t,nonce:n,state:r,stateDiff:a,code:s}=e,i={};if(s!==void 0&&(i.code=s),t!==void 0&&(i.balance=nt(t)),n!==void 0&&(i.nonce=nt(n)),r!==void 0&&(i.state=lN(r)),a!==void 0){if(i.state)throw new A1e;i.stateDiff=lN(a)}return i}function J1(e){if(!e)return;const t={};for(const{address:n,...r}of e){if(!dn(n,{strict:!1}))throw new Ln({address:n});if(t[n])throw new C1e({address:n});t[n]=N1e(r)}return t}function Wo(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:a}=e,s=t?nn(t):void 0;if(s&&!dn(s.address))throw new Ln({address:s.address});if(a&&!dn(a))throw new Ln({address:a});if(n&&n>yc)throw new No({maxFeePerGas:n});if(r&&n&&r>n)throw new Gu({maxFeePerGas:n,maxPriorityFeePerGas:r})}async function R1e(e,t){var a,s,i;const{account:n=e.account}=t;if(!n)throw new Mm;const r=nn(n);try{const{accessList:l,blockNumber:c,blockTag:u,data:f,gas:p,gasPrice:m,maxFeePerGas:h,maxPriorityFeePerGas:y,nonce:x,stateOverride:C,to:T,value:w,...v}=t,A=(typeof c=="bigint"?nt(c):void 0)||u;Wo(t);const S=(i=(s=(a=e.chain)==null?void 0:a.formatters)==null?void 0:s.transactionRequest)==null?void 0:i.format,k=(S||Vi)({...vd(v,{format:S}),account:r,accessList:l,data:f,gas:p,gasPrice:m,maxFeePerGas:h,maxPriorityFeePerGas:y,nonce:x,to:T,value:w},"estimateGas"),R=J1(C),{baseFeePerGas:D,gasLimit:B,priorityFeePerGas:M}=await e.request({method:"linea_estimateGas",params:R?A?[k,A,R]:[k,R]:A?[k,A]:[k]});return{baseFeePerGas:BigInt(D),gasLimit:BigInt(B),priorityFeePerGas:BigInt(M)}}catch(l){throw GE(l,{...t,account:r,chain:e.chain})}}const qE={fees:{estimateFeesPerGas:cN,async maxPriorityFeePerGas({block:e,client:t,request:n}){const r=await cN({block:e,client:t,multiply:a=>a,request:n,type:"eip1559"});return r!=null&&r.maxPriorityFeePerGas?r.maxPriorityFeePerGas:null}}};async function cN({client:e,multiply:t,request:n,type:r}){try{const a=await R1e(e,{...n,account:n==null?void 0:n.account}),{priorityFeePerGas:s}
vendor: 32,867 bytes, line 132
132=a,l=t(BigInt(a.baseFeePerGas))+s;return r==="legacy"?{gasPrice:l}:{maxFeePerGas:l,maxPriorityFeePerGas:s}}catch{return null}}const O1e=j({...qE,id:59144,name:"Linea Mainnet",blockTime:2e3,nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42},ensRegistry:{address:"0x50130b669B28C339991d8676FA73CF122a121267",blockCreated:6682888},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:22222151}},ensTlds:[".linea.eth"],testnet:!1}),M1e=j({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://api-goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),D1e=j({...qE,id:59141,name:"Linea Sepolia Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.linea.build"],webSocket:["wss://rpc.sepolia.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.lineascan.build",apiUrl:"https://api-sepolia.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:227427},ensRegistry:{address:"0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7",blockCreated:2395094},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:17168484}},ensTlds:[".linea.eth"],testnet:!0}),F1e=j({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),Gp=1,U1e=j({...$e,id:1135,name:"Lisk",network:"lisk",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.lisk.com",apiUrl:"https://blockscout.lisk.com/api"}},contracts:{...$e.contracts,disputeGameFactory:{[Gp]:{address:"0x0CF7D3706a27CCE2017aEB11E8a9c8b5388c282C"}},multicall3:{address:"0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0"},l2OutputOracle:{[Gp]:{address:"0x113cB99283AF242Da0A0C54347667edF531Aa7d6"}},portal:{[Gp]:{address:"0x26dB93F8b8b4f7016240af62F7730979d353f9A7"}},l1StandardBridge:{[Gp]:{address:"0x2658723Bf70c7667De6B25F99fcce13A16D25d08"}}},sourceId:Gp}),Oy=11155111,j1e=j({...$e,id:4202,network:"lisk-sepolia",name:"Lisk Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia-api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.lisk.com",apiUrl:"https://sepolia-blockscout.lisk.com/api"}},contracts:{...$e.contracts,l2OutputOracle:{[Oy]:{address:"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Oy]:{address:"0xe3d90F21490686Ec7eF37BE788E02dfC12787264"}},l1StandardBridge:{[Oy]:{address:"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5"}}},testnet:!0,sourceId:Oy}),L1e=j({id:9496,name:"Load Alphanet",nativeCurrency:{name:"Testnet LOAD",symbol:"tLOAD",decimals:18},rpcUrls:{default:{http:["https://alphanet.load.network"]}},blockExplorers:{default:{name:"Load Alphanet Explorer",url:"https://explorer.load.network"}},testnet:!0}),$1e=j({id:1337,name:"Localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),z1e=j({id:15551,name:"LoopNetwork Mainnet",nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},rpcUrls:{default:{http:["https://api.mainnetloop.com"]}},blockExplorers:{default:{name:"LoopNetwork Blockchain Explorer",url:"https://explorer.mainnetloop.com/"}},testnet:!1}),H1e=j({id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network",apiUrl:"https://api.explorer.execution.mainnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:468183}}}),K1e=j({id:4201,name:"LUKSO Testnet",nativeCurrency:{decimals:18,name:"LUKSO Testnet",symbol:"LYXt"},rpcUrls:{default:{http:["https://rpc.testnet.lukso.network"],webSocket:["wss://ws-rpc.testnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Testnet Explorer",url:"https://explorer.execution.testnet.lukso.network",apiUrl:"https://api.explorer.execution.testnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:605348}},testnet:!0}),V1e=j({id:994873017,name:"Lumia Mainnet",network:"LumiaMainnet",nativeCurrency:{name:"Lumia",symbol:"LUMIA",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.lumia.org"]}},blockExplorers:{default:{name:"Lumia Explorer",url:"https://explorer.lumia.org/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3975939}},testnet:!1}),G1e=j({id:1952959480,name:"Lumia Testnet",network:"LumiaTestnet",nativeCurrency:{name:"Lumia",symbol:"LUMIA",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.lumia.org"]}},blockExplorers:{default:{name:"Lumia Testnet Explorer",url:"https://testnet-explorer.lumia.org/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2235063}},testnet:!0}),q1e=j({id:96370,name:"Lumoz",nativeCurrency:{decimals:18,name:"Lumoz Token",symbol:"MOZ"},rpcUrls:{default:{http:["https://rpc.lumoz.org"]}},blockExplorers:{default:{name:"Lumoz Scan",url:"https://scan.lumoz.info"}},testnet:!1}),W1e=j({id:105363,name:"Lumoz Testnet",nativeCurrency:{decimals:18,name:"Lumoz Testnet Token",symbol:"MOZ"},rpcUrls:{default:{http:["https://testnet-rpc.lumoz.org"]}},testnet:!0}),J1e=j({id:1122,name:"LuxePorts",network:"luxeports",nativeCurrency:{name:"LuxePorts",symbol:"LXP",decimals:18},rpcUrls:{default:{http:["https://rpc.luxeports.com","https://erpc.luxeports.com"],webSocket:["wss://rpc.luxeports.com/ws","wss://erpc.luxeports.com/ws"]}},blockExplorers:{default:{name:"LXPScan",url:"https://lxpscan.com"}},testnet:!1}),Z1e=j({id:721,name:"Lycan",nativeCurrency:{decimals:18,name:"Lycan",symbol:"LYC"},rpcUrls:{default:{http:["https://rpc.lycanchain.com","https://us-east.lycanchain.com","https://us-west.lycanchain.com","https://eu-north.lycanchain.com","https://eu-west.lycanchain.com","https://asia-southeast.lycanchain.com"],webSocket:["wss://rpc.lycanchain.com","wss://us-east.lycanchain.com","wss://us-west.lycanchain.com","wss://eu-north.lycanchain.com","wss://eu-west.lycanchain.com","wss://asia-southeast.lycanchain.com"]}},blockExplorers:{default:{name:"Lycan Explorer",url:"https://explorer.lycanchain.com"}}}),Q1e=j({id:957,name:"Lyra Chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.lyra.finance"]}},blockExplorers:{default:{name:"Lyra Explorer",url:"https://explorer.lyra.finance",apiUrl:"https://explorer.lyra.finance/api/v2"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1935198}}}),X1e=j({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://ethereum.reth.rs/rpc"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Y1e=j({id:595,name:"Mandala TC9",network:"mandala",nativeCurrency:{name:"Mandala",symbol:"mACA",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]}},blockExplorers:{default:{name:"Mandala Blockscout",url:"https://blockscout.mandala.aca-staging.network",apiUrl:"https://blockscout.mandala.aca-staging.network/api"}},testnet:!0}),ege=j({id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network",apiUrl:"https://pacific-explorer.manta.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:332890}}}),tge=j({id:3441006,name:"Manta Pacific Sepolia Testnet",network:"manta-sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.sepolia-testnet.manta.network/http"]}},blockExplorers:{default:{name:"Manta Sepolia Testnet Explorer",url:"https://pacific-explorer.sepolia-testnet.manta.network",apiUrl:"https://pacific-explorer.sepolia-testnet.manta.network/api"}},contracts:{multicall3:{address:"0xca54918f7B525C8df894668846506767412b53E3",blockCreated:479584}},testnet:!0}),nge=j({id:3441005,name:"Manta Pacific Testnet",network:"manta-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://manta-testnet.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network",apiUrl:"https://pacific-explorer.testnet.manta.network/api"}},contracts:{multicall3:{address:"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C",blockCreated:419915}},testnet:!0}),rge=j({id:5e3,name:"Mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Explorer",url:"https://mantlescan.xyz/",apiUrl:"https://api.mantlescan.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}}),age=j({id:5003,name:"Mantle Sepolia Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.sepolia.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.sepolia.mantle.xyz/",apiUrl:"https://explorer.sepolia.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4584012}},testnet:!0}),sge=j({id:5001,name:"Mantle Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",apiUrl:"https://explorer.testnet.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:561333}},testnet:!0}),ige=j({id:5887,name:"MANTRA DuKong EVM Testnet",nativeCurrency:{decimals:18,name:"MANTRA",symbol:"MANTRA"},rpcUrls:{default:{http:["https://evm.dukong.mantrachain.io"]}},blockExplorers:{default:{name:"MANTRAScan",url:"https://mantrascan.io/dukong"}},testnet:!0}),oge=j({id:5888,name:"MANTRA EVM",nativeCurrency:{decimals:18,name:"MANTRA",symbol:"MANTRA"},rpcUrls:{default:{http:["https://evm.mantrachain.io"],webSocket:["https://evm.mantrachain.io/ws"]}},blockExplorers:{default:{name:"MANTRA Blockscout Explorer",url:"https://blockscout.mantrascan.io"}}}),lge=j({id:22776,name:"MAP Protocol",nativeCurrency:{decimals:18,name:"MAPO",symbol:"MAPO"},rpcUrls:{default:{http:["https://rpc.maplabs.io"]}},blockExplorers:{default:{name:"MAPO Scan",url:"https://maposcan.io"}},testnet:!1}),cge=j({id:450815,name:"Maroo Testnet",nativeCurrency:{name:"Testnet OKRW",symbol:"tOKRW",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.maroo.io"],webSocket:["wss://ws-testnet.maroo.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer-testnet.maroo.io",apiUrl:"https://explorer-testnet.maroo.io/blockscout/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}),uge=j({id:110110,name:"Mars Credit",nativeCurrency:{decimals:18,name:"Mars Credit",symbol:"MARS"},rpcUrls:{default:{http:["https://rpc.marscredit.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscan.marscredit.xyz"}}}),dge=j({id:698,name:"Matchain",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://rpc.matchain.io"]}},blockExplorers:{default:{name:"Matchain Scan",url:"https://matchscan.io"}}}),fge=j({id:699,name:"Matchain Testnet",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.matchain.io"]}},blockExplorers:{default:{name:"Matchain Scan",url:"https://testnet.matchscan.io"}},testnet:!0}),pge=j({id:29548,name:"MCH Verse",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.oasys.mycryptoheroes.net"]}},blockExplorers:{default:{name:"MCH Verse Explorer",url:"https://explorer.oasys.mycryptoheroes.net",apiUrl:"https://explorer.oasys.mycryptoheroes.net/api"}},testnet:!1}),My=1,mge=j({...$e,id:4326,blockTime:1e3,name:"MegaETH",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.megaeth.com/rpc"],webSocket:["wss://mainnet.megaeth.com/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://mega.etherscan.io",apiUrl:"https://api.etherscan.io/v2/api"},blockscout:{name:"Blockscout",url:"https://megaeth.blockscout.com",apiUrl:"https://megaeth.blockscout.com/api"}},contracts:{...$e.contracts,disputeGameFactory:{[My]:{address:"0x8546840adF796875cD9AAcc5B3B048f6B2c9D563"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},portal:{[My]:{address:"0x7f82f57F0Dd546519324392e408b01fcC7D709e8",blockCreated:21644285}},l1StandardBridge:{[My]:{address:"0x0CA3A2FBC3D770b578223FBB6b062fa875a2eE75",blockCreated:21644285}}},sourceId:My}),hge=j({id:6343,blockTime:1e3,name:"MegaETH Testnet",nativeCurrency:{name:"MegaETH Testnet Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://carrot.megaeth.com/rpc"],webSocket:["wss://carrot.megaeth.com/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://testnet-mega.etherscan.io",apiUrl:"https://api.etherscan.io/v2/api"},blockscout:{name:"Blockscout",url:"https://megaeth-testnet-v2.blockscout.com",apiUrl:"https://megaeth-testnet-v2.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}),yge=j({id:7078815900,name:"Mekong Pectra Devnet",nativeCurrency:{name:"eth",symbol:"eth",decimals:18},rpcUrls:{default:{http:["https://rpc.mekong.ethpandaops.io"]}},blockExplorers:{default:{name:"Block Explorer",url:"https://explorer.mekong.ethpandaops.io"}},testnet:!0}),bge=j({id:333000333,name:"Meld",nativeCurrency:{decimals:18,name:"Meld",symbol:"MELD"},rpcUrls:{default:{http:["https://rpc-1.meld.com"]}},blockExplorers:{default:{name:"MELDscan",url:"https://meldscan.io"}},contracts:{multicall3:{address:"0x769ee5a8e82c15c1b6e358f62ac8eb6e3abe8dc5",blockCreated:360069}}}),gge=j({id:4352,name:"MemeCore",nativeCurrency:{decimals:18,name:"M",symbol:"M"},rpcUrls:{default:{http:["https://rpc.memecore.net"],webSocket:["wss://ws.memecore.net"]}},blockExplorers:{default:{name:"MemeCore Explorer",url:"https://memecorescan.io",apiUrl:"https://api.memecorescan.io/api"},okx:{name:"MemeCore Explorer",url:"https://web3.okx.com/explorer/memecore"},memecore:{name:"MemeCore Explorer",url:"https://blockscout.memecore.com",apiUrl:"https://blockscout.memecore.com/api"}}}),xge=j({id:43521,name:"Formicarium",nativeCurrency:{decimals:18,name:"M",symbol:"M"},rpcUrls:{default:{http:["https://rpc.formicarium.memecore.net"],webSocket:["wss://ws.formicarium.memecore.net"]}},blockExplorers:{default:{name:"MemeCore Testnet Explorer",url:"https://formicarium.memecorescan.io"},okx:{name:"MemeCore Testnet Explorer",url:"https://web3.okx.com/explorer/formicarium-testnet"},memecore:{name:"MemeCore Testnet Explorer",url:"https://formicarium.blockscout.memecore.com",apiUrl:"https://formicarium.blockscout.memecore.com/api"}},testnet:!0}),vge=j({id:4200,name:"Merlin",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://scan.merlinchain.io",apiUrl:"https://scan.merlinchain.io/api"}}}),wge=j({id:4203,name:"Merlin Erigon Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-erigon-rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet-erigon-scan.merlinchain.io",apiUrl:"https://testnet-erigon-scan.merlinchain.io/api"}},testnet:!0}),Ege=j({id:571,name:"MetaChain Mainnet",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://rpc.metatime.com"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://explorer.metatime.com"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}}}),kge=j({id:1453,name:"MetaChain Istanbul",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://istanbul-rpc.metachain.dev"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://istanbul-explorer.metachain.dev"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}},testnet:!0}),Cge=j({id:11,name:"Metadium Network",nativeCurrency:{decimals:18,name:"META",symbol:"META"},rpcUrls:{default:{http:["https://api.metadium.com/prod"]}},blockExplorers:{default:{name:"Metadium Explorer",url:"https://explorer.metadium.com"}},testnet:!1}),Dy=1,Age=j({...$e,id:1750,name:"Metal L2",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.metall2.com"],webSocket:["wss://rpc.metall2.com"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.metall2.com",apiUrl:"https://explorer.metall2.com/api"}},contracts:{...$e.contracts,l2OutputOracle:{[Dy]:{address:"0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},portal:{[Dy]:{address:"0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956"}},l1StandardBridge:{[Dy]:{address:"0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3"}}},sourceId:Dy}),Pge=j({id:82,name:"Meter",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpc.meter.io"]}},blockExplorers:{default:{name:"MeterScan",url:"https://scan.meter.io"}}}),Tge=j({id:83,name:"Meter Testnet",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpctest.meter.io"]}},blockExplorers:{default:{name:"MeterTestnetScan",url:"https://scan-warringstakes.meter.io"}},testnet:!0}),Sge=j({id:1088,name:"Metis",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://metis.rpc.hypersync.xyz","https://metis-pokt.nodies.app","https://api.blockeden.xyz/metis/67nCBdZQSH9z3YqDDjdm","https://metis-andromeda.rpc.thirdweb.com","https://metis-andromeda.gateway.tenderly.co","https://metis.api.onfinality.io/public","https://andromeda.metis.io/?owner=1088","https://metis-mainnet.public.blastapi.io"],webSocket:["wss://metis-rpc.publicnode.com","wss://metis.drpc.org"]}},blockExplorers:{default:{name:"Metis Explorer",url:"https://explorer.metis.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}}),Bge=j({id:599,name:"Metis Goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link",apiUrl:"https://goerli.explorer.metisdevops.link/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}},testnet:!0}),_ge=j({id:59902,name:"Metis Sepolia",nativeCurrency:{decimals:18,name:"Test Metis",symbol:"tMETIS"},rpcUrls:{default:{http:["https://sepolia.metisdevops.link","https://metis-sepolia-rpc.publicnode.com","https://metis-sepolia.gateway.tenderly.co"],webSocket:["wss://metis-sepolia-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Metis Sepolia Explorer",url:"https://sepolia-explorer.metisdevops.link",apiUrl:"https://sepolia-explorer.metisdevops.link/api-docs"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:224185}},testnet:!0}),Ige=j({id:7518,name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}}),Nge=j({id:4759,name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0}),Rge=j({id:31612,name:"Mezo",nativeCurrency:{decimals:18,name:"Bitcoin",symbol:"BTC"},rpcUrls:{default:{http:["https://rpc.mezo.org"]}},blockExplorers:{default:{name:"Mezo Explorer",url:"https://explorer.mezo.org"}}}),Oge=j({id:31611,name:"Mezo Testnet",nativeCurrency:{decimals:18,name:"Bitcoin",symbol:"BTC"},rpcUrls:{default:{http:["https://rpc.test.mezo.org"]}},blockExplorers:{default:{name:"Mezo Testnet Explorer",url:"https://explorer.test.mezo.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328573}},testnet:!0}),Mge=j({id:185,name:"Mint Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain explorer",url:"https://explorer.mintchain.io"}},testnet:!1}),Dge=j({id:1686,name:"Mint Sepolia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain Testnet explorer",url:"https://testnet-explorer.mintchain.io"}},testnet:!0}),Fge=j({id:124832,name:"Mitosis Testnet",nativeCurrency:{name:"MITO",symbol:"MITO",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.mitosis.org"]}},blockExplorers:{default:{name:"Mitosis testnet explorer",url:"https://testnet.mitosiscan.xyz"}},testnet:!0}),Uge=j({id:6497,name:"MIZUHIKI Testnet Awaji",nativeCurrency:{name:"MIZU",symbol:"MIZU",decimals:18},rpcUrls:{default:{http:["https://rpc.awaji.mizuhiki.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://awaji.blockscout.com",apiUrl:"https://awaji.blockscout.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},testnet:!0}),qp=1,jge=j({...$e,id:34443,name:"Mode Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.mode.network"]}},blockExplorers:{default:{name:"Modescan",url:"https://modescan.io"}},contracts:{...$e.contracts,disputeGameFactory:{[qp]:{address:"0x6f13EFadABD9269D6cEAd22b448d434A1f1B433E"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2465882},l2OutputOracle:{[qp]:{address:"0x4317ba146D4933D889518a3e5E11Fe7a53199b04"}},portal:{[qp]:{address:"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07"}},l1StandardBridge:{[qp]:{address:"0x735aDBbE72226BD52e818E7181953f42E3b0FF21"}}},sourceId:qp}),Fy=11155111,Lge=j({...$e,id:919,name:"Mode Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network",apiUrl:"https://sepolia.explorer.mode.network/api"}},contracts:{...$e.contracts,l2OutputOracle:{[Fy]:{address:"0x2634BD65ba27AB63811c74A63118ACb312701Bfa",blockCreated:3778393}},portal:{[Fy]:{address:"0x320e1580effF37E008F1C92700d1eBa47c1B23fD",blockCreated:3778395}},l1StandardBridge:{[Fy]:{address:"0xbC5C679879B2965296756CD959C3C739769995E2",blockCreated:3778392}},multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0,sourceId:Fy}),$ge=j({id:143,name:"Monad",blockTime:400,nativeCurrency:{name:"Monad",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://rpc.monad.xyz","https://rpc1.monad.xyz"],webSocket:["wss://rpc.monad.xyz","wss://rpc1.monad.xyz"]}},blockExplorers:{default:{name:"Monadscan",url:"https://monadscan.com",apiUrl:"https://api.etherscan.io/v2/api?chainid=143"},monadvision:{name:"MonadVision",url:"https://monadvision.com"}},testnet:!1,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:9248132}}}),zge=j({id:10143,name:"Monad Testnet",blockTime:400,nativeCurrency:{name:"Testnet MON Token",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.monad.xyz"]}},blockExplorers:{default:{name:"Monad Testnet explorer",url:"https://testnet.monadexplorer.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:251449}},testnet:!0}),Hge=j({id:1287,name:"Moonbase Alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io",apiUrl:"https://moonbase.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0}),Kge=j({id:1284,name:"Moonbeam",nativeCurrency:{decimals:18,name:"Moonbeam",symbol:"GLMR"},rpcUrls:{default:{http:["https://rpc.api.moonbeam.network"],webSocket:["wss://wss.api.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io",apiUrl:"https://api-moonbeam.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1}),Vge=j({id:1281,name:"Moonbeam Development Node",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]}}}),Gge=j({id:1285,name:"Moonriver",nativeCurrency:{decimals:18,name:"Moonriver",symbol:"MOVR"},rpcUrls:{default:{http:["https://rpc.api.moonriver.moonbeam.network"],webSocket:["wss://wss.api.moonriver.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io",apiUrl:"https://api-moonriver.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1}),qge=j({id:2818,name:"Morph",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.morphl2.io"],webSocket:["wss://rpc.morphl2.io:8443"]}},blockExplorers:{default:{name:"Morph Explorer",url:"https://explorer.morphl2.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3654913}},testnet:!1}),Wge=j({id:2810,name:"Morph Holesky",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-quicknode-holesky.morphl2.io"],webSocket:["wss://rpc-quicknode-holesky.morphl2.io"]}},blockExplorers:{default:{name:"Morph Holesky Explorer",url:"https://explorer-holesky.morphl2.io",apiUrl:"https://explorer-api-holesky.morphl2.io/api"}},testnet:!0}),Jge=j({id:2710,name:"Morph Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.morphl2.io"]}},blockExplorers:{default:{name:"Morph Testnet Explorer",url:"https://explorer-testnet.morphl2.io",apiUrl:"https://explorer-api-testnet.morphl2.io/api"}},testnet:!0}),Zge=j({id:2184,name:"Morph Tachyon",nativeCurrency:{name:"BGB",symbol:"BGB",decimals:18},rpcUrls:{default:{http:["https://api.popdex.xyz/api/v1/web3/rpc"]}},blockExplorers:{default:{name:"Morph Tachyon Explorer",url:"https://app.popdex.xyz/explorer"}}}),Qge=j({id:34952,name:"Morph Tachyon Testnet",nativeCurrency:{name:"BGB",symbol:"BGB",decimals:18},rpcUrls:{default:{http:["https://testnet-api.popdex.xyz/api/v1/web3/rpc"]}},blockExplorers:{default:{name:"Morph Tachyon Testnet Explorer",url:"https://testnet-app.popdex.xyz/explorer"}},testnet:!0}),Xge=j({id:5551,name:"Nahmii 2 Mainnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://l2.nahmii.io"]}},blockExplorers:{default:{name:"Nahmii 2 Explorer",url:"https://explorer.n2.nahmii.io"}},testnet:!1}),Yge=j({id:22222,name:"Nautilus Mainnet",nativeCurrency:{name:"ZBC",symbol:"ZBC",decimals:9},rpcUrls:{default:{http:["https://api.nautilus.nautchain.xyz"]}},blockExplorers:{default:{name:"NautScan",url:"https://nautscan.com"}}}),exe=j({id:397,name:"NEAR Protocol",nativeCurrency:{decimals:18,name:"NEAR",symbol:"NEAR"},rpcUrls:{default:{http:["https://eth-rpc.mainnet.near.org"]}},blockExplorers:{default:{name:"NEAR Explorer",url:"https://eth-explorer.near.org"}},testnet:!1}),txe=j({id:398,name:"NEAR Protocol Testnet",nativeCurrency:{decimals:18,name:"NEAR",symbol:"NEAR"},rpcUrls:{default:{http:["https://eth-rpc.testnet.near.org"]}},blockExplorers:{default:{name:"NEAR Explorer",url:"https://eth-explorer-testnet.near.org"}},testnet:!0}),nxe=j({id:245022926,name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://devnet.neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0}),rxe=j({id:245022934,network:"neonMainnet",name:"Neon EVM MainNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://neon-proxy-mainnet.solana.p2p.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:206545524}},testnet:!1}),axe=j({id:47763,name:"Neo X Mainnet",nativeCurrency:{name:"Gas",symbol:"GAS",decimals:18},rpcUrls:{default:{http:["https://mainnet-1.rpc.banelabs.org","https://mainnet-2.rpc.banelabs.org"]}},blockExplorers:{default:{name:"Neo X - Explorer",url:"https://xexplorer.neo.org"}},testnet:!1}),sxe=j({id:12227332,name:"Neo X Testnet T4",nativeCurrency:{name:"Gas",symbol:"GAS",decimals:18},rpcUrls:{default:{http:["https://testnet.rpc.banelabs.org/"]}},blockExplorers:{default:{name:"neox-scan",url:"https://xt4scan.ngd.network"}},testnet:!0}),ixe=j({id:1012,name:"Newton",nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},rpcUrls:{default:{http:["https://global.rpc.mainnet.newtonproject.org"]}},blockExplorers:{default:{name:"NewFi explorer",url:"https://explorer.newtonproject.org/"}},testnet:!1}),oxe=j({id:4242,name:"Nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{default:{name:"NexiScan",url:"https://www.nexiscan.com",apiUrl:"https://www.nexiscan.com/api"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}}),lxe=j({id:240,name:"Nexilix Smart Chain",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}}),cxe=j({id:6900,name:"Nibiru",nativeCurrency:{decimals:18,name:"NIBI",symbol:"NIBI"},rpcUrls:{default:{http:["https://evm-rpc.nibiru.fi"]}},blockExplorers:{default:{name:"NibiScan",url:"https://nibiscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:19587573}}}),uxe=j({id:200024,name:"Nitrograph Testnet",testnet:!0,rpcUrls:{default:{http:["https://rpc-testnet.nitrograph.foundation"]}},nativeCurrency:{name:"Nitro",symbol:"NOS",decimals:18},blockExplorers:{default:{url:"https://explorer-testnet.nitrograph.foundation",name:"Nitrograph Explorer"}}}),dxe=j({id:166,name:"Nomina",nativeCurrency:{name:"Nomina",symbol:"NOM",decimals:18}
132,rpcUrls:{default:{http:["https://mainnet.nomina.io"],webSocket:["wss://mainnet.nomina.io"]}},blockExplorers:{default:{name:"Nomina Explorer",url:"https://nomscan.io"}},testnet:!1}),fxe=j({id:4090,network:"oasis-testnet",name:"Oasis Testnet",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.oasis.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://oasis.ftnscan.com",apiUrl:"https://oasis.ftnscan.com/api"}},testnet:!0}),pxe=j({id:248,name:"Oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games",apiUrl:"https://scan.oasys.games/api"}}}),mxe=j({id:911867,name:"Odyssey Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://odyssey.ithaca.xyz"]}},blockExplorers:{default:{name:"Odyssey Explorer",url:"https://odyssey-explorer.ithaca.xyz",apiUrl:"https://odyssey-explorer.ithaca.xyz/api"}},testnet:!0}),hxe=j({id:66,name:"OKC",nativeCurrency:{decimals:18,name:"OKT",symbol
vendor: 44,429 bytes, line 132
132:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}}),yxe=j({id:311,name:"Omax Mainnet",nativeCurrency:{decimals:18,name:"OMAX",symbol:"OMAX"},rpcUrls:{default:{http:["https://mainapi.omaxray.com"]}},blockExplorers:{default:{name:"Omax Explorer",url:"https://omaxscan.com"}},testnet:!1}),bxe=j({id:166,name:"Omni",nativeCurrency:{name:"Omni",symbol:"OMNI",decimals:18},rpcUrls:{default:{http:["https://mainnet.omni.network"],webSocket:["wss://mainnet.omni.network"]}},blockExplorers:{default:{name:"OmniScan",url:"https://omniscan.network"}},testnet:!1}),gxe=j({id:164,name:"Omni Omega",nativeCurrency:{name:"Omni",symbol:"OMNI",decimals:18},rpcUrls:{default:{http:["https://omega.omni.network"],webSocket:["wss://omega.omni.network"]}},blockExplorers:{default:{name:"Omega OmniScan",url:"https://omega.omniscan.network/"}},testnet:!0}),xxe=j({id:309075,name:"One World Chain Mainnet",nativeCurrency:{decimals:18,name:"OWCT",symbol:"OWCT"},rpcUrls:{default:{http:["https://mainnet-rpc.oneworldchain.org"]}},blockExplorers:{default:{name:"One World Explorer",url:"https://mainnet.oneworldchain.org"}},testnet:!1}),vxe=j({id:9700,name:"OORT MainnetDev",nativeCurrency:{decimals:18,name:"OORT",symbol:"OORT"},rpcUrls:{default:{http:["https://dev-rpc.oortech.com"]}},blockExplorers:{default:{name:"OORT MainnetDev Explorer",url:"https://dev-scan.oortech.com"}}}),Uy=56,wxe=j({id:204,name:"opBNB",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opBNB (BSCScan)",url:"https://opbnb.bscscan.com",apiUrl:"https://api-opbnb.bscscan.com/api"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881},l2OutputOracle:{[Uy]:{address:"0x153CAB79f4767E2ff862C94aa49573294B13D169"}},portal:{[Uy]:{address:"0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519"}},l1StandardBridge:{[Uy]:{address:"0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea"}}},sourceId:Uy}),jy=97,Exe=j({id:5611,name:"opBNB Testnet",nativeCurrency:{decimals:18,name:"tBNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://opbnb-testnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://testnet.opbnbscan.com"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108},l2OutputOracle:{[jy]:{address:"0xFf2394Bb843012562f4349C6632a0EcB92fC8810"}},portal:{[jy]:{address:"0x4386C8ABf2009aC0c263462Da568DD9d46e52a31"}},l1StandardBridge:{[jy]:{address:"0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840"}}},testnet:!0,sourceId:jy}),kxe=j({id:1612,name:"OpenLedger",nativeCurrency:{name:"Open",symbol:"OPEN",decimals:18},rpcUrls:{default:{http:["https://rpc.openledger.xyz"]}},blockExplorers:{default:{name:"OpenLedger Explorer",url:"https://scan.openledger.xyz"}},testnet:!1}),Wp=1,Cxe=j({...$e,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...$e.contracts,disputeGameFactory:{[Wp]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[Wp]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[Wp]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[Wp]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:Wp}),Ly=5,Axe=j({...$e,id:420,name:"Optimism Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.optimism.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io",apiUrl:"https://goerli-optimism.etherscan.io/api"}},contracts:{...$e.contracts,l2OutputOracle:{[Ly]:{address:"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461},portal:{[Ly]:{address:"0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383"}},l1StandardBridge:{[Ly]:{address:"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8"}}},testnet:!0,sourceId:Ly}),Jp=11155111,Pxe=j({...$e,id:11155420,name:"OP Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.optimism.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com",apiUrl:"https://optimism-sepolia.blockscout.com/api"}},contracts:{...$e.contracts,disputeGameFactory:{[Jp]:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{[Jp]:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{[Jp]:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{[Jp]:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:Jp}),Txe=j({id:62050,name:"Optopia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.optopia.ai"]}},blockExplorers:{default:{name:"Optopia Explorer",url:"https://scan.optopia.ai"}},testnet:!1}),Sxe=j({id:62049,name:"Optopia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.optopia.ai"]}},blockExplorers:{default:{name:"Optopia Explorer",url:"https://scan-testnet.optopia.ai"}},testnet:!0}),Bxe=j({id:291,name:"Orderly",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.orderly.network"]}},blockExplorers:{default:{name:"Orderly Explorer",url:"https://explorer.orderly.network"}},testnet:!1}),_xe=j({id:4460,name:"Orderly Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://l2-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"]}},blockExplorers:{default:{name:"Orderly Explorer",url:"https://explorerl2new-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"}},testnet:!0}),Ixe=j({id:41144114,name:"Otim Devnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["http://devnet.otim.xyz"]}},contracts:{batchInvoker:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3"}},testnet:!0}),Nxe=j({id:11297108109,name:"Palm",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}}}),Rxe=j({id:11297108099,name:"Palm Testnet",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}},testnet:!0}),Oxe=j({id:420420422,name:"Paseo PassetHub",nativeCurrency:{name:"PAS",symbol:"PAS",decimals:18},rpcUrls:{default:{http:["https://testnet-passet-hub-eth-rpc.polkadot.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout-passet-hub.parity-testnet.parity.io"}},testnet:!0}),Mxe=j({id:3338,name:"Peaq",nativeCurrency:{decimals:18,name:"peaq",symbol:"PEAQ"},rpcUrls:{default:{http:["https://quicknode1.peaq.xyz","https://quicknode2.peaq.xyz","https://quicknode3.peaq.xyz"],webSocket:["wss://quicknode1.peaq.xyz","wss://quicknode2.peaq.xyz","wss://quicknode3.peaq.xyz"]}},blockExplorers:{default:{name:"Subscan",url:"https://peaq.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3566354}}}),$y=1,Dxe=j({id:424,network:"pgn",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Explorer",url:"https://explorer.publicgoods.network",apiUrl:"https://explorer.publicgoods.network/api"}},contracts:{l2OutputOracle:{[$y]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209},portal:{[$y]:{address:"0xb26Fd985c5959bBB382BAFdD0b879E149e48116c"}},l1StandardBridge:{[$y]:{address:"0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b"}}},formatters:jE,sourceId:$y}),zy=11155111,Fxe=j({id:58008,network:"pgn-testnet",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network",apiUrl:"https://explorer.sepolia.publicgoods.network/api"}},contracts:{l2OutputOracle:{[zy]:{address:"0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe"}},portal:{[zy]:{address:"0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179"}},l1StandardBridge:{[zy]:{address:"0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},formatters:jE,sourceId:zy,testnet:!0}),Uxe=j({id:13381,name:"Phoenix Blockchain",nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},rpcUrls:{default:{http:["https://rpc.phoenixplorer.com"]}},blockExplorers:{default:{name:"Phoenixplorer",url:"https://phoenixplorer.com",apiUrl:"https://phoenixplorer.com/api"}},contracts:{multicall3:{address:"0x498cF757a575cFF2c2Ed9f532f56Efa797f86442",blockCreated:5620192}}}),jxe=j({id:7070,name:"Planq Mainnet",nativeCurrency:{decimals:18,name:"PLQ",symbol:"PLQ"},rpcUrls:{default:{http:["https://planq-rpc.nodies.app","https://evm-rpc.planq.network","https://jsonrpc.planq.nodestake.top"]}},blockExplorers:{default:{name:"Planq Explorer",url:"https://evm.planq.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8470015}},testnet:!1}),Lxe=j({id:9745,name:"Plasma",blockTime:1e3,nativeCurrency:{name:"Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://rpc.plasma.to"]}},blockExplorers:{default:{name:"PlasmaScan",url:"https://plasmascan.to"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),$xe=j({id:9747,name:"Plasma Devnet",nativeCurrency:{name:"Devnet Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://devnet-rpc.plasma.to"]}},testnet:!0,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),zxe=j({id:9746,name:"Plasma Testnet",nativeCurrency:{name:"Testnet Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plasma.to"]}},blockExplorers:{default:{name:"RouteScan",url:"https://testnet.plasmascan.to"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}),Hxe=j({...Or,id:1612127,name:"PlayFi Albireo Testnet",network:"albireo",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://albireo-rpc.playfi.ai"],webSocket:["wss://albireo-rpc-ws.playfi.ai/ws"]}},blockExplorers:{default:{name:"PlayFi Albireo Explorer",url:"https://albireo-explorer.playfi.ai"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0}),Kxe=j({id:242,name:"Plinga",nativeCurrency:{name:"Plinga",symbol:"PLINGA",decimals:18},rpcUrls:{default:{http:["https://rpcurl.mainnet.plgchain.com"]}},blockExplorers:{default:{name:"Plgscan",url:"https://www.plgscan.com"}},contracts:{multicall3:{address:"0x0989576160f2e7092908BB9479631b901060b6e4",blockCreated:204489}}}),Vxe=1,Gxe=j({id:98865,name:"Plume (Legacy)",nativeCurrency:{name:"Plume Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.plumenetwork.xyz"],webSocket:["wss://rpc.plumenetwork.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.plumenetwork.xyz",apiUrl:"https://explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:48577}},sourceId:Vxe}),qxe=11155111,Wxe=j({id:98864,name:"Plume Devnet (Legacy)",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://test-rpc.plumenetwork.xyz"],webSocket:["wss://test-rpc.plumenetwork.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://test-explorer.plumenetwork.xyz",apiUrl:"https://test-explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:481948}},testnet:!0,sourceId:qxe}),Jxe=1,Zxe=j({id:98866,name:"Plume",nativeCurrency:{name:"Plume",symbol:"PLUME",decimals:18},rpcUrls:{default:{http:["https://rpc.plume.org"],webSocket:["wss://rpc.plume.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.plume.org",apiUrl:"https://explorer.plume.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:39679}},sourceId:Jxe}),Qxe=11155111,Xxe=j({id:98867,name:"Plume Testnet",nativeCurrency:{name:"Plume",symbol:"PLUME",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plume.org"],webSocket:["wss://testnet-rpc.plume.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plume.org",apiUrl:"https://testnet-explorer.plume.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:199712}},testnet:!0,sourceId:Qxe}),Yxe=11155111,eve=j({id:161221135,name:"Plume Testnet (Legacy)",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plumenetwork.xyz/http"],webSocket:["wss://testnet-rpc.plumenetwork.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plumenetwork.xyz",apiUrl:"https://testnet-explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6022332}},testnet:!0,sourceId:Yxe}),tve=j({id:631571,name:"Polter Testnet",nativeCurrency:{decimals:18,name:"Polter GHST",symbol:"GHST"},rpcUrls:{default:{http:["https://geist-polter.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://polter-testnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11245}},testnet:!0}),nve=j({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),rve=j({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-amoy.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://amoy.polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0}),ave=j({id:80001,name:"Polygon Mumbai",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://80001.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com",apiUrl:"https://api-testnet.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0}),sve=j({id:1101,name:"Polygon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com",apiUrl:"https://api-zkevm.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}}),ive=j({id:2442,name:"Polygon zkEVM Cardona",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.cardona.zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://cardona-zkevm.polygonscan.com",apiUrl:"https://cardona-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:114091}}}),ove=j({id:1442,name:"Polygon zkEVM Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com",apiUrl:"https://testnet-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}}),lve=j({id:8008,name:"Polynomial",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.polynomial.fi"]}},blockExplorers:{default:{name:"Polynomial Scan",url:"https://polynomialscan.io"}},testnet:!1,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),cve=j({id:80008,name:"Polynomia Sepolia",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.sepolia.polynomial.fi"]}},blockExplorers:{default:{name:"Polynomial Scan",url:"https://sepolia.polynomialscan.io"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),uve=j({id:60603,name:"POTOS Mainnet",nativeCurrency:{decimals:18,name:"POTOS Token",symbol:"POT"},rpcUrls:{default:{http:["https://rpc.potos.hk"]}},blockExplorers:{default:{name:"POTOS Mainnet explorer",url:"https://scan.potos.hk"}},testnet:!1}),dve=j({id:60600,name:"POTOS Testnet",nativeCurrency:{decimals:18,name:"POTOS Token",symbol:"POT"},rpcUrls:{default:{http:["https://rpc-testnet.potos.hk"]}},blockExplorers:{default:{name:"POTOS Testnet explorer",url:"https://scan-testnet.potos.hk"}},testnet:!0}),fve=j({id:23023,name:"PremiumBlock Testnet",nativeCurrency:{name:"Premium Block",symbol:"PBLK",decimals:18},rpcUrls:{default:{http:["https://rpc.premiumblock.org"]}},blockExplorers:{default:{name:"PremiumBlocks Explorer",url:"https://scan.premiumblock.org"}},testnet:!0}),pve=j({id:369,name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,blockTime:1e4,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://ipfs.scan.pulsechain.com",apiUrl:"https://api.scan.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),mve=j({id:943,name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},blockTime:1e4,rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com",apiUrl:"https://scan.v4.testnet.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),hve=j({id:490092,name:"Pumpfi Testnet",nativeCurrency:{decimals:18,name:"PMPT",symbol:"PMPT"},rpcUrls:{default:{http:["https://rpc1testnet.pumpfi.me"]}},blockExplorers:{default:{name:"Pumpfi Testnet Scan",url:"https://testnetscan.pumpfi.me"}},testnet:!0}),uN=11155111,yve=j({...$e,name:"Pyrope Testnet",testnet:!0,id:695569,sourceId:uN,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.pyropechain.com"],webSocket:["wss://rpc.pyropechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://pyrope.blockscout.com"}},contracts:{...$e.contracts,l1StandardBridge:{[uN]:{address:"0xC24932c31D9621aE9e792576152B7ef010cFC2F8"}}}}),bve=j({id:766,name:"QL1",nativeCurrency:{decimals:18,name:"QOM",symbol:"QOM"},rpcUrls:{default:{http:["https://rpc.qom.one"]}},blockExplorers:{default:{name:"Ql1 Explorer",url:"https://scan.qom.one"}},contracts:{multicall3:{address:"0x7A52370716ea730585884F5BDB0f6E60C39b8C64"}},testnet:!1}),gve=j({id:35441,name:"Q Mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org",apiUrl:"https://explorer.q.org/api"}}}),xve=j({id:35443,name:"Q Testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org",apiUrl:"https://explorer.qtestnet.org/api"}},testnet:!0}),vve=j({id:9,name:"Quai Network Mainnet",nativeCurrency:{decimals:18,name:"Quai",symbol:"QUAI"},rpcUrls:{default:{http:["https://rpc.quai.network/cyprus1"]}},blockExplorers:{default:{name:"Quaiscan",url:"https://quaiscan.io",apiUrl:"https://quaiscan.io/api"}},testnet:!1}),wve=j({id:15e3,name:"Quai Network Testnet",nativeCurrency:{decimals:18,name:"Quai",symbol:"QUAI"},rpcUrls:{default:{http:["https://orchard.rpc.quai.network/cyprus1"]}},blockExplorers:{default:{name:"Orchard Quaiscan",url:"https://orchard.quaiscan.io",apiUrl:"https://orchard.quaiscan.io/api"}},testnet:!0}),Eve=j({id:9280,name:"Rabbit Chain Testnet",nativeCurrency:{decimals:18,name:"Test Rabbit",symbol:"tRAB"},rpcUrls:{default:{http:["https://rpc-testnet.rabbitchain.org"]}},blockExplorers:{default:{name:"Rabbit Chain Testnet Explorer",url:"https://explorer-testnet.rabbitchain.org"}},testnet:!0}),kve=j({id:723487,name:"Radius Network",nativeCurrency:{name:"Radius USD",symbol:"RUSD",decimals:18},rpcUrls:{default:{http:["https://rpc.radiustech.xyz"]}},blockExplorers:{default:{name:"Radius Network Explorer",url:"https://network.radiustech.xyz"}},testnet:!1}),Cve=j({id:72344,name:"Radius Test Network",nativeCurrency:{name:"Radius USD",symbol:"RUSD",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.radiustech.xyz"]}},blockExplorers:{default:{name:"Radius Test Network Explorer",url:"https://testnet.radiustech.xyz"}},testnet:!0}),Ave=j({id:5318007,name:"Reactive Lasna Testnet",nativeCurrency:{decimals:18,name:"Lasna React",symbol:"lREACT"},rpcUrls:{default:{http:["https://lasna-rpc.rnk.dev"]}},blockExplorers:{default:{name:"Reactscan",url:"https://lasna.reactscan.net"}},testnet:!0}),Pve=j({id:111188,name:"re.al",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://rpc.realforreal.gelato.digital"]}},blockExplorers:{default:{name:"re.al Explorer",url:"https://explorer.re.al",apiUrl:"https://explorer.re.al/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:695}}}),Tve=j({id:151,name:"Redbelly Network Mainnet",nativeCurrency:{name:"Redbelly Native Coin",symbol:"RBNT",decimals:18},rpcUrls:{default:{http:["https://governors.mainnet.redbelly.network"]}},blockExplorers:{default:{name:"Routescan",url:"https://redbelly.routescan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/151/etherscan/api"}},testnet:!1}),Sve=j({id:153,name:"Redbelly Network Testnet",nativeCurrency:{name:"Redbelly Native Coin",symbol:"RBNT",decimals:18},rpcUrls:{default:{http:["https://governors.testnet.redbelly.network"]}},blockExplorers:{default:{name:"Routescan",url:"https://redbelly.testnet.routescan.io",apiUrl:"https://api.routescan.io/v2/network/testnet/evm/153_2/etherscan/api"}},testnet:!0}),Bve=j({id:50342,name:"Reddio",nativeCurrency:{name:"Reddio",symbol:"RED",decimals:18},rpcUrls:{default:{http:["https://mainnet.reddio.com/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://reddio.cloud.blockscout.com",apiUrl:"https://reddio.cloud.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:848849}},testnet:!1}),_ve=j({id:50341,name:"Reddio Sepolia",nativeCurrency:{name:"Reddio",symbol:"RED",decimals:18},rpcUrls:{default:{http:["https://reddio-dev.reddio.com"]}},blockExplorers:{default:{name:"Reddioscan",url:"https://reddio-devnet.l2scan.co",apiUrl:"https://reddio-devnet.l2scan.co/api"}},testnet:!0}),Hy=1,Ive=j({...$e,name:"Redstone",id:690,sourceId:Hy,nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.redstonechain.com"],webSocket:["wss://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz"}},contracts:{...$e.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Hy]:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:19578329}},l2OutputOracle:{[Hy]:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:19578337}},l1StandardBridge:{[Hy]:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:19578331}}}}),Nve=j({id:47805,name:"REI Mainnet",nativeCurrency:{decimals:18,name:"REI",symbol:"REI"},rpcUrls:{default:{http:["https://rpc.rei.network"],webSocket:["wss://rpc.rei.network"]}},blockExplorers:{default:{name:"REI Scan",url:"https://scan.rei.network"}},testnet:!1}),Rve=j({id:1729,name:"Reya Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.reya.network"],webSocket:["wss://ws.reya.network"]}},blockExplorers:{default:{name:"Reya Network Explorer",url:"https://explorer.reya.network"}},testnet:!1}),Ove=j({id:4153,name:"RISE",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.risechain.com"],webSocket:["wss://rpc.risechain.com/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.risechain.com",apiUrl:"https://explorer.risechain.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),Mve=j({id:11155931,name:"RISE Testnet",nativeCurrency:{name:"RISE Testnet Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.riselabs.xyz"],webSocket:["wss://testnet.riselabs.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.testnet.riselabs.xyz/",apiUrl:"https://explorer.testnet.riselabs.xyz/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},testnet:!0}),Dve=j({id:753,name:"Rivalz",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rivalz.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Rivalz Caldera Explorer",url:"https://rivalz.calderaexplorer.xyz"}},testnet:!1}),Fve=j({id:4663,name:"Robinhood Chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:100,rpcUrls:{default:{http:["https://rpc.mainnet.chain.robinhood.com","https://rpc.ordofi.network"],webSocket:["wss://rpc.ordofi.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://robinhoodchain.blockscout.com",apiUrl:"https://robinhoodchain.blockscout.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),Uve=j({id:46630,name:"Robinhood Chain Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.chain.robinhood.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.testnet.chain.robinhood.com",apiUrl:"https://explorer.testnet.chain.robinhood.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},testnet:!0}),jve=j({id:570,name:"Rollux Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com",apiUrl:"https://explorer.rollux.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}}),Lve=j({id:57e3,name:"Rollux Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io",apiUrl:"https://rollux.tanenbaum.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}},testnet:!0}),$ve=j({id:2020,name:"Ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}}),zve=j({id:7668,name:"The Root Network",nativeCurrency:{decimals:18,name:"XRP",symbol:"XRP"},rpcUrls:{default:{http:["https://root.rootnet.live/archive"],webSocket:["wss://root.rootnet.live/archive/ws"]}},blockExplorers:{default:{name:"Rootscan",url:"https://rootscan.io"}},contracts:{multicall3:{address:"0xc9C2E2429AeC354916c476B30d729deDdC94988d",blockCreated:9218338}}}),Hve=j({id:7672,name:"The Root Network - Porcini",nativeCurrency:{decimals:18,name:"XRP",symbol:"XRP"},rpcUrls:{default:{http:["https://porcini.rootnet.app/archive"],webSocket:["wss://porcini.rootnet.app/archive/ws"]}},blockExplorers:{default:{name:"Rootscan",url:"https://porcini.rootscan.io"}},contracts:{multicall3:{address:"0xc9C2E2429AeC354916c476B30d729deDdC94988d",blockCreated:10555692}},testnet:!0}),Kve=j({id:30,name:"Rootstock Mainnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"RBTC"},rpcUrls:{default:{http:["https://public-node.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.rsk.co"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4249540}}}),Vve=j({id:31,name:"Rootstock Testnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"tRBTC"},rpcUrls:{default:{http:["https://public-node.testnet.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.testnet.rootstock.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2771150}},testnet:!0}),Ky=1,Gve=j({...$e,id:12553,name:"RSS3 VSL Mainnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Mainnet Scan",url:"https://scan.rss3.io",apiUrl:"https://scan.rss3.io/api"}},contracts:{...$e.contracts,l2OutputOracle:{[Ky]:{address:"0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14193},portal:{[Ky]:{address:"0x6A12432491bbbE8d3babf75F759766774C778Db4",blockCreated:19387057}},l1StandardBridge:{[Ky]:{address:"0x4cbab69108Aa72151EDa5A3c164eA86845f18438"}}},sourceId:Ky}),Vy=11155111,qve=j({...$e,id:2331,name:"RSS3 VSL Sepolia Testnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Sepolia Testnet Scan",url:"https://scan.testnet.rss3.io",apiUrl:"https://scan.testnet.rss3.io/api"}},contracts:{...$e.contracts,l2OutputOracle:{[Vy]:{address:"0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:55697},portal:{[Vy]:{address:"0xcBD77E8E1E7F06B25baDe67142cdE82652Da7b57",blockCreated:5345035}},l1StandardBridge:{[Vy]:{address:"0xdDD29bb63B0839FB1cE0eE439Ff027738595D07B"}}},testnet:!0,sourceId:Vy}),Wve=j({id:7225878,name:"Saakuru Mainnet",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.saakuru.network"]}},blockExplorers:{default:{name:"Saakuru Explorer",url:"https://explorer.saakuru.network"}},testnet:!1}),Jve=j({id:5464,name:"Saga",network:"saga",nativeCurrency:{decimals:18,name:"gas",symbol:"GAS"},rpcUrls:{default:{http:["https://sagaevm.jsonrpc.sagarpc.io"]}},blockExplorers:{default:{name:"Saga Explorer",url:"https://sagaevm.sagaexplorer.io"}},contracts:{multicall3:{address:"0x864DDc9B50B9A0dF676d826c9B9EDe9F8913a160",blockCreated:467530}}}),Zve=j({id:202601,name:"Ronin Saigon Testnet",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-explorer.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0}),Qve=j({id:1996,name:"Sanko",nativeCurrency:{name:"DMT",symbol:"DMT",decimals:18},rpcUrls:{default:{http:["https://mainnet.sanko.xyz"]}},blockExplorers:{default:{name:"Sanko Explorer",url:"https://explorer.sanko.xyz"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:37}},testnet:!1}),Xve=j({id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/mainnet/sapphire"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}}),Yve=j({id:23295,name:"Oasis Sapphire Testnet",network:"sapphire-testnet",nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/testnet/sapphire"}},testnet:!0}),e2e=j({id:3109,name:"SatoshiVM Alpha Mainnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc-node-http.svmscan.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://svmscan.io",apiUrl:"https://svmscan.io/api"}}}),t2e=j({id:3110,name:"SatoshiVM Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://test-rpc-node-http.svmscan.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet.svmscan.io",apiUrl:"https://testnet.svmscan.io/api"}},testnet:!0}),n2e=j({id:534352,name:"Scroll",blockTime:3e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com",apiUrl:"https://api.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),r2e=j({id:534351,name:"Scroll Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://sepolia.scrollscan.com",apiUrl:"https://api-sepolia.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0}),a2e=j({id:1329,name:"Sei Network",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc.sei-apis.com/"],webSocket:["wss://evm-ws.sei-apis.com/"]}},blockExplorers:{default:{name:"Seiscan",url:"https://seiscan.io",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}}}),s2e=j({id:5124,name:"Seismic Devnet",nativeCurrency:{name:"Seismic Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://node-2.seismicdev.net/rpc"]}},blockExplorers:{default:{name:"Seismic Devnet Explorer",url:"https://explorer-2.seismicdev.net"}},testnet:!0}),i2e=j({id:1328,name:"Sei Testnet",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc-testnet.sei-apis.com"],webSocket:["wss://evm-ws-testnet.sei-apis.com"]}},blockExplorers:{default:{name:"Seiscan",url:"https://testnet.seiscan.io",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:98697651}},testnet:!0}),o2e=j({id:7119,name:"Sentrix Chain",nativeCurrency:{name:"Sentrix",symbol:"SRX",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://rpc.sentrixchain.com"],webSocket:["wss://rpc.sentrixchain.com/ws"]}},blockExplorers:{default:{name:"SentrixScan",url:"https://scan.sentrixchain.com"}},contracts:{multicall3:{address:"0xFd4b34b5763f54a580a0d9f7997A2A993ef9ceE9",blockCreated:717078}}}),l2e=j({id:7120,name:"Sentrix Testnet",nativeCurrency:{name:"Sentrix",symbol:"SRX",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://testnet-rpc.sentrixchain.com"],webSocket:["wss://testnet-rpc.sentrixchain.com/ws"]}},blockExplorers:{default:{name:"SentrixScan Testnet",url:"https://scan-testnet.sentrixchain.com"}},contracts:{multicall3:{address:"0x7900826De548425c6BE56caEbD4760AB0155Cd54",blockCreated:723191}},testnet:!0}),c2e=j({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0}),Gy=1,u2e=j({...$e,id:360,name:"Shape",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.shape.network"]}},blockExplorers:{default:{name:"shapescan",url:"https://shapescan.xyz",apiUrl:"https://shapescan.xyz/api"}},contracts:{...$e.contracts,l2OutputOracle:{[Gy]:{address:"0x6Ef8c69CfE4635d866e3E02732068022c06e724D",blockCreated:20369940}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1},portal:{[Gy]:{address:"0xEB06fFa16011B5628BaB98E29776361c83741dd3",blockCreated:20369933}},l1StandardBridge:{[Gy]:{address:"0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B",blockCreated:20369935}}},sourceId:Gy}),d2e=11155111,f2e=j({...$e,id:11011,name:"Shape Sepolia Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.shape.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer-sepolia.shape.network/",apiUrl:"https://explorer-sepolia.shape.network/api/v2"}},contracts:{...$e.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0,sourceId:d2e}),p2e=j({id:8118,name:"Shardeum",nativeCurrency:{name:"Shardeum",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://api.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer.shardeum.org"}},testnet:!1}),m2e=j({id:8082,name:"Shardeum Sphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0}),h2e=j({id:109,name:"Shibarium",network:"shibarium",nativeCurrency:{name:"Bone",symbol:"BONE",decimals:18},rpcUrls:{default:{http:["https://rpc.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://shibariumscan.io"}},contracts:{multicall3:{address:"0x864Bf681ADD6052395188A89101A1B37d3B4C961",blockCreated:265900}}}),y2e=j({id:157,name:"Puppynet Shibarium",nativeCurrency:{decimals:18,name:"Bone",symbol:"BONE"},rpcUrls:{default:{http:["https://puppynet.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://puppyscan.shib.io",apiUrl:"https://puppyscan.shib.io/api"}},contracts:{multicall3:{address:"0xA4029b74FBA366c926eDFA7Dd10B21C621170a4c",blockCreated:3035769}},testnet:!0}),b2e=j({id:336,name:"Shiden",nativeCurrency:{decimals:18,name:"SDN",symbol:"SDN"},rpcUrls:{default:{http:["https://shiden.public.blastapi.io"],webSocket:["wss://shiden-rpc.dwellir.com"]}},blockExplorers:{default:{name:"Shiden Scan",url:"https://shiden.subscan.io"}},testnet:!1}),g2e=j({id:148,name:"Shimmer",network:"shimmer",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.shimmer.network",apiUrl:"https://explorer.evm.shimmer.network/api"}}}),x2e=j({id:1073,name:"Shimmer Testnet",network:"shimmer-testnet",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.testnet.shimmer.network",apiUrl:"https://explorer.evm.testnet.shimmer.network/api"}},testnet:!0}),v2e=j({id:97453,name:"Sidra Chain",nativeCurrency:{decimals:18,name:"Sidra Digital Asset",symbol:"SDA"},rpcUrls:{default:{http:["https://node.sidrachain.com"]}},blockExplorers:{default:{name:"Sidra Chain Explorer",url:"https://ledger.sidrachain.com"}}}),w2e=j({id:380929,name:"Silent Data Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.silentdata.com"]}},blockExplorers:{default:{name:"Silent Data Mainnet Explorer",url:"https://explorer-mainnet.rollup.silentdata.com"}},testnet:!1}),E2e=j({id:2355,name:"Silicon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.silicon.network","https://silicon-mainnet.nodeinfra.com"]}},blockExplorers:{default:{name:"SiliconScope",url:"https://scope.silicon.network"}}}),k2e=j({id:1722641160,name:"Silicon Sepolia zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-sepolia.silicon.network","https://silicon-testnet.nodeinfra.com"]}},blockExplorers:{default:{name:"SiliconSepoliaScope",url:"https://scope-sepolia.silicon.network"}},testnet:!0}),C2e=j({id:98,name:"Six Protocol",nativeCurrency:{decimals:18,name:"SIX",symbol:"SIX"},rpcUrls:{default:{http:["https://sixnet-rpc-evm.sixprotocol.net"]}},blockExplorers:{default:{name:"Six Protocol Scan",url:"https://sixscan.io/sixnet"}},testnet:!1}),A2e=j({id:391845894,name:"SKALE | Block Brawlers",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}}),P2e=j({id:1564830818,name:"SKALE Calypso Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}}),T2e=j({id:974399131,name:"SKALE Calypso Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/giant-half-dual-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/giant-half-dual-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://giant-half-dual-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:103220}},testnet:!0}),S2e=j({id:1026062157,name:"SKALE | CryptoBlades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}}),B2e=j({id:1032942172,name:"SKALE | Crypto Colosseum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}}
132),_2e=j({id:2046399126,name:"SKALE Europa Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}}),I2e=j({id:1444673419,name:"SKALE Europa Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/juicy-low-small-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/juicy-low-small-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://juicy-low-small-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:110858}},testnet:!0}),N2e=j({id:2139927552,name:"Exorde Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}}),R2e=j({id:1273227453,name:"SKALE | Human Protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}}),O2e=j({id:1482601649,name:"SKALE Nebula Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}}),M2e=j({id:37084624,name:"SKALE Nebula Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/lanky-ill-funny-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/lanky-ill-funny-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://lanky-ill-funny-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:105141}},testnet:!0}),D2e=j({id:278611351,name:"SKALE | Razor Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}}),F2e=j({id:1187947933,name:"SKALE Base",nativeCurrency:{name:"Credits",symbol:"CREDIT",decimals:18},rpcUrls:{default:{http:["https://skale-base.skalenodes.com/v1/base"],webSocket:["wss://skale-base.skalenodes.com/v1/ws/base"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://skale-base-explorer.skalenodes.com/"}},testnet:!0}),U2e=j({id:324705682,name:"SKALE Base Sepolia Testnet",nativeCurrency:{name:"Credits",symbol:"CREDIT",decimals:18},rpcUrls:{default:{http:["https://base-sepolia-testnet.skalenodes.com/v1/base-testnet"],webSocket:["wss://base-sepolia-testnet.skalenodes.com/v1/ws/base-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://base-sepolia-testnet-explorer.skalenodes.com/"}},testnet:!0}),j2e=j({id:1350216234,name:"SKALE Titan Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}}
vendor: 2,295 bytes, line 132
132),L2e=j({id:1020352220,name:"SKALE Titan Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/aware-fake-trim-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/aware-fake-trim-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://aware-fake-trim-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:104072}},testnet:!0}),$2e=j({id:984123,name:"Forma Sketchpad",network:"sketchpad",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.sketchpad-1.forma.art"],webSocket:["wss://ws.sketchpad-1.forma.art"]}},blockExplorers:{default:{name:"Sketchpad Explorer",url:"https://explorer.sketchpad-1.forma.art"}},testnet:!0}),Zp=1,z2e=j({...$e,id:2192,network:"snaxchain-mainnet",name:"SnaxChain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.snaxchain.io"]}},blockExplorers:{default:{name:"Snax Explorer",url:"https://explorer.snaxchain.io",apiUrl:"https://explorer.snaxchain.io/api"}},contracts:{...$e.contracts,disputeGameFactory:{[Zp]:{address:"0x472562Fcf26D6b2793f8E0b0fB660ba0E5e08A46"}},l2OutputOracle:{[Zp]:{address:"0x2172e492Fc807F5d5645D0E3543f139ECF539294"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Zp]:{address:"0x79f446D024d74D0Bb6E699C131c703463c5D65E9"}},l1StandardBridge:{[Zp]:{address:"0x6534Bdb6b5c060d3e6aa833433333135eFE8E0aA"}}},sourceId:Zp}),Qp=11155111,H2e=j({...$e,id:13001,network:"snaxchain-testnet",name:"SnaxChain Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.snaxchain.io"]}},blockExplorers:{default:{name:"Snax Explorer",url:"https://testnet-explorer.snaxchain.io",apiUrl:"https://testnet-explorer.snaxchain.io/api"}},contracts:{...$e.contracts,disputeGameFactory:{[Qp]:{address:"0x206a75d89d45F146C54020F132FF93bEDD09f55E"}},l2OutputOracle:{[Qp]:{address:"0x60e3A368a4cdCEf85ffB964e372726F56A46221e"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Qp]:{address:"0xb5afdd0E8dDF081Ef90e8A3e0c7b5798e66E954E"}},l1StandardBridge:{[Qp]:{address:"0xbd37E1a59D4C00C9A46F75018dffd84061b
132C5f74"}}},testnet:!0,sourceId:Qp}),K2e=j({id:5031,name:"Somnia",nativeCurrency:{name:"Somnia",symbol:"SOMI",decimals:18},blockTime:100,rpcUrls:{default:{http:["https://api.infra.mainnet.somnia.network"]}},blockExplorers:{default:{name:"Somnia Explorer",url:"https://explorer.somnia.network",apiUrl:"https://explorer.somnia.network/api"}},contracts:{multicall3:{address:"0x5e44F178E8cF9B2F5409B6f18ce936aB817C5a11",blockCreated:38516341}},testnet:!1}),V2e=j({id:50312,name:"Somnia Testnet",nativeCurrency:{name:"STT",symbol:"STT",decimals:18},blockTime:100,rpcUrls:{default:{http:["https://api.infra.testnet.somnia.network"]}},blockExplorers:{default:{name:"Somnia Testnet Explorer",url:"https://shannon-explorer.somnia.network",apiUrl:"https://shannon-explorer.somnia.network/api"}},contracts:{multicall3:{address:"0x841b8199E6d3Db3C6f264f6C2bd8848b3cA64223",blockCreated:71314235}},testnet:!0}),Xp=1,G2e=j({...$e,id:1868,name:"Soneium Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium.blockscout.com",apiUrl:"https://soneium.blockscout.com/api"}},contracts:{...$e.contracts,disputeGameFactory:{[Xp]:{address:"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"}},l2OutputOracle:{[Xp]:{address:"0x0000000000000000000000000000000000000000"}},portal:{[Xp]:{address:"0x88e529a6ccd302c948689cd5156c83d4614fae92",blockCreated:7061266}},l1StandardBridge:{[Xp]:{address:"0xeb9bf100225c214efc3e7c651ebbadcf85177607",blockCreated:7061266}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},sourceId:Xp}),Yp=11155111,q2e=j({...$e,id:1946,name:"Soneium Minato Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.minato.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium-minato.blockscout.com",apiUrl:"https://soneium-minato.blockscout.com/api"}},contracts:{...$e.contracts,disputeGameFactory:{[Yp]:{address:"0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01"}},l2OutputOracle:{[Yp]:{address:"0x710e5286C746eC38beeB7538d0146f60D27be343"}},portal:{[Yp]:{address:"0x65ea1489741A5D72fFdD8e6485B216bBdcC15Af3",blockCreated:6466136}},l1StandardBridge:{[Yp]:{address:"0x5f5a404A5edabcDD80DB05E8e54A78c9EBF000C2",blockCreated:6466136}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},testnet:!0,sourceId:Yp}),W2e=j({id:19,name:"Songbird Canary-Network",nativeCurrency:{decimals:18,name:"Songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network",apiUrl:"https://songbird-explorer.flare.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13382504}}}),J2e=j({id:16,name:"Songbird Testnet Coston",nativeCurrency:{decimals:18,name:"Coston Flare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network",apiUrl:"https://coston-explorer.flare.network/api"}},testnet:!0}),Z2e=j({id:146,name:"Sonic",blockTime:630,nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Explorer",url:"https://sonicscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:60}},testnet:!1}),Q2e=j({id:57054,name:"Sonic Blaze Testnet",nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.blaze.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Blaze Testnet Explorer",url:"https://testnet.sonicscan.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1100}},testnet:!0}),X2e=j({id:64165,name:"Sonic Testnet",nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.testnet.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Testnet Explorer",url:"https://testnet.soniclabs.com/"}},testnet:!0}),Y2e=j({...Or,blockTime:200,id:50104,name:"Sophon",nativeCurrency:{decimals:18,name:"Sophon",symbol:"SOPH"},rpcUrls:{default:{http:["https://rpc.sophon.xyz"],webSocket:["wss://rpc.sophon.xyz/ws"]}},blockExplorers:{default:{name:"Sophon Block Explorer",url:"https://explorer.sophon.xyz"}},contracts:{multicall3:{address:"0x5f4867441d2416cA88B1b3fd38f21811680CD2C8",blockCreated:116}},testnet:!1}),e6e=j({...Or,blockTime:200,id:531050104,name:"Sophon Testnet",n
vendor: 12,585 bytes, line 132
132ativeCurrency:{decimals:18,name:"Sophon",symbol:"SOPH"},rpcUrls:{default:{http:["https://rpc.testnet.sophon.xyz"],webSocket:["wss://rpc.testnet.sophon.xyz/ws"]}},blockExplorers:{default:{name:"Sophon Block Explorer",url:"https://explorer.testnet.sophon.xyz"}},contracts:{multicall3:{address:"0x83c04d112adedA2C6D9037bb6ecb42E7f0b108Af",blockCreated:15642}},testnet:!0}),t6e=j({id:100021,name:"Sova",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.sova.io"]}},blockExplorers:{default:{name:"Sova Block Explorer",url:"https://explorer.sova.io"}},testnet:!1}),n6e=j({id:120893,name:"Sova Network Sepolia",nativeCurrency:{decimals:18,name:"Sepolia Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.testnet.sova.io"]}},blockExplorers:{default:{name:"Sova Sepolia Explorer",url:"https://explorer.testnet.sova.io"}},testnet:!0}),r6e=j({id:88882,name:"Chiliz Spicy Testnet",network:"chiliz-spicy-Testnet",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy-rpc.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"http://spicy-explorer.chiliz.com",apiUrl:"http://spicy-explorer.chiliz.com/api"}},testnet:!0}),a6e=j({id:988,name:"Stable Mainnet",blockTime:700,nativeCurrency:{name:"USDT0",symbol:"USDT0",decimals:18},rpcUrls:{default:{http:["https://rpc.stable.xyz"],webSocket:["wss://rpc.stable.xyz"]}},blockExplorers:{default:{name:"Stablescan",url:"https://stablescan.xyz",apiUrl:"https://api.etherscan.io/v2/api?chainid=988"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2423647}},testnet:!1}),s6e=j({id:2201,name:"Stable Testnet",blockTime:700,nativeCurrency:{name:"USDT0",symbol:"USDT0",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.stable.xyz"],webSocket:["wss://rpc.testnet.stable.xyz"]}},blockExplorers:{default:{name:"Stablescan",url:"https://testnet.stablescan.xyz",apiUrl:"https://api.etherscan.io/v2/api?chainid=2201"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:22364430}},testnet:!0}),dN=j({...qE,id:1660990954,name:"Status Network Sepolia",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://public.sepolia.rpc.status.network"],webSocket:["wss://public.sepolia.rpc.status.network/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepoliascan.status.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1578364}},testnet:!0}),i6e=j({id:1234,name:"Step Network",nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},rpcUrls:{default:{http:["https://rpc.step.network"]}},blockExplorers:{default:{name:"Step Scan",url:"https://stepscan.io"}},testnet:!1}),o6e=j({id:1514,name:"Data Network",nativeCurrency:{decimals:18,name:"DATA",symbol:"DATA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:340998},ensRegistry:{address:"0x5dc881dda4e4a8d312be3544ad13118d1a04cb17",blockCreated:648924},ensUniversalResolver:{address:"0xddfb18888a9466688235887dec2a10c4f5effee9",blockCreated:649114}},rpcUrls:{default:{http:["https://mainnet.datarpc.io"]}},blockExplorers:{default:{name:"Data Network explorer",url:"https://datanetscan.io",apiUrl:"https://datanetscan.io/api/v2"}},ensTlds:[".ip"],testnet:!1}),l6e=j({id:1315,name:"Data Network Aeneid",network:"data-network-aeneid",nativeCurrency:{decimals:18,name:"DATA",symbol:"DATA"},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1792},ensRegistry:{address:"0x5dC881dDA4e4a8d312be3544AD13118D1a04Cb17",blockCreated:1322033},ensUniversalResolver:{address:"0x6D3B3F99177FB2A5de7F9E928a9BD807bF7b5BAD",blockCreated:1322097}},rpcUrls:{default:{http:["https://aeneid.datarpc.io"]}},blockExplorers:{default:{name:"Data Network Aeneid Explorer",url:"https://aeneid.datanetscan.io",apiUrl:"https://aeneid.datanetscan.io/api/v2"}},ensTlds:[".ip"],testnet:!0}),c6e=j({id:1516,name:"Story Odyssey",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://rpc.odyssey.storyrpc.io"]}},blockExplorers:{default:{name:"Story Odyssey Explorer",url:"https://odyssey.storyscan.xyz"}},testnet:!0}),u6e=j({id:1513,name:"Story Testnet",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://testnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story Testnet Explorer",url:"https://testnet.storyscan.xyz"}},testnet:!0}),d6e=j({id:105105,name:"Stratis Mainnet",network:"stratis",nativeCurrency:{name:"Stratis",symbol:"STRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Stratis Explorer",url:"https://explorer.stratisevm.com"}}}),f6e=j({id:964,name:"Subtensor EVM",nativeCurrency:{decimals:18,name:"TAO",symbol:"TAO"},rpcUrls:{default:{http:["https://lite.chain.opentensor.ai"]}},blockExplorers:{default:{name:"Taostats EVM Explorer",url:"https://evm.taostats.io",apiUrl:"https://evm.taostats.io/api"}},testnet:!1}),p6e=j({id:8866,name:"SuperLumio",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.lumio.io"]}},blockExplorers:{default:{name:"Lumio explorer",url:"https://explorer.lumio.io"}},testnet:!1}),m6e=j({id:55244,name:"Superposition",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.superposition.so"]}},blockExplorers:{default:{name:"Superposition Explorer",url:"https://explorer.superposition.so"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:39}},testnet:!1}),e0=1,h6e=j({...$e,id:5330,name:"Superseed",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Explorer",url:"https://explorer.superseed.xyz",apiUrl:"https://explorer.superseed.xyz/api/v2"}},contracts:{...$e.contracts,disputeGameFactory:{[e0]:{address:"0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0",blockCreated:20737481}},l2OutputOracle:{[e0]:{address:"0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949",blockCreated:20737481}},portal:{[e0]:{address:"0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07",blockCreated:20737481}},l1StandardBridge:{[e0]:{address:"0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede",blockCreated:20737481}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:e0}),Ew=11155111,y6e=j({...$e,id:53302,name:"Superseed Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Sepolia Explorer",url:"https://sepolia-explorer.superseed.xyz",apiUrl:"https://sepolia-explorer.superseed.xyz/api/v2"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},portal:{[Ew]:{address:"0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB",blockCreated:5523438}},l1StandardBridge:{[Ew]:{address:"0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C",blockCreated:5523442}}},testnet:!0,sourceId:Ew}),b6e=j({id:763375,name:"Surge Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://l2-rpc.hoodi.surge.wtf"],webSocket:["wss://l2-ws.hoodi.surge.wtf"]}},blockExplorers:{default:{name:"Surge Testnet Blockscout",url:"https://explorer.hoodi.surge.wtf"}},testnet:!0}),g6e=j({id:254,name:"Swan Chain Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.swanchain.org"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://swanscan.io"}},testnet:!1}),x6e=j({id:20241133,name:"Swan Proxima Testnet",nativeCurrency:{name:"Swan Ether",symbol:"sETH",decimals:18},rpcUrls:{default:{http:["https://rpc-proxima.swanchain.io"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://proxima-explorer.swanchain.io"}},testnet:!0}),v6e=j({id:2024,name:"Swan Saturn Testnet",nativeCurrency:{name:"Swan Ether",symbol:"sETH",decimals:18},rpcUrls:{default:{http:["https://saturn-rpc.swanchain.io"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://saturn-explorer.swanchain.io"}},testnet:!0}),w6e=j({...$e,id:1923,name:"Swellchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://swell-mainnet.alt.technology"]}},blockExplorers:{default:{name:"Swell Explorer",url:"https://explorer.swellnetwork.io",apiUrl:"https://explorer.swellnetwork.io/api"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}}}),E6e=j({...$e,id:1924,name:"Swellchain Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://swell-testnet.alt.technology"]}},blockExplorers:{default:{name:"Swellchain Testnet Explorer",url:"https://swell-testnet-explorer.alt.technology",apiUrl:"https://swell-testnet-explorer.alt.technology/api"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},testnet:!0}),k6e=j({id:94,name:"SwissDLT Mainnet",nativeCurrency:{decimals:18,name:"BCTS",symbol:"BCTS"},rpcUrls:{default:{http:["https://rpc.swissdlt.ch"]}},blockExplorers:{default:{name:"SwissDLT Explorer",url:"https://explorer.swissdlt.ch"}},testnet:!1}),C6e=j({id:57,name:"Syscoin Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org",apiUrl:"https://explorer.syscoin.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}}),A6e=j({id:5700,name:"Syscoin Tanenbaum Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}},testnet:!0}),P6e=j({id:239,name:"TAC",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/tac"]}},blockExplorers:{default:{name:"Blockscout",url:"https://tac.blockscout.com",apiUrl:"https://tac.blockscout.com/api"},native:{name:"TAC Explorer",url:"https://explorer.tac.build",apiUrl:"https://explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),T6e=j({id:2391,name:"TAC SPB Testnet",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://spb.rpc.tac.build"]}},blockExplorers:{default:{name:"TAC",url:"https://spb.explorer.tac.build",apiUrl:"https://spb.explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:471429}},testnet:!0}),S6e=j({id:167e3,name:"Taiko Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.mainnet.taiko.xyz"],webSocket:["wss://ws.mainnet.taiko.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://taikoscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11269}}}),B6e=j({id:167009,name:"Taiko Hekla L2",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hekla.taiko.xyz"]}},blockExplorers:{default:{name:"Taikoscan",url:"https://hekla.taikoscan.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59757}},testnet:!0}),_6e=j({id:167013,name:"Taiko Hoodi",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hoodi.taiko.xyz"],webSocket:["wss://ws.hoodi.taiko.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://hoodi.taikoscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:581116}},testnet:!0}),I6e=j({id:167007,name:"Taiko Jolnir (Alpha-5 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.jolnir.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.jolnir.taiko.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:732706}},testnet:!0}),N6e=j({id:167008,name:"Taiko Katla (Alpha-6 Testnet)",network:"tko-katla",nativeCurrency:{name:"Ether",symbol
vendor: 5,780 bytes, line 132
132:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katla.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.katla.taiko.xyz"}},testnet:!0}),R6e=j({id:167005,name:"Taiko (Alpha-3 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}},testnet:!0}),O6e=j({id:841,name:"Taraxa Mainnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}}),M6e=j({id:842,name:"Taraxa Testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0}),D6e=j({id:10218,name:"Tea Sepolia",nativeCurrency:{name:"Sepolia Tea",symbol:"TEA",decimals:18},rpcUrls:{default:{http:["https://tea-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Tea Sepolia Explorer",url:"https://sepolia.tea.xyz"}},testnet:!0}),F6e=j({id:2017,name:"Telcoin Adiri Testnet",nativeCurrency:{name:"Telcoin",symbol:"TEL",decimals:18},rpcUrls:{default:{http:["https://rpc.telcoin.network"]}},blockExplorers:{default:{name:"telscan",url:"https://telscan.io"}},testnet:!0}),U6e=j({id:40,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://rpc.telos.net"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}}),j6e=j({id:41,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://rpc.testnet.telos.net"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0});/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const WE=BigInt(0),l3=BigInt(1);function jm(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function JE(e){if(!jm(e))throw new Error("Uint8Array expected")}function tm(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function qy(e){const t=e.toString(16);return t.length&1?"0"+t:t}function Yz(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?WE:BigInt("0x"+e)}const eH=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",L6e=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function nm(e){if(JE(e),eH)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=L6e[e[n]];return t}const Ei={_0:48,_9:57,A:65,F:70,a:97,f:102};function fN(e){if(e>=Ei._0&&e<=Ei._9)return e-Ei._0;if(e>=Ei.A&&e<=Ei.F)return e-(Ei.A-10);if(e>=Ei.a&&e<=Ei.f)return e-(Ei.a-10)}function Gb(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(eH)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let a=0,s=0;a<n;a++,s+=2){const i=fN(e.charCodeAt(s)),l=fN(e.charCodeAt(s+1));if(i===void 0||l===void 0){const c=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+s)}r[a]=i*16+l}return r}function uc(e){return Yz(nm(e))}function tH(e){return JE(e),Yz(nm(Uint8Array.from(e).reverse()))}function Lm(e,t){return Gb(e.toString(16).padStart(t*2,"0"))}function nH(e,t){return Lm(e,t).reverse()}function ja(e,t,n){let r;if(typeof t=="string")try{r=Gb(t)}catch(s){throw new Error(e+" must be hex string or Uint8Array, cause: "+s)}else if(jm(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const a=r.length;if(typeof n=="number"&&a!==n)throw new Error(e+" of length "+n+" expected, got "+a);return r}function qb(...e){let t=0;for(let r=0;r<e.length;r++){const a=e[r];JE(a),t+=a.length}const n=new Uint8Array(t);for(let r=0,a=0;r<e.length;r++){const s=e[r];n.set(s,a),a+=s.length}return n}function rH(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0}const kw=e=>typeof e=="bigint"&&WE<=e;function ZE(e,t,n){return kw(e)&&kw(t)&&kw(n)&&t<=e&&e<n}function ju(e,t,n,r){if(!ZE(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function $6e(e){let t;for(t=0;e>WE;e>>=l3,t+=1);return t}const Z1=e=>(l3<<BigInt(e))-l3,Cw=e=>new Uint8Array(e),pN=e=>Uint8Array.from(e);function z6e(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=Cw(e),a=Cw(e),s=0;const i=()=>{r.fill(1),a.fill(0),s=0},l=(...p)=>n(a,r,...p),c=(p=Cw(0))=>{a=l(pN([0]),p),r=l(),p.length!==0&&(a=l(pN([1]),p),r=l())},u=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let p=0;const m=[];for(;p<t;){r=l();const h=r.slice();m.push(h),p+=r.length}return qb(...m)};return(p,m)=>{i(),c(p);let h;for(;!(h=m(u()));)c();return i(),h}}const H6e={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"||jm(e),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 Q1(e,t,n={}){const r=(a,s,i)=>{const l=H6e[s];if(typeof l!="function")throw new Error("invalid validator function");const c=e[a];if(!(i&&c===void 0)&&!l(c,e))throw new Error("param "+String(a)+" is invali
132d. Expected "+s+", got "+c)};for(const[a,s]of Object.entries(t))r(a,s,!1);for(const[a,s]of Object.entries(n))r(a,s,!0);return e}function mN(e){const t=new WeakMap;return(n,...r)=>{const a=t.get(n);if(a!==void 0)return a;const s=e(n,...r);return t.set(n,s),s}}const K6e="0.1.1";function V6e(){return K6e}let pt=class Ai extends Error{static setStaticOptions(t){Ai.prototype.docsOrigin=t.docsOrigin,Ai.prototype.showVersion=t.showVersion,Ai.prototype.version=t.version}constructor(t,n={}){const r=(()=>{var f;if(n.cause instanceof Ai){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&typeof n.cause.details=="string"?n.cause.details:(f=n.cause)!=null&&f.message?n.cause.message:n.details})(),a=n.cause instanceof Ai&&n.cause.docsPath||n.docsPath,s=n.docsOrigin??Ai.prototype.docsOrigin,i=`${s}${a??""}`,l=!!(n.version??Ai.prototype.showVersion),c=n.version??Ai.prototype.version,u=[t||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r||a||l?["",r?`Details: ${r}`:void 0,a?`See: ${i}`:void 0,l?`Version: ${c}`:void 0]:[]].filter(f=>typeof f=="string").join(`
133`);super(u,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=n.cause,this.details=r,this.docs=i,this.docsOrigin=s,this.docsPath=a,this.shortMessage=t,this.showVersion=l,this.version=c}walk(t){return aH(this,t)}};Object.defineProperty(pt,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${V6e()}`}});pt.setStaticOptions(pt.defaultStaticOptions);function aH(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?aH(e.cause,t):t?null:e}function wd(e,t){if(Nu(e)>t)throw new cwe({givenSize:Nu(e),maxSize:t})}const ki={zero:48,nine:57,A:65,F:70,a:97,f:102};function hN(e){if(e>=ki.zero&&e<=ki.nine)return e-ki.zero;if(e>=ki.A&&e<=ki.F)return e-(ki.A-10);if(e>=ki.a&&e<=ki.f)return e-(ki.a-10)}function sH(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new uwe({size:e.length,targetSize:r,type:"Bytes"});const a=new Uint8Array(r);for(let s=0;s<r;s++){const i=n==="right";a[i?s:r-s-1]=e[i?s:e.length-s-1]}return a}function iH(e,t={}){const{dir:n="left"}=t;let r=e,a=0;for(let s=0;s<r.length-1&&r[n==="left"?s:r.length-s-1].toString()==="0";s++)a++;return r=n==="left"?r.slice(a):r.slice(0,r.length-a),r}function X1(e,t){if(Yt(e)>t)throw new hwe({givenSize:Yt(e),maxSize:t})}function G6e(e,t){if(typeof t=="number"&&t>0&&t>Yt(e)-1)throw new hH({offset:t,position:"start",size:Yt(e)})}function q6e(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Yt(e)!==n-t)throw new hH({offset:n,position:"end",size:Yt(e)})}function oH(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;const a=e.replace("0x","");if(a.length>r*2)throw new ywe({size:Math.ceil(a.length/2),targetSize:r,type:"Hex"});return`0x${a[n==="right"?"padEnd":"padStart"](r*2,"0")}`}function W6e(e,t={}){const{dir:n="left"}=t;let r=e.replace("0x",""),a=0;for(let s=0;s<r.length-1&&r[n==="left"?s:r.length-s-1].toString()==="0";s++)a++;return r=n==="left"?r.slice(a):r.slice(0,r.length-a),r==="0"?"0x":n==="right"&&r.length%2===1?`0x${r}0`:`0x${r}`}const J6e="#__bigint";function Ed(e,t,n){return JSON.stringify(e,(r,a)=>typeof a=="bigint"?a.toString()+J6e:a,n)}const Z6e=new TextDecoder,Q6e=new TextEncoder;function X6e(e){if(!(e instanceof Uint8Array)){if(!e)throw new Wy(e);if(typeof e!="object")throw new Wy(e);if(!("BYTES_PER_ELEMENT"in e))throw new Wy(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!=="Uint8Array")throw new Wy(e)}}function lH(...e){let t=0;
133for(const r of e)t+=r.length;const n=new Uint8Array(t);for(let r=0,a=0;r<e.length;r++){const s=e[r];n.set(s,a),a+=s.length}return n}function QE(e){return e instanceof Uint8Array?e:typeof e=="string"?ea(e):Y6e(e)}function Y6e(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function ea(e,t={}){const{size:n}=t;let r=e;n&&(X1(e,n),r=vc(e,n));let a=r.slice(2);a.length%2&&(a=`0${a}`);const s=a.length/2,i=new Uint8Array(s);for(let l=0,c=0;l<s;l++){const u=hN(a.charCodeAt(c++)),f=hN(a.charCodeAt(c++));if(u===void 0||f===void 0)throw new pt(`Invalid byte sequence ("${a[c-2]}${a[c-1]}" in "${a}").`);i[l]=u<<4|f}return i}function Y1(e,t={}){const{size:n}=t,r=Q6e.encode(e);return typeof n=="number"?(wd(r,n),nwe(r,n)):r}function ewe(e,t){return rH(e,t)}function twe(e,t){return sH(e,{dir:"left",size:t})}function nwe(e,t){return sH(e,{dir:"right",size:t})}function rwe(e){return crypto.getRandomValues(new Uint8Array(e))}function Nu(e){return e.length}function awe(e,t,n,r={}){const{strict:a}=r;return e.slice(t,n)}function swe(e,t={}){const{size:n}=t;typeof n<"u"&&wd(e,n);const r=Qn(e,t);return Lt(r,t)}function iwe(e,t={}){const{size:n}=t;let r=e;if(typeof n<"u"&&(wd(r,n),r=cH(r)),r.length>1||r[0]>1)throw new lwe(r);return!!r[0]}function Fi(e,t={}){const{size:n}=t;typeof n<"u"&&wd(e,n);const r=Qn(e,t);return Zu(r,t)}function owe(e,t={}){const{size:n}=t;let r=e;return typeof n<"u"&&(wd(r,n),r=uH(r)),Z6e.decode(r)}function cH(e){return iH(e,{dir:"left"})}function uH(e){return iH(e,{dir:"right"})}function c3(e){try{return X6e(e),!0}catch{return!1}}class lwe extends pt{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}class Wy extends pt{constructor(t){super(`Value \`${typeof t=="object"?Ed(t):t}\` of type \`${typeof t}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}let cwe=class extends pt{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},uwe=class extends pt{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}};const dwe=new TextEncoder,fwe=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function dH(e,t={}){const{strict:n=!1}=t;if(!e)throw new yN(e);if(typeof e!="string")throw new yN(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new bN(e);if(!e.startsWith("0x"))throw new bN(e)}function un(...e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function Ju(e){return e instanceof Uint8Array?Qn(e):Array.isArray(e)?Qn(new Uint8Array(e)):e}function fH(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(X1(n,t.size),hs(n,t.size)):n}function Qn(e,t={}){let n="";for(let a=0;a<e.length;a++)n+=fwe[e[a]];const r=`0x${n}`;return typeof t.size=="number"?(X1(r,t.size),vc(r,t.size)):r}function Je(e,t={}){const{signed:n,size:r}=t,a=BigInt(e);let s;r?n?s=(1n<<BigInt(r)*8n-1n)-1n:s=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof s=="bigint"&&n?-s-1n:0;if(s&&a>s||a<i){const u=typeof e=="bigint"?"n":"";throw new mH({max:s?`${s}${u}`:void 0,min:`${i}${u}`,signed:n,size:r,value:`${e}${u}`})}const c=`0x${(n&&a<0?BigInt.asUintN(r*8,BigInt(a)):a).toString(16)}`;return r?hs(c,r):c}function Jo(e,t={}){return Qn(dwe.encode(e),t)}function pwe(e,t){return rH(ea(e),ea(t))}function hs(e,t){return oH(e,{dir:"left",size:t})}function vc(e,t){return oH(e,{dir:"right",size:t})}function XE(e){return Qn(rwe(e))}function Mt(e,t,n,r={}){const{strict:a}=r;G6e(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return a&&q6e(s,t,n),s}function Yt(e){return Math.ceil((e.length-2)/2)}function u3(e){return W6e(e,{dir:"left"})}function Lt(e,t={}){const{signed:n}=t;t.size&&X1(e,t.size);const r=BigInt(e);if(!n)return r;const a=(e.length-2)/2,s=(1n<<BigInt(a)*8n)-1n,i=s>>1n;return r<=i?r:r-s-1n}function Zu(e,t={}){const{signed:n,size:r}=t;return Number(!n&&!r?e:Lt(e,t))}function pH(e,t={}){const{size:n}=t;let r=ea(e);return n&&(wd(r,n),r=uH(r)),new TextDecoder().decode(r)}function Jr(e,t={}){const{strict:n=!1}=t;try{return dH(e,{strict:n}),!0}catch{return!1}}class mH extends pt{constructor({max:t,min:n,signed:r,size:a,value:s}){super(`Number \`${s}\` is not in safe${a?` ${a*8}-bit`:""}${r?" signed":" unsigned"} integer range ${t?`(\`${n}\` to \`${t}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class yN extends pt{constructor(t){super(`Value \`${typeof t=="object"?Ed(t):t}\` of type \`${typeof t}
vendor: 6,846 bytes, line 133
133\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class bN extends pt{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class mwe extends pt{constructor(t){super(`Hex value \`"${t}"\` is an odd length (${t.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}class hwe extends pt{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class hH extends pt{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class ywe extends pt{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}class yH extends RE{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,Qce(t);const r=L1(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 a=this.blockLen,s=new Uint8Array(a);s.set(r.length>a?t.create().update(r).digest():r);for(let i=0;i<s.length;i++)s[i]^=54;this.iHash.update(s),this.oHash=t.create();for(let i=0;i<s.length;i++)s[i]^=106;this.oHash.update(s),Io(s)}update(t){return Vu(this),this.iHash.update(t),this}digestInto(t){Vu(this),bc(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:a,destroyed:s,blockLen:i,outputLen:l}=this;return t=t,t.finished=a,t.destroyed=s,t.blockLen=i,t.outputLen=l,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const bH=(e,t,n)=>new yH(e,t).update(n).digest();bH.create=(e,t)=>new yH(e,t);function ys(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=fz(QE(e));return n==="Bytes"?r:Qn(r)}function gN(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=ez(QE(e));return n==="Bytes"?r:Qn(r)}function rm(e){return e.length===66&&Jr(e,{strict:!0})}const bwe={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new xwe({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new gwe({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new xN({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new xN({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function YE(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(bwe);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}class xN extends pt{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class gwe extends pt{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class xwe extends pt{constructor({count:t,limit:n}
133){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function e4(e){return vwe(e,"Hex")}function vwe(e,t){const n=t,r=(()=>{if(typeof e=="string"){if(e.length>3&&e.length%2!==0)throw new mwe(e);return ea(e)}return e})(),a=YE(r,{recursiveReadLimit:Number.POSITIVE_INFINITY});return gH(a,n)}function gH(e,t="Hex"){if(e.bytes.length===0)return t==="Hex"?Qn(e.bytes):e.bytes;const n=e.readByte();if(n<128&&e.decrementPosition(1),n<192){const a=vN(e,n,128),s=e.readBytes(a);return t==="Hex"?Qn(s):s}const r=vN(e,n,192);return wwe(e,r,t)}function vN(e,t,n){if(n===128&&t<128)return 1;if(t<=n+55)return t-n;if(t===n+55+1)return e.readUint8();if(t===n+55+2)return e.readUint16();if(t===n+55+3)return e.readUint24();if(t===n+55+4)return e.readUint32();throw new pt("Invalid RLP prefix")}function wwe(e,t,n){const r=e.position,a=[];for(;e.position-r<t;)a.push(gH(e,n));return a}function Ewe(e,t){const{as:n}=t,r=xH(e),a=YE(new Uint8Array(r.length));return r.encode(a),n==="Hex"?Qn(a.bytes):a.bytes}function $m(e,t={}){const{as:n="Hex"}=t;return Ewe(e,{as:n})}function xH(e){return Array.isArray(e)?kwe(e.map(t=>xH(t))):Cwe(e)}function kwe(e){const t=e.reduce((a,s)=>a+s.length,0),n=vH(t);return{length:t<=55?1+t:1+n+t,encode(a){t<=55?a.pushByte(192+t):(a.pushByte(247+n),n===1?a.pushUint8(t):n===2?a.pushUint16(t):n===3?a.pushUint24(t):a.pushUint32(t));for(const{encode:s}of e)s(a)}}}function Cwe(e){const t=typeof e=="string"?ea(e):e,n=vH(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(a){t.length===1&&t[0]<128?a.pushBytes(t):t.length<=55?(a.pushByte(128+t.length),a.pushBytes(t)):(a.pushByte(183+n),n===1?a.pushUint8(t.length):n===2?a.pushUint16(t.length):n===3?a.pushUint24(t.length):a.pushUint32(t.length),a.pushBytes(t))}}}function vH(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=16777215)return 3;if(e<=4294967295)return 4;throw new pt("Length is too large.")}class Awe extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const Pwe={checksum:new Awe(8192)},Aw=Pwe.checksum;function wH(e,t={}){const{compressed:n}=t,{prefix:r,x:a,y:s}=e;if(n===!1||typeof a=="bigint"&&typeof s=="bigint"){if(r!==4)throw new wN({prefix:r,cause:new Nwe});return}if(n===!0||typeof a=="bigint"&&typeof s>"u"){if(r!==3&&r!==2)throw new wN({prefix:r,cause:new Iwe});return}throw new _we({publicKey:e})}function Twe(e){const t=(()=>{if(Jr(e))return t4(e);if(c3(e))return Swe(e);const{prefix:n,x:r,y:a}=e;return typeof r=="bigint"&&typeof a=="bigint"?{prefix:n??4,x:r,y:a}:{prefix:n,x:r}})();return wH(t),t}function Swe(e){return t4(Qn(e))}function t4(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new Rwe({publicKey:e});if(e.length===130){const r=BigInt(Mt(e,0,32)),a=BigInt(Mt(e,32,64));return{prefix:4,x:r,y:a}}if(e.length===132){const r=Number(Mt(e,0,1)),a=BigInt(Mt(e,1,33)),s=BigInt(Mt(e,33,65));return{prefix:r,x:a,y:s}}const t=Number(Mt(e,0,1)),n=BigInt(Mt(e,1,33));return{prefix:t,x:n}}function Bwe(e,t={}){return ea(n4(e,t))}function n4(e,t={}){wH(e);const{prefix:n,x:r,y:a}=e,{includePrefix:s=!0}=t;return un(s?Je(n,{size:1}):"0x",Je(r,{size:32}),typeof a=="bigint"?Je(a,{size:32}):"0x")}class _we extends pt{constructor({publicKey:t}){super(`Value \`${Ed(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}let wN=class extends pt{constructor({prefix:t,cause:n}){super(`Prefix "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}};class Iwe extends pt{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class Nwe extends pt{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let Rwe=class extends pt{constructor({publicKey:t}){super(`Value \`${t}
vendor: 27,476 bytes, line 133
133\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${Yt(Ju(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const Owe=/^0x[a-fA-F0-9]{40}$/;function Aa(e,t={}){const{strict:n=!0}=t;if(!Owe.test(e))throw new EN({address:e,cause:new Mwe});if(n){if(e.toLowerCase()===e)return;if(zm(e)!==e)throw new EN({address:e,cause:new Dwe})}}function zm(e){if(Aw.has(e))return Aw.get(e);Aa(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=ys(Y1(t),{as:"Bytes"}),r=t.split("");for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&r[s]&&(r[s]=r[s].toUpperCase()),(n[s>>1]&15)>=8&&r[s+1]&&(r[s+1]=r[s+1].toUpperCase());const a=`0x${r.join("")}`;return Aw.set(e,a),a}function d3(e,t={}){const{checksum:n=!1}=t;return Aa(e),n?zm(e):e}function To(e,t={}){const n=ys(`0x${n4(e).slice(4)}`).substring(26);return d3(`0x${n}`,t)}function Ls(e,t){return Aa(e,{strict:!1}),Aa(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()}function bs(e,t={}){const{strict:n=!0}=t??{};try{return Aa(e,{strict:n}),!0}catch{return!1}}class EN extends pt{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class Mwe extends pt{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class Dwe extends pt{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ta=BigInt(0),_r=BigInt(1),sc=BigInt(2),Fwe=BigInt(3),EH=BigInt(4),kH=BigInt(5),CH=BigInt(8);function Zr(e,t){const n=e%t;return n>=ta?n:t+n}function Ua(e,t,n){let r=e;for(;t-- >ta;)r*=r,r%=n;return r}function f3(e,t){if(e===ta)throw new Error("invert: expected non-zero number");if(t<=ta)throw new Error("invert: expected positive modulus, got "+t);let n=Zr(e,t),r=t,a=ta,s=_r;for(;n!==ta;){const l=r/n,c=r%n,u=a-s*l;r=n,n=c,a=s,s=u}if(r!==_r)throw new Error("invert: does not exist");return Zr(a,t)}function AH(e,t){const n=(e.ORDER+_r)/EH,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw new Error("Cannot find square root");return r}function Uwe(e,t){const n=(e.ORDER-kH)/CH,r=e.mul(t,sc),a=e.pow(r,n),s=e.mul(t,a),i=e.mul(e.mul(s,sc),a),l=e.mul(s,e.sub(i,e.ONE));if(!e.eql(e.sqr(l),t))throw new Error("Cannot find square root");return l}function jwe(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-_r,n=0;for(;t%sc===ta;)t/=sc,n++;let r=sc;const a=kd(e);for(;kN(a,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return AH;let s=a.pow(r,t);const i=(t+_r)/sc;return function(c,u){if(c.is0(u))return u;if(kN(c,u)!==1)throw new Error("Cannot find square root");let f=n,p=c.mul(c.ONE,s),m=c.pow(u,t),h=c.pow(u,i);for(;!c.eql(m,c.ONE);){if(c.is0(m))return c.ZERO;let y=1,x=c.sqr(m);for(;!c.eql(x,c.ONE);)if(y++,x=c.sqr(x),y===f)throw new Error("Cannot find square root");const C=_r<<BigInt(f-y-1),T=c.pow(p,C);f=y,p=c.sqr(T),m=c.mul(m,p),h=c.mul(h,T)}return h}}function Lwe(e){return e%EH===Fwe?AH:e%CH===kH?Uwe:jwe(e)}const $we=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function zwe(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=$we.reduce((r,a)=>(r[a]="function",r),t);return Q1(e,n)}function Hwe(e,t,n){if(n<ta)throw new Error("invalid exponent, negatives unsupported");if(n===ta)return e.ONE;if(n===_r)return t;let r=e.ONE,a=t;for(;n>ta;)n&_r&&(r=e.mul(r,a)),a=e.sqr(a),n>>=_r;return r}function PH(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),a=t.reduce((i,l,c)=>e.is0(l)?i:(r[c]=i,e.mul(i,l)),e.ONE),s=e.inv(a);return t.reduceRight((i,l,c)=>e.is0(l)?i:(r[c]=e.mul(i,r[c]),e.mul(i,l)),s),r}function kN(e,t){const n=(e.ORDER-_r)/sc,r=e.pow(t,n),a=e.eql(r,e.ONE),s=e.eql(r,e.ZERO),i=e.eql(r,e.neg(e.ONE));if(!a&&!s&&!i)throw new Error("invalid Legendre symbol result");return a?1:s?0:-1}function TH(e,t){t!==void 0&&_0(t);const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function kd(e,t,n=!1,r={}){if(e<=ta)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:a,nByteLength:s}=TH(e,t);if(s>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let i;const l=Object.freeze({ORDER:e,isLE:n,BITS:a,BYTES:s,MASK:Z1(a),ZERO:ta,ONE:_r,create:c=>Zr(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof c);return ta<=c&&c<e},is0:c=>c===ta,isOdd:c=>(c&_r)===_r,neg:c=>Zr(-c,e),eql:(c,u)=>c===u,sqr:c=>Zr(c*c,e),add:(c,u)=>Zr(c+u,e),sub:(c,u)=>Zr(c-u,e),mul:(c,u)=>Zr(c*u,e),pow:(c,u)=>Hwe(l,c,u),div:(c,u)=>Zr(c*f3(u,e),e),sqrN:c=>c*c,addN:(c,u)=>c+u,subN:(c,u)=>c-u,mulN:(c,u)=>c*u,inv:c=>f3(c,e),sqrt:r.sqrt||(c=>(i||(i=Lwe(e)),i(l,c))),toBytes:c=>n?nH(c,s):Lm(c,s),fromBytes:c=>{if(c.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+c.length);return n?tH(c):uc(c)},invertBatch:c=>PH(l,c),cmov:(c,u,f)=>f?u:c});return Object.freeze(l)}function SH(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 BH(e){const t=SH(e);return t+Math.ceil(t/2)}function Kwe(e,t,n=!1){const r=e.length,a=SH(t),s=BH(t);if(r<16||r<s||r>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+r);const i=n?tH(e):uc(e),l=Zr(i,t-_r)+_r;return n?nH(l,a):Lm(l,a)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const CN=BigInt(0),p3=BigInt(1);function Pw(e,t){const n=t.negate();return e?n:t}function _H(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Tw(e,t){_H(e,t);const n=Math.ceil(t/e)+1,r=2**(e-1),a=2**e,s=Z1(e),i=BigInt(e);return{windows:n,windowSize:r,mask:s,maxNumber:a,shiftBy:i}}function AN(e,t,n){const{windowSize:r,mask:a,maxNumber:s,shiftBy:i}=n;let l=Number(e&a),c=e>>i;l>r&&(l-=s,c+=p3);const u=t*r,f=u+Math.abs(l)-1,p=l===0,m=l<0,h=t%2!==0;return{nextN:c,offset:f,isZero:p,isNeg:m,isNegF:h,offsetF:u}}function Vwe(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error("invalid point at index "+r)})}function Gwe(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+r)})}const Sw=new WeakMap,IH=new WeakMap;function Bw(e){return IH.get(e)||1}function qwe(e,t){return{constTimeNegate:Pw,hasPrecomputes(n){return Bw(n)!==1},unsafeLadder(n,r,a=e.ZERO){let s=n;for(;r>CN;)r&p3&&(a=a.add(s)),s=s.double(),r>>=p3;return a},precomputeWindow(n,r){const{windows:a,windowSize:s}=Tw(r,t),i=[];let l=n,c=l;for(let u=0;u<a;u++){c=l,i.push(c);for(let f=1;f<s;f++)c=c.add(l),i.push(c);l=c.double()}return i},wNAF(n,r,a){let s=e.ZERO,i=e.BASE;const l=Tw(n,t);for(let c=0;c<l.windows;c++){const{nextN:u,offset:f,isZero:p,isNeg:m,isNegF:h,offsetF:y}=AN(a,c,l);a=u,p?i=i.add(Pw(h,r[y])):s=s.add(Pw(m,r[f]))}return{p:s,f:i}},wNAFUnsafe(n,r,a,s=e.ZERO){const i=Tw(n,t);for(let l=0;l<i.windows&&a!==CN;l++){const{nextN:c,offset:u,isZero:f,isNeg:p}=AN(a,l,i);if(a=c,!f){const m=r[u];s=s.add(p?m.negate():m)}}return s},getPrecomputes(n,r,a){let s=Sw.get(r);return s||(s=this.precomputeWindow(r,n),n!==1&&Sw.set(r,a(s))),s},wNAFCached(n,r,a){const s=Bw(n);return this.wNAF(s,this.getPrecomputes(s,n,a),r)},wNAFCachedUnsafe(n,r,a,s){const i=Bw(n);return i===1?this.unsafeLadder(n,r,s):this.wNAFUnsafe(i,this.getPrecomputes(i,n,a),r,s)},setWindowSize(n,r){_H(r,t),IH.set(n,r),Sw.delete(n)}}}function Wwe(e,t,n,r){Vwe(n,e),Gwe(r,t);const a=n.length,s=r.length;if(a!==s)throw new Error("arrays of points and scalars must have equal length");const i=e.ZERO,l=$6e(BigInt(a));let c=1;l>12?c=l-3:l>4?c=l-2:l>0&&(c=2);const u=Z1(c),f=new Array(Number(u)+1).fill(i),p=Math.floor((t.BITS-1)/c)*c;let m=i;for(let h=p;h>=0;h-=c){f.fill(i);for(let x=0;x<s;x++){const C=r[x],T=Number(C>>BigInt(h)&u);f[T]=f[T].add(n[x])}let y=i;for(let x=f.length-1,C=i;x>0;x--)C=C.add(f[x]),y=y.add(C);if(m=m.add(y),h!==0)for(let x=0;x<c;x++)m=m.double()}return m}function NH(e){return zwe(e.Fp),Q1(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...TH(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function PN(e){e.lowS!==void 0&&tm("lowS",e.lowS),e.prehash!==void 0&&tm("prehash",e.prehash)}function Jwe(e){const t=NH(e);Q1(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:r,a}=t;if(n){if(!r.eql(a,r.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class Zwe extends Error{constructor(t=""){super(t)}}const Ti={Err:Zwe,_tlv:{encode:(e,t)=>{const{Err:n}=Ti;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const r=t.length/2,a=qy(r);if(a.length/2&128)throw new n("tlv.encode: long form length too big");const s=r>127?qy(a.length/2|128):"";return qy(e)+s+a+t},decode(e,t){const{Err:n}=Ti;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const a=t[r++],s=!!(a&128);let i=0;if(!s)i=a;else{const c=a&127;if(!c)throw new n("tlv.decode(long): indefinite length not supported");if(c>4)throw new n("tlv.decode(long): byte length is too big");const u=t.subarray(r,r+c);if(u.length!==c)throw new n("tlv.decode: length bytes not complete");if(u[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const f of u)i=i<<8|f;if(r+=c,i<128)throw new n("tlv.decode(long): not minimal encoding")}const l=t.subarray(r,r+i);if(l.length!==i)throw new n("tlv.decode: wrong value length");return{v:l,l:t.subarray(r+i)}}},_int:{encode(e){const{Err:t}=Ti;if(e<Si)throw new t("integer: negative integers are not allowed");let n=qy(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=Ti;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return uc(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=Ti,a=ja("signature",e),{v:s,l:i}=r.decode(48,a);if(i.length)throw new t("invalid signature: left bytes after parsing");const{v:l,l:c}=r.decode(2,s),{v:u,l:f}=r.decode(2,c);if(f.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(l),s:n.decode(u)}},hexFromSig(e){const{_tlv:t,_int:n}=Ti,r=t.encode(2,n.encode(e.r)),a=t.encode(2,n.encode(e.s)),s=r+a;return t.encode(48,s)}};function _w(e,t){return nm(Lm(e,t))}const Si=BigInt(0),rr=BigInt(1);BigInt(2);const Iw=BigInt(3),Qwe=BigInt(4);function Xwe(e){const t=Jwe(e),{Fp:n}=t,r=kd(t.n,t.nBitLength),a=t.toBytes||((v,g,A)=>{const S=g.toAffine();return qb(Uint8Array.from([4]),n.toBytes(S.x),n.toBytes(S.y))}),s=t.fromBytes||(v=>{const g=v.subarray(1),A=n.fromBytes(g.subarray(0,n.BYTES)),S=n.fromBytes(g.subarray(n.BYTES,2*n.BYTES));return{x:A,y:S}});function i(v){const{a:g,b:A}=t,S=n.sqr(v),_=n.mul(S,v);return n.add(n.add(_,n.mul(v,g)),A)}function l(v,g){const A=n.sqr(g),S=i(v);return n.eql(A,S)}if(!l(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const c=n.mul(n.pow(t.a,Iw),Qwe),u=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(c,u)))throw new Error("bad curve params: a or b");function f(v){return ZE(v,rr,t.n)}function p(v){const{allowedPrivateKeyLengths:g,nByteLength:A,wrapPrivateKey:S,n:_}=t;if(g&&typeof v!="bigint"){if(jm(v)&&(v=nm(v)),typeof v!="string"||!g.includes(v.length))throw new Error("invalid private key");v=v.padStart(A*2,"0")}let k;try{k=typeof v=="bigint"?v:uc(ja("private key",v,A))}catch{throw new Error("invalid private key, expected hex or "+A+" bytes, got "+typeof v)}return S&&(k=Zr(k,_)),ju("private key",k,rr,_),k}function m(v){if(!(v instanceof x))throw new Error("ProjectivePoint expected")}const h=mN((v,g)=>{const{px:A,py:S,pz:_}=v;if(n.eql(_,n.ONE))return{x:A,y:S};const k=v.is0();g==null&&(g=k?n.ONE:n.inv(_));const R=n.mul(A,g),D=n.mul(S,g),B=n.mul(_,g);if(k)return{x:n.ZERO,y:n.ZERO};if(!n.eql(B,n.ONE))throw new Error("invZ was invalid");return{x:R,y:D}}),y=mN(v=>{if(v.is0()){if(t.allowInfinityPoint&&!n.is0(v.py))return;throw new Error("bad point: ZERO")}const{x:g,y:A}=v.toAffine();if(!n.isValid(g)||!n.isValid(A))throw new Error("bad point: x or y not FE");if(!l(g,A))throw new Error("bad point: equation left != right");if(!v.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class x{constructor(g,A,S){if(g==null||!n.isValid(g))throw new Error("x required");if(A==null||!n.isValid(A)||n.is0(A))throw new Error("y required");if(S==null||!n.isValid(S))throw new Error("z required");this.px=g,this.py=A,this.pz=S,Object.freeze(this)}static fromAffine(g){const{x:A,y:S}=g||{};if(!g||!n.isValid(A)||!n.isValid(S))throw new Error("invalid affine point");if(g instanceof x)throw new Error("projective point not allowed");const _=k=>n.eql(k,n.ZERO);return _(A)&&_(S)?x.ZERO:new x(A,S,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(g){const A=PH(n,g.map(S=>S.pz));return g.map((S,_)=>S.toAffine(A[_])).map(x.fromAffine)}static fromHex(g){const A=x.fromAffine(s(ja("pointHex",g)));return A.assertValidity(),A}static fromPrivateKey(g){return x.BASE.multiply(p(g))}static msm(g,A){return Wwe(x,r,g,A)}_setWindowSize(g){w.setWindowSize(this,g)}assertValidity(){y(this)}hasEvenY(){const{y:g}=this.toAffine();if(n.isOdd)return!n.isOdd(g);throw new Error("Field doesn't support isOdd")}equals(g){m(g);const{px:A,py:S,pz:_}=this,{px:k,py:R,pz:D}=g,B=n.eql(n.mul(A,D),n.mul(k,_)),M=n.eql(n.mul(S,D),n.mul(R,_));return B&&M}negate(){return new x(this.px,n.neg(this.py),this.pz)}double(){const{a:g,b:A}=t,S=n.mul(A,Iw),{px:_,py:k,pz:R}=this;let D=n.ZERO,B=n.ZERO,M=n.ZERO,E=n.mul(_,_),N=n.mul(k,k),I=n.mul(R,R),F=n.mul(_,k);return F=n.add(F,F),M=n.mul(_,R),M=n.add(M,M),D=n.mul(g,M),B=n.mul(S,I),B=n.add(D,B),D=n.sub(N,B),B=n.add(N,B),B=n.mul(D,B),D=n.mul(F,D),M=n.mul(S,M),I=n.mul(g,I),F=n.sub(E,I),F=n.mul(g,F),F=n.add(F,M),M=n.add(E,E),E=n.add(M,E),E=n.add(E,I),E=n.mul(E,F),B=n.add(B,E),I=n.mul(k,R),I=n.add(I,I),E=n.mul(I,F),D=n.sub(D,E),M=n.mul(I,N),M=n.add(M,M),M=n.add(M,M),new x(D,B,M)}add(g){m(g);const{px:A,py:S,pz:_}=this,{px:k,py:R,pz:D}=g;let B=n.ZERO,M=n.ZERO,E=n.ZERO;const N=t.a,I=n.mul(t.b,Iw);let F=n.mul(A,k),z=n.mul(S,R),U=n.mul(_,D),V=n.add(A,S),$=n.add(k,R);V=n.mul(V,$),$=n.add(F,z),V=n.sub(V,$),$=n.add(A,_);let O=n.add(k,D);return $=n.mul($,O),O=n.add(F,U),$=n.sub($,O),O=n.add(S,_),B=n.add(R,D),O=n.mul(O,B),B=n.add(z,U),O=n.sub(O,B),E=n.mul(N,$),B=n.mul(I,U),E=n.add(B,E),B=n.sub(z,E),E=n.add(z,E),M=n.mul(B,E),z=n.add(F,F),z=n.add(z,F),U=n.mul(N,U),$=n.mul(I,$),z=n.add(z,U),U=n.sub(F,U),U=n.mul(N,U),$=n.add($,U),F=n.mul(z,$),M=n.add(M,F),F=n.mul(O,$),B=n.mul(V,B),B=n.sub(B,F),F=n.mul(V,z),E=n.mul(O,E),E=n.add(E,F),new x(B,M,E)}subtract(g){return this.add(g.negate())}is0(){return this.equals(x.ZERO)}wNAF(g){return w.wNAFCached(this,g,x.normalizeZ)}multiplyUnsafe(g){const{endo:A,n:S}=t;ju("scalar",g,Si,S);const _=x.ZERO;if(g===Si)return _;if(this.is0()||g===rr)return this;if(!A||w.hasPrecomputes(this))return w.wNAFCachedUnsafe(this,g,x.normalizeZ);let{k1neg:k,k1:R,k2neg:D,k2:B}=A.splitScalar(g),M=_,E=_,N=this;for(;R>Si||B>Si;)R&rr&&(M=M.add(N)),B&rr&&(E=E.add(N)),N=N.double(),R>>=rr,B>>=rr;return k&&(M=M.negate()),D&&(E=E.negate()),E=new x(n.mul(E.px,A.beta),E.py,E.pz),M.add(E)}multiply(g){const{endo:A,n:S}=t;ju("scalar",g,rr,S);let _,k;if(A){const{k1neg:R,k1:D,k2neg:B,k2:M}=A.splitScalar(g);let{p:E,f:N}=this.wNAF(D),{p:I,f:F}=this.wNAF(M);E=w.constTimeNegate(R,E),I=w.constTimeNegate(B,I),I=new x(n.mul(I.px,A.beta),I.py,I.pz),_=E.add(I),k=N.add(F)}else{const{p:R,f:D}=this.wNAF(g);_=R,k=D}return x.normalizeZ([_,k])[0]}multiplyAndAddUnsafe(g,A,S){const _=x.BASE,k=(D,B)=>B===Si||B===rr||!D.equals(_)?D.multiplyUnsafe(B):D.multiply(B),R=k(this,A).add(k(g,S));return R.is0()?void 0:R}toAffine(g){return h(this,g)}isTorsionFree(){const{h:g,isTorsionFree:A}=t;if(g===rr)return!0;if(A)return A(x,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:g,clearCofactor:A}=t;return g===rr?this:A?A(x,this):this.multiplyUnsafe(t.h)}toRawBytes(g=!0){return tm("isCompressed",g),this.assertValidity(),a(x,this,g)}toHex(g=!0){return tm("isCompressed",g),nm(this.toRawBytes(g))}}x.BASE=new x(t.Gx,t.Gy,n.ONE),x.ZERO=new x(n.ZERO,n.ONE,n.ZERO);const{endo:C,nBitLength:T}=t,w=qwe(x,C?Math.ceil(T/2):T);return{CURVE:t,ProjectivePoint:x,normPrivateKeyToScalar:p,weierstrassEquation:i,isWithinCurveOrder:f}}function Ywe(e){const t=NH(e);return Q1(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function e5e(e){const t=Ywe(e),{Fp:n,n:r,nByteLength:a,nBitLength:s}=t,i=n.BYTES+1,l=2*n.BYTES+1;function c(I){return Zr(I,r)}function u(I){return f3(I,r)}const{ProjectivePoint:f,normPrivateKeyToScalar:p,weierstrassEquation:m,isWithinCurveOrder:h}=Xwe({...t,toBytes(I,F,z){const U=F.toAffine(),V=n.toBytes(U.x),$=qb;return tm("isCompressed",z),z?$(Uint8Array.from([F.hasEvenY()?2:3]),V):$(Uint8Array.from([4]),V,n.toBytes(U.y))},fromBytes(I){const F=I.length,z=I[0],U=I.subarray(1);if(F===i&&(z===2||z===3)){const V=uc(U);if(!ZE(V,rr,n.ORDER))throw new Error("Point is not on curve");const $=m(V);let O;try{O=n.sqrt($)}catch(ee){const ae=ee instanceof Error?": "+ee.message:"";throw new Error("Point is not on curve"+ae)}const H=(O&rr)===rr;return(z&1)===1!==H&&(O=n.neg(O)),{x:V,y:O}}else if(F===l&&z===4){const V=n.fromBytes(U.subarray(0,n.BYTES)),$=n.fromBytes(U.subarray(n.BYTES,2*n.BYTES));return{x:V,y:$}}else{const V=i,$=l;throw new Error("invalid Point, expected length of "+V+", or uncompressed "+$+", got "+F)}}});function y(I){const F=r>>rr;return I>F}function x(I){return y(I)?c(-I):I}const C=(I,F,z)=>uc(I.slice(F,z));class T{constructor(F,z,U){ju("r",F,rr,r),ju("s",z,rr,r),this.r=F,this.s=z,U!=null&&(this.recovery=U),Object.freeze(this)}static fromCompact(F){const z=a;return F=ja("compactSignature",F,z*2),new T(C(F,0,z),C(F,z,2*z))}static fromDER(F){const{r:z,s:U}=Ti.toSig(ja("DER",F));return new T(z,U)}assertValidity(){}addRecoveryBit(F){return new T(this.r,this.s,F)}recoverPublicKey(F){const{r:z,s:U,recovery:V}=this,$=_(ja("msgHash",F));if(V==null||![0,1,2,3].includes(V))throw new Error("recovery id invalid");const O=V===2||V===3?z+t.n:z;if(O>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const H=(V&1)===0?"02":"03",Z=f.fromHex(H+_w(O,n.BYTES)),ee=u(O),ae=c(-$*ee),ie=c(U*ee),fe=f.BASE.multiplyAndAddUnsafe(Z,ae,ie);if(!fe)throw new Error("point at infinify");return fe.assertValidity(),fe}hasHighS(){return y(this.s)}normalizeS(){return this.hasHighS()?new T(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return Gb(this.toDERHex())}toDERHex(){return Ti.hexFromSig(this)}toCompactRawBytes(){return Gb(this.toCompactHex())}toCompactHex(){const F=a;return _w(this.r,F)+_w(this.s,F)}}const w={isValidPrivateKey(I){try{return p(I),!0}catch{return!1}},normPrivateKeyToScalar:p,randomPrivateKey:()=>{const I=BH(t.n);return Kwe(t.randomBytes(I),t.n)},precompute(I=8,F=f.BASE){return F._setWindowSize(I),F.multiply(BigInt(3)),F}};function v(I,F=!0){return f.fromPrivateKey(I).toRawBytes(F)}function g(I){if(typeof I=="bigint")return!1;if(I instanceof f)return!0;const z=ja("key",I).length,U=n.BYTES,V=U+1,$=2*U+1;if(!(t.allowedPrivateKeyLengths||a===V))return z===V||z===$}function A(I,F,z=!0){if(g(I)===!0)throw new Error("first arg must be private key");if(g(F)===!1)throw new Error("second arg must be public key");return f.fromHex(F).multiply(p(I)).toRawBytes(z)}const S=t.bits2int||function(I){if(I.length>8192)throw new Error("input is too large");const F=uc(I),z=I.length*8-s;return z>0?F>>BigInt(z):F},_=t.bits2int_modN||function(I){return c(S(I))},k=Z1(s);function R(I){return ju("num < 2^"+s,I,Si,k),Lm(I,a)}function D(I,F,z=B){if(["recovered","canonical"].some(xe=>xe in z))throw new Error("sign() legacy options not supported");const{hash:U,randomBytes:V}=t;let{lowS:$,prehash:O,extraEntropy:H}=z;$==null&&($=!0),I=ja("msgHash",I),PN(z),O&&(I=ja("prehashed msgHash",U(I)));const Z=_(I),ee=p(F),ae=[R(ee),R(Z)];if(H!=null&&H!==!1){const xe=H===!0?V(n.BYTES):H;ae.push(ja("extraEntropy",xe))}const ie=qb(...ae),fe=Z;function le(xe){const he=S(xe);if(!h(he))return;const De=u(he),Se=f.BASE.multiply(he).toAffine(),ke=c(Se.x);if(ke===Si)return;const ge=c(De*c(fe+ke*ee));if(ge===Si)return;let J=(Se.x===ke?0:2)|Number(Se.y&rr),Y=ge;return $&&y(ge)&&(Y=x(ge),J^=1),new T(ke,Y,J)}return{seed:ie,k2sig:le}}const B={lowS:t.lowS,prehash:!1},M={lowS:t.lowS,prehash:!1};function E(I,F,z=B){const{seed:U,k2sig:V}=D(I,F,z),$=t;return z6e($.hash.outputLen,$.nByteLength,$.hmac)(U,V)}f.BASE._setWindowSize(8);function N(I,F,z,U=M){var J;const V=I;F=ja("msgHash",F),z=ja("publicKey",z);const{lowS:$,prehash:O,format:H}=U;if(PN(U),"strict"in U)throw new Error("options.strict was renamed to lowS");if(H!==void 0&&H!=="compact"&&H!=="der")throw new Error("format must be compact or der");const Z=typeof V=="string"||jm(V),ee=!Z&&!H&&typeof V=="object"&&V!==null&&typeof V.r=="bigint"&&typeof V.s=="bigint";if(!Z&&!ee)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let ae,ie;try{if(ee&&(ae=new T(V.r,V.s)),Z){try{H!=="compact"&&(ae=T.fromDER(V))}catch(Y){if(!(Y instanceof Ti.Err))throw Y}!ae&&H!=="der"&&(ae=T.fromCompact(V))}ie=f.fromHex(z)}catch{return!1}if(!ae||$&&ae.hasHighS())return!1;O&&(F=t.hash(F));const{r:fe,s:le}=ae,xe=_(F),he=u(le),De=c(xe*he),Se=c(fe*he),ke=(J=f.BASE.multiplyAndAddUnsafe(ie,De,Se))==null?void 0:J.toAffine();return ke?c(ke.x)===fe:!1}return{CURVE:t,getPublicKey:v,getSharedSecret:A,sign:E,verify:N,ProjectivePoint:f,Signature:T,utils:w}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function t5e(e){return{hash:e,hmac:(t,...n)=>bH(e,t,rue(...n)),randomBytes:aue}}function eg(e,t){const n=r=>e5e({...e,...t5e(r)});return{...n(t),create:n}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const RH=kd(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),n5e=RH.create(BigInt("-3")),r5e=BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),a5e=eg({a:n5e,b:r5e,Fp:RH,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},OE),OH=kd(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff")),s5e=OH.create(BigInt("-3")),i5e=BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");eg({a:s5e,b:i5e,Fp:OH,n:BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973"),Gx:BigInt("0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),Gy:BigInt("0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"),h:BigInt(1),lowS:!1},Aue);const MH=kd(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")),o5e=MH.create(BigInt("-3")),l5e=BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00");eg({a:o5e,b:l5e,Fp:MH,n:BigInt("0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409"),Gx:BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),Gy:BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},Cue);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const c5e=a5e;function DH(e){const{hash:t,payload:n,publicKey:r,signature:a}=e;return c5e.verify(a,n instanceof Uint8Array?n:ea(n),n4(r).substring(2),{lowS:!0,...t?{prehash:!0}:{}})}Y1("ox.p256.fromSeed.v1");/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const FH=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),TN=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),u5e=BigInt(0),d5e=BigInt(1),m3=BigInt(2),SN=(e,t)=>(e+t/m3)/t;function f5e(e){const t=FH,n=BigInt(3),r=BigInt(6),a=BigInt(11),s=BigInt(22),i=BigInt(23),l=BigInt(44),c=BigInt(88),u=e*e*e%t,f=u*u*e%t,p=Ua(f,n,t)*f%t,m=Ua(p,n,t)*f%t,h=Ua(m,m3,t)*u%t,y=Ua(h,a,t)*h%t,x=Ua(y,s,t)*y%t,C=Ua(x,l,t)*x%t,T=Ua(C,c,t)*C%t,w=Ua(T,l,t)*x%t,v=Ua(w,n,t)*f%t,g=Ua(v,i,t)*y%t,A=Ua(g,r,t)*u%t,S=Ua(A,m3,t);if(!h3.eql(h3.sqr(S),e))throw new Error("Cannot find square root");return S}const h3=kd(FH,void 0,void 0,{sqrt:f5e}),tg=eg({a:u5e,b:BigInt(7),Fp:h3,n:TN,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=TN,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-d5e*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=n,i=BigInt("0x100000000000000000000000000000000"),l=SN(s*e,t),c=SN(-r*e,t);let u=Zr(e-l*n-c*a,t),f=Zr(-l*r-c*s,t);const p=u>i,m=f>i;if(p&&(u=t-u),m&&(f=t-f),u>i||f>i)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:p,k1:u,k2neg:m,k2:f}}}},OE),p5e=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:tg},Symbol.toStringTag,{value:"Module"}));function UH(e){return To(jH(e))}function jH(e){const{payload:t,signature:n}=e,{r,s:a,yParity:s}=n,l=new tg.Signature(BigInt(r),BigInt(a)).addRecoveryBit(s).recoverPublicKey(Ju(t).substring(2));return Twe(l)}function m5e(e){const{hash:t,payload:n}=e;return e.address?Ls(e.address,UH({payload:n,signature:e.signature})):tg.verify(e.signature,QE(n),Bwe(e.publicKey),...t?[{prehash:!0,lowS:!0}]:[])}Y1("ox.secp256k1.fromSeed.v1");const h5e=/^(.*)\[([0-9]*)\]$/,y5e=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,LH=/^(u?int)(8|
13316|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,BN=2n**256n-1n;function Hm(e,t={}){const{recovered:n}=t;if(typeof e.r>"u")throw new Nw({signature:e});if(typeof e.s>"u")throw new Nw({signature:e});if(n&&typeof e.yParity>"u")throw new Nw({signature:e});if(e.r<0n||e.r>BN)throw new k5e({value:e.r});if(e.s<0n||e.s>BN)throw new C5e({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new rg({value:e.yParity})}function b5e(e){return r4(Qn(e))}function r4(e){if(e.length!==130&&e.length!==132)throw new E5e({signature:e});const t=BigInt(Mt(e,0,32)),n=BigInt(Mt(e,32,64)),r=(()=>{const a=+`0x${e.slice(130)}`;if(!Number.isNaN(a))try{return s4(a)}catch{throw new rg({value:a})}})();return typeof r>"u"?{r:t,s:n}:{r:t,s:n,yParity:r}}function $H(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return ng(e)}function ng(e){const t=typeof e=="string"?r4(e):e instanceof Uint8Array?b5e(e):typeof e.r=="string"?a4(e):e.v?g5e(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return Hm(t),t}function g5e(e){return{r:e.r,s:e.s,yParity:s4(e.v)}}function a4(e){const t=(()=>{const n=e.v?Number(e.v):void 0;let r=e.yParity?Number(e.yParity):void 0;if(typeof n=="number"&&typeof r!="number"&&(r=s4(n)),typeof r!="number")throw new rg({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function x5e(e){const[t,n,r]=e;return ng({r:n==="0x"?0n:BigInt(n),s:r==="0x"?0n:BigInt(r),yParity:t==="0x"?0:Number(t)})}function v5e(e){Hm(e);const t=e.r,n=e.s;return un(Je(t,{size:32}),Je(n,{size:32}),typeof e.yParity=="number"?Je(i4(e.yParity),{size:1}):"0x")}function zH(e){const{r:t,s:n,yParity:r}=e;return{r:Je(t,{size:32}),s:Je(n,{size:32}),yParity:r===0?"0x0":"0x1"}}function w5e(e){const{r:t,s:n,yParity:r}=e;return[r?"0x01":"0x",t===0n?"0x":u3(Je(t)),n===0n?"0x":u3(Je(n))]}function s4(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new A5e({value:e})}function i4(e){if(e===0)return 27;if(e===1)return 28;throw new rg({value:e})}class E5e extends pt{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${Yt(Ju(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}let Nw=class extends pt{constructor({signature:t}){super(`Signature \`${Ed(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}};class k5e extends pt{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class C5e extends pt{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class rg extends pt{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class A5e extends pt{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}const P5e=new TextEncoder;Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[t,e.charCodeAt(0)]);const Jy={...Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63};function T5e(e){const t=e.replace(/=+$/,""),n=t.length,r=new Uint8Array(n+3);P5e.encodeInto(t+"===",r);for(let s=0,i=0;s<t.length;s+=4,i+=3){const l=(Jy[r[s]]<<18)+(Jy[r[s+1]]<<12)+(Jy[r[s+2]]<<6)+Jy[r[s+3]];r[i]=l>>16,r[i+1]=l>>8&255,r[i+2]=l&255}const a=(n>>2)*3+(n%4&&n%4-1);return new Uint8Array(r.buffer,0,a)}function S5e(e){const{challenge:t,metadata:n,origin:r,publicKey:a,rpId:s,signature:i}=e,{authenticatorData:l,clientDataJSON:c,userVerificationRequired:u}=n,f=ea(l);if(f.length<37)return!1;if(s!==void 0){const x=f.slice(0,32),C=gN(Jo(s),{as:"Bytes"});if(!ewe(x,C))return!1}const p=f[32];if((p&1)!==1||u&&(p&4)!==4||(p&8)!==8&&(p&16)===16)return!1;const m=JSON.parse(c);if(m.type!=="webauthn.get"||!m.challenge||Qn(T5e(m.challenge))!==t||r!==void 0&&!(Array.isArray(r)?r:[r]).includes(m.origin))return!1;const h=gN(Y1(c),{as:"Bytes"}),y=lH(f,h);return DH({hash:!0,payload:y,publicKey:a,signature:i})}function B5e(e){return S5e(e)}
133function _5e(e){const t=ea(d3(e.from)),n=twe(c3(e.salt)?e.salt:ea(e.salt),32),r="bytecodeHash"in e?c3(e.bytecodeHash)?e.bytecodeHash:ea(e.bytecodeHash):ys(e.bytecode,{as:"Bytes"});return d3(Mt(ys(lH(ea("0xff"),t,n,r),{as:"Hex"}),12))}const y3=2049,I5e=48,$s=8,N5e=8,R5e=2n**64n-1n,Qu=`0x${"00".repeat(32)}`,O5e="tempo:multisig:account",M5e="0x583cc63a2e37f645b43eac911b1a6d6de08b83abdc308c61364edda8cfc3bd37",D5e="tempo:multisig:signature";function Km(e){const{owners:t,salt:n,threshold:r,version:a=0n}=e;if(typeof n<"u"&&Yt(n)!==32)throw new qn({reason:"salt must be 32 bytes"});if(o4(a),t.length===0)throw new qn({reason:"owners cannot be empty"});if(t.length>I5e)throw new qn({reason:"too many owners"});if(!Number.isInteger(Number(r)))throw new qn({reason:"threshold must be an integer"});if(Number(r)<1)throw new qn({reason:"threshold cannot be zero"});if(Number(r)>N5e)throw new qn({reason:"threshold exceeds max threshold"});let s=0;const i=[];let l;for(const u of t){if(!bs(u.owner)||Lt(u.owner)===0n)throw new qn({reason:"owner cannot be zero"});if(!Number.isInteger(Number(u.weight)))throw new qn({reason:"owner weight must be an integer"});if(Number(u.weight)<1)throw new qn({reason:"owner weight cannot be zero"});const f=Lt(u.owner);if(typeof l<"u"&&l>=f)throw new qn({reason:"owners must be strictly ascending"});l=f;const p=Number(u.weight);s+=p,i.push(p)}if(s>255)throw new qn({reason:"total owner weight exceeds u8 max"});if(Number(r)>s)throw new qn({reason:"threshold exceeds total owner weight"});const c=i.sort((u,f)=>f-u).slice(0,$s).reduce((u,f)=>u+f,0);if(Number(r)>c)throw new qn({reason:`threshold exceeds weight reachable by ${$s} owner signatures`})}function za(e){const t=e.version??0n;o4(t);const r={owners:[...e.owners].sort((a,s)=>Lt(a.owner)<Lt(s.owner)?-1:1),salt:e.salt?hs(e.salt,32):Qu,threshold:e.threshold,version:BigInt(t)};return Km(r),r}function HH(e){return za({...e,version:Lt(e.version)})}function F5e(e){const[t,n,r,a]=e;if(e.length!==4||typeof t!="string"||Yt(t)!==32||typeof n!="string"||Yt(n)>8||n.startsWith("0x00")||typeof r!="string"||Yt(r)>1||r.startsWith("0x00")||!Array.isArray(a)||a.some(i=>!Array.isArray(i)||i.length!==2||typeof i[0]!="string"||!bs(i[0])||typeof i[1]!="string"||Yt(i[1])>1||i[1].startsWith("0x00")))throw new qn({reason:"invalid config RLP tuple"});const s={salt:t&&t!=="0x"?hs(t,32):Qu,version:n==="0x"?0n:Lt(n),threshold:r==="0x"?0:Zu(r),owners:a.map(i=>{const[l,c]=i;return{owner:l,weight:!c||c==="0x"?0:Zu(c)}})};return Km(s),s}function U5e(e,t){if(Aa(t.factory),Km(e),BigInt(e.version??0)!==0n)throw new qn({reason:"account address requires version zero"});const n=ys(un(Jo(O5e),hs(e.salt??Qu,32),Je(e.threshold,{size:1}),Je(e.owners.length,{size:1}),...e.owners.flatMap(a=>[a.owner,Je(a.weight,{size:1})]))),r=_5e({bytecodeHash:M5e,from:t.factory,salt:n});if(Lt(r)===0n)throw new qn({reason:"derived account cannot be zero"});if(e.owners.some(a=>Ls(a.owner,r)))throw new qn({reason:"derived account cannot be an owner"});return r}function Cd(e){const{account:t,config:n,payload:r}=e;if(o4(n.version),Aa(t),Yt(Ju(r))!==32)throw new qn({reason:"payload must be 32 bytes"});return ys(un(Jo(D5e),Ju(r),t,Je(n.version??0n,{size:8})))}function KH(e){Km(e);const t=e.owners.map(a=>[a.owner,Je(a.weight)]),n=e.salt?hs(e.salt,32):Qu,r=BigInt(e.version??0);return[n,r===0n?"0x":Je(r),Je(e.threshold),t]}class qn extends pt{constructor({reason:t}){super(`Invalid native multisig config: ${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigConfig.InvalidConfigError"})}}function o4(e){if(typeof e!="bigint"&&typeof e!="number"||typeof e=="number"&&!Number.isSafeInteger(e)||BigInt(e)<0n||BigInt(e)>R5e)throw new qn({reason:"version must be an unsigned 64-bit integer"})}const b3="0x01",g3="0x02",x3="0x03",vb="0x04",Wb="0x05",ec="0x7777777777777777777777777777777777777777777777777777777777777777";function wc(e){var n,r,a,s;const t=Ec(e);if(t==="secp256k1"){Hm(e.signature);return}if(t==="p256"){const i=e,l=[];if(typeof((n=i.signature)==null?void 0:n.r)!="bigint"&&l.push("signature.r"),typeof((r=i.signature)==null?void 0:r.s)!="bigint"&&l.push("signature.s"),typeof i.prehash!="boolean"&&l.push("prehash"),i.publicKey?(typeof i.publicKey.x!="bigint"&&l.push("publicKey.x"),typeof i.publicKey.y!="bigint"&&l.push("publicKey.y")):l.push("publicKey"),l.length>0)throw new w3({envelope:e,missing:l,type:"p256"});return}if(t==="webAuthn"){const i=e,l=[];if(typeof((a=i.signature)==null?void 0:a.r)!="bigint"&&l.push("signature.r"),typeof((s=i.signature)==null?void 0:s.s)!="bigint"&&l.push("signature.s"),i.metadata?(i.metadata.authenticatorData||l.push("metadata.authenticatorData"),i.metadata.clientDataJSON||l.push("metadata.clientDataJSON")):l.push("metadata"),i.publicKey?(typeof i.publicKey.x!="bigint"&&l.push("publicKey.x"),typeof i.publicKey.y!="bigint"&&l.push("publicKey.y")):l.push("publicKey"),l.length>0)throw new w3({envelope:e,missing:l,type:"webAuthn"});return}if(t==="keychain"){const i=e;VH(i),wc(i.inner);return}if(t==="multisig"){GH(e);return}}function VH(e){if(e.version!=="v1")return;let t=e.inner;for(;Ec(t)==="keychain";)t=t.inner;if(Ec(t)==="multisig")throw new Co({reason:"multisig access keys require keychain V2"})}function GH(e){const t=[];if(e.account||t.push("account"),e.config||t.push("config"),Array.isArray(e.signatures)||t.pu
133sh("signatures"),t.length>0)throw new w3({envelope:e,missing:t,type:"multisig"});if(!bs(e.account))throw new Co({reason:"multisig account is invalid"});if(Lt(e.account)===0n)throw new Co({reason:"multisig account cannot be zero"});if(e.signatures.length===0)throw new Co({reason:"multisig signatures cannot be empty"});if(e.signatures.length>$s)throw new Co({reason:`multisig signatures exceed ${$s}`});if(Km(e.config),(e.config.version??0n)===0n&&e.config.owners.some(n=>Ls(n.owner,e.account)))throw new Co({reason:"initial account cannot be an owner"});for(const n of e.signatures){const r=Ec(n);if(r==="keychain"||r==="multisig")throw new Co({reason:"owner approvals must be primitive signatures"});if(wc(n),Yt(Ir(n))>y3)throw new Co({reason:`multisig owner signature exceeds ${y3} bytes`})}}function qi(e){const{signature:t,root:n}=e;return t.type==="keychain"?n?t.userAddress:qi({...e,signature:t.inner}):t.type==="multisig"?t.account:To(qH(e))}function qH(e){const{payload:t,signature:n}=e;switch(n.type){case"secp256k1":return jH({payload:t,signature:n.signature});case"p256":case"webAuthn":return n.publicKey;case"keychain":return qH({payload:t,signature:n.inner});case"multisig":throw new kc({envelope:n})}}function zs(e){return WH(e)}function WH(e){const t=e.endsWith(ec.slice(2))?Mt(e,0,-Yt(ec)):e;if(Yt(t)===65){const i=r4(t);return Hm(i),{signature:i,type:"secp256k1"}}const r=Mt(t,0,1),a=Mt(t,1),s=Yt(a);if(r===b3){if(s!==129)throw new ls({reason:`Invalid P256 signature envelope size: expected 129 bytes, got ${s} bytes`,serialized:t});return{publicKey:{prefix:4,x:Lt(Mt(a,64,96)),y:Lt(Mt(a,96,128))},prehash:Zu(Mt(a,128,129))!==0,signature:{r:Lt(Mt(a,0,32)),s:Lt(Mt(a,32,64))},type:"p256"}}if(r===g3){if(s<128)throw new ls({reason:`Invalid WebAuthn signature envelope size: expected at least 128 bytes, got ${s} bytes`,serialized:t});const i=s-128,l=Mt(a,0,i);let c,u;for(let f=37;f<i;f++){const p=pH(Mt(l,f));if(p.startsWith("{")&&p.endsWith("}"))try{JSON.parse(p),c=Mt(l,0,f),u=p;break}catch{}}if(!c||!u)throw new ls({reason:"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",serialized:t});return{publicKey:{prefix:4,x:Lt(Mt(a,i+64,i+96)),y:Lt(Mt(a,i+96,i+128))},metadata:{authenticatorData:c,clientDataJSON:u},signature:{r:Lt(Mt(a,i,i+32)),s:Lt(Mt(a,i+32,i+64))},type:"webAuthn"}}if(r===x3||r===vb){const i=Mt(a,0,20),l=WH(Mt(a,20)),c={userAddress:i,inner:l,type:"keychain",version:r===vb?"v2":"v1"};return wc(c),c}if(r===Wb){const i=e4(a);if(!Array.isArray(i)||i.length!==3)throw new ls({reason:"invalid multisig wire shape: expected exactly three fields",serialized:t});const[l,c,u]=i;if(typeof l!="string"||!bs(l))throw new ls({reason:"invalid multisig account",serialized:t});if(!Array.isArray(c))throw new ls({reason:"invalid multisig config",serialized:t});if(!Array.isArray(u)||u.length===0||u.length>$s)throw new ls({reason:"invalid multisig signatures list",serialized:t});const f={type:"multisig",account:l,config:F5e(c),signatures:u.map(p=>{if(!Jr(p)||Yt(p)>y3)throw new ls({reason:"invalid multisig owner signature",serialized:t});if(Yt(p)!==65&&!["0x01","0x02"].includes(Mt(p,0,1)))throw new ls({reason:"owner approvals must be primitive signatures",serialized:t});return zs(p)})};return GH(f),f}throw new ls({reason:`Unknown signature type identifier: ${r}. Expected ${b3} (P256), ${g3} (WebAuthn), ${x3} (Keychain V1), ${vb} (Keychain V2), or ${Wb} (Multisig)`,serialized:t})}function vr(e,t){if(typeof e=="string")return zs(e);if(typeof e=="object"&&e!==null&&"r"in e&&"s"in e&&"yParity"in e)return{signature:e,type:"secp256k1"};const n=Ec(e);if(n==="multisig"){const r=e;return{...r,config:za(r.config),signatures:r.signatures.map(a=>vr(a)),type:n}}return{...e,...n==="p256"?{prehash:e.prehash}:{},...n==="keychain"?{...typeof e=="object"&&e!==null&&"version"in e&&e.version?{}:{version:"v2"},...typeof e=="object"&&"keyId"in e&&e.keyId?{}:(()=>{const r=e.inner;return r.type==="p256"||r.type==="webAuthn"?{keyId:To(r.publicKey)}:(r.type==="secp256k1"&&(t!=null&&t.payload),{})})()}:{},type:n}}function ag(e){if(typeof e=="string"){const t=zs(un(Wb,e));if(t.type!=="multisig")throw new kc({envelope:e});return t}if(e.type==="secp256k1")return{signature:a4(e),type:"secp256k1"};if(e.type==="p256")return{prehash:e.preHash,publicKey:{prefix:4,x:Lt(e.pubKeyX),y:Lt(e.pubKeyY)},signature:{r:Lt(e.r),s:Lt(e.s)},type:"p256"};if(e.type==="webAuthn"){const t=e.webauthnData,n=Yt(t);let r,a;for(let s=37;s<n;s++){const i=pH(Mt(t,s));if(i.startsWith("{")&&i.endsWith("}"))try{JSON.parse(i),r=Mt(t,0,s),a=i;break}catch{}}if(!r||!a)throw new ls({reason:"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",serialized:t});return{metadata:{authenticatorData:r,clientDataJSON:a},publicKey:{prefix:4,x:Lt(e.pubKeyX),y:Lt(e.pubKeyY)},signature:{r:Lt(e.r),s:Lt(e.s)},type:"webAuthn"}}
133if(e.type==="keychain"||"userAddress"in e&&"signature"in e){const t=e,n={type:"keychain",userAddress:t.userAddress,inner:ag(t.signature),...t.keyId?{keyId:t.keyId}:{},...t.version?{version:t.version}:{}};return wc(n),n}throw new kc({envelope:e})}function Ec(e){if(typeof e!="object"||e===null)throw new kc({envelope:e});if("type"in e&&e.type)return e.type;if("signature"in e&&!("publicKey"in e)&&typeof e.signature=="object"&&e.signature!==null&&"r"in e.signature&&"s"in e.signature&&"yParity"in e.signature||"r"in e&&"s"in e&&"yParity"in e)return"secp256k1";if("signature"in e&&"prehash"in e&&"publicKey"in e&&typeof e.prehash=="boolean")return"p256";if("signature"in e&&"metadata"in e&&"publicKey"in e)return"webAuthn";if("userAddress"in e&&"inner"in e)return"keychain";if("account"in e&&"config"in e&&"signatures"in e)return"multisig";throw new kc({envelope:e})}function Ir(e,t={}){const n=Ec(e);if(n==="secp256k1")return un(v5e(e.signature),t.magic?ec:"0x");if(n==="p256"){const r=e;return un(b3,Je(r.signature.r,{size:32}),Je(r.signature.s,{size:32}),Je(r.publicKey.x,{size:32}),Je(r.publicKey.y,{size:32}),Je(r.prehash?1:0,{size:1}),t.magic?ec:"0x")}if(n==="webAuthn"){const r=e,a=un(r.metadata.authenticatorData,Jo(r.metadata.clientDataJSON));return un(g3,a,Je(r.signature.r,{size:32}),Je(r.signature.s,{size:32}),Je(r.publicKey.x,{size:32}),Je(r.publicKey.y,{size:32}),t.magic?ec:"0x")}if(n==="keychain"){const r=e;wc(r);const a=r.version==="v1"?x3:vb;return un(a,r.userAddress,Ir(r.inner),t.magic?ec:"0x")}if(n==="multisig"){const r=e;return wc(r),un(Wb,$m([r.account,KH(r.config),r.signatures.map(a=>Ir(a))]),t.magic?ec:"0x")}throw new kc({envelope:e})}function l4(e){const{signatures:t}=e,n=Cd(e);return t.map(r=>({key:Lt(qi({payload:n,signature:r})),signature:r})).sort((r,a)=>r.key<a.key?-1:r.key>a.key?1:0).map(r=>r.signature)}function c4(e){const t=Ec(e);if(t==="secp256k1")return{...zH(e.signature),type:"secp256k1"};if(t==="p256"){const n=e;return{preHash:n.prehash,pubKeyX:Je(n.publicKey.x,{size:32}),pubKeyY:Je(n.publicKey.y,{size:32}),r:Je(n.signature.r,{size:32}),s:Je(n.signature.s,{size:32}),type:"p256"}}if(t==="webAuthn"){const n=e,r=un(n.metadata.authenticatorData,Jo(n.metadata.clientDataJSON));return{pubKeyX:Je(n.publicKey.x,{size:32}),pubKeyY:Je(n.publicKey.y,{size:32}),r:Je(n.signature.r,{size:32}),s:Je(n.signature.s,{size:32}),type:"webAuthn",webauthnData:r}}if(t==="keychain"){const n=e;return VH(n),{type:"keychain",userAddress:n.userAddress,signature:c4(n.inner),...n.keyId?{keyId:n.keyId}:{},...n.version?{version:n.version}:{}}}if(t==="multisig")return Mt(Ir(e),1);throw new kc({envelope:e})}function v3(e,t){const{payload:n}=t,r=(()=>{if(t.address)return t.address;if(t.publicKey)return To(t.publicKey)})();if(!r)return!1;const a=vr(e);if(a.type==="secp256k1")return r?m5e({address:r,payload:n,signature:a.signature}):!1;if(a.type==="p256"){const s=To(a.publicKey);return Ls(s,r)?DH({hash:a.prehash,publicKey:a.publicKey,payload:n,signature:a.signature}):!1}if(a.type==="webAuthn"){const s=To(a.publicKey);return Ls(s,r)?B5e({challenge:Ju(n),metadata:a.metadata,publicKey:a.publicKey,signature:a.signature}):!1}throw new j5e(`Unable to verify signature envelope of type "${a.type}".`)}class kc extends pt{constructor({envelope:t}){super(`Unable to coerce value (\`${Ed(t)}\`) to a valid signature envelope.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.CoercionError"})}}class w3 extends pt{constructor({envelope:t,missing:n,type:r}){super(`Signature envelope of type "${r}" is missing required properties: ${n.map(a=>`\`${a}\``).join(", ")}.
134
135Provided: ${Ed(t)}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.MissingPropertiesError"})}}let ls=class extends pt{constructor({reason:t,serialized:n}){super(`Unable to deserialize signature envelope: ${t}`,{metaMessages:[`Serialized: ${n}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.InvalidSerializedError"})}};class Co extends pt{constructor({reason:t}){super(`Invalid native multisig owner approval: ${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.InvalidMultisigApprovalError"})}}let j5e=class extends pt{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.VerificationError"})}};function Sr(e){return e.startsWith("tempo")?L5e(e).address:e}function L5e(e){if(!e.startsWith("tempox"))throw new $5e({address:e});const t=e.slice(6);
135return dH(t,{strict:!0}),{address:zm(t)}}class $5e extends pt{constructor({address:t}){super(`Tempo address "${t}" has an invalid prefix. Expected "tempox".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TempoAddress.InvalidPrefixError"})}}function z5e(e,t={}){if(typeof e.chainId=="string")return JH(e);const n={...e,address:Sr(e.address)};return t.signature?{...n,signature:t.signature}:n}function JH(e){const{address:t,chainId:n,nonce:r}=e,a=ag(e.signature);return{address:t,chainId:Number(n),nonce:BigInt(r),signature:a}}function H5e(e){return e.map(t=>JH(t))}function K5e(e){const[t,n,r,a]=e,s={address:n,chainId:t==="0x"?0:Number(t),nonce:r==="0x"?0n:BigInt(r)};return a&&(s.signature=zs(a)),z5e(s)}function V5e(e){const t=[];for(const n of e)t.push(K5e(n));return t}function G5e(e){const{address:t,chainId:n,nonce:r,signature:a}=e;return{address:t,chainId:Je(n),nonce:Je(r),signature:c4(a)}}function q5e(e){return e.map(t=>G5e(t))}function W5e(e){const{address:t,chainId:n,nonce:r}=e,a=e.signature?Ir(e.signature):void 0;return[n?Je(n):"0x",t,r?Je(r):"0x",...a?[a]:[]]}function J5e(e){if(!e||e.length===0)return[];const t=[];for(const n of e)t.push(W5e(n));return t}const Z5e="1.2.4";class ur extends Error{constructor(t,n={}){var i;const r=n.cause instanceof ur?n.cause.details:(i=n.cause)!=null&&i.message?n.cause.message:n.details,a=n.cause instanceof ur&&n.cause.docsPath||n.docsPath,s=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${Z5e}`].join(`
136`);super(s),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.shortMessage=t}}function Wi(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const ZH=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,QH=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,XH=/^\(.+?\).*?$/,_N=/^tuple(?<array>(\[(\d*)\])*)$/;function E3(e){let t=e.type;if(_N.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let a=0;a<n;a++){const s=e.components[a];t+=E3(s),a<n-1&&(t+=", ")}const r=Wi(_N,e.type);return t+=`)${(r==null?void 0:r.array)||""}`,E3({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function Su(e){let t="";const n=e.length;for(let r=0;r<n;r++){const a=e[r];t+=E3(a),r!==n-1&&(t+=", ")}return t}function k3(e){var t;return e.type==="function"?`function ${e.name}(${Su(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${Su(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${Su(e.inputs)})`:e.type==="error"?`error ${e.name}(${Su(e.inputs)})`:e.type==="constructor"?`constructor(${Su(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}const YH=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function Q5e(e){return YH.test(e)}function X5e(e){return Wi(YH,e)}const eK=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function Y5e(e){return eK.test(e)}function e3e(e){return Wi(eK,e)}const tK=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function t3e(e){return tK.test(e)}function n3e(e){return Wi(tK,e)}const nK=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function u4(e){return nK.test(e)}function r3e(e){return Wi(nK,e)}const rK=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function a3e(e){return rK.test(e)}function s3e(e){return Wi(rK,e)}const aK=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function i3e(e){return aK.test(e)}function o3e(e){return Wi(aK,e)}
136const l3e=/^receive\(\) external payable$/;function c3e(e){return l3e.test(e)}const IN=new Set(["memory","indexed","storage","calldata"]),u3e=new Set(["indexed"]),C3=new Set(["calldata","memory","storage"]);class d3e extends ur{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class f3e extends ur{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class p3e extends ur{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class m3e extends ur{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class h3e extends ur{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class y3e extends ur{constructor({param:t,name:n}
vendor: 4,445 bytes, line 136
136){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class b3e extends ur{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class g3e extends ur{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class x3e extends ur{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Ad extends ur{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class v3e extends ur{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class w3e extends ur{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class E3e extends ur{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class k3e extends ur{constructor({current:t,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function C3e(e,t,n){let r="";if(n)for(const a of Object.entries(n)){if(!a)continue;let s="";for(const i of a[1])s+=`[${i.type}${i.name?`:${i.name}`:""}]`;r+=`(${a[0]}{${s}})`}return t?`${t}:${e}${r}`:`${e}${r}`}const Rw=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function NN(e,t={}){if(t3e(e))return A3e(e,t);if(Y5e(e))return P3e(e,t);if(Q5e(e))return T3e(e,t);if(a3e(e))return S3e(e,t);if(i3e(e))return B3e(e);
136if(c3e(e))return{type:"receive",stateMutability:"payable"};throw new v3e({signature:e})}function A3e(e,t={}){const n=n3e(e);if(!n)throw new Ad({signature:e,type:"function"});const r=Ca(n.parameters),a=[],s=r.length;for(let l=0;l<s;l++)a.push(ji(r[l],{modifiers:C3,structs:t,type:"function"}));const i=[];if(n.returns){const l=Ca(n.returns),c=l.length;for(let u=0;u<c;u++)i.push(ji(l[u],{modifiers:C3,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:i}}function P3e(e,t={}){const n=e3e(e);if(!n)throw new Ad({signature:e,type:"event"});const r=Ca(n.parameters),a=[],s=r.length;for(let i=0;i<s;i++)a.push(ji(r[i],{modifiers:u3e,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:a}}function T3e(e,t={}){const n=X5e(e);if(!n)throw new Ad({signature:e,type:"error"});const r=Ca(n.parameters),a=[],s=r.length;for(let i=0;i<s;i++)a.push(ji(r[i],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:a}}function S3e(e,t={}){const n=s3e(e);if(!n)throw new Ad({signature:e,type:"constructor"});const r=Ca(n.parameters),a=[],s=r.length;for(let i=0;i<s;i++)a.push(ji(r[i],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}function B3e(e){const t=o3e(e);if(!t)throw new Ad({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}const _3e=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,I3e=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,N3e=/^u?int$/;function ji(e,t){var p,m;const n=C3e(e,t==null?void 0:t.type,t==null?void 0:t.structs);if(Rw.has(n))return Rw.get(n);const r=XH.test(e),a=Wi(r?I3e:_3e,e);if(!a)throw new h3e({param:e});if(a.name&&O3e(a.name))throw new y3e({param:e,name:a.name});const s=a.name?{name:a.name}:{},i=a.modifier==="indexed"?{indexed:!0}:{},l=(t==null?void 0:t.structs)??{};let c,u={};if(r){c="tuple";const h=Ca(a.type),y=[],x=h.length;for(let C=0;C<x;C++)y.push(ji(h[C],{structs:l}));u={components:y}}else if(a.type in l)c="tuple",u={components:l[a.type]};else if(N3e.test(a.type))c=`${a.type}256`;else if(a.type==="address payable")c="address";else if(c=a.type,(t==null?void 0:t.type)!=="struct"&&!sK(c))throw new p3e({type:c});if(a.modifier){if(!((m=(p=t==null?void 0:t.modifiers)==null?void 0:p.has)!=null&&m.call(p,a.modifier)))throw new b3e({param:e,type:t==null?void 0:t.type,modifier:a.modifier});if(C3.has(a.modifier)&&!M3e(c,!!a.array))throw new g3e({param:e,type:t==null?void 0:t.type,modifier:a.modifier})}const f={type:`${c}${a.array??""}`,...s,...i,...u};return Rw.set(n,f),f}function Ca(e,t=[],n="",r=0){const a=e.trim().length;for(let s=0;s<a;s++){const i=e[s],l=e.slice(s+1);switch(i){case",":return r===0?Ca(l,[...t,n.trim()]):Ca(l,t,`${n}${i}`,r);case"(":return Ca(l,t,`${n}${i}`,r+1);case")":return Ca(l,t,`${n}${i}`,r-1);default:return Ca(l,t,`${n}${i}`,r)}}if(n==="")return t;if(r!==0)throw new k3e({current:n,depth:r});return t.push(n.trim()),t}function sK(e){return e==="address"||e==="bool"||e==="function"||e==="string"||ZH.test(e)||QH.test(e)}const R3e=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function O3e(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||ZH.test(e)||QH.test(e)||R3e.test(e)}function M3e(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function iK(e){const t={},n=e.length;for(let i=0;i<n;i++){const l=e[i];if(!u4(l))continue;const c=r3e(l);if(!c)throw new Ad({signature:l,type:"struct"});const u=c.properties.split(";"),f=[],p=u.length;for(let m=0;m<p;m++){const y=u[m].trim();if(!y)continue;const x=ji(y,{type:"struct"});f.push(x)}
136if(!f.length)throw new w3e({signature:l});t[c.name]=f}const r={},a=Object.entries(t),s=a.length;for(let i=0;i<s;i++){const[l,c]=a[i];r[l]=oK(c,t)}return r}const D3e=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function oK(e=[],t={},n=new Set){const r=[],a=e.length;for(let s=0;s<a;s++){const i=e[s];if(XH.test(i.type))r.push(i);else{const c=Wi(D3e,i.type);if(!(c!=null&&c.type))throw new x3e({abiParameter:i});const{array:u,type:f}=c;if(f in t){if(n.has(f))throw new E3e({type:f});r.push({...i,type:`tuple${u??""}`,components:oK(t[f],t,new Set([...n,f]))})}else if(sK(f))r.push(i);else throw new f3e({type:f})}}return r}function RN(e){let t;if(typeof e=="string")t=NN(e);else{const n=iK(e),r=e.length;for(let a=0;a<r;a++){const s=e[a];if(!u4(s)){t=NN(s,n);break}}}if(!t)throw new d3e({signature:e});return t}function ON(e){const t=[];if(typeof e=="string"){const n=Ca(e),r=n.length;for(let a=0;a<r;a++)t.push(ji(n[a],{modifiers:IN}))}else{const n=iK(e),r=e.length;for(let a=0;a<r;a++){const s=e[a];if(u4(s))continue;const i=Ca(s),l=i.length;for(let c=0;c<l;c++)t.push(ji(i[c],{modifiers:IN,structs:n}))}}if(t.length===0)throw new m3e({params:e});return t}function Lu(e,t,n){const{checksumAddress:r,staticPosition:a}=n,s=p4(t.type);if(s){const[i,l]=s;return U3e(e,{...t,type:l},{checksumAddress:r,length:i,staticPosition:a})}if(t.type==="tuple")return z3e(e,t,{checksumAddress:r,staticPosition:a});if(t.type==="address")return F3e(e,{checksum:r});if(t.type==="bool")return j3e(e);if(t.type.startsWith("bytes"))return L3e(e,t,{staticPosition:a});if(t.type.startsWith("uint")||t.type.startsWith("int"))return $3e(e,t);if(t.type==="string")return H3e(e,{staticPosition:a});throw new h4(t.type)}const MN=32,A3=32;function F3e(e,t={}){const{checksum:n=!1}=t,r=e.readBytes(32);return[(s=>n?zm(s):s)(Qn(awe(r,-20))),32]}function U3e(e,t,n){const{checksumAddress:r,length:a,staticPosition:s}=n;if(a===null){const c=Fi(e.readBytes(A3)),u=s+c,f=u+MN;
136e.setPosition(u);const p=Fi(e.readBytes(MN)),m=Xu(t);let h=0;const y=[];for(let x=0;x<p;++x){e.setPosition(f+(m?x*32:h));const[C,T]=Lu(e,t,{checksumAddress:r,staticPosition:f});h+=T,y.push(C),T===0&&(e.assertReadLimit(),e._touch())}return e.setPosition(s+32),[y,32]}if(Xu(t)){const c=Fi(e.readBytes(A3)),u=s+c,f=[];for(let p=0;p<a;++p){e.setPosition(u+p*32);const[m]=Lu(e,t,{checksumAddress:r,staticPosition:u});f.push(m)}return e.setPosition(s+32),[f,32]}let i=0;const l=[];for(let c=0;c<a;++c){const[u,f]=Lu(e,t,{checksumAddress:r,staticPosition:s+i});i+=f,l.push(u),f===0&&(e.assertReadLimit(),e._touch())}return[l,i]}function j3e(e){return[iwe(e.readBytes(32),{size:32}),32]}function L3e(e,t,{staticPosition:n}){const[r,a]=t.type.split("bytes");if(!a){const i=Fi(e.readBytes(32));e.setPosition(n+i);const l=Fi(e.readBytes(32));if(l===0)return e.setPosition(n+32),["0x",32];const c=e.readBytes(l);return e.setPosition(n+32),[Qn(c),32]}return[Qn(e.readBytes(Number.parseInt(a,10),32)),32]}function $3e(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),a=e.readBytes(32);return[r>48?swe(a,{signed:n}):Fi(a,{signed:n}),32]}function z3e(e,t,n){const{checksumAddress:r,staticPosition:a}=n,s=t.components.length===0||t.components.some(({name:c})=>!c),i=s?[]:{};let l=0;if(Xu(t)){const c=Fi(e.readBytes(A3)),u=a+c;for(let f=0;f<t.components.length;++f){const p=t.components[f];e.setPosition(u+l);const[m,h]=Lu(e,p,{checksumAddress:r,staticPosition:u});l+=h,i[s?f:p==null?void 0:p.name]=m}return e.setPosition(a+32),[i,32]}for(let c=0;c<t.components.length;++c){const u=t.components[c],[f,p]=Lu(e,u,{checksumAddress:r,staticPosition:a});i[s?c:u==null?void 0:u.name]=f,l+=p}return[i,l]}function H3e(e,{staticPosition:t}){const n=Fi(e.readBytes(32)),r=t+n;e.setPosition(r);const a=Fi(e.readBytes(32));if(a===0)return e.setPosition(t+32),["",32];const s=e.readBytes(a,32),i=owe(cH(s));return e.setPosition(t+32),[i,32]}function K3e({checksumAddress:e,parameters:t,values:n}){const r=[];for(let a=0;a<t.length;a++)r.push(d4({checksumAddress:e,parameter:t[a],value:n[a]}));return r}function d4({checksumAddress:e=!1,parameter:t,value:n}){const r=t,a=p4(r.type);if(a){const[s,i]=a;return G3e(n,{checksumAddress:e,length:s,parameter:{...r,type:i}})}if(r.type==="tuple")return Q3e(n,{checksumAddress:e,parameter:r});if(r.type==="address")return V3e(n,{checksum:e});if(r.type==="bool")return W3e(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const s=r.type.startsWith("int"),[,,i="256"]=LH.exec(r.type)??[];return J3e(n,{signed:s,size:Number(i)})}if(r.type.startsWith("bytes"))return q3e(n,{type:r.type});if(r.type==="string")return Z3e(n);throw new h4(r.type)}function f4(e){let t=0;for(let s=0;s<e.length;s++){const{dynamic:i,encoded:l}=e[s];i?t+=32:t+=Yt(l)}const n=[],r=[];let a=0;for(let s=0;s<e.length;s++){const{dynamic:i,encoded:l}=e[s];i?(n.push(Je(t+a,{size:32})),r.push(l),a+=Yt(l)):n.push(l)}return un(...n,...r)}function V3e(e,t){const{checksum:n=!1}=t;return Aa(e,{strict:n}),{dynamic:!1,encoded:hs(e.toLowerCase())}}function G3e(e,t){const{checksumAddress:n,length:r,parameter:a}=t,s=r===null;if(!Array.isArray(e))throw new t8e(e);if(!s&&e.length!==r)throw new e8e({expectedLength:r,givenLength:e.length,type:`${a.type}[${r}]`});let i=e.length===0&&Xu(a);const l=[];for(let c=0;c<e.length;c++){const u=d4({checksumAddress:n,parameter:a,value:e[c]});u.dynamic&&(i=!0),l.push(u)}if(s||i){const c=f4(l);if(s){const u=Je(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?un(u,c):u}}if(i)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:un(...l.map(({encoded:c})=>c))}}function q3e(e,{type:t}){const[,n]=t.split("bytes"),r=Yt(e);if(!n){let a=e;return r%32!==0&&(a=vc(a,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:un(hs(Je(r,{size:32})),a)}}if(r!==Number.parseInt(n,10))throw new uK({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:vc(e)}}function W3e(e){if(typeof e!="boolean")throw new pt(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:hs(fH(e))}}function J3e(e,{signed:t,size:n}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,a=t?-r-1n:0n;if(e>r||e<a)throw new mH({max:r.toString(),min:a.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:Je(e,{size:32,signed:t})}}function Z3e(e){const t=Jo(e),n=Math.ceil(Yt(t)/32),r=[];for(let a=0;a<n;a++)r.push(vc(Mt(t,a*32,(a+1)*32)));return{dynamic:!0,encoded:un(vc(Je(Yt(t),{size:32})),...r)}}function Q3e(e,t){const{checksumAddress:n,parameter:r}=t;let a=!1;const s=[];for(let i=0;i<r.components.length;i++){const l=r.components[i],c=Array.isArray(e)?i:l.name,u=d4({checksumAddress:n,parameter:l,value:e[c]});s.push(u),u.dynamic&&(a=!0)}return{dynamic:a,encoded:a?f4(s):un(...s.map(({encoded:i})=>i))}}function p4(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function Xu(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;
136if(t==="tuple")return(r=e.components)==null?void 0:r.some(Xu);const n=p4(e.type);return!!(n&&Xu({...e,type:n[1]}))}function lK(e,t,n={}){const{as:r="Array",checksumAddress:a=!1}=n,s=typeof t=="string"?ea(t):t,i=YE(s);if(Nu(s)===0&&e.length>0)throw new Y3e;if(Nu(s)&&Nu(s)<32)throw new X3e({data:typeof t=="string"?t:Qn(t),parameters:e,size:Nu(s)});let l=0;const c=r==="Array"?[]:{};for(let u=0;u<e.length;++u){const f=e[u];l<s.length&&i.setPosition(l);const[p,m]=Lu(i,f,{checksumAddress:a,staticPosition:0});l+=m,r==="Array"?c.push(p):c[f.name??u]=p}return c}function m4(e,t,n){const{checksumAddress:r=!1}={};if(e.length!==t.length)throw new dK({expectedLength:e.length,givenLength:t.length});const a=K3e({checksumAddress:r,parameters:e,values:t}),s=f4(a);return s.length===0?"0x":s}function P3(e,t){if(e.length!==t.length)throw new dK({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const a=e[r],s=t[r];n.push(P3.encode(a,s))}return un(...n)}(function(e){function t(n,r,a=!1){if(n==="address"){const c=r;return Aa(c),hs(c.toLowerCase(),a?32:0)}if(n==="string")return Jo(r);if(n==="bytes")return r;if(n==="bool")return hs(fH(r),a?32:1);const s=n.match(LH);if(s){const[c,u,f="256"]=s,p=Number.parseInt(f,10)/8;return Je(r,{size:a?32:p,signed:u==="int"})}const i=n.match(y5e);if(i){const[c,u]=i;if(Number.parseInt(u,10)!==(r.length-2)/2)throw new uK({expectedSize:Number.parseInt(u,10),value:r});return vc(r,a?32:0)}const l=n.match(h5e);if(l&&Array.isArray(r)){const[c,u]=l,f=[];for(let p=0;p<r.length;p++)f.push(t(u,r[p],!0));return f.length===0?"0x":un(...f)}throw new h4(n)}e.encode=t})(P3||(P3={}));function cK(e){return Array.isArray(e)&&typeof e[0]=="string"||typeof e=="string"?ON(e):e}class X3e extends pt{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${Su(n)})`,`Data:   ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class Y3e extends pt{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class e8e extends pt{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class uK extends pt{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${Yt(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class dK extends pt{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`
137`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class t8e extends pt{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class h4 extends pt{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}const n8e="0x20c0";function fK(e){if(typeof e=="string"){const n=Sr(e);return Aa(n),n}const t=Je(e,{size:18});return un(n8e,t)}function T3(e){let t=!0,n="",r=0,a="",s=!1;for(let i=0;i<e.length;i++){const l=e[i];if(["(",")",","].includes(l)&&(t=!0),l==="("&&r++,l===")"&&r--,!!t){if(r===0){if(l===" "&&["event","function","error",""].includes(a))a="";else if(a+=l,l===")"){s=!0;break}continue}if(l===" "){e[i-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}a+=l,n+=l}}if(!s)throw new pt("Unable to normalize signature.");return a}function S3(e,t){const n=typeof e,r=t.type;switch(r){case"address":return bs(e,{strict:!1});case"bool":return n==="boolean";
137case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((a,s)=>S3(Object.values(e)[s],a)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(a=>S3(a,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function pK(e,t,n){for(const r in e){const a=e[r],s=t[r];if(a.type==="tuple"&&s.type==="tuple"&&"components"in a&&"components"in s)return pK(a.components,s.components,n[r]);const i=[a.type,s.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")?bs(n[r],{strict:!1}):i.includes("address")&&i.includes("bytes")?bs(n[r],{strict:!1}):!1)return i}}function y4(e,t={}){const{prepare:n=!0}=t,r=Array.isArray(e)||typeof e=="string"?RN(e):e;return{...r,...n?{hash:ic(r)}:{}}}function sg(e,t,n){const{args:r=[],prepare:a=!0}=n??{},s=Jr(t,{strict:!1}),i=e.filter(u=>s?u.type==="function"||u.type==="error"?b4(u)===Mt(t,0,4):u.type==="event"?ic(u)===t:!1:"name"in u&&u.name===t);if(i.length===0)throw new Jb({name:t});if(i.length===1)return{...i[0],...a?{hash:ic(i[0])}:{}};let l;for(const u of i){if(!("inputs"in u))continue;if(!r||r.length===0){if(!u.inputs||u.inputs.length===0)return{...u,...a?{hash:ic(u)}:{}};continue}if(!u.inputs||u.inputs.length===0||u.inputs.length!==r.length)continue;if(r.every((p,m)=>{const h="inputs"in u&&u.inputs[m];return h?S3(p,h):!1})){if(l&&"inputs"in l&&l.inputs){const p=pK(u.inputs,l.inputs,r);if(p)throw new a8e({abiItem:u,type:p[0]},{abiItem:l,type:p[1]})}l=u}}const c=(()=>{if(l)return l;const[u,...f]=i;return{...u,overloads:f}})();if(!c)throw new Jb({name:t});return{...c,...a?{hash:ic(c)}:{}}}function b4(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,r]=e;return sg(n,r)}return e[0]})();return Mt(ic(t),0,4)}function r8e(...e){const t=(()=>{if(Array.isArray(e[0])){const[r,a]=e;return sg(r,a)}return e[0]})(),n=typeof t=="string"?t:k3(t);return T3(n)}function ic(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,r]=e;return sg(n,r)}return e[0]})();return typeof t!="string"&&"hash"in t&&t.hash?t.hash:ys(Jo(r8e(t)))}class a8e extends pt{constructor(t,n){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${T3(k3(t.abiItem))}\`, and`,`\`${n.type}\` in \`${T3(k3(n.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class Jb extends pt{constructor({name:t,data:n,type:r="item"}){const a=t?` with name "${t}"`:n?` with data "${n}"`:"";super(`ABI ${r}${a} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function ig(e,t={}){if("keyId"in e)return mK(e);Vm(e.type,e.account);const n=e;n.witness!==void 0&&Gm(n.witness),n.signature&&Yu(n.signature);const r={...n,...n.account!==void 0?{account:Sr(n.account)}:{},address:Sr(n.address),...n.limits?{limits:n.limits.map(a=>({...a,token:Sr(a.token)}))}:{},...n.scopes?{scopes:n.scopes.map(a=>({...a,address:Sr(a.address),selector:v4(a.selector),...a.recipients?{recipients:a.recipients.map(s=>Sr(s))}:{}}))}:{}};if(t.signature){const a=vr(t.signature);return Yu(a),{...r,signature:a}}return r}function mK(e){const{allowedCalls:t,chainId:n,keyId:r,expiry:a,limits:s,keyType:i}=e,l=e.witness??void 0,c=e.isAdmin??void 0,u=e.account??void 0;Vm(i,u);const f=ag(e.signature);Yu(f),l!==void 0&&Gm(l);const p=t?t.flatMap(m=>!m.selectorRules||m.selectorRules.length===0?[{address:m.target}]:m.selectorRules.map(h=>({address:m.target,selector:o8e(h.selector),...h.recipients&&h.recipients.length>0?{recipients:h.recipients}:{}}
137))):void 0;return{address:r,chainId:n==="0x"?0n:Lt(n),...a!=null?{expiry:Number(a)}:{},limits:s==null?void 0:s.map(m=>({token:m.token,limit:BigInt(m.limit),...m.period&&Zb(m.period)>0?{period:Zb(m.period)}:{}})),...p?{scopes:p}:{},signature:f,...i==="multisig"?{account:u,type:i}:{type:i},...l!==void 0?{witness:l}:{},...u!==void 0?{account:u}:{},...c?{isAdmin:!0}:{}}}function hK(e){const[t,n]=e,[r,a,s,...i]=t,l=(()=>{switch(a){case"0x":case"0x00":return"secp256k1";case"0x01":return"p256";case"0x02":return"webAuthn";case"0x03":return"multisig";default:throw new Error(`Invalid key type: ${a}`)}})(),[c,u,f,p,m,h]=i,y=Zy(c)?void 0:Zb(c)||void 0,x=Array.isArray(u)&&u.length>0?u.map(A=>{const[S,_,k]=A;return{token:S,limit:i8e(_),...k!==void 0?{period:Zb(k)}:{}}}):void 0,C=Array.isArray(f)?f.flatMap(A=>{const[S,_]=A;return!Array.isArray(_)||_.length===0?[{address:S}]:_.map(k=>{const[R,D]=k;return{address:S,selector:R,...Array.isArray(D)&&D.length>0?{recipients:D}:{}}})}):void 0,T=Zy(p)?void 0:p;T!==void 0&&Gm(T);const w=(()=>{if(!Zy(m)){if(m!=="0x01")throw new c8e(m);return!0}})(),v=Zy(h)?void 0:h;Vm(l,v);const g={address:s,chainId:r==="0x"?0n:Lt(r),...l==="multisig"?{account:v,type:l}:{type:l},...y!==void 0?{expiry:y}:{},...x!==void 0?{limits:x}:{},...C!==void 0?{scopes:C}:{},...T!==void 0?{witness:T}:{},...v!==void 0?{account:v}:{},...w?{isAdmin:!0}:{}};if(n){const A=zs(n);Yu(A),g.signature=A}return ig(g)}function og(e){return s8e(e)}function g4(e){const t=e4(e);return hK(t)}function s8e(e){const[t]=x4(e),n=$m(t);return ys(n)}function B3(e){const t=x4(e);return $m(t)}function yK(e){Vm(e.type,e.account);const{address:t,scopes:n,chainId:r,expiry:a,limits:s,type:i,signature:l,witness:c,isAdmin:u,account:f}=e;Yu(l),c!==void 0&&Gm(c);const p=(()=>
137{if(!n)return;const m=new Map;for(const h of n){const y=h.address;m.has(y)||m.set(y,[]),h.selector&&m.get(y).push({selector:v4(h.selector),...h.recipients&&h.recipients.length>0?{recipients:h.recipients}:{}})}return[...m.entries()].map(([h,y])=>({target:h,...y.length>0?{selectorRules:y}:{}}))})();return{chainId:r===0n?"0x":Je(r),expiry:typeof a=="number"?Je(a):null,keyId:Sr(t),...i==="multisig"?{account:f,keyType:i}:{keyType:i},limits:s==null?void 0:s.map(({token:m,limit:h,period:y})=>({token:m,limit:Je(h),...y?{period:_3(y)}:{}})),signature:c4(l),...p?{allowedCalls:p}:{},...c!==void 0?{witness:c}:{},...u?{isAdmin:!0}:{},...f!==void 0?{account:f}:{}}}function x4(e){Vm(e.type,e.account);const{address:t,chainId:n,scopes:r,expiry:a,limits:s,witness:i,isAdmin:l,account:c}=e;i!==void 0&&Gm(i);const u=(()=>{if(e.signature)return Yu(e.signature),Ir(e.signature)})(),f=e.type,p=(()=>{switch(f){case"secp256k1":return"0x";case"p256":return"0x01";case"webAuthn":return"0x02";case"multisig":return"0x03";default:throw new Error(`Invalid key type: ${f}`)}})(),m=s==null?void 0:s.map(v=>{const g=[v.token,DN(v.limit)];return v.period&&v.period>0&&g.push(_3(v.period)),g}),h=(()=>
137{if(!r)return;const v=new Map;for(const g of r){const A=g.address;v.has(A)||v.set(A,[]),g.selector&&v.get(A).push([v4(g.selector),g.recipients??[]])}return[...v.entries()].map(([g,A])=>[g,A.map(([S,_])=>[S,_])])})(),y=i!==void 0||l||c!==void 0,x=[{value:a!=null&&a!==0?_3(a):void 0,placeholder:"0x"},{value:m,placeholder:y?"0x":[]},{value:h,placeholder:"0x"},{value:i,placeholder:"0x"},{value:l?"0x01":void 0,placeholder:"0x"},{value:c,placeholder:"0x"}];let C=-1;for(let v=x.length-1;v>=0;v--)if(x[v].value!==void 0){C=v;break}const T=x.slice(0,C+1).map(({value:v,placeholder:g})=>v??g);return[[DN(n),p,t,...T],...u?[u]:[]]}function DN(e){return e===0n?"0x":Je(e)}function _3(e){return e===0?"0x":Je(e)}function i8e(e){return e==="0x"?0n:BigInt(e)}function Zb(e){return e==="0x"?0:Zu(e)}function o8e(e){return typeof e=="string"?e:Array.isArray(e)?Qn(new Uint8Array(e)):e}function v4(e){if(e)return e.startsWith("0x")?e:b4(e)}function Vm(e,t){if(e==="multisig"&&t==null)throw new d8e}function Gm(e){if(Yt(e)!==32)throw new l8e(e)}function Yu(e){if(e.type==="keychain")throw new u8e(e.type)}function Zy(e){return e===void 0||e==="0x"}class l8e extends Error{constructor(t){super(`Witness \`${t}\` must be exactly 32 bytes (got ${Yt(t)} bytes).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidWitnessSizeError"})}}class c8e extends Error{constructor(t){super(`Admin marker \`${t}\` is invalid; expected \`0x01\` (TIP-1049).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidAdminMarkerError"})}}class u8e extends Error{constructor(t){super(`Signature type \`${t}\` is invalid for key authorizations; expected \`secp256k1\`, \`p256\`, \`webAuthn\`, or \`multisig\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidSignatureTypeError"})}}class d8e extends Error{constructor(){super("Multisig key grants require a parent account binding."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.MissingAccountError"})}}function f8e(e){const t=[];for(let n=0;n<e.length;n++){const[r,a]=e[n];r&&Aa(r,{strict:!1}),t.push({address:r,storageKeys:a.map(s=>rm(s)?s:u3(s))})}return t}function p8e(e){if(!e||e.length===0)return[];const t=[];for(const{address:n,storageKeys:r}of e){for(let a=0;a<r.length;a++)if(Yt(r[a])!==32)throw new m8e({storageKey:r[a]});n&&Aa(n,{strict:!1}),t.push([n,r])}return t}class m8e extends pt{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Yt(t)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccessList.InvalidStorageKeySizeError"})}}const FN={wei:0,gwei:9,szabo:12,finney:15,ether:18};function h8e(e,t=0){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[a,s]=[n.slice(0,n.length-t),n.slice(n.length-t)];return s=s.replace(/(0+)$/,""),`${r?"-":""}${a||"0"}${s?`.${s}`:""}`}function I3(e,t="wei"){return h8e(e,FN.gwei-FN[t])}class y8e extends pt{constructor({feeCap:t}={}){super(`The fee cap (\`maxFeePerGas\`/\`maxPriorityFeePerGas\`${t?` = ${I3(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.FeeCapTooHighError"})}}class b8e extends pt{constructor({chainId:t}){super(typeof t<"u"?`Chain ID "${t}
137" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidChainIdError"})}}class g8e extends pt{constructor({attributes:t,serialized:n,type:r}){const a=Object.entries(t).map(([s,i])=>typeof i>"u"?s:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${n}"`,a.length>0?`Missing Attributes: ${a.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidSerializedError"})}}class x8e extends pt{constructor({maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${I3(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${I3(n)} gwei`:""}).`].join(`
138`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.TipAboveFeeCapError"})}}const bK="0x78",v8e="0x76",UN="tempo";function w4(e){const{calls:t,chainId:n,maxFeePerGas:r,maxPriorityFeePerGas:a,validBefore:s,validAfter:i}=e;if(!t||t.length===0)throw new C8e;if(typeof s=="number"&&typeof i=="number"&&s<=i)throw new A8e({validBefore:s,validAfter:i});if(t)for(const l of t)l.to&&Aa(l.to,{strict:!1});if(n<=0)throw new b8e({chainId:n});if(r&&BigInt(r)>2n**256n-1n)throw new y8e({feeCap:r});if(a&&r&&a>r)throw new x8e({maxFeePerGas:r,maxPriorityFeePerGas:a})}function lg(e){const t=e4(Mt(e,1)),[n,r,a,s,i,l,c,u,f,p,m,h,y,x,C]=t,T=Array.isArray(x)?x:void 0,w=T?C:x;if(!(t.length===13||t.length===14||t.length===15))throw new g8e({attributes:{authorizationList:y,chainId:n,maxPriorityFeePerGas:r,maxFeePerGas:a,gas:s,calls:i,accessList:l,keyAuthorization:T,nonceKey:c,nonce:u,validBefore:f,validAfter:p,feeToken:m,feePayerSignatureOrSender:h,...t.length>12?{signature:w}:{}},serialized:e,type:UN});let v={chainId:Number(n),type:UN};if(Jr(s)&&s!=="0x"&&(v.gas=BigInt(s)),Jr(u)&&(v.nonce=u==="0x"?0n:BigInt(u)),Jr(a)&&a!=="0x"&&(v.maxFeePerGas=BigInt(a)),Jr(r)&&r!=="0x"&&(v.maxPriorityFeePerGas=BigInt(r)),Jr(c)&&(v.nonceKey=c==="0x"?0n:BigInt(c)),Jr(f)&&f!=="0x"&&(v.validBefore=Number(f)),Jr(p)&&p!=="0x"&&(v.validAfter=Number(p)),Jr(m)&&m!=="0x"&&(v.feeToken=m),i&&i!=="0x"){const A=i;v.calls=A.map(S=>{const[_,k,R]=S,D={};return _&&_!=="0x"&&(D.to=_),k&&k!=="0x"&&(D.value=BigInt(k)),R&&R!=="0x"&&(D.data=R),D})}(l==null?void 0:l.length)!==0&&l!=="0x"&&(v.accessList=f8e(l)),(y==null?void 0:y.length)!==0&&y!=="0x"&&(v.authorizationList=V5e(y)),h!=="0x"&&h!==void 0&&(h==="0x00"||bs(h)?(v.feePayerSignature=null,bs(h)&&
138(v.from=h)):v.feePayerSignature=x5e(h)),T&&(v.keyAuthorization=hK(T));const g=w?zs(w):void 0;if(g&&(v={...v,signature:g}),!v.from&&g)try{v.from=qi({payload:ed(Qb(v)),signature:g,root:!0})}catch{}return w4(v),v}function Qb(e,t={}){const{feePayerSignature:n,signature:r}=t,a=typeof e=="string"?lg(e):e;return a.from&&(a.from=Sr(a.from)),a.calls&&(a.calls=a.calls.map(s=>({...s,...s.to?{to:Sr(s.to)}:{}}))),w4(a),{...a,...r?{signature:vr(r)}:{},...n?{feePayerSignature:ng(n)}:{},type:"tempo"}}function Bi(e,t={}){const{accessList:n,authorizationList:r,calls:a,chainId:s,feeToken:i,gas:l,keyAuthorization:c,nonce:u,nonceKey:f,maxFeePerGas:p,maxPriorityFeePerGas:m,validBefore:h,validAfter:y}=e;w4(e);const x=p8e(n),C=t.signature||e.signature,T=J5e(r),w=a.map(S=>[S.to?Sr(S.to):"0x",S.value?Je(S.value):"0x",S.data??"0x"]);let v=!1;const g=(()=>{if(t.sender)return t.sender;if(t.format==="feePayer"&&C){const _=vr(C);if(_.type==="keychain")return _.userAddress;if(_.type==="p256"||_.type==="webAuthn")return To(_.publicKey);if(_.type==="secp256k1")return UH({payload:ed(Qb(e)),signature:_.signature})}const S=typeof t.feePayerSignature<"u"?t.feePayerSignature:e.feePayerSignature;return S===null?(v=!0,"0x00"):S?w5e(S):"0x"})(),A=[Je(s),m?Je(m):"0x",p?Je(p):"0x",l?Je(l):"0x",w,x,f?Je(f):"0x",u?Je(u):"0x",typeof h=="number"?Je(h):"0x",typeof y=="number"?Je(y):"0x",!v&&(typeof i=="bigint"||typeof i=="string")?fK(i):"0x",g,T,...c?[x4(c)]:[],...C?[Ir(vr(C))]:[]];return un(t.format==="feePayer"?bK:v8e,$m(A))}function w8e(e){return Bi({...e,signature:void 0,...e.feePayerSignature!==void 0?{feePayerSignature:null}:{}})}function ed(e,t={}){const n=E8e(e,{presign:!0});return t.from?ys(un("0x04",n,Sr(t.from))):n}function E8e(e,t={}){const n=t.presign?w8e(e):Bi(e);return ys(n)}function k8e(e,t){const n=Sr(t.sender),r=Bi({...e,signature:void 0},{sender:n,format:"feePayer"});return ys(r)}class C8e extends pt{constructor(){super("Calls list cannot be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.CallsEmptyError"})}}class A8e extends pt{constructor({validBefore:t,validAfter:n}){super(`validBefore (${t}) must be greater than validAfter (${n}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.InvalidValidityWindowError"})}}function P8e(e){const{account:t,config:n}=e,r=ed(lg(e.transaction));return Cd({account:t,config:n,payload:r})}async function T8e(e){const{account:t,approvals:n,hash:r}=e;if(!bs(t)||Lt(t)===0n)throw new v0({reason:"account is invalid"});if(!rm(r))throw new v0({reason:"hash is invalid"});const a=za(e.config);return _8e({approvals:n,config:a,hash:r})}function S8e(e,t){const n=g4(e);if(n.signature)throw new Et({reason:"keyAuthorization must not contain a signature"});if(B3(n).toLowerCase()!==e.toLowerCase())throw new Et({reason:"keyAuthorization is not canonically serialized"});const r=za(t.config),a=l4({account:t.account,config:r,payload:og(n),signatures:t.approvals.map(s=>xK(t.account,s,r))});return B3(ig(n,{signature:vr({account:t.account,config:r,signatures:a})}))}function B8e(e){try{const t=za(e.config);if(typeof t.threshold!="number"||t.owners.some(r=>typeof r.weight!="number"))throw new Et({reason:"config threshold and owner weights must be numbers"});const n={...e,config:t};if(N8e(n,t),n.type==="transaction")R8e(n);else if(n.type==="keyAuthorization")O8e(n,t);else throw new Et({reason:"unknown operation type"});return n}catch(t){throw t instanceof Et?t:new Et({cause:t})}}function gK(e){var t;try{const n=(t=e.config)==null?void 0:t.version;if(typeof n!="string"||!Jr(n))throw new Et({reason:"config.version must be a hexadecimal quantity"});const r=Lt(n);if(Je(r)!==n)throw new Et({reason:"config.version must use canonical quantity encoding"});return B8e({...e,config:HH(e.config)})}catch(n){throw n instanceof Et?n:new Et({cause:n})}}async function _8e(e){const t=new Map(e.config.owners.map(c=>[c.owner.toLowerCase(),{address:c.owner,weight:Number(c.weight)}])),n=new Map;for(const c of e.approvals){const u=vr(c);if(u.type==="keychain"||u.type==="multisig")throw new v0({reason:"only primitive signatures can approve a multisig operation"});const f=qi({payload:e.hash,signature:u}),p=t.get(f.toLowerCase());if(!p)throw new v0({reason:`signature is from non-owner ${f}`});const m=f.toLowerCase(),h=n.get(m);h?h.signatures.push(u):n.set(m,{address:p.address,signatures:[u],weight:p.weight})}const r=[],a=[];for(const c of n.values()){const f=c.signatures.map(p=>{if(!v3(p,{address:c.address,payload:e.hash}))throw new v0({reason:`signature from owner ${c.address}
138 is invalid`});return Ir(p)}).sort(I8e)[0];r.push({address:c.address,signature:f,weight:c.weight}),a.push({address:c.address,signature:f})}const s=r.sort((c,u)=>u.weight-c.weight||Ow(c,u)),i=[];let l=0;for(const c of s.slice(0,$s)){if(l>=Number(e.config.threshold))break;i.push(c),l+=c.weight}return i.sort(Ow),{approvals:a.sort(Ow).map(c=>c.signature),selectedApprovals:i.map(c=>c.signature),signatureCount:i.length,threshold:Number(e.config.threshold),weight:l}}function Ow(e,t){const n=Lt(e.address),r=Lt(t.address);return n<r?-1:n>r?1:0}function I8e(e,t){const n=e.toLowerCase(),r=t.toLowerCase();return n<r?-1:n>r?1:0}function N8e(e,t){if(!bs(e.account))throw new Et({reason:"account is invalid"});if(Lt(e.account)===0n)throw new Et({reason:"account cannot be zero"});if(!rm(e.hash))throw new Et({reason:"hash is invalid"});if(Bu(e.createdAt,"createdAt"),Bu(e.updatedAt,"updatedAt"),e.updatedAt<e.createdAt)throw new Et({reason:"updatedAt cannot precede createdAt"});if(Bu(e.signatureCount,"signatureCount"),Bu(e.threshold,"threshold"),Bu(e.weight,"weight"),e.threshold!==Number(t.threshold))throw new Et({reason:"threshold must equal config.threshold"});if(e.weight>255)throw new Et({reason:"weight exceeds u8 max"});if(e.signatureCount>$s)throw new Et({reason:"too many selected signatures"});if(!Array.isArray(e.approvals))throw new Et({reason:"approvals must be an array"});if(e.approvals.length>t.owners.length)throw new Et({reason:"too many retained approvals"});if(e.signatureCount>e.approvals.length)throw new Et({reason:"signatureCount exceeds retained approvals"});if(e.signatureCount===0!=(e.weight===0))throw new Et({reason:"signatureCount and weight must both be zero or nonzero"});const n=new Map(t.owners.map(s=>[s.owner.toLowerCase(),Number(s.weight)])),r=[],a=new Set;for(const s of e.approvals){if(typeof s!="string"||!Jr(s,{strict:!0}))throw new Et({reason:"approval is invalid"});const i=xK(e.account,s,t),c=qi({payload:e.hash,signature:i}).toLowerCase(),u=n.get(c);if(u===void 0)throw new Et({reason:"approval is from a non-owner"});if(a.has(c))throw new Et({reason:e.type==="keyAuthorization"?"key authorization contains duplicate owner approvals":"duplicate owner approval"});a.add(c),r.push(u)}if(!D8e(r,e.signatureCount,e.weight))throw new Et({reason:"weight is not reachable by signatureCount retained owner approvals"})}function R8e(e){if("keyAuthorization"in e&&e.keyAuthorization!==void 0)throw new Et({reason:"transaction operations cannot contain keyAuthorization"});const t=e.expiresAt,n=e.submissionId,r=e.transactionHash;if(e.status==="pending"){if(t!==void 0||n!==void 0||r!==void 0)throw new Et({reason:"pending transactions cannot contain submission fields"})}else if(e.status==="submitting"){if(Bu(t,"expiresAt"),!rm(n??""))throw new Et({reason:"submissionId is invalid"});if(n.toLowerCase()===e.hash.toLowerCase())throw new Et({reason:"submissionId must differ from the operation hash"});if(r!==void 0)throw new Et({reason:"submitting transactions cannot contain transactionHash"})}else if(e.status==="success"){if(!rm(r??""))throw new Et({reason:"transactionHash is invalid"});if(t!==void 0||n!==void 0)throw new Et({reason:"successful transactions cannot contain submission fields"})}else throw new Et({reason:"invalid transaction status"});if(e.status!=="pending"&&(e.weight<e.threshold||e.signatureCount===0))throw new Et({reason:"submitted transactions must have quorum"});if(typeof e.transaction!="string")throw new Et({reason:"transaction is invalid"});const a=lg(e.transaction);if(a.signature)throw new Et({reason:"transaction must not contain an outer sender signature"});if(a.from&&a.from.toLowerCase()!==e.account.toLowerCase())throw new Et({reason:"transaction sender does not match the operation account"});vK(e,ed(a));const s=e.transaction.startsWith(bK);if(Bi(a,s?a.from?{format:"feePayer",sender:a.from}:{format:"feePayer"}:{}).toLowerCase()!==e.transaction.toLowerCase())throw new Et({reason:"transaction is not canonically serialized"})}function O8e(e,t){const n=e;if(n.expiresAt!==void 0||n.submissionId!==void 0||n.transaction!==void 0||n.transactionHash!==void 0)throw new Et({reason:"key authorization operations cannot contain transaction fields"});if(e.status!=="pending"&&e.status!=="success")throw new Et({reason:"invalid key authorization status"});if(e.status==="success"&&(e.weight<e.threshold||e.signatureCount===0))throw new Et({reason:"successful key authorizations must have quorum"});if(e.status==="pending"&&e.weight>=e.threshold)throw new Et({reason:"pending key authorizations cannot have quorum"});if(typeof e.keyAuthorization!="string")throw new Et({reason:"keyAuthorization is invali
138d"});const r=g4(e.keyAuthorization);if(!r.account||r.account.toLowerCase()!==e.account.toLowerCase())throw new Et({reason:"key authorization account does not match the operation account"});const a=r.signature;if(e.status==="pending"&&a)throw new Et({reason:"pending key authorizations must be unsigned"});if(e.status==="success"){if((a==null?void 0:a.type)!=="multisig")throw new Et({reason:"successful key authorizations require a multisig signature"});if(a.account.toLowerCase()!==e.account.toLowerCase())throw new Et({reason:"key authorization signature account does not match"});if(a.signatures.length!==e.signatureCount)throw new Et({reason:"key authorization signatureCount does not match its signature"});if(M8e(e,a.signatures,r),!F8e(a.config,t))throw new Et({reason:"key authorization config does not match"})}if(vK(e,og(r)),B3(r).toLowerCase()!==e.keyAuthorization.toLowerCase())throw new Et({reason:"keyAuthorization is not canonically serialized"})}function xK(e,t,n){const r=zs(t);if(r.type==="keychain"||r.type==="multisig")throw new Et({reason:"only primitive owner approvals are allowed"});if(wc({account:e,config:n,signatures:[r],type:"multisig"}),Ir(r).toLowerCase()!==t.toLowerCase())throw new Et({reason:"approval is not canonical"});return r}function M8e(e,t,n){const r=e.approvals.map(i=>zs(i));for(const i of t){const l=r.findIndex(c=>Ir(c).toLowerCase()===Ir(i).toLowerCase());if(l===-1)throw new Et({reason:"key authorization signature is not a retained approval"});r.splice(l,1)}const a=Cd({account:e.account,config:e.config,payload:og(n)}),s=t.map(i=>qi({payload:a,signature:i}));for(let i=1;i<s.length;i++){const l=Lt(s[i-1]),c=Lt(s[i]);if(l===c)throw new Et({reason:"key authorization contains duplicate owner approvals"});if(l>c)throw new Et({reason:"key authorization approvals are not canonically ordered"})}}function D8e(e,t,n){const r=Array.from({length:t+1},()=>new Set);r[0].add(0);for(const a of e)for(let s=t;s>0;s--)for(const i of r[s-1])r[s].add(i+a);return r[t].has(n)}function vK(e,t){if(Cd({account:e.account,config:e.config,payload:t}).toLowerCase()!==e.hash.toLowerCase())throw new Et({reason:"hash does not match the operation payload"})}function Bu(e,t){if(typeof e!="number"||!Number.isSafeInteger(e)||e<0)throw new Et({reason:`${t} must be a nonnegative safe integer`})}function F8e(e,t){const n=za(e),r=za(t);return pwe(n.salt??Qu,r.salt??Qu)&&n.threshold===r.threshold&&n.version===r.version&&n.owners.length===r.owners.length&&n.owners.every((a,s)=>{const i=r.owners[s];return Ls(a.owner,i.owner)&&a.weight===i.weight})}class v0 extends pt{constructor(t={}){super(t.reason?`Invalid multisig approval: ${t.reason}.`:"Invalid multisig approval.",{cause:t.cause}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigOperation.InvalidApprovalError"})}}class Et extends pt{constructor(t={}){super(t.reason?`Invalid multisig operation: ${t.reason}.`:"Invalid multisig operation.",{cause:t.cause}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigOperation.InvalidOperationError"})}}function jN(e){const{approvals:t,config:n}=e;return U8e(t),{approvals:t.map(({keyData:r,keyType:a,owner:s})=>({...r!==void 0?{keyData:L8e(r)}:{},...a!==void 0?{keyType:a}:{},owner:s})),config:j8e(n)}}function U8e(e){if(e.some(t=>typeof t!="object"||t===null||"spec"in t||"type"in t))throw new LN({reason:"only untagged primitive owner approvals are allowed"});if(e.length>$s)throw new LN({reason:`approval count exceeds ${$s}`})}function j8e(e){return $m(KH(e))}function L8e(e){const t=Yt(e);return t<=4?e:Je(t,{size:2})}class LN extends pt{constructor(t){super(`Invalid multisig simulation: ${t.reason}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigSimulation.InvalidSimulationError"})}}function $8e(e,t={}){return y4(e,t)}function z8e(e){return ic(e)}function H8e(e,t={}){return typeof e.chainId=="string"?wK(e):{...e,...t.signature}}function wK(e){const{address:t,chainId:n,nonce:r}=e,a=$H(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...a}}function K8e(e){return e.map(wK)}function V8e(e){const{address:t,chainId:n,nonce:r,...a}=e;return{address:t,chainId:Je(n),nonce:Je(r),...zH(a)}}function G8e(e){return e.map(V8e)}const EK={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"}
138,kK={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function q8e(e,t={}){if(!e)return null;const n=$H(e),r={...e,...n};return r.blockNumber=e.blockNumber?BigInt(e.blockNumber):null,"blockTimestamp"in e&&(r.blockTimestamp=e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0),r.data=e.input,r.gas=BigInt(e.gas??0n),r.nonce=BigInt(e.nonce??0n),r.transactionIndex=e.transactionIndex?Number(e.transactionIndex):null,r.value=BigInt(e.value??0n),e.authorizationList&&(r.authorizationList=K8e(e.authorizationList)),e.chainId&&(r.chainId=Number(e.chainId)),e.gasPrice&&(r.gasPrice=BigInt(e.gasPrice)),e.maxFeePerBlobGas&&(r.maxFeePerBlobGas=BigInt(e.maxFeePerBlobGas)),e.maxFeePerGas&&(r.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.type&&(r.type=kK[e.type]??e.type),n&&(r.v=i4(n.yParity)),r}const CK={...EK,tempo:"0x76"},W8e={...kK,"0x76":"tempo"};function J8e(e,t={}){if(!e)return null;const n=q8e(e);return n.type=W8e[e.type],e.aaAuthorizationList&&(n.authorizationList=H5e(e.aaAuthorizationList),delete n.aaAuthorizationList),e.calls&&(n.calls=e.calls.map(r=>({to:r.to,value:r.value&&r.value!=="0x"?BigInt(r.value):void 0,data:r.input||r.data||"0x"}))),e.feeToken&&(n.feeToken=e.feeToken),e.nonceKey&&(n.nonceKey=BigInt(e.nonceKey)),e.signature&&(n.signature=ag(e.signature)),e.validAfter&&(n.validAfter=Number(e.validAfter)),e.validBefore&&(n.validBefore=Number(e.validBefore)),e.keyAuthorization&&(n.keyAuthorization=mK(e.keyAuthorization)),e.feePayerSignature&&(n.feePayerSignature=a4(e.feePayerSignature),n.feePayerSignature.v=i4(n.feePayerSignature.yParity)),n}function Z8e(e){const t={};return typeof e.accessList<"u"&&(t.accessList=e.accessList),typeof e.authorizationList<"u"&&(t.authorizationList=G8e(e.authorizationList)),typeof e.blobVersionedHashes<"u"&&(t.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(t.blobs=e.blobs),typeof e.chainId<"u"&&(t.chainId=Je(e.chainId)),typeof e.data<"u"?(t.data=e.data,t.input=e.data):typeof e.input<"u"&&(t.data=e.input,t.input=e.input),typeof e.from<"u"&&(t.from=e.from),typeof e.gas<"u"&&(t.gas=Je(e.gas)),typeof e.gasPrice<"u"&&(t.gasPrice=Je(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(t.maxFeePerBlobGas=Je(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(t.maxFeePerGas=Je(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=Je(e.maxPriorityFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=Je(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(t.nonce=Je(e.nonce)),typeof e.to<"u"&&(t.to=e.to),typeof e.type<"u"&&(t.type=EK[e.type]||e.type),typeof e.value<"u"&&(t.value=Je(e.value)),t}function Q8e(e){const t=Z8e({...e,authorizationList:void 0});e.authorizationList&&(t.authorizationList=q5e(e.authorizationList)),e.calls?t.calls=e.calls.map(r=>({to:r.to?Sr(r.to):r.to,value:r.value?Je(r.value):"0x",data:r.data??"0x"})):(e.to||e.data||e.value)&&(t.calls=[{to:e.to?Sr(e.to):void 0,value:e.value?Je(e.value):"0x",data:e.data??"0x"}]),typeof e.feeToken<"u"&&(t.feeToken=fK(e.feeToken)),e.keyAuthorization&&(t.keyAuthorization=yK(e.keyAuthorization)),e.keyAuthorizationSimulation&&(t.keyAuthorizationSimulation=jN(e.keyAuthorizationSimulation)),e.multisigSimulation&&(t.multisigSimulation=jN(e.multisigSimulation)),typeof e.validBefore<"u"&&(t.validBefore=Je(e.validBefore)),typeof e.validAfter<"u"&&(t.validAfter=Je(e.validAfter));const n=(()=>{if(e.nonceKey==="random")return XE(6);if(typeof e.nonceKey=="bigint")return Je(e.nonceKey)})();return n&&(t.nonceKey=n),(typeof e.calls<"u"||typeof e.feePayer<"u"||typeof e.feeToken<"u"||typeof e.keyAuthorization<"u"||typeof e.multisigSimulation<"u"||typeof e.nonceKey<"u"||typeof e.validBefore<"u"||typeof e.validAfter<"u"||e.type==="tempo")&&(t.type=CK.tempo,delete t.data,delete t.input,delete t.to,delete t.value),t}const AK={4217:{base:4217e5,range:100261e4},42431:{base:142431e4,range:723173648}},PK=4217;AK[PK].base;function TK(e,t=PK){const{base:n,range:r}=Y8e(t);return n+e%r}class X8e extends pt{constructor({sourceId:t}){super(`Source chain ID "${t}
138" is not supported.`,{metaMessages:["Supported source chain IDs: 4217, 42431."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ZoneId.UnsupportedSourceIdError"})}}function Y8e(e){if(e===4217||e===42431)return AK[e];throw new X8e({sourceId:e})}function Zo(e){const{blockHash:t,blockNumber:n,blockTag:r,requireCanonical:a}=e;if(a!==void 0&&!t)throw new Oe("`requireCanonical` can only be provided when `blockHash` is set.");return t?a?{blockHash:t,requireCanonical:a}:{blockHash:t}:typeof n=="bigint"?nt(n):r??"latest"}async function am(e,{address:t,blockHash:n,blockNumber:r,blockTag:a="latest",requireCanonical:s}){const i=Zo({blockHash:n,blockNumber:r,blockTag:a,requireCanonical:s}),l=await e.request({method:"eth_getCode",params:[t,i]},{dedupe:typeof r=="bigint"||n!==void 0});if(l!=="0x")return l}async function cg(e,{blockHash:t,blockNumber:n,blockTag:r,hash:a,index:s,sender:i,nonce:l}){var m,h,y;const c=r||"latest",u=n!==void 0?nt(n):void 0;let f=null;if(a?f=await e.request({method:"eth_getTransactionByHash",params:[a]},{dedupe:!0}):t?f=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,nt(s)]},{dedupe:!0}):typeof s=="number"?f=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[u||c,nt(s)]},{dedupe:!!u}):i&&typeof l=="number"&&(f=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[i,nt(l)]},{dedupe:!0})),!f)throw new _E({blockHash:t,blockNumber:n,blockTag:c,hash:a,index:s});return(((y=(h=(m=e.chain)==null?void 0:m.formatters)==null?void 0:h.transaction)==null?void 0:y.format)||Dc)(f,"getTransaction")}const SK="0x6492649264926492649264926492649264926492649264926492649264926492";function eEe(e){if(Mt(e,-32)!==SK)throw new rEe(e)}function tEe(e){const{data:t,signature:n,to:r}=e;return un(m4(cK("address, bytes, bytes"),[r,t,n]),SK)}function nEe(e){try{return eEe(e),!0}catch{return!1}}let rEe=class extends pt{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}};const aEe="0x8010801080108010801080108010801080108010801080108010801080108010",sEe=cK("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function BK(e){if(typeof e=="string"){if(Mt(e,-32)!==aEe)throw new lEe(e)}else Hm(e.authorization)}function iEe(e){BK(e);const t=Zu(Mt(e,-64,-32)),n=Mt(e,-t-64,-64),r=Mt(e,0,-t-64),[a,s,i]=lK(sEe,n);return{authorization:H8e({address:a.delegation,chainId:Number(a.chainId),nonce:a.nonce,yParity:a.yParity,r:a.r,s:a.s}),signature:r,...i&&i!=="0x"?{data:i,to:s}:{}}}function oEe(e){try{return BK(e),!0}catch{return!1}}class lEe extends pt{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}const Cc=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],N3=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],_K=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"}
vendor: 4,273 bytes, line 138
138,{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],IK=[..._K,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],cEe=[..._K,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],$N=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],NK=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],RK=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],zN=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],dc=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}],OK="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b
138602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",uEe="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",dEe="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
138603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",ug="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9
138150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033",Mw="/docs/contract/encodeDeployData";function E4(e){const{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;const a=t.find(i=>"type"in i&&i.type==="constructor");if(!a)throw new Yye({docsPath:Mw});if(!("inputs"in a))throw new tN({docsPath:Mw});if(!a.inputs||a.inputs.length===0)throw new tN({docsPath:Mw});const s=Fc(a.inputs,n);return Zn([r,s])}const HN="/docs/contract/encodeFunctionData";function fEe(e){const{abi:t,args:n,functionName:r}=e;let a=t[0];if(r){const s=Uc({abi:t,args:n,name:r});if(!s)throw new qu(r,{docsPath:HN});a=s}if(a.type!=="function")throw new qu(void 0,{docsPath:HN});return{abi:[a],functionName:Fm(ms(a))}}function ca(e){const{args:t}=e,{abi:n,functionName:r}=(()=>{var l;return e.abi.length===1&&((l=e.functionName)!=null&&l.startsWith("0x"))?e:fEe(e)})(),a=n[0],s=r,i="inputs"in a&&a.inputs?Fc(a.inputs,t??[]):void 0;return Zn([s,i??"0x"])}function Ka(e,t){if(!dn(e,{strict:!1}))throw new Ln({address:e});if(!dn(t,{strict:!1}))throw new Ln({address:t});return e.toLowerCase()===t.toLowerCase()}function pEe(e){const t=Wn(`0x${e.substring(4)}`).substring(26);return z1(`0x${t}`)}async function mEe({hash:e,signature:t}
138){const n=It(e)?e:Kt(e),{secp256k1:r}=await dL(async()=>{const{secp256k1:i}=await Promise.resolve().then(()=>p5e);return{secp256k1:i}},void 0);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:u,s:f,v:p,yParity:m}=t,h=Number(m??p),y=KN(h);return new r.Signature(Pt(u),Pt(f)).addRecoveryBit(y)}const i=It(t)?t:Kt(t);if(wn(i)!==65)throw new Error("invalid signature length");const l=Pn(`0x${i.slice(130)}`),c=KN(l);return r.Signature.fromCompact(i.substring(2,130)).addRecoveryBit(c)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function KN(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function R3({hash:e,signature:t}){return pEe(await mEe({hash:e,signature:t}))}function hEe(e){const{chainId:t,nonce:n,to:r}=e,a=e.contractAddress??e.address,s=Wn(Zn(["0x05",js([t?nt(t):"0x",a,n?nt(n):"0x"])]));return r==="bytes"?ra(s):s}async function k4(e){const{authorization:t,signature:n}=e;return R3({hash:hEe(t),signature:n??t})}async function yEe({address:e,authorization:t,signature:n}){return Ka(I0(e),await k4({authorization:t,signature:n}))}function ht(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const a=e[n];return typeof a=="function"?a:s=>t(e,s)}function bEe({r:e,s:t,to:n="hex",v:r,yParity:a}){const s=(()=>{if(a===0||a===1)return a;if(r&&(r===27n||r===28n||r>=35n))return r%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),i=`0x${new tg.Signature(Pt(e),Pt(t)).toCompactHex()}${s===0?"1b":"1c"}`;return n==="hex"?i:ra(i)}function gEe(e){return{address:e.address,amount:Je(e.amount),index:Je(e.index),validatorIndex:Je(e.validatorIndex)}}function MK(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:Je(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:Je(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:Je(e.gasLimit)},...typeof e.number=="bigint"&&{number:Je(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:Je(e.prevRandao)},...typeof e.time=="bigint"&&{time:Je(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(gEe)}}}const xEe="0x82ad56cb",Dw="/docs/contract/decodeFunctionResult";function Qo(e){const{abi:t,args:n,functionName:r,data:a}=e;let s=t[0];if(r){const l=Uc({abi:t,args:n,name:r});if(!l)throw new qu(r,{docsPath:Dw});s=l}if(s.type!=="function")throw new qu(void 0,{docsPath:Dw});if(!s.outputs)throw new Rz(s.name,{docsPath:Dw});const i=Um(s.outputs,a);if(i&&i.length>1)return i;if(i&&i.length===1)return i[0]}function DK(){let e=()=>{},t=()=>{};return{promise:new Promise((r,a)=>{e=r,t=a}),resolve:e,reject:t}}const Fw=new Map;function C4({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:a}){const s=async()=>{const f=c();i();const p=f.map(({args:m})=>m);p.length!==0&&e(p).then(m=>{a&&Array.isArray(m)&&m.sort(a);for(let h=0;h<f.length;h++){const{resolve:y}=f[h];y==null||y([m[h],m])}}).catch(m=>{for(let h=0;h<f.length;h++){const{reject:y}=f[h];y==null||y(m)}})},i=()=>Fw.delete(t),l=()=>c().map(({args:f})=>f),c=()=>Fw.get(t)||[],u=f=>Fw.set(t,[...c(),f]);return{flush:i,async schedule(f){const{promise:p,resolve:m,reject:h}=DK();return(n==null?void 0:n([...l(),f]))&&s(),c().length>0?(u({args:f,resolve:m,reject:h}),p):(u({args:f,resolve:m,reject:h}),setTimeout(s,r),p)}}}async function Pd(e,t){var F,z,U,V,$,O;const{account:n=e.account,authorizationList:r,batch:a=!!((F=e.batch)!=null&&F.multicall),blockHash:s,blockNumber:i,blockTag:l=e.experimental_blockTag??"latest",requireCanonical:c,accessList:u,blobs:f,blockOverrides:p,code:m,data:h,factory:y,factoryData:x,gas:C,gasPrice:T,maxFeePerBlobGas:w,maxFeePerGas:v,maxPriorityFeePerGas:g,nonce:A,requestOptions:S,to:_,value:k,stateOverride:R,...D}=t,B=n?nn(n):void 0;if(m&&(y||x))throw new Oe("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(m&&_)throw new Oe("Cannot provide both `code` & `to` as parameters.");const M=m&&h,E=y&&x&&_&&h,N=M||E,I=M?UK({code:m,data:h}):E?AEe({data:h,factory:y,factoryData:x,to:_}):h;try{Wo(t);const H=Zo({blockHash:s,blockNumber:i,blockTag:l,requireCanonical:c}),Z=p?MK(p):void 0,ee=J1(R),ae=(V=(U=(z=e.chain)==null?void 0:z.formatters)==null?void 0:U.transactionRequest)==null?void 0:V.format,fe=(ae||Vi)({...vd(D,{format:ae}),accessList:u,account:B,authorizationList:r,blobs:f,data:I,gas:C,gasPrice:T,maxFeePerBlobGas:w,maxFeePerGas:v,maxPriorityFeePerGas:g,nonce:A,to:N?void 0:_,value:k},"call");if(a&&vEe({request:fe})&&!Z&&s===void 0)try{const{deployless:he=!1}=typeof(($=e.batch)==null?void 0:$.multicall)=="object"?e.batch.multicall:{},De=FK(e,{blockNumber:i,deployless:he});if(!De||!CEe(ee,De))return await kEe(e,{...fe,blockHash:s,blockNumber:i,blockTag:l,multicallAddress:De,requestOptions:S,requireCanonical:c,rpcStateOverride:ee})}
138catch(he){if(!(he instanceof oz)&&!(he instanceof G5))throw he}const le=(()=>{const he=[fe,H];return ee&&Z?[...he,ee,Z]:ee?[...he,ee]:Z?[...he,{},Z]:he})(),xe=await e.request({method:"eth_call",params:le},S);return xe==="0x"?{data:void 0}:{data:xe}}catch(H){if((O=S==null?void 0:S.signal)!=null&&O.aborted)throw Oo(S.signal);if(xd(H))throw H;const Z=PEe(H),{offchainLookup:ee,offchainLookupSignature:ae}=await dL(async()=>{const{offchainLookup:ie,offchainLookupSignature:fe}=await import("./ccip-C6oAqoyh.js");return{offchainLookup:ie,offchainLookupSignature:fe}},[]);if(e.ccipRead!==!1&&(Z==null?void 0:Z.slice(0,10))===ae&&_)return{data:await ee(e,{data:Z,requestOptions:S,to:_})};throw N&&(Z==null?void 0:Z.slice(0,10))==="0x101bb98d"?new B1e({factory:y}):GE(H,{...t,account:B,chain:e.chain})}}function vEe({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(xEe)||!n||Object.values(r).filter(a=>typeof a<"u").length>0)}let wEe=0;const VN=new WeakMap;function EEe(e){if(!e)return"default";const t=VN.get(e);if(t!==void 0)return t;const n=wEe++;return VN.set(e,n),n}async function kEe(e,t){var A;const{batchSize:n=1024,deployless:r=!1,wait:a=0}=typeof((A=e.batch)==null?void 0:A.multicall)=="object"?e.batch.multicall:{},{blockHash:s,blockNumber:i,blockTag:l=e.experimental_blockTag??"latest",requireCanonical:c,data:u,multicallAddress:f,requestOptions:p,rpcStateOverride:m,to:h}=t,y=f!==void 0?f:FK(e,{blockNumber:i,deployless:r}),x=Zo({blockHash:s,blockNumber:i,blockTag:l,requireCanonical:c}),C=typeof x=="string"?x:JSON.stringify(x),T=m?`.${JSON.stringify(m)}`:"",{schedule:w}=C4({id:`${e.uid}.${C}.${EEe(p)}${T}`,wait:a,shouldSplitBatch(S){return S.reduce((k,{data:R})=>k+(R.length-2),0)>n*2},fn:async S=>{const _=S.map(B=>({allowFailure:!0,callData:B.data,target:B.to})),k=ca({abi:Cc,args:[_],functionName:"aggregate3"}),R={...y===null?{data:UK({code:ug,data:k})}:{to:y,data:k}},D=await e.request({method:"eth_call",params:m?[R,x,m]:[R,x]},p);return Qo({abi:Cc,args:[_],functionName:"aggregate3",data:D||"0x"})}}),[{returnData:v,success:g}]=await w({data:u,to:h});if(!g)throw new q1({data:v});return v==="0x"?{data:void 0}:{data:v}}function FK(e,t){const{blockNumber:n,deployless:r}=t;if(r)return null;if(e.chain)return bd({blockNumber:n,chain:e.chain,contract:"multicall3"});throw new oz}function CEe(e,t){return e?Object.keys(e).some(n=>Ka(n,t)):!1}function UK(e){const{code:t,data:n}=e;return E4({abi:qz(["constructor(bytes, bytes)"]),bytecode:OK,args:[t,n]})}function AEe(e){const{data:t,factory:n,factoryData:r,to:a}=e;return E4({abi:qz(["constructor(address, bytes, address, bytes)"]),bytecode:uEe,args:[a,t,n,r]})}function PEe(e){var n;if(!(e instanceof Oe))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(n=t.data)==null?void 0:n.data:t.data}const TEe=3;function Ac(e,{abi:t,address:n,args:r,docsPath:a,functionName:s,sender:i}){const l=e instanceof q1?e:e instanceof Oe?e.walk(y=>"data"in y)||e.walk():{},{code:c,data:u,details:f,message:p,shortMessage:m}=l,h=e instanceof Dm?new S1e({functionName:s,cause:e}):[TEe,xc.code].includes(c)&&(u||f||p||m)||c===Mo.code&&f==="execution reverted"&&u?new o3({abi:t,data:typeof u=="object"?u.data:u,functionName:s,message:l instanceof VE?f:m??p,cause:e}):e;return new Xz(h,{abi:t,args:r,contractAddress:n,docsPath:a,functionName:s,sender:i})}async function hn(e,t){const{abi:n,address:r,args:a,functionName:s,...i}=t,l=ca({abi:n,args:a,functionName:s});try{const{data:c}=await ht(e,Pd,"call")({...i,data:l,to:r});return Qo({abi:n,args:a,functionName:s,data:c||"0x"})}catch(c){throw Ac(c,{abi:n,address:r,args:a,docsPath:"/docs/contract/readContract",functionName:s})}}async function qm(e,t){var u,f,p,m;const{address:n,chain:r=e.chain,hash:a,erc6492VerifierAddress:s=t.universalSignatureVerifierAddress??((f=(u=r==null?void 0:r.contracts)==null?void 0:u.erc6492Verifier)==null?void 0:f.address),multicallAddress:i=t.multicallAddress??((m=(p=r==null?void 0:r.contracts)==null?void 0:p.multicall3)==null?void 0:m.address),mode:l="auto"}=t;if(r!=null&&r.verifyHash)return await r.verifyHash(e,t);const c=(()=>{const h=t.signature;return It(h)?h:typeof h=="object"&&"r"in h&&"s"in h?bEe(h):Nn(h)})();try{if(l==="eoa")try{if(Ka(I0(n),await R3({hash:a,signature:c})))return!0}catch{}return oEe(c)?await SEe(e,{...t,multicallAddress:i,signature:c}):await BEe(e,{...t,verifierAddress:s,signature:c})}catch(h){if(l!=="eoa")try{if(Ka(I0(n),await R3({hash:a,signature:c})))return!0}catch{}if(h instanceof Pc)return!1;throw h}}async function SEe(e,t){var w;const{address:n,blockHash:r,blockNumber:a,blockTag:s,hash:i,multicallAddress:l,requireCanonical:c}=t,{authorization:u,data:f,signature:p,to:m}=iEe(t.signature);if(await am(e,{address:n,blockHash:r,blockNumber:a,blockTag:s,requireCanonical:c})===Zn(["0xef0100",u.address]))return await _Ee(e,{...t,signature:p});const y={address:u.address,chainId:Number(u.chainId),nonce:Number(u.nonce),r:nt(u.r,{size:32}),s:nt(u.s,{size:32}),yParity:u.yParity};if(!await yEe({address:n,authorization:y}))throw new Pc;const C=await ht(e,hn,"readContract")({...l?{address:l}:{code:ug},authorizationList:[y],abi:Cc,blockHash:r,blockNumber:a,blockTag:"pending",functionName:"aggregate3",requireCanonical:c,args:[[...f?[{allowFailure:!0,target:m??n,callData:f}
138]:[],{allowFailure:!0,target:n,callData:ca({abi:RK,functionName:"isValidSignature",args:[i,p]})}]]}),T=(w=C[C.length-1])==null?void 0:w.returnData;if(T!=null&&T.startsWith("0x1626ba7e"))return!0;throw new Pc}async function BEe(e,t){const{address:n,factory:r,factoryData:a,hash:s,signature:i,verifierAddress:l,...c}=t,u=await(async()=>!r&&!a||nEe(i)?i:tEe({data:a,signature:i,to:r}))(),f=l?{to:l,data:ca({abi:zN,functionName:"isValidSig",args:[n,s,u]}),...c}:{data:E4({abi:zN,args:[n,s,u],bytecode:dEe}),...c},{data:p}=await ht(e,Pd,"call")(f).catch(m=>{throw m instanceof KE?new Pc:m});if(Sce(p??"0x0"))return!0;throw new Pc}async function _Ee(e,t){const{address:n,blockHash:r,blockNumber:a,blockTag:s,hash:i,requireCanonical:l,signature:c}=t;if((await ht(e,hn,"readContract")({address:n,abi:RK,args:[i,c],blockHash:r,blockNumber:a,blockTag:s,functionName:"isValidSignature",requireCanonical:l}).catch(f=>{throw f instanceof Xz?new Pc:f})).startsWith("0x1626ba7e"))return!0;throw new Pc}class Pc extends Error{}const GN="/docs/contract/decodeEventLog";function Xb(e){const{abi:t,data:n,strict:r,topics:a}=e,s=r??!0,[i,...l]=a;if(!i)throw new abe({docsPath:GN});const c=t.find(T=>T.type==="event"&&i===G1(ms(T)));if(!(c&&"name"in c)||c.type!=="event")throw new sbe(i,{docsPath:GN});const{name:u,inputs:f}=c,p=f==null?void 0:f.some(T=>!("name"in T&&T.name)),m=p?[]:{},h=f.map((T,w)=>[T,w]).filter(([T])=>"indexed"in T&&T.indexed),y=[];for(let T=0;T<h.length;T++){const[w,v]=h[T],g=l[T];if(!g){if(s)throw new LE({abiItem:c,param:w});y.push([w,v]);continue}m[p?v:w.name||v]=IEe({param:w,value:g})}const x=f.filter(T=>!("indexed"in T&&T.indexed)),C=s?x:[...y.map(([T])=>T),...x];if(C.length>0){if(n&&n!=="0x")try{const T=Um(C,n);if(T){let w=0;if(!s)for(const[v,g]of y)m[p?g:v.name||g]=T[w++];if(p)for(let v=0;v<f.length;v++)m[v]===void 0&&w<T.length&&(m[v]=T[w++]);else for(let v=0;v<x.length;v++)m[x[v].name]=T[w++]}}catch(T){if(s)throw T instanceof Iz||T instanceof H$?new Vb({abiItem:c,data:n,params:C,size:wn(n)}):T}else if(s)throw new Vb({abiItem:c,data:"0x",params:C,size:0})}return{eventName:u,args:Object.values(m).length>0?m:void 0}}function IEe({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(Um([e],t)||[])[0]}class NEe extends Oe{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}const qN="/docs/contract/encodeEventTopics";function Wm(e){var c;const{abi:t,eventName:n,args:r}=e;let a=t[0];if(n){const u=Uc({abi:t,name:n});if(!u)throw new rN(n,{docsPath:qN});a=u}if(a.type!=="event")throw new rN(void 0,{docsPath:qN});let s=[];if(r&&"inputs"in a){const u=(c=a.inputs)==null?void 0:c.filter(p=>"indexed"in p&&p.indexed),f=Array.isArray(r)?r:Object.values(r).length>0?(u==null?void 0:u.map(p=>r[p.name]))??[]:[];f.length>0&&(s=(u==null?void 0:u.map((p,m)=>Array.isArray(f[m])?f[m].map((h,y)=>WN({param:p,value:f[m][y]})):typeof f[m]<"u"&&f[m]!==null?WN({param:p,value:f[m]}):null))??[])}if(a.anonymous)return s;const i=ms(a);return[G1(i),...s]}function WN({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return Wn(Mi(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new NEe(e.type);return Fc([e],[t])}const Qy=new Map,Uw=new Map;let REe=0;function Li(e,t,n){const r=++REe,a=()=>Qy.get(e)||[],s=()=>{const p=a().filter(m=>m.id!==r);if(p.length===0){Qy.delete(e),Uw.delete(e);return}Qy.set(e,p)},i=()=>{const f=a();if(!f.some(m=>m.id===r))return;const p=Uw.get(e);if(f.length===1&&p){const m=p();m instanceof Promise&&m.catch(()=>{})}s()},l=a();if(Qy.set(e,[...l,{id:r,fns:t}]),l&&l.length>0)return i;const c={};for(const f in t)c[f]=((...p)=>{var h,y;const m=a();if(m.length!==0)for(const x of m)(y=(h=x.fns)[f])==null||y.call(h,...p)});const u=n(c);return typeof u=="function"&&Uw.set(e,u),i}async function O3(e,{signal:t}={}){return new Promise((n,r)=>{if(t!=null&&t.aborted){r(Oo(t));return}const a=()=>t==null?void 0:t.removeEventListener("abort",i),s=setTimeout(()=>{a(),n()},e),i=()=>{clearTimeout(s),a(),r(Oo(t))};t==null||t.addEventListener("abort",i,{once:!0})})}function Jm(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let a=!0;const s=()=>a=!1;return(async()=>{let l;t&&(l=await e({unpoll:s}));const c=await(n==null?void 0:n(l))??r;await O3(c);const u=async()=>{a&&(await e({unpoll:s}),await O3(r),u())};u()})(),s}function dg(e,{method:t}){var r,a;const n={};return e.transport.type==="fallback"&&((a=(r=e.transport).onResponse)==null||a.call(r,({method:s,response:i,status:l,transport:c})=>{l==="success"&&t===s&&(n[i]=c.request)})),(s=>n[s]||e.request)}async function jK(e,t){const{address:n,abi:r,args:a,eventName:s,fromBlock:i,strict:l,toBlock:c}=t,u=dg(e,{method:"eth_newFilter"}),f=s?Wm({abi:r,args:a,eventName:s}):void 0,p=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:typeof i=="bigint"?nt(i):i,toBlock:typeof c=="bigint"?nt(c):c,topics:f}
138]});return{abi:r,args:a,eventName:s,id:p,request:u(p),strict:!!l,type:"event"}}const OEe=new Map,MEe=new Map;function DEe(e){const t=(a,s)=>({clear:()=>s.delete(a),get:()=>s.get(a),set:i=>s.set(a,i)}),n=t(e,OEe),r=t(e,MEe);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function FEe(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const r=DEe(t),a=r.response.get();if(a&&n>0&&Date.now()-a.created.getTime()<n)return a.data;let s=r.promise.get();s||(s=e(),r.promise.set(s));try{const i=await s;return r.response.set({created:new Date,data:i}),i}finally{r.promise.clear()}}const UEe=e=>`blockNumber.${e}`;async function Td(e,{cacheTime:t=e.cacheTime}={}){const n=await FEe(()=>e.request({method:"eth_blockNumber"}),{cacheKey:UEe(e.uid),cacheTime:t});return BigInt(n)}function Xo(e){const{abi:t,args:n,logs:r,strict:a=!0}=e,s=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),i=t.filter(l=>l.type==="event").map(l=>({abi:l,selector:G1(l)}));return r.map(l=>{var m;const c=typeof l.blockNumber=="string"?ps(l):l,u=i.filter(h=>c.topics[0]===h.selector);if(u.length===0)return null;let f,p;for(const h of u)try{f=Xb({...c,abi:[h.abi],strict:!0}),p=h;break}catch{}if(!f&&!a){p=u[0];try{f=Xb({data:c.data,topics:c.topics,abi:[p.abi],strict:!1})}catch{const h=(m=p.abi.inputs)==null?void 0:m.some(y=>!("name"in y&&y.name));return{...c,args:h?[]:{},eventName:p.abi.name}}}return!f||!p||s&&!s.includes(f.eventName)||!jEe({args:f.args,inputs:p.abi.inputs,matchArgs:n})?null:{...f,...c}}).filter(Boolean)}function jEe(e){const{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function a(s,i,l){try{return s.type==="address"?Ka(i,l):s.type==="string"||s.type==="bytes"?Wn(Mi(i))===l:i===l}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((s,i)=>{if(s==null)return!0;const l=n[i];return l?(Array.isArray(s)?s:[s]).some(u=>a(l,u,t[i])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof r=="object"&&!Array.isArray(r)?Object.entries(r).every(([s,i])=>{if(i==null)return!0;const l=n.find(u=>u.name===s);return l?(Array.isArray(i)?i:[i]).some(u=>a(l,u,t[s])):!1}):!1}async function A4(e,{address:t,blockHash:n,fromBlock:r,toBlock:a,event:s,events:i,args:l,strict:c}={}){const u=c??!1,f=i??(s?[s]:void 0);let p=[];f&&(p=[f.flatMap(x=>Wm({abi:[x],eventName:x.name,args:i?void 0:l}))],s&&(p=p[0]));let m;n?m=await e.request({method:"eth_getLogs",params:[{address:t,topics:p,blockHash:n}]}):m=await e.request({method:"eth_getLogs",params:[{address:t,topics:p,fromBlock:typeof r=="bigint"?nt(r):r,toBlock:typeof a=="bigint"?nt(a):a}]});const h=m.map(y=>ps(y));return f?Xo({abi:f,args:l,logs:h,strict:u}):h}async function LK(e,t){const{abi:n,address:r,args:a,blockHash:s,eventName:i,fromBlock:l,toBlock:c,strict:u}=t,f=i?Uc({abi:n,name:i}):void 0,p=f?void 0:n.filter(m=>m.type==="event");return ht(e,A4,"getLogs")({address:r,args:a,blockHash:s,event:f,events:p,fromBlock:l,toBlock:c,strict:u})}async function fg(e,{filter:t}){const n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof r[0]=="string")return r;const a=r.map(s=>ps(s));return!("abi"in t)||!t.abi?a:Xo({abi:t.abi,logs:a,strict:n})}async function pg(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}function LEe(e,t){const{abi:n,address:r,args:a,batch:s=!0,eventName:i,fromBlock:l,onError:c,onLogs:u,poll:f,pollingInterval:p=e.pollingInterval,strict:m}=t;return(typeof f<"u"?f:typeof l=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].c
138onfig.type==="webSocket"||e.transport.transports[0].config.type==="ipc")))?(()=>{const C=m??!1,T=Jn(["watchContractEvent",r,a,s,e.uid,i,p,C,l]);return Li(T,{onLogs:u,onError:c},w=>{let v;l!==void 0&&(v=l-1n);let g,A=!1;const S=Jm(async()=>{var _;if(!A){try{g=await ht(e,jK,"createContractEventFilter")({abi:n,address:r,args:a,eventName:i,strict:C,fromBlock:l})}catch{}A=!0;return}try{let k;if(g)k=await ht(e,fg,"getFilterChanges")({filter:g});else{const R=await ht(e,Td,"getBlockNumber")({});v&&v<R?k=await ht(e,LK,"getContractEvents")({abi:n,address:r,args:a,eventName:i,fromBlock:v+1n,toBlock:R,strict:C}):k=[],v=R}if(k.length===0)return;if(s)w.onLogs(k);else for(const R of k)w.onLogs([R])}catch(k){g&&k instanceof Mo&&(A=!1),(_=w.onError)==null||_.call(w,k)}},{emitOnBegin:!0,interval:p});return async()=>{g&&await ht(e,pg,"uninstallFilter")({filter:g}),S()}})})():(()=>{const C=m??!1,T=Jn(["watchContractEvent",r,a,s,e.uid,i,p,C]);let w=!0,v=()=>w=!1;return Li(T,{onLogs:u,onError:c},g=>((async()=>{try{const A=(()=>{if(e.transport.type==="fallback"){const k=e.transport.transports.find(R=>R.config.type==="webSocket"||R.config.type==="ipc");return k?k.value:e.transport}return e.transport})(),S=i?Wm({abi:n,eventName:i,args:a}):[],{unsubscribe:_}=await A.subscribe({params:["logs",{address:r,topics:S}],onData(k){var D;if(!w)return;const R=k.result;try{const{eventName:B,args:M}=Xb({abi:n,data:R.data,topics:R.topics,strict:m}),E=ps(R,{args:M,eventName:B});g.onLogs([E])}catch(B){let M,E;if(B instanceof Vb||B instanceof LE){if(m)return;M=B.abiItem.name,E=(D=B.abiItem.inputs)==null?void 0:D.some(I=>!("name"in I&&I.name))}const N=ps(R,{args:E?[]:{},eventName:M});g.onLogs([N])}},onError(k){var R;(R=g.onError)==null||R.call(g,k)}});v=_,w||v()}catch(A){c==null||c(A)}})(),()=>v()))})()}function $K(e,{docsPath:t,...n}){const r=(()=>{const a=W1(e,n);return a instanceof Nm?e:a})();return new Gce(r,{docsPath:t,...n})}async function mg(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return Pn(t)}class zK extends Oe{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class P4 extends Oe{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class $Ee extends Oe{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${aa(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class T4 extends Oe{constructor({blockHash:t,blockNumber:n}){let r="Block";t&&(r=`Block at hash "${t}"`),n&&(r=`Block at number "${n}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}async function $a(e,{blockHash:t,blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",includeTransactions:a}={}){var u,f,p;const s=a??!1,i=n!==void 0?nt(n):void 0;let l=null;if(t?l=await e.request({method:"eth_getBlockByHash",params:[t,s]},{dedupe:!0}):l=await e.request({method:"eth_getBlockByNumber",params:[i||r,s]},{dedupe:!!i}),!l)throw new T4({blockHash:t,blockNumber:n});return(((p=(f=(u=e.chain)==null?void 0:u.formatters)==null?void 0:f.block)==null?void 0:p.format)||U1)(l,"getBlock")}async function S4(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function zEe(e,t){return HK(e,t)}async function HK(e,t){var s,i;const{block:n,chain:r=e.chain,request:a}=t||{};try{const l=((s=r==null?void 0:r.fees)==null?void 0:s.maxPriorityFeePerGas)??((i=r==null?void 0:r.fees)==null?void 0:i.defaultPriorityFee);if(typeof l=="function"){const u=n||await ht(e,$a,"getBlock")({}),f=await l({block:u,client:e,request:a});if(f===null)throw new Error;return f}if(typeof l<"u")return l;const c=await e.request({method:"eth_maxPriorityFeePerGas"});return Pt(c)}catch{const[l,c]=await Promise.all([n?Promise.resolve(n):ht(e,$a,"getBlock")({}),ht(e,S4,"getGasPrice")({})]);if(typeof l.baseFeePerGas!="bigint")throw new P4;const u=c-l.baseFeePerGas;return u<0n?0n:u}}async function HEe(e,t){return M3(e,t)}async function M3(e,t){var m,h;const{block:n,chain:r=e.chain,request:a,type:s="eip1559"}=t||{},i=await(async()=>{var y,x;return typeof((y=r==null?void 0:r.fees)==null?void 0:y.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:a}):((x=r==null?void 0:r.fees)==null?void 0:x.baseFeeMultiplier)??1.2})();if(i<1)throw new zK;const c=10**(((m=i.toString().split(".")[1])==null?void 0:m.length)??0),u=y=>
138y*BigInt(Math.round(i*c))/BigInt(c),f=n||await ht(e,$a,"getBlock")({});if(typeof((h=r==null?void 0:r.fees)==null?void 0:h.estimateFeesPerGas)=="function"){const y=await r.fees.estimateFeesPerGas({block:n,client:e,multiply:u,request:a,type:s});if(y!==null)return y}if(s==="eip1559"){if(typeof f.baseFeePerGas!="bigint")throw new P4;const y=typeof(a==null?void 0:a.maxPriorityFeePerGas)=="bigint"?a.maxPriorityFeePerGas:await HK(e,{block:f,chain:r,request:a}),x=u(f.baseFeePerGas);return{maxFeePerGas:(a==null?void 0:a.maxFeePerGas)??x+y,maxPriorityFeePerGas:y}}return{gasPrice:(a==null?void 0:a.gasPrice)??u(await ht(e,S4,"getGasPrice")({}))}}class KEe extends Oe{constructor(t,{account:n,docsPath:r,chain:a,data:s,gas:i,gasPrice:l,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:f,to:p,value:m}){var y;const h=_m({from:n==null?void 0:n.address,to:p,value:typeof m<"u"&&`${BE(m)} ${((y=a==null?void 0:a.nativeCurrency)==null?void 0:y.symbol)||"ETH"}`,data:s,gas:i,gasPrice:typeof l<"u"&&`${aa(l)} gwei`,maxFeePerGas:typeof c<"u"&&`${aa(c)} gwei`,maxPriorityFeePerGas:typeof u<"u"&&`${aa(u)} gwei`,nonce:f});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",h].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function VEe(e,{docsPath:t,...n}){const r=(()=>{const a=W1(e,n);return a instanceof Nm?e:a})();return new KEe(r,{docsPath:t,...n})}async function B4(e,t){var i,l,c;const{account:n=e.account,prepare:r=!0}=t,a=n?nn(n):void 0,s=(()=>{if(Array.isArray(r))return r;if((a==null?void 0:a.type)!=="local")return["blobVersionedHashes"]})();try{const u=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await k4({authorization:t.authorizationList[0]}).catch(()=>{throw new Oe("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:f,authorizationList:p,blobs:m,blobVersionedHashes:h,blockNumber:y,blockTag:x,data:C,gas:T,gasPrice:w,maxFeePerBlobGas:v,maxFeePerGas:g,maxPriorityFeePerGas:A,nonce:S,value:_,stateOverride:k,...R}=r?await _4(e,{...t,parameters:s,to:u}):t;if(T&&t.gas!==T)return T;const B=(typeof y=="bigint"?nt(y):void 0)||x,M=J1(k);Wo(t);const E=(c=(l=(i=e.chain)==null?void 0:i.formatters)==null?void 0:l.transactionRequest)==null?void 0:c.format,I=(E||Vi)({...vd(R,{format:E}),account:a,accessList:f,authorizationList:p,blobs:m,blobVersionedHashes:h,data:C,gasPrice:w,maxFeePerBlobGas:v,maxFeePerGas:g,maxPriorityFeePerGas:A,nonce:S,to:u,value:_},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:M?[I,B??e.experimental_blockTag??"latest",M]:B?[I,B]:[I]}))}catch(u){throw VEe(u,{...t,account:a,chain:e.chain})}}async function KK(e,{address:t,blockHash:n,blockNumber:r,blockTag:a="latest",requireCanonical:s}){const i=Zo({blockHash:n,blockNumber:r,blockTag:a,requireCanonical:s}),l=await e.request({method:"eth_getTransactionCount",params:[t,i]},{dedupe:typeof r=="bigint"||n!==void 0});return Pn(l)}async function VK(e,t){var k,R,D,B,M;const{account:n=e.account,accessList:r,authorizationList:a,chain:s=e.chain,blobVersionedHashes:i,blobs:l,data:c,gas:u,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:y,nonceManager:x,to:C,type:T,value:w,...v}=t,g=await(async()=>{if(!n||!x||typeof y<"u")return y;const E=nn(n),N=s?s.id:await ht(e,mg,"getChainId")({});return await x.consume({address:E.address,chainId:N,client:e})})();Wo(t);const A=(R=(k=s==null?void 0:s.formatters)==null?void 0:k.transactionRequest)==null?void 0:R.format,_=(A||Vi)({...vd(v,{format:A}),account:n?nn(n):void 0,accessList:r,authorizationList:a,blobs:l,blobVersionedHashes:i,data:c,gas:u,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:g,to:C,type:T,value:w},"fillTransaction");try{const E=await e.request({method:"eth_fillTransaction",params:[_]}),I=(((B=(D=s==null?void 0:s.formatters)==null?void 0:D.transaction)==null?void 0:B.format)||Dc)(E.tx);delete I.blockHash,delete I.blockNumber,delete I.r,delete I.s,delete I.transactionIndex,delete I.v,delete I.yParity,I.data=I.input;const F=typeof I.feePayerSignature<"u"&&I.feePayerSignature!==null;if(F&&typeof g<"u"&&I.nonce!==g)throw new G$({filledNonce:I.nonce,requestedNonce:g});if(!F){I.gas&&(I.gas=t.gas??I.gas),I.gasPrice&&(I.gasPrice=t.gasPrice??I.gasPrice),I.maxFeePerBlobGas&&(I.maxFeePerBlobGas=t.maxFeePerBlobGas??I.maxFeePerBlobGas),I.maxFeePerGas&&(I.maxFeePerGas=t.maxFeePerGas??I.maxFeePerGas),I.maxPriorityFeePerGas&&(I.maxPriorityFeePerGas=t.maxPriorityFeePerGas??I.maxPriorityFeePerGas),typeof I.nonce<"u"&&(I.nonce=t.nonce??I.nonce);const z=await(async()=>{var O,H;if(typeof((O=s==null?void 0:s.fees)==null?void 0:O.baseFeeMultiplier)=="function"){const Z=await ht(e,$a,"getBlock")({});return s.fees.baseFeeMultiplier({block:Z,client:e,request:t})}return((H=s==null?void 0:s.fees)==null?void 0:H.baseFeeMultiplier)??1.2})();if(z<1)throw new zK;const V=10**(((M=z.toString().split(".")[1])==null?void 0:M.length)??0),$=O=>O*BigInt(Math.round(z*V))/BigInt(V);I.maxFeePerGas&&!t.maxFeePerGas&&(I.maxFeePerGas=$(I.maxFeePerGas)),I.gasPrice&&!t.gasPrice&&(I.gasPrice=$(I.gasPrice))}return{raw:E.raw,transaction:{from:_.from,...I},...E.capabilities?{capabilities:E.capabilities}:{}}}catch(E){throw $K(E,{...t,chain:e.chain})}}const GK=["blobVersionedHashes","chainId","fees","gas","nonce","type"],JN=new Map,jw=new Rm(128);async function _4(e,t){var g,A,S;let n=t;n.account??(n.account=e.account),n.parameters??(n.parameters=GK);const{account:r,chain:a=e.chain,nonceManager:s,parameters:i}=n,l=(()=>
138{if(typeof(a==null?void 0:a.prepareTransactionRequest)=="function")return{fn:a.prepareTransactionRequest,runAt:["beforeFillTransaction"]};if(Array.isArray(a==null?void 0:a.prepareTransactionRequest))return{fn:a.prepareTransactionRequest[0],runAt:a.prepareTransactionRequest[1].runAt}})();let c;async function u(){return c||(typeof n.chainId<"u"?n.chainId:a?a.id:(c=await ht(e,mg,"getChainId")({}),c))}let f=r&&nn(r),p=n.nonce;if(l!=null&&l.fn&&((g=l.runAt)!=null&&g.includes("beforeFillTransaction"))){n=await l.fn({...n,chain:a},{client:e,phase:"beforeFillTransaction"}),p??(p=n.nonce);const _=n.account??n.from;f=_?nn(_):void 0}if(i.includes("nonce")&&typeof p>"u"&&f&&s){const _=await u();p=await s.consume({address:f.address,chainId:_,client:e})}const h=((i.includes("blobVersionedHashes")||i.includes("sidecars"))&&n.kzg&&n.blobs?!1:i.length>0&&"feePayer"in n&&n.feePayer&&!("feePayerSignature"in n&&n.feePayerSignature)?!0:jw.get(e.uid)===!1||!["fees","gas"].some(k=>i.includes(k))?!1:!!(i.includes("chainId")&&typeof n.chainId!="number"||i.includes("nonce")&&typeof p!="number"||i.includes("fees")&&typeof n.gasPrice!="bigint"&&(typeof n.maxFeePerGas!="bigint"||typeof n.maxPriorityFeePerGas!="bigint")||i.includes("gas")&&typeof n.gas!="bigint"))?await ht(e,VK,"fillTransaction")({...n,nonce:p}).then(_=>{const{chainId:k,from:R,gas:D,gasPrice:B,nonce:M,maxFeePerBlobGas:E,maxFeePerGas:N,maxPriorityFeePerGas:I,type:F,...z}=_.transaction,U="feeToken"in z?z.feeToken:void 0,V="feePayerSignature"in z&&z.feePayerSignature!==null&&typeof z.feePayerSignature<"u",$=typeof U<"u"&&U!==null&&(!("feeToken"in n)||V);return jw.set(e.uid,!0),{...n,...R?{from:R}:{},...F&&!n.type?{type:F}:{},...typeof k<"u"?{chainId:k}:{},...typeof D<"u"?{gas:D}:{},...typeof B<"u"?{gasPrice:B}:{},...typeof M<"u"?{nonce:M}:{},...typeof E<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerBlobGas:E}:{},...typeof N<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerGas:N}:{},...typeof I<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxPriorityFeePerGas:I}:{},..."nonceKey"in z&&typeof z.nonceKey<"u"?{nonceKey:z.nonceKey}:{},..."keyAuthorization"in z&&typeof z.keyAuthorization<"u"&&z.keyAuthorization!==null&&!("keyAuthorization"in n)?{keyAuthorization:z.keyAuthorization}:{},..."feePayerSignature"in z&&typeof z.feePayerSignature<"u"&&z.feePayerSignature!==null?{feePayerSignature:z.feePayerSignature}:{},...$?{feeToken:U}:{},..._.capabilities?{_capabilities:_.capabilities}:{}}}).catch(_=>{var M,E,N;const k=_;if(k.name!=="TransactionExecutionError")return n;if(((M=k.walk)==null?void 0:M.call(k,I=>I instanceof G$))||((E=k.walk)==null?void 0:E.call(k,I=>I.name==="ExecutionRevertedError")))throw _;return((N=k.walk)==null?void 0:N.call(k,I=>{var z;const F=I;return F.name==="MethodNotFoundRpcError"||F.name==="MethodNotSupportedRpcError"||((z=F.message)==null?void 0:z.includes("eth_fillTransaction is not available"))}))&&jw.set(e.uid,!1),n}):n;p??(p=h.nonce),n={...h,...f?{from:f==null?void 0:f.address}:{},...typeof p<"u"?{nonce:p}:{}};const{blobs:y,gas:x,kzg:C,type:T}=n;l!=null&&l.fn&&((A=l.runAt)!=null&&A.includes("beforeFillParameters"))&&(n=await l.fn({...n,chain:a},{client:e,phase:"beforeFillParameters"}));let w;async function v(){return w||(w=await ht(e,$a,"getBlock")({blockTag:"latest"}),w)}if(i.includes("nonce")&&typeof p>"u"&&f&&!s&&(n.nonce=await ht(e,KK,"getTransactionCount")({address:f.address,blockTag:"pending"})),(i.includes("blobVersionedHashes")||i.includes("sidecars"))&&y&&C){const _=IE({blobs:y,kzg:C});if(i.includes("blobVersionedHashes")){const k=nz({commitments:_,to:"hex"});n.blobVersionedHashes=k}if(i.includes("sidecars")){const k=NE({blobs:y,commitments:_,kzg:C}),R=DE({blobs:y,commitments:_,proofs:k,to:"hex"});n.sidecars=R}}if(i.includes("chainId")&&(n.chainId=await u()),(i.includes("fees")||i.includes("type"))&&typeof T>"u")try{n.type=UE(n)}catch{let _=JN.get(e.uid);if(typeof _>"u"){const k=await v();_=typeof(k==null?void 0:k.baseFeePerGas)=="bigint",JN.set(e.uid,_)}n.type=_?"eip1559":"legacy"}if(i.includes("fees"))if(n.type!=="legacy"&&n.type!=="eip2930"){if(typeof n.maxFeePerGas>"u"||typeof n.maxPriorityFeePerGas>"u"){const _=await v(),{maxFeePerGas:k,maxPriorityFeePerGas:R}=await M3(e,{block:_,chain:a,request:n});if(typeof n.maxPriorityFeePerGas>"u"&&n.maxFeePerGas&&n.maxFeePerGas<R)throw new $Ee({maxPriorityFeePerGas:R});n.maxPriorityFeePerGas=R,n.maxFeePerGas=k}}else{if(typeof n.maxFeePerGas<"u"||typeof n.maxPriorityFeePerGas<"u")throw new P4;if(typeof n.gasPrice>"u"){const _=await v(),{gasPrice:k}=await M3(e,{block:_,chain:a,request:n,type:"legacy"});n.gasPrice=k}}return i.includes("gas")&&typeof x>"u"&&(n.gas=await ht(e,B4,"estimateGas")({...n,account:f,prepare:(f==null?void 0:f.type)==="local"?[]:["blobVersionedHashes"]})),l!=null&&l.fn&&((S=l.runAt)!=null&&S.includes("afterFillParameters"))&&(n=await l.fn({...n,chain:a},{client:e,phase:"afterFillParameters"})),Wo(n),delete n.parameters,n}async function qK(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const Lw=new Rm(128);async function WK(e,t){var A,S,_,k,R,D,B,M;const{account:n=e.account,assertChainId:r=!0,chain:a=e.chain,accessList:s,authorizationList:i,blobs:l,data:c,dataSuffix:u=typeof e.dataSuffix=="string"?e.dataSuffix:(A=e.dataSuffix)==null?void 0:A.value,gas:f,gasPrice:p,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:y,nonce:x,type:C,value:T,...w}=t;if(typeof n>"u")throw new Mm({docsPath:"/docs/actions/wallet/sendTransaction"});const v=n?nn(n):null;let g;try{Wo(t);const E=await(async()=>
138{if(t.to)return t.to;if(t.to!==null&&i&&i.length>0)return await k4({authorization:i[0]}).catch(()=>{throw new Oe("`to` is required. Could not infer from `authorizationList`.")})})();if((v==null?void 0:v.type)==="json-rpc"||v===null){let N;a!==null&&(N=await ht(e,mg,"getChainId")({}),r&&h0e({currentChainId:N,chain:a}));const I=(k=(_=(S=e.chain)==null?void 0:S.formatters)==null?void 0:_.transactionRequest)==null?void 0:k.format,z=(I||Vi)({...vd(w,{format:I}),accessList:s,account:v,authorizationList:i,blobs:l,chainId:N,data:u?Ku([c??"0x",u]):c,gas:f,gasPrice:p,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:y,nonce:x,to:E,type:C,value:T},"sendTransaction"),U=Lw.get(e.uid),V=U?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:V,params:[z]},{retryCount:0})}catch($){if(U===!1)throw $;const O=$;if(O.name==="InvalidInputRpcError"||O.name==="InvalidParamsRpcError"||O.name==="MethodNotFoundRpcError"||O.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(H=>(Lw.set(e.uid,!0),H)).catch(H=>{const Z=H;throw Z.name==="MethodNotFoundRpcError"||Z.name==="MethodNotSupportedRpcError"?(Lw.set(e.uid,!1),O):Z});throw O}}if((v==null?void 0:v.type)==="local"){const N=(()=>{if(!v.nonceManager||typeof x<"u")return v.nonceManager;const $=v.nonceManager;return{consume(O){return g={address:O.address,chainId:O.chainId},$.consume(O)},get(O){return $.get(O)},increment(O){return $.increment(O)},reset(O){return $.reset(O)}}})(),I=await ht(e,_4,"prepareTransactionRequest")({account:v,accessList:s,authorizationList:i,blobs:l,chain:a,data:u?Ku([c??"0x",u]):c,gas:f,gasPrice:p,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:y,nonce:x,nonceManager:N,parameters:[...GK,"sidecars"],type:C,value:T,...w,to:E}),F=(R=a==null?void 0:a.serializers)==null?void 0:R.transaction,z=await v.signTransaction(I,{serializer:F}),U=(B=(D=a??e.chain)==null?void 0:D.serializers)==null?void 0:B.transactionEnvelope,V=U?await U({serializedTransaction:z,transaction:I}):z;return await ht(e,qK,"sendRawTransaction")({serializedTransaction:V})}throw(v==null?void 0:v.type)==="smart"?new vw({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new vw({docsPath:"/docs/actions/wallet/sendTransaction",type:v==null?void 0:v.type})}catch(E){throw E instanceof vw?E:(g&&((M=v==null?void 0:v.nonceManager)==null||M.reset(g)),$K(E,{...t,account:v,chain:t.chain||void 0}))}}function D3(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0,signal:a}={}){return new Promise((s,i)=>{const l=async({count:c=0}={})=>{if(a!=null&&a.aborted){i(Oo(a));return}const u=async({error:f})=>{const p=typeof t=="function"?t({count:c,error:f}):t;if(p)try{await O3(p,{signal:a})}catch(m){i(m);return}return l({count:c+1})};try{const f=await e();s(f)}catch(f){if(a!=null&&a.aborted){i(Oo(a));return}if(xd(f)){i(f);return}if(c<n&&await r({count:c,error:f}))return u({error:f});i(f)}};l().catch(i)})}async function wb(e,{hash:t}){var a,s,i;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new W$({hash:t});return(((i=(s=(a=e.chain)==null?void 0:a.formatters)==null?void 0:s.transactionReceipt)==null?void 0:i.format)||Bm)(n,"getTransactionReceipt")}function JK(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:a,poll:s,pollingInterval:i=e.pollingInterval}){const l=typeof s<"u"?s:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].c
138onfig.type==="webSocket"||e.transport.transports[0].config.type==="ipc"));let c;return l?(()=>{const p=Jn(["watchBlockNumber",e.uid,t,n,i]);return Li(p,{onBlockNumber:r,onError:a},m=>Jm(async()=>{var h;try{const y=await ht(e,Td,"getBlockNumber")({cacheTime:0});if(c!==void 0){if(y===c)return;if(y-c>1&&n)for(let x=c+1n;x<y;x++)m.onBlockNumber(x,c),c=x}(c===void 0||y>c)&&(m.onBlockNumber(y,c),c=y)}catch(y){(h=m.onError)==null||h.call(m,y)}},{emitOnBegin:t,interval:i}))})():(()=>{const p=Jn(["watchBlockNumber",e.uid,t,n]);return Li(p,{onBlockNumber:r,onError:a},m=>{let h=!0,y=()=>h=!1;return(async()=>{try{const x=(()=>{if(e.transport.type==="fallback"){const T=e.transport.transports.find(w=>w.config.type==="webSocket"||w.config.type==="ipc");return T?T.value:e.transport}return e.transport})(),{unsubscribe:C}=await x.subscribe({params:["newHeads"],onData(T){var v;if(!h)return;const w=Pt((v=T.result)==null?void 0:v.number);m.onBlockNumber(w,c),c=w},onError(T){var w;(w=m.onError)==null||w.call(m,T)}});y=C,h||y()}catch(x){a==null||a(x)}})(),()=>y()})})()}async function GEe(e,t){var A;const{checkReplacement:n=((A=e.chain)==null?void 0:A.supportsTransactionReplacementDetection)??!0,confirmations:r=1,hash:a,onReplaced:s,retryCount:i=6,retryDelay:l=({count:S})=>~~(1<<S)*200,timeout:c=18e4}=t,u=Jn(["waitForTransactionReceipt",e.uid,a]),f=(()=>{var S;return t.pollingInterval?t.pollingInterval:(S=e.chain)!=null&&S.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval})();let p,m,h,y=!1,x,C;const{promise:T,resolve:w,reject:v}=DK(),g=c?setTimeout(()=>{C==null||C(),x==null||x(),v(new Wce({hash:a}))},c):void 0;return x=Li(u,{onReplaced:s,resolve:w,reject:v},async S=>{if(h=await ht(e,wb,"getTransactionReceipt")({hash:a}).catch(()=>{}),h&&r<=1){clearTimeout(g),S.resolve(h),x==null||x();return}C=ht(e,JK,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:f,async onBlockNumber(_){const k=D=>{clearTimeout(g),C==null||C(),D(),x==null||x()};let R=_;if(!y)try{if(h){if(r>1&&(!h.blockNumber||R-h.blockNumber+1n<r))return;k(()=>S.resolve(h));return}if(n&&!p&&(y=!0,await D3(async()=>{p=await ht(e,cg,"getTransaction")({hash:a}),p.blockNumber&&(R=p.blockNumber)},{delay:l,retryCount:i}),y=!1),h=await ht(e,wb,"getTransactionReceipt")({hash:a}),r>1&&(!h.blockNumber||R-h.blockNumber+1n<r))return;k(()=>S.resolve(h))}catch(D){if(D instanceof _E||D instanceof W$){if(!p){y=!1;return}try{m=p,y=!0;const B=await D3(()=>ht(e,$a,"getBlock")({blockNumber:R,includeTransactions:!0}),{delay:l,retryCount:i,shouldRetry:({error:N})=>N instanceof T4});y=!1;const M=B.transactions.find(({from:N,nonce:I})=>N===m.from&&I===m.nonce);if(!M||(h=await ht(e,wb,"getTransactionReceipt")({hash:M.hash}),r>1&&(!h.blockNumber||R-h.blockNumber+1n<r)))return;let E="replaced";M.to===m.to&&M.value===m.value&&M.input===m.input?E="repriced":M.from===M.to&&M.value===0n&&(E="cancelled"),k(()=>{var N;(N=S.onReplaced)==null||N.call(S,{reason:E,replacedTransaction:m,transaction:M,transactionReceipt:h}),S.resolve(h)})}catch(B){k(()=>S.reject(B))}}else k(()=>S.reject(D))}}})}),T}async function qEe(e,{serializedTransaction:t,throwOnReceiptRevert:n,timeout:r}){var l,c,u;const a=await e.request({method:"eth_sendRawTransactionSync",params:r?[t,r]:[t]},{retryCount:0}),i=(((u=(c=(l=e.chain)==null?void 0:l.formatters)==null?void 0:c.transactionReceipt)==null?void 0:u.format)||Bm)(a);if(i.status==="reverted"&&n)throw new qce({receipt:i});return i}async function Tc(e,t){return Tc.internal(e,WK,"sendTransaction",t)}(function(e){async function t(n,r,a,s){const{abi:i,account:l=n.account,address:c,args:u,functionName:f,...p}=s;if(typeof l>"u")throw new Mm({docsPath:"/docs/contract/writeContract"});const m=l?nn(l):null,h=ca({abi:i,args:u,functionName:f});try{return await ht(n,r,a)({data:h,to:c,account:m,...p})}catch(y){throw Ac(y,{abi:i,address:c,args:u,docsPath:"/docs/contract/writeContract",functionName:f,sender:m==null?void 0:m.address})}}e.internal=t})(Tc||(Tc={}));const Pa=[{name:"authorizeKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"uint8",name:"signatureType"},{type:"uint64",name:"expiry"},{type:"bool",name:"enforceLimits"},{type:"tuple[]",name:"limits",components:[{type:"address",name:"token"},{type:"uint256",name:"amount"}]}],outputs:[]},{name:"authorizeKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"uint8",name:"signatureType"},{type:"tuple",name:"config",components:[{type:"uint64",name:"expiry"},{type:"bool",name:"enforceLimits"},{type:"tuple[]",name:"limits",components:[{type:"address",name:"token"},{type:"uint256",name:"amount"},{type:"uint64",name:"period"}]},{type:"bool",name:"allowAnyCalls"},{type:"tuple[]",name:"allowedCalls",components:[{type:"address",name:"target"},{type:"tuple[]",name:"selectorRules",components:[{type:"bytes4",name:"selector"},{type:"address[]",name:"recipients"}]}]}]}],outputs:[]},{name:"authorizeKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"uint8",name:"signatureType"},{type:"tuple",name:"config",components:[{type:"uint64",name:"expiry"},{type:"bool",name:"enforceLimits"},{type:"tuple[]",name:"limits",components:[{type:"address",name:"token"},{type:"uint256",name:"amount"},{type:"uint64",name:"period"}]},{type:"bool",name:"allowAnyCalls"},{type:"tuple[]",name:"allowedCalls",components:[{type:"address",name:"target"},{type:"tuple[]",name:"selectorRules",components:[{type:"bytes4",name:"selector"},{type:"address[]",name:"recipients"}]}]}]},{type:"bytes32",name:"witness"}],outputs:[]},{name:"authorizeAdminKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"uint8",name:"signatureType"},{type:"bytes32",name:"witness"}],outputs:[]},{name:"burnKeyAuthorizationWitness",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"witness"}],outputs:[]},{name:"revokeKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"}],outputs:[]},{name:"updateSpendingLimit",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"address",name:"token"},{type:"uint256",name:"newLimit"}],outputs:[]},{name:"setAllowedCalls",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"tuple[]",name:"scopes",components:[{type:"address",name:"target"},{type:"tuple[]",name:"selectorRules",components:[{type:"bytes4",name:"selector"},{type:"address[]",name:"recipients"}]}]}],outputs:[]},{name:"removeAllowedCalls",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"address",name:"target"}],outputs:[]},{name:"getKey",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"}],outputs:[{type:"tuple",components:[{type:"uint8",name:"signatureType"},{type:"address",name:"keyId"},{type:"uint64",name:"expiry"},{type:"bool",name:"enforceLimits"},{type:"bool",name:"isRevoked"}]}]},{name:"getRemainingLimit",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"},{type:"address",name:"token"}],outputs:[{type:"uint256",name:"remaining"}]},{name:"getRemainingLimitWithPeriod",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"},{type:"address",name:"token"}],outputs:[{type:"uint256",name:"remaining"},{type:"uint64",name:"periodEnd"}]},{name:"getAllowedCalls",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"}],outputs:[{type:"bool",name:"isScoped"},{type:"tuple[]",name:"scopes",components:[{type:"address",name:"target"},{type:"tuple[]",name:"selectorRules",components:[{type:"bytes4",name:"selector"},{type:"address[]",name:"recipients"}]}]}]},{name:"isKeyAuthorizationWitnessBurned",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"bytes32",name:"witness"}],outputs:[{type:"bool"}]},{name:"isAdminKey",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"}],outputs:[{type:"bool"}]},{name:"getTransactionKey",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"KeyAuthorized",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0},{type:"uint8",name:"signatureType"},{type:"uint64",name:"expiry"}]},{name:"AdminKeyAuthorized",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0}]},{name:"KeyRevoked",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0}]},{name:"SpendingLimitUpdated",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0}
138,{type:"address",name:"token",indexed:!0},{type:"uint256",name:"newLimit"}]},{name:"AccessKeySpend",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0},{type:"address",name:"token",indexed:!0},{type:"uint256",name:"amount"},{type:"uint256",name:"remainingLimit"}]},{name:"KeyAuthorizationWitness",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"bytes32",name:"witness",indexed:!0}]},{name:"KeyAuthorizationWitnessBurned",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"bytes32",name:"witness",indexed:!0}]},{name:"UnauthorizedCaller",type:"error",inputs:[]},{name:"KeyAlreadyExists",type:"error",inputs:[]},{name:"KeyNotFound",type:"error",inputs:[]},{name:"KeyExpired",type:"error",inputs:[]},{name:"SpendingLimitExceeded",type:"error",inputs:[]},{name:"InvalidSpendingLimit",type:"error",inputs:[]},{name:"InvalidSignatureType",type:"error",inputs:[]},{name:"ZeroPublicKey",type:"error",inputs:[]},{name:"ExpiryInPast",type:"error",inputs:[]},{name:"KeyAlreadyRevoked",type:"error",inputs:[]},{name:"SignatureTypeMismatch",type:"error",inputs:[{type:"uint8",name:"expected"},{type:"uint8",name:"actual"}]},{name:"CallNotAllowed",type:"error",inputs:[]},{name:"InvalidCallScope",type:"error",inputs:[]},{name:"InvalidKeyId",type:"error",inputs:[]},{name:"InvalidKeyAuthorizationWitness",type:"error",inputs:[]},{name:"KeyAuthorizationWitnessAlreadyBurned",type:"error",inputs:[]},{name:"LegacyAuthorizeKeySelectorChanged",type:"error",inputs:[{type:"bytes4",name:"newSelector"}]}],WEe=[{name:"registerVirtualMaster",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"salt"}],outputs:[{type:"bytes4",name:"masterId"}]},{name:"getMaster",type:"function",stateMutability:"view",inputs:[{type:"bytes4",name:"masterId"}],outputs:[{type:"address"}]},{name:"resolveRecipient",type:"function",stateMutability:"view",inputs:[{type:"address",name:"to"}],outputs:[{type:"address",name:"effectiveRecipient"}]},{name:"resolveVirtualAddress",type:"function",stateMutability:"view",inputs:[{type:"address",name:"virtualAddr"}],outputs:[{type:"address",name:"master"}]},{name:"isVirtualAddress",type:"function",stateMutability:"pure",inputs:[{type:"address",name:"addr"}],outputs:[{type:"bool"}]},{name:"decodeVirtualAddress",type:"function",stateMutability:"pure",inputs:[{type:"address",name:"addr"}],outputs:[{type:"bool",name:"isVirtual"},{type:"bytes4",name:"masterId"},{type:"bytes6",name:"userTag"}]},{name:"isImplicitlyApproved",type:"function",stateMutability:"view",inputs:[{type:"address",name:"addr"}],outputs:[{type:"bool"}]},{name:"MasterRegistered",type:"event",inputs:[{type:"bytes4",name:"masterId",indexed:!0},{type:"address",name:"masterAddress",indexed:!0}]},{name:"MasterIdCollision",type:"error",inputs:[{type:"address",name:"master"}]},{name:"InvalidMasterAddress",type:"error",inputs:[]},{name:"ProofOfWorkFailed",type:"error",inputs:[]},{name:"VirtualAddressUnregistered",type:"error",inputs:[]}],Yb=[{name:"deriveAccount",type:"function",stateMutability:"pure",inputs:[{type:"bytes32",name:"salt"},{type:"uint8",name:"threshold"},{type:"tuple[]",name:"owners",components:[{type:"address",name:"owner"},{type:"uint8",name:"weight"}]}],outputs:[{type:"address",name:"account"}]},{name:"getConfigCommitment",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"}],outputs:[{type:"bytes32",name:"commitment"}]},{name:"updateConfig",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple",name:"current",components:[{type:"bytes32",name:"salt"},{type:"uint64",name:"version"},{type:"uint8",name:"threshold"},{type:"tuple[]",name:"owners",components:[{type:"address",name:"owner"},{type:"uint8",name:"weight"}]}]},{type:"uint8",name:"threshold"},{type:"tuple[]",name:"owners",components:[{type:"address",name:"owner"},{type:"uint8",name:"weight"}]}],outputs:[]},{name:"MultisigConfigUpdated",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"bytes32",name:"salt"},{type:"uint64",name:"version"},{type:"uint8",name:"threshold"},{type:"tuple[]",name:"owners",components:[{type:"address",name:"owner"},{type:"uint8",name:"weight"}]}]},{name:"InvalidAccount",type:"error",inputs:[]},{name:"InvalidConfig",type:"error",inputs:[]},{name:"InvalidThreshold",type:"error",inputs:[]},{name:"InvalidMultisigOwner",type:"error",inputs:[]},{name:"InvalidWeight",type:"error",inputs:[]},{name:"TooManyOwners",type:"error",inputs:[]},{name:"DuplicateOwner",type:"error",inputs:[]},{name:"InvalidOwnerOrder",type:"error",inputs:[]},{name:"UnauthorizedMultisigCaller",type:"error",inputs:[]}],JEe=[{name:"getCommitteeMembers",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64",name:"epoch"},{type:"bytes32[]",name:"publicKeys"}]},{name:"setCommitteeMembers",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"epoch"},{type:"bytes32[]",name:"publicKeys"}],outputs:[]},{name:"Unauthorized",type:"error",inputs:[]}],ZEe=[{name:"getNonce",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"uint256",name:"nonceKey"}],outputs:[{type:"uint64",name:"nonce"}]},{name:"NonceIncremented",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"uint256",name:"nonceKey",indexed:!0},{type:"uint64",name:"newNonce"}]},{name:"ProtocolNonceNotSupported",type:"error",inputs:[]},{name:"InvalidNonceKey",type:"error",inputs:[]},{name:"NonceOverflow",type:"error",inputs:[]},{name:"ExpiringNonceReplay",type:"error",inputs:[]},{name:"ExpiringNonceSetFull",type:"error",inputs:[]},{name:"InvalidExpiringNonceExpiry",type:"error",inputs:[]}],QEe=[{name:"balanceOf",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"receipt"}],outputs:[{type:"uint256",name:"amount"}]},{name:"claim",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"bytes",name:"receipt"}],outputs:[]},{name:"burnBlockedReceipt",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes",name:"receipt"}],outputs:[]},{name:"TransferBlocked",type:"event",inputs:[{type:"address",name:"token",
138indexed:!0},{type:"address",name:"receiver",indexed:!0},{type:"uint64",name:"blockedNonce",indexed:!0},{type:"uint256",name:"amount"},{type:"uint8",name:"receiptVersion"},{type:"bytes",name:"receipt"}]},{name:"ReceiptClaimed",type:"event",inputs:[{type:"address",name:"token",indexed:!0},{type:"address",name:"receiver",indexed:!0},{type:"uint64",name:"blockedNonce",indexed:!0},{type:"uint64",name:"blockedAt"},{type:"uint8",name:"receiptVersion"},{type:"address",name:"originator"},{type:"address",name:"recipient"},{type:"address",name:"recoveryAuthority"},{type:"address",name:"caller"},{type:"address",name:"to"},{type:"uint256",name:"amount"}]},{name:"ReceiptBurned",type:"event",inputs:[{type:"address",name:"token",indexed:!0},{type:"address",name:"receiver",indexed:!0},{type:"uint64",name:"blockedNonce",indexed:!0},{type:"uint64",name:"blockedAt"},{type:"uint8",name:"receiptVersion"},{type:"address",name:"originator"},{type:"address",name:"recipient"},{type:"address",name:"recoveryAuthority"},{type:"address",name:"caller"},{type:"uint256",name:"amount"}]},{name:"InvalidReceipt",type:"error",inputs:[]},{name:"InvalidClaimAddress",type:"error",inputs:[]},{name:"UnauthorizedClaimer",type:"error",inputs:[]},{name:"AddressReserved",type:"error",inputs:[]}],ZK=[{name:"recover",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"hash"},{type:"bytes",name:"signature"}],outputs:[{type:"address",name:"signer"}]},{name:"verify",type:"function",stateMutability:"view",inputs:[{type:"address",name:"signer"},{type:"bytes32",name:"hash"},{type:"bytes",name:"signature"}],outputs:[{type:"bool"}]},{name:"verifyKeychain",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"bytes32",name:"hash"},{type:"bytes",name:"signature"}],outputs:[{type:"bool"}]},{name:"verifyKeychainAdmin",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"bytes32",name:"hash"},{type:"bytes",name:"signature"}],outputs:[{type:"bool"}]},{name:"InvalidFormat",type:"error",inputs:[]},{name:"InvalidSignature",type:"error",inputs:[]}],XEe=[{name:"createPair",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"base"}],outputs:[{type:"bytes32",name:"key"}]},{name:"place",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"},{type:"uint128",name:"amount"},{type:"bool",name:"isBid"},{type:"int16",name:"tick"}],outputs:[{type:"uint128",name:"orderId"}]},{name:"placeFlip",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"},{type:"uint128",name:"amount"},{type:"bool",name:"isBid"},{type:"int16",name:"tick"},{type:"int16",name:"flipTick"}],outputs:[{type:"uint128",name:"orderId"}]},{name:"cancel",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint128",name:"orderId"}],outputs:[]},{name:"cancelStaleOrder",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint128",name:"orderId"}],outputs:[]},{name:"swapExactAmountIn",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"tokenIn"},{type:"address",name:"tokenOut"},{type:"uint128",name:"amountIn"},{type:"uint128",name:"minAmountOut"}],outputs:[{type:"uint128",name:"amountOut"}]},{name:"swapExactAmountOut",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"tokenIn"},{type:"address",name:"tokenOut"},{type:"uint128",name:"amountOut"},{type:"uint128",name:"maxAmountIn"}],outputs:[{type:"uint128",name:"amountIn"}]},{name:"quoteSwapExactAmountIn",type:"function",stateMutability:"view",inputs:[{type:"address",name:"tokenIn"},{type:"address",name:"tokenOut"},{type:"uint128",name:"amountIn"}],outputs:[{type:"uint128",name:"amountOut"}]},{name:"quoteSwapExactAmountOut",type:"function",stateMutability:"view",inputs:[{type:"address",name:"tokenIn"},{type:"address",name:"tokenOut"},{type:"uint128",name:"amountOut"}],outputs:[{type:"uint128",name:"amountIn"}]},{name:"balanceOf",type:"function",stateMutability:"view",inputs:[{type:"address",name:"user"},{type:"address",name:"token"}],outputs:[{type:"uint128"}]},{name:"withdraw",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"},{type:"uint128",name:"amount"}],outputs:[]},{name:"getOrder",type:"function",stateMutability:"view",inputs:[{type:"uint128",name:"orderId"}],outputs:[{type:"tuple",components:[{type:"uint128",name:"orderId"},{type:"address",name:"maker"},{type:"bytes32",name:"bookKey"},{type:"bool",name:"isBid"},{type:"int16",name:"tick"},{type:"uint128",name:"amount"},{type:"uint128",name:"remaining"},{type:"uint128",name:"prev"},{type:"uint128",name:"next"},{type:"bool",name:"isFlip"},{type:"int16",name:"flipTick"}]}]},{name:"getTickLevel",type:"function",stateMutability:"view",inputs:[{type:"address",name:"base"},{type:"int16",name:"tick"},{type:"bool",name:"isBid"}],outputs:[{type:"uint128",name:"head"},{type:"uint128",name:"tail"},{type:"uint128",name:"totalLiquidity"}]},{name:"pairKey",type:"function",stateMutability:"pure",inputs:[{type:"address",name:"tokenA"},{type:"address",name:"tokenB"}],outputs:[{type:"bytes32"}]},{name:"nextOrderId",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint128"}]},{name:"books",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"pairKey"}],outputs:[{type:"tuple",components:[{type:"address",name:"base"},{type:"address",name:"quote"},{type:"int16",name:"bestBidTick"},{type:"int16",name:"bestAskTick"}]}]},{name:"bookIndexForKey",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"bookKey"}],outputs:[{type:"bool",name:"set"},{type:"uint32",name:"index"}]},{name:"bookKeyForIndex",type:"function",stateMutability:"view",inputs:[{type:"uint32",name:"index"}],outputs:[{type:"bytes32",name:"bookKey"}]},{name:"setBookIndex",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint32",name:"index"}],outputs:[]},{name:"storageCredits",type:"function",stateMutability:"view",inputs:[{type:"address",name:"user"}],outputs:[{type:"uint64",name:"credits"}]},{name:"MIN_TICK",type:"function",stateMutability:"pure",inputs:[],outputs:[{type:"int16"}]},{name:"MAX_TICK",type:"function",stateMutability:"pure",inputs:[],outputs:[{type:"int16"}]},{name:"TICK_SPACING",type:"function",stateMutability:"pure",inputs:[],outputs:[{type:"int16"}]},{name:"PRICE_SCALE",type:"function",stateMutability:"pure",inputs:[],outputs:[{type:"uint32"}]},{name:"MIN_ORDER_AMOUNT",type:"function",stateMutability:"pure",inputs:[],outputs:[{type:"uint128"}]},{name:"MIN_PRICE",type:"function",stateMutability:"pure",inputs:[],outputs:[{type:"uint32"}]},{name:"MAX_PRICE",type:"function",stateMutability:"pure",inputs:[],outputs:[{type:"uint32"}]},{name:"tickToPrice",type:"function",stateMutability:"pure",inputs:[{type:"int16",name:"tick"}],outputs:[{type:"uint32",name:"price"}]},{name:"priceToTick",type:"function",stateMutability:"pure",inputs:[{type:"uint32",name:"price"}],outputs:[{type:"int16",name:"tick"}]},{name:"PairCreated",type:"event",inputs:[{type:"bytes32",name:"key",indexed:!0},{type:"address",name:"base",indexed:!0},{type:"address",name:"quote",indexed:!0}]},{name:"OrderPlaced",type:"event",inputs:[{type:"uint128",name:"orderId",indexed:!0},{type:"address",name:"maker",indexed:!0}
138,{type:"address",name:"token",indexed:!0},{type:"uint128",name:"amount"},{type:"bool",name:"isBid"},{type:"int16",name:"tick"},{type:"bool",name:"isFlipOrder"},{type:"int16",name:"flipTick"}]},{name:"OrderFilled",type:"event",inputs:[{type:"uint128",name:"orderId",indexed:!0},{type:"address",name:"maker",indexed:!0},{type:"address",name:"taker",indexed:!0},{type:"uint128",name:"amountFilled"},{type:"bool",name:"partialFill"}]},{name:"OrderFlipped",type:"event",inputs:[{type:"uint128",name:"orderId",indexed:!0},{type:"address",name:"maker",indexed:!0},{type:"address",name:"token",indexed:!0},{type:"uint128",name:"amount"},{type:"bool",name:"isBid"},{type:"int16",name:"tick"},{type:"int16",name:"flipTick"}]},{name:"FlipFailed",type:"event",inputs:[{type:"uint128",name:"orderId",indexed:!0},{type:"address",name:"maker",indexed:!0},{type:"bytes4",name:"reason"}]},{name:"OrderCancelled",type:"event",inputs:[{type:"uint128",name:"orderId",indexed:!0}]},{name:"Unauthorized",type:"error",inputs:[]},{name:"PairDoesNotExist",type:"error",inputs:[]},{name:"PairAlreadyExists",type:"error",inputs:[]},{name:"OrderDoesNotExist",type:"error",inputs:[]},{name:"IdenticalTokens",type:"error",inputs:[]},{name:"InvalidToken",type:"error",inputs:[]},{name:"TickOutOfBounds",type:"error",inputs:[{type:"int16",name:"tick"}]},{name:"InvalidTick",type:"error",inputs:[]},{name:"InvalidFlipTick",type:"error",inputs:[]},{name:"InsufficientBalance",type:"error",inputs:[]},{name:"InsufficientLiquidity",type:"error",inputs:[]},{name:"InsufficientOutput",type:"error",inputs:[]},{name:"MaxInputExceeded",type:"error",inputs:[]},{name:"BelowMinimumOrderSize",type:"error",inputs:[{type:"uint128",name:"amount"}]},{name:"InvalidBaseToken",type:"error",inputs:[]},{name:"OrderNotStale",type:"error",inputs:[]},{name:"IndexAlreadySet",type:"error",inputs:[]}],YEe=[{name:"balanceOf",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"}],outputs:[{type:"uint64"}]},{name:"modeOf",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"}],outputs:[{type:"uint8"}]},{name:"budgetOf",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"}],outputs:[{type:"uint64"}]},{name:"setMode",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint8",name:"newMode"}],outputs:[]},{name:"setBudget",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"credits"}],outputs:[]},{name:"InvalidMode",type:"error",inputs:[]},{name:"OnlyDirectCall",type:"error",inputs:[]}],e4e=[{name:"userTokens",type:"function",stateMutability:"view",inputs:[{type:"address",name:"user"}],outputs:[{type:"address"}]},{name:"validatorTokens",type:"function",stateMutability:"view",inputs:[{type:"address",name:"validator"}],outputs:[{type:"address"}]},{name:"setUserToken",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"}],outputs:[]},{name:"setValidatorToken",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"}],outputs:[]},{name:"distributeFees",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"validator"},{type:"address",name:"token"}],outputs:[]},{name:"collectedFees",type:"function",stateMutability:"view",inputs:[{type:"address",name:"validator"},{type:"address",name:"token"}],outputs:[{type:"uint256"}]},{name:"UserTokenSet",type:"event",inputs:[{type:"address",name:"user",indexed:!0},{type:"address",name:"token",indexed:!0}]},{name:"ValidatorTokenSet",type:"event",inputs:[{type:"address",name:"validator",indexed:!0},{type:"address",name:"token",indexed:!0}]},{name:"FeesDistributed",type:"event",inputs:[{type:"address",name:"validator",indexed:!0},{type:"address",name:"token",indexed:!0},{type:"uint256",name:"amount"}]},{name:"InvalidToken",type:"error",inputs:[]},{name:"InsufficientFeeTokenBalance",type:"error",inputs:[]},{name:"CannotChangeWithinBlock",type:"error",inputs:[]}],t4e=[{name:"M",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"N",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"SCALE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"MIN_LIQUIDITY",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"getPoolId",type:"function",stateMutability:"pure",inputs:[{type:"address",name:"userToken"},{type:"address",name:"validatorToken"}],outputs:[{type:"bytes32"}]},{name:"getPool",type:"function",stateMutability:"view",inputs:[{type:"address",name:"userToken"},{type:"address",name:"validatorToken"}],outputs:[{type:"tuple",components:[{type:"uint128",name:"reserveUserToken"},{type:"uint128",name:"reserveValidatorToken"}]}]},{name:"pools",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"poolId"}],outputs:[{type:"tuple",components:[{type:"uint128",name:"reserveUserToken"},{type:"uint128",name:"reserveValidatorToken"}]}]},{name:"mint",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"userToken"},{type:"address",name:"validatorToken"},{type:"uint256",name:"amountValidatorToken"},{type:"address",name:"to"}],outputs:[{type:"uint256",name:"liquidity"}]},{name:"burn",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"userToken"},{type:"address",name:"validatorToken"},{type:"uint256",name:"liquidity"},{type:"address",name:"to"}],outputs:[{type:"uint256",name:"amountUserToken"},{type:"uint256",name:"amountValidatorToken"}]},{name:"totalSupply",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"poolId"}],outputs:[{type:"uint256"}]},{name:"liquidityBalances",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"poolId"},{type:"address",name:"user"}],outputs:[{type:"uint256"}]},{name:"rebalanceSwap",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"userToken"},{type:"address",name:"validatorToken"},{type:"uint256",name:"amountOut"},{type:"address",name:"to"}],outputs:[{type:"uint256",name:"amountIn"}]},{name:"Mint",type:"event",inputs:[{type:"address",name:"sender"},{type:"address",name:"to",indexed:!0},{type:"address",name:"userToken",indexed:!0},{type:"address",name:"validatorToken",indexed:!0},{type:"uint256",name:"amountValidatorToken"},{type:"uint256",name:"liquidity"}]},{name:"Burn",type:"event",inputs:[{type:"address",name:"sender",indexed:!0},{type:"address",name:"userToken",indexed:!0},{type:"address",name:"validatorToken",indexed:!0},{type:"uint256",name:"amountUserToken"},{type:"uint256",name:"amountValidatorToken"},{type:"uint256",name:"liquidity"},{type:"address",name:"to"}]},{name:"RebalanceSwap",type:"event",inputs:[{type:"address",name:"userToken",indexed:!0},{type:"address",name:"validatorToken",indexed:!0},{type:"address",name:"swapper",indexed:!0},{type:"uint256",name:"amountIn"},{type:"uint256",name:"amountOut"}]},{name:"IdenticalAddresses",type:"error",inputs:[]},{name:"InvalidToken",type:"error",inputs:[]},{name:"InsufficientLiquidity",type:"error",inputs:[]},{name:"InsufficientReserves",type:"error",inputs:[]},{name:"InvalidAmount",type:"error",inputs:[]},{name:"DivisionByZero",type:"error",inputs:[]},{name:"InvalidSwapCalculation",type:"error",inputs:[]}],n4e=[{name:"CLOSE_GRACE_PERIOD",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"VOUCHER_TYPEHASH",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"open",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"payee"},{type:"address",name:"operator"},{type:"address",name:"token"},{type:"uint96",name:"deposit"},{type:"bytes32",name:"salt"},{type:"address",name:"authorizedSigner"}],outputs:[{type:"bytes32",name:"channelId"}]},{name:"settle",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple",name:"descriptor",components:[{type:"address",name:"payer"},{type:"address",name:"payee"},{type:"address",name:"operator"},{type:"address",name:"token"},{type:"bytes32",name:"salt"},{type:"address",name:"authorizedSigner"},{type:"bytes32",name:"expiringNonceHash"}]},{type:"uint96",name:"cumulativeAmount"},{type:"bytes",name:"signature"}],outputs:[]},{name:"topUp",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple",name:"descriptor",components:[{type:"address",name:"payer"},{type:"address",name:"payee"},{type:"address",name:"operator"},{type:"address",name:"token"},{type:"bytes32",name:"salt"},{type:"address",name:"authorizedSigner"},{type:"bytes32",name:"expiringNonceHash"}]},{type:"uint96",name:"additionalDeposit"}],outputs:[]},{name:"close",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple",name:"descriptor",components:[{type:"address",name:"payer"},{type:"address",name:"payee"},{type:"address",name:"operator"},{type:"address",name:"token"},{type:"bytes32",name:"salt"},{type:"address",name:"authorizedSigner"},{type:"bytes32",name:"expiringNonceHash"}]},{type:"uint96",name:"cumulativeAmount"},{type:"uint96",name:"captureAmount"},{type:"bytes",name:"signature"}],outputs:[]},{name:"requestClose",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple",name:"descriptor",components:[{type:"address",name:"payer"},{type:"address",name:"payee"},{type:"address",name:"operator"},{type:"address",name:"token"},{type:"bytes32",name:"salt"},{type:"address",name:"authorizedSigner"},{type:"bytes32",name:"expiringNonceHash"}]}],outputs:[]},{name:"withdraw",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple",name:"descriptor",components:[{type:"address",name:"payer"},{type:"address",name:"payee"},{type:"address",name:"operator"},{type:"address",name:"token"},{type:"bytes32",name:"salt"},{type:"address",name:"authorizedSigner"},{type:"bytes32",name:"expiringNonceHash"}]}],outputs:[]},{name:"getChannel",type:"function",stateMutability:"view",inputs:[{type:"tuple",name:"descriptor",components:[{type:"address",name:"payer"},{type:"address",name:"payee"},{type:"address",name:"operator"},{type:"address",name:"token"},{type:"bytes32",name:"salt"},{type:"address",name:"authorizedSigner"},{type:"bytes32",name:"expiringNonceHash"}]}],outputs:[{type:"tuple",components:[{type:"tuple",name:"descriptor",components:[{type:"address",name:"payer"},{type:"address",name:"payee"},{type:"address",name:"operator"},{type:"address",name:"token"},{type:"bytes32",name:"salt"},{type:"address",name:"authorizedSigner"},{type:"bytes32",name:"expiringNonceHash"}]},{type:"tuple",name:"state",components:[{type:"uint96",name:"settled"},{type:"uint96",name:"deposit"},{type:"uint32",name:"closeRequestedAt"}]}]}]},{name:"getChannelState",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"channelId"}],outputs:[{type:"tuple",components:[{type:"uint96",name:"settled"},{type:"uint96",name:"deposit"},{type:"uint32",name:"closeRequestedAt"}]}]},{name:"getChannelStatesBatch",type:"function",stateMutability:"view",inputs:[{type:"bytes32[]",name:"channelIds"}],outputs:[{type:"tuple[]",components:[{type:"uint96",name:"settled"},{type:"uint96",name:"deposit"},{type:"uint32",name:"closeRequestedAt"}]}]},{name:"computeChannelId",type:"function",stateMutability:"view",inputs:[{type:"address",name:"payer"},{type:"address",name:"payee"},{type:"address",name:"operator"},{type:"address",name:"token"},{type:"bytes32",name:"salt"},{type:"address",name:"authorizedSigner"},{type:"bytes32",name:"expiringNonceHash"}],outputs:[{type:"bytes32"}]},{name:"getVoucherDigest",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"channelId"},{type:"uint96",name:"cumulativeAmount"}],outputs:[{type:"bytes32"}]},{name:"domainSeparator",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"storageCredits",type:"function",stateMutability:"view",inputs:[{type:"address",name:"payer"}],outputs:[{type:"uint64",name:"credits"}]},{name:"ChannelOpened",type:"event",inputs:[{type:"bytes32",name:"channelId",indexed:!0},{type:"address",name:"payer",indexed:!0},{type:"address",name:"payee",indexed:!0},{type:"address",name:"operator"},{type:"address",name:"token"},{type:"address",name:"authorizedSigner"},{type:"bytes32",name:"salt"},{type:"bytes32",name:"expiringNonceHash"},{type:"uint96",name:"deposit"}]},{name:"Settled",type:"event",inputs:[{type:"bytes32",name:"channelId",indexed:!0},{type:"address",name:"payer",indexed:!0},{type:"address",name:"payee",indexed:!0},{type:"uint96",name:"cumulativeAmount"},{type:"uint96",name:"deltaPaid"},{type:"uint96",name:"newSettled"}]},{name:"TopUp",type:"event",inputs:[{type:"bytes32",name:"channelId",indexed:!0},{type:"address",name:"payer",indexed:!0},{type:"address",name:"payee",indexed:!0},{type:"uint96",name:"additionalDeposit"},{type:"uint96",name:"newDeposit"}]},{name:"CloseRequested",type:"event",inputs:[{type:"bytes32",name:"channelId",indexed:!0},{type:"address",name:"payer",indexed:!0},{type:"address",name:"payee",indexed:!0},{type:"uint256",name:"closeGraceEnd"}]},{name:"ChannelClosed",type:"event",inputs:[{type:"bytes32",name:"channelId",indexed:!0},{type:"address",name:"payer",indexed:!0},{type:"address",name:"payee",indexed:!0},{type:"uint96",name:"settledToPayee"},{type:"uint96",name:"refundedToPayer"}]},{name:"CloseRequestCancelled",type:"event",inputs:[{type:"bytes32",name:"channelId",indexed:!0},{type:"address",name:"payer",indexed:!0},{type:"address",name:"payee",indexed:!0}]},{name:"ChannelAlreadyExists",type:"error",inputs:[]},{name:"ChannelNotFound",type:"error",inputs:[]},{name:"NotPayer",type:"error",inputs:[]},{name:"NotPayeeOrOperator",type:"error",inputs:[]},{name:"InvalidPayee",type:"error",inputs:[]},{name:"ZeroDeposit",type:"error",inputs:[]},{name:"ExpiringNonceHashNotSet",type:"error",inputs:[]},{name:"InvalidSignature",type:"error",inputs:[]},{name:"AmountExceedsDeposit",type:"error",inputs:[]},{name:"AmountNotIncreasing",type:"error",inputs:[]},{name:"CaptureAmountInvalid",type:"error",inputs:[]},{name:"CloseNotReady",type:"error",inputs:[]},{name:"DepositOverflow",type:"error",inputs:[]}],r4e=[{name:"createToken",type:"function",stateMutability:"nonpayable",inputs:[{type:"string",name:"name"},{type:"string",name:"symbol"},{type:"string",name:"currency"},{type:"address",name:"quoteToken"},{type:"address",name:"admin"},{type:"bytes32",name:"salt"}],outputs:[{type:"address"}]},{name:"createToken",type:"function",stateMutability:"nonpayable",inputs:[{type:"string",name:"name"},{type:"string",name:"symbol"},{type:"string",name:"currency"},{type:"address",name:"quoteToken"},{type:"address",name:"admin"},{type:"bytes32",name:"salt"},{type:"string",name:"logoURI"}],outputs:[{type:"address"}]},{name:"isTIP20",type:"function",stateMutability:"view",inputs:[{type:"address",name:"token"}],outputs:[{type:"bool"}]},{name:"getTokenAddress",type:"function",stateMutability:"pure",inputs:[{type:"address",name:"sender"},{type:"bytes32",name:"salt"}],outputs:[{type:"address"}]},{name:"TokenCreated",type:"event",inputs:[{type:"address",name:"token",
138indexed:!0},{type:"string",name:"name"},{type:"string",name:"symbol"},{type:"string",name:"currency"},{type:"address",name:"quoteToken"},{type:"address",name:"admin"},{type:"bytes32",name:"salt"}]},{name:"AddressReserved",type:"error",inputs:[]},{name:"AddressNotReserved",type:"error",inputs:[]},{name:"InvalidQuoteToken",type:"error",inputs:[]},{name:"TokenAlreadyExists",type:"error",inputs:[{type:"address",name:"token"}]}],a4e=[{name:"name",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{name:"symbol",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{name:"decimals",type:"function",stateMutability:"pure",inputs:[],outputs:[{type:"uint8"}]},{name:"totalSupply",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"quoteToken",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"nextQuoteToken",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"balanceOf",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"}],outputs:[{type:"uint256"}]},{name:"transfer",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"amount"}],outputs:[{type:"bool"}]},{name:"approve",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"spender"},{type:"uint256",name:"amount"}],outputs:[{type:"bool"}]},{name:"allowance",type:"function",stateMutability:"view",inputs:[{type:"address",name:"owner"},{type:"address",name:"spender"}],outputs:[{type:"uint256"}]},{name:"transferFrom",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"from"},{type:"address",name:"to"},{type:"uint256",name:"amount"}],outputs:[{type:"bool"}]},{name:"mint",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"amount"}],outputs:[]},{name:"burn",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"amount"}],outputs:[]},{name:"currency",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{name:"supplyCap",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"paused",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bool"}]},{name:"transferPolicyId",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"logoURI",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{name:"setLogoURI",type:"function",stateMutability:"nonpayable",inputs:[{type:"string",name:"newLogoURI"}],outputs:[]},{name:"burnBlocked",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"from"},{type:"uint256",name:"amount"}],outputs:[]},{name:"mintWithMemo",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"amount"},{type:"bytes32",name:"memo"}],outputs:[]},{name:"burnWithMemo",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"amount"},{type:"bytes32",name:"memo"}],outputs:[]},{name:"transferWithMemo",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"amount"},{type:"bytes32",name:"memo"}],outputs:[]},{name:"transferFromWithMemo",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"from"},{type:"address",name:"to"},{type:"uint256",name:"amount"},{type:"bytes32",name:"memo"}],outputs:[{type:"bool"}]},{name:"changeTransferPolicyId",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"newPolicyId"}],outputs:[]},{name:"setSupplyCap",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"newSupplyCap"}],outputs:[]},{name:"pause",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"unpause",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"setNextQuoteToken",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newQuoteToken"}],outputs:[]},{name:"completeQuoteTokenUpdate",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"PAUSE_ROLE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"UNPAUSE_ROLE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"ISSUER_ROLE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"BURN_BLOCKED_ROLE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"permit",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"owner"},{type:"address",name:"spender"},{type:"uint256",name:"value"},{type:"uint256",name:"deadline"},{type:"uint8",name:"v"},{type:"bytes32",name:"r"},{type:"bytes32",name:"s"}],outputs:[]},{name:"nonces",type:"function",stateMutability:"view",inputs:[{type:"address",name:"owner"}],outputs:[{type:"uint256"}]},{name:"DOMAIN_SEPARATOR",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"distributeReward",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"amount"}],outputs:[]},{name:"setRewardRecipient",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"recipient"}],outputs:[]},{name:"claimRewards",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[{type:"uint256"}]},{name:"optedInSupply",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint128"}]},{name:"globalRewardPerToken",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"userRewardInfo",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"}],outputs:[{type:"tuple",components:[{type:"address",name:"rewardRecipient"},{type:"uint256",name:"rewardPerToken"},{type:"uint256",name:"rewardBalance"}]}]},{name:"getPendingRewards",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"}],outputs:[{type:"uint128"}]},{name:"Transfer",type:"event",inputs:[{type:"address",name:"from",indexed:!0},{type:"address",name:"to",indexed:!0},{type:"uint256",name:"amount"}]},{name:"Approval",type:"event",inputs:[{type:"address",name:"owner",indexed:!0},{type:"address",name:"spender",indexed:!0},{type:"uint256",name:"amount"}]},{name:"Mint",type:"event",inputs:[{type:"address",name:"to",indexed:!0},{type:"uint256",name:"amount"}]},{name:"Burn",type:"event",inputs:[{type:"address",name:"from",indexed:!0},{type:"uint256",name:"amount"}]},{name:"BurnBlocked",type:"event",inputs:[{type:"address",name:"from",indexed:!0},{type:"uint256",name:"amount"}]},{name:"TransferWithMemo",type:"event",inputs:[{type:"address",name:"from",indexed:!0},{type:"address",name:"to",indexed:!0},{type:"uint256",name:"amount"},{type:"bytes32",name:"memo",indexed:!0}]},{name:"TransferPolicyUpdate",type:"event",inputs:[{type:"address",name:"updater",indexed:!0},{type:"uint64",name:"newPolicyId",indexed:!0}]},{name:"SupplyCapUpdate",type:"event",inputs:[{type:"address",name:"updater",indexed:!0},{type:"uint256",name:"newSupplyCap",indexed:!0}]},{name:"PauseStateUpdate",type:"event",inputs:[{type:"address",name:"updater",indexed:!0},{type:"bool",name:"isPaused"}]},{name:"NextQuoteTokenSet",type:"event",inputs:[{type:"address",name:"updater",indexed:!0},{type:"address",name:"nextQuoteToken",indexed:!0}]},{name:"QuoteTokenUpdate",type:"event",inputs:[{type:"address",name:"updater",indexed:!0},{type:"address",name:"newQuoteToken",indexed:!0}]},{name:"RewardDistributed",type:"event",inputs:[{type:"address",name:"funder",indexed:!0},{type:"uint256",name:"amount"}]},{name:"RewardRecipientSet",type:"event",inputs:[{type:"address",name:"holder",indexed:!0},{type:"address",name:"recipient",indexed:!0}]},{name:"LogoURIUpdated",type:"event",inputs:[{type:"address",name:"updater",indexed:!0},{type:"string",name:"newLogoURI"}]},{name:"InsufficientBalance",type:"error",inputs:[{type:"uint256",name:"available"},{type:"uint256",name:"required"},{type:"address",name:"token"}]},{name:"InsufficientAllowance",type:"error",inputs:[]},{name:"SupplyCapExceeded",type:"error",inputs:[]},{name:"InvalidSupplyCap",type:"error",inputs:[]},{name:"InvalidPayload",type:"error",inputs:[]},{name:"PolicyForbids",type:"error",inputs:[]},{name:"InvalidRecipient",type:"error",inputs:[]},{name:"ContractPaused",type:"error",inputs:[]},{name:"InvalidCurrency",type:"error",inputs:[]},{name:"InvalidQuoteToken",type:"error",inputs:[]},{name:"InvalidAmount",type:"error",inputs:[]},{name:"NoOptedInSupply",type:"error",inputs:[]},{name:"Unauthorized",type:"error",inputs:[]},{name:"ProtectedAddress",type:"error",inputs:[]},{name:"InvalidToken",type:"error",inputs:[]},{name:"Uninitialized",type:"error",inputs:[]},{name:"InvalidTransferPolicyId",type:"error",inputs:[]},{name:"PermitExpired",type:"error",inputs:[]},{name:"InvalidSignature",type:"error",inputs:[]},{name:"LogoURITooLong",type:"error",inputs:[]},{name:"InvalidLogoURI",type:"error",inputs:[]},{name:"hasRole",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"bytes32",name:"role"}],outputs:[{type:"bool"}]},{name:"getRoleAdmin",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"role"}],outputs:[{type:"bytes32"}]},{name:"grantRole",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"},{type:"address",name:"account"}],outputs:[]},{name:"revokeRole",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"},{type:"address",name:"account"}],outputs:[]},{name:"renounceRole",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"}],outputs:[]},{name:"setRoleAdmin",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"},{type:"bytes32",name:"adminRole"}],outputs:[]},{name:"RoleMembershipUpdated",type:"event",inputs:[{type:"bytes32",name:"role",indexed:!0},{type:"address",name:"account",indexed:!0},{type:"address",name:"sender",indexed:!0},{type:"bool",name:"hasRole"}]},{name:"RoleAdminUpdated",type:"event",inputs:[{type:"bytes32",name:"role",indexed:!0},{type:"bytes32",name:"newAdminRole",indexed:!0},{type:"address",name:"sender",indexed:!0}]},{name:"Unauthorized",type:"error",inputs:[]}],s4e=[{name:"policyIdCounter",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"policyExists",type:"function",stateMutability:"view",inputs:[{type:"uint64",name:"policyId"}],outputs:[{type:"bool"}]},{name:"tokenTransferPolicyId",type:"function",stateMutability:"view",inputs:[{type:"address",name:"token"}],outputs:[{type:"bool",name:"isSet"},{type:"uint64",name:"policyId"}]},{name:"policyData",type:"function",stateMutability:"view",inputs:[{type:"uint64",name:"policyId"}],outputs:[{type:"uint8",name:"policyType"},{type:"address",name:"admin"}]},{name:"isAuthorized",type:"function",stateMutability:"view",inputs:[{type:"uint64",name:"policyId"},{type:"address",name:"user"}],outputs:[{type:"bool"}]},{name:"isAuthorizedSender",type:"function",stateMutability:"view",inputs:[{type:"uint64",name:"policyId"},{type:"address",name:"user"}],outputs:[{type:"bool"}]},{name:"isAuthorizedRecipient",type:"function",stateMutability:"view",inputs:[{type:"uint64",name:"policyId"},{type:"address",name:"user"}],outputs:[{type:"bool"}]},{name:"isAuthorizedMintRecipient",type:"function",stateMutability:"view",inputs:[{type:"uint64",name:"policyId"},{type:"address",name:"user"}],outputs:[{type:"bool"}]},{name:"compoundPolicyData",type:"function",stateMutability:"view",inputs:[{type:"uint64",name:"policyId"}],outputs:[{type:"uint64",name:"senderPolicyId"},{type:"uint64",name:"recipientPolicyId"},{type:"uint64",name:"mintRecipientPolicyId"}]},{name:"receivePolicy",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"}],outputs:[{type:"bool",name:"hasReceivePolicy"},{type:"uint64",name:"senderPolicyId"},{type:"uint8",name:"senderPolicyType"},{type:"uint64",name:"tokenFilterId"},{type:"uint8",name:"tokenFilterType"},{type:"address",name:"recoveryAuthority"}]},{name:"validateReceivePolicy",type:"function",stateMutability:"view",inputs:[{type:"address",name:"token"},{type:"address",name:"sender"},{type:"address",name:"receiver"}],outputs:[{type:"bool",name:"authorized"},{type:"uint8",name:"blockedReason"}]},{name:"createPolicy",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"admin"},{type:"uint8",name:"policyType"}],outputs:[{type:"uint64"}]},{name:"createPolicyWithAccounts",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"admin"},{type:"uint8",name:"policyType"},{type:"address[]",name:"accounts"}],outputs:[{type:"uint64"}]},{name:"setPolicyAdmin",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"policyId"},{type:"address",name:"admin"}],outputs:[]},{name:"modifyPolicyWhitelist",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"policyId"},{type:"address",name:"account"},{type:"bool",name:"allowed"}
138],outputs:[]},{name:"modifyPolicyBlacklist",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"policyId"},{type:"address",name:"account"},{type:"bool",name:"restricted"}],outputs:[]},{name:"createCompoundPolicy",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"senderPolicyId"},{type:"uint64",name:"recipientPolicyId"},{type:"uint64",name:"mintRecipientPolicyId"}],outputs:[{type:"uint64"}]},{name:"setReceivePolicy",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"senderPolicyId"},{type:"uint64",name:"tokenFilterId"},{type:"address",name:"recoveryAuthority"}],outputs:[]},{name:"migrateTransferPolicyIds",type:"function",stateMutability:"nonpayable",inputs:[{type:"address[]",name:"tokens"}],outputs:[{type:"uint256",name:"migrated"}]},{name:"PolicyAdminUpdated",type:"event",inputs:[{type:"uint64",name:"policyId",indexed:!0},{type:"address",name:"updater",indexed:!0},{type:"address",name:"admin",indexed:!0}]},{name:"PolicyCreated",type:"event",inputs:[{type:"uint64",name:"policyId",indexed:!0},{type:"address",name:"updater",indexed:!0},{type:"uint8",name:"policyType"}]},{name:"WhitelistUpdated",type:"event",inputs:[{type:"uint64",name:"policyId",indexed:!0},{type:"address",name:"updater",indexed:!0},{type:"address",name:"account",indexed:!0},{type:"bool",name:"allowed"}]},{name:"BlacklistUpdated",type:"event",inputs:[{type:"uint64",name:"policyId",indexed:!0},{type:"address",name:"updater",indexed:!0},{type:"address",name:"account",indexed:!0},{type:"bool",name:"restricted"}]},{name:"CompoundPolicyCreated",type:"event",inputs:[{type:"uint64",name:"policyId",indexed:!0},{type:"address",name:"creator",indexed:!0},{type:"uint64",name:"senderPolicyId"},{type:"uint64",name:"recipientPolicyId"},{type:"uint64",name:"mintRecipientPolicyId"}]},{name:"ReceivePolicyUpdated",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"uint64",name:"senderPolicyId"},{type:"uint64",name:"tokenFilterId"},{type:"address",name:"recoveryAuthority"}]},{name:"Unauthorized",type:"error",inputs:[]},{name:"PolicyNotFound",type:"error",inputs:[]},{name:"PolicyNotSimple",type:"error",inputs:[]},{name:"InvalidPolicyType",type:"error",inputs:[]},{name:"IncompatiblePolicyType",type:"error",inputs:[]},{name:"VirtualAddressNotAllowed",type:"error",inputs:[]},{name:"InvalidReceivePolicyType",type:"error",inputs:[]},{name:"InvalidRecoveryAuthority",type:"error",inputs:[]}],i4e=[{name:"getActiveValidators",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"tuple[]",name:"validators",components:[{type:"bytes32",name:"publicKey"},{type:"address",name:"validatorAddress"},{type:"string",name:"ingress"},{type:"string",name:"egress"},{type:"address",name:"feeRecipient"},{type:"uint64",name:"index"},{type:"uint64",name:"addedAtHeight"},{type:"uint64",name:"deactivatedAtHeight"}]}]},{name:"getInitializedAtHeight",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"owner",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"validatorCount",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"validatorByIndex",type:"function",stateMutability:"view",inputs:[{type:"uint64",name:"index"}],outputs:[{type:"tuple",components:[{type:"bytes32",name:"publicKey"},{type:"address",name:"validatorAddress"},{type:"string",name:"ingress"},{type:"string",name:"egress"},{type:"address",name:"feeRecipient"},{type:"uint64",name:"index"},{type:"uint64",name:"addedAtHeight"},{type:"uint64",name:"deactivatedAtHeight"}]}]},{name:"validatorByAddress",type:"function",stateMutability:"view",inputs:[{type:"address",name:"validatorAddress"}],outputs:[{type:"tuple",components:[{type:"bytes32",name:"publicKey"},{type:"address",name:"validatorAddress"},{type:"string",name:"ingress"},{type:"string",name:"egress"},{type:"address",name:"feeRecipient"},{type:"uint64",name:"index"},{type:"uint64",name:"addedAtHeight"},{type:"uint64",name:"deactivatedAtHeight"}]}]},{name:"validatorByPublicKey",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"publicKey"}],outputs:[{type:"tuple",components:[{type:"bytes32",name:"publicKey"},{type:"address",name:"validatorAddress"},{type:"string",name:"ingress"},{type:"string",name:"egress"},{type:"address",name:"feeRecipient"},{type:"uint64",name:"index"},{type:"uint64",name:"addedAtHeight"},{type:"uint64",name:"deactivatedAtHeight"}]}]}
138,{name:"getNextNetworkIdentityRotationEpoch",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"isInitialized",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bool"}]},{name:"addValidator",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"validatorAddress"},{type:"bytes32",name:"publicKey"},{type:"string",name:"ingress"},{type:"string",name:"egress"},{type:"address",name:"feeRecipient"},{type:"bytes",name:"signature"}],outputs:[{type:"uint64",name:"index"}]},{name:"deactivateValidator",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"idx"}],outputs:[]},{name:"rotateValidator",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"idx"},{type:"bytes32",name:"publicKey"},{type:"string",name:"ingress"},{type:"string",name:"egress"},{type:"bytes",name:"signature"}],outputs:[]},{name:"setFeeRecipient",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"idx"},{type:"address",name:"feeRecipient"}],outputs:[]},{name:"setIpAddresses",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"idx"},{type:"string",name:"ingress"},{type:"string",name:"egress"}],outputs:[]},{name:"transferValidatorOwnership",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"idx"},{type:"address",name:"newAddress"}],outputs:[]},{name:"transferOwnership",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newOwner"}],outputs:[]},{name:"setNetworkIdentityRotationEpoch",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"epoch"}],outputs:[]},{name:"migrateValidator",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"idx"}],outputs:[]},{name:"initializeIfMigrated",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"ValidatorAdded",type:"event",inputs:[{type:"uint64",name:"index",indexed:!0},{type:"address",name:"validatorAddress",indexed:!0},{type:"bytes32",name:"publicKey"},{type:"string",name:"ingress"},{type:"string",name:"egress"},{type:"address",name:"feeRecipient"}]},{name:"ValidatorDeactivated",type:"event",inputs:[{type:"uint64",name:"index",indexed:!0},{type:"address",name:"validatorAddress",indexed:!0}]},{name:"ValidatorRotated",type:"event",inputs:[{type:"uint64",name:"index",indexed:!0},{type:"uint64",name:"deactivatedIndex",indexed:!0},{type:"address",name:"validatorAddress",indexed:!0},{type:"bytes32",name:"oldPublicKey"},{type:"bytes32",name:"newPublicKey"},{type:"string",name:"ingress"},{type:"string",name:"egress"},{type:"address",name:"caller"}]},{name:"FeeRecipientUpdated",type:"event",inputs:[{type:"uint64",name:"index",indexed:!0},{type:"address",name:"feeRecipient"},{type:"address",name:"caller"}]},{name:"IpAddressesUpdated",type:"event",inputs:[{type:"uint64",name:"index",indexed:!0},{type:"string",name:"ingress"},{type:"string",name:"egress"},{type:"address",name:"caller"}]},{name:"ValidatorOwnershipTransferred",type:"event",inputs:[{type:"uint64",name:"index",indexed:!0},{type:"address",name:"oldAddress",indexed:!0},{type:"address",name:"newAddress",indexed:!0},{type:"address",name:"caller"}]},{name:"OwnershipTransferred",type:"event",inputs:[{type:"address",name:"oldOwner",indexed:!0},{type:"address",name:"newOwner",indexed:!0}]},{name:"ValidatorMigrated",type:"event",inputs:[{type:"uint64",name:"index",indexed:!0},{type:"address",name:"validatorAddress",indexed:!0},{type:"bytes32",name:"publicKey"}]},{name:"NetworkIdentityRotationEpochSet",type:"event",inputs:[{type:"uint64",name:"previousEpoch",indexed:!0},{type:"uint64",name:"nextEpoch",indexed:!0}]},{name:"Initialized",type:"event",inputs:[{type:"uint64",name:"height"}]},{name:"SkippedValidatorMigration",type:"event",inputs:[{type:"uint64",name:"index",indexed:!0},{type:"address",name:"validatorAddress",indexed:!0},{type:"bytes32",name:"publicKey"}]},{name:"AlreadyInitialized",type:"error",inputs:[]},{name:"IngressAlreadyExists",type:"error",inputs:[{type:"string",name:"ingress"}]},{name:"EmptyV1ValidatorSet",type:"error",inputs:[]},{name:"InvalidMigrationIndex",type:"error",inputs:[]},{name:"InvalidOwner",type:"error",inputs:[]},{name:"InvalidPublicKey",type:"error",inputs:[]},{name:"InvalidSignature",type:"error",inputs:[]},{name:"InvalidSignatureFormat",type:"error",inputs:[]},{name:"InvalidValidatorAddress",type:"error",inputs:[]},{name:"MigrationNotComplete",type:"error",inputs:[]},{name:"NotInitialized",type:"error",inputs:[]},{name:"NotIp",type:"error",inputs:[{type:"string",name:"input"},{type:"string",name:"backtrace"}]},{name:"NotIpPort",type:"error",inputs:[{type:"string",name:"input"},{type:"string",name:"backtrace"}]},{name:"PublicKeyAlreadyExists",type:"error",inputs:[]},{name:"Unauthorized",type:"error",inputs:[]},{name:"AddressAlreadyHasValidator",type:"error",inputs:[]},{name:"ValidatorAlreadyDeactivated",type:"error",inputs:[]},{name:"ValidatorNotFound",type:"error",inputs:[]}],o4e=[{name:"getValidators",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"tuple[]",name:"validators",components:[{type:"bytes32",name:"publicKey"},{type:"bool",name:"active"},{type:"uint64",name:"index"},{type:"address",name:"validatorAddress"},{type:"string",name:"inboundAddress"},{type:"string",name:"outboundAddress"}]}]},{name:"addValidator",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newValidatorAddress"},{type:"bytes32",name:"publicKey"},{type:"bool",name:"active"},{type:"string",name:"inboundAddress"},{type:"string",name:"outboundAddress"}],outputs:[]}
138,{name:"updateValidator",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newValidatorAddress"},{type:"bytes32",name:"publicKey"},{type:"string",name:"inboundAddress"},{type:"string",name:"outboundAddress"}],outputs:[]},{name:"changeValidatorStatus",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"validator"},{type:"bool",name:"active"}],outputs:[]},{name:"changeValidatorStatusByIndex",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"index"},{type:"bool",name:"active"}],outputs:[]},{name:"owner",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"changeOwner",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newOwner"}],outputs:[]},{name:"getNextFullDkgCeremony",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"setNextFullDkgCeremony",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"epoch"}],outputs:[]},{name:"validatorsArray",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"index"}],outputs:[{type:"address"}]},{name:"validators",type:"function",stateMutability:"view",inputs:[{type:"address",name:"validator"}],outputs:[{type:"tuple",components:[{type:"bytes32",name:"publicKey"},{type:"bool",name:"active"},{type:"uint64",name:"index"},{type:"address",name:"validatorAddress"},{type:"string",name:"inboundAddress"},{type:"string",name:"outboundAddress"}]}]},{name:"validatorCount",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"Unauthorized",type:"error",inputs:[]},{name:"ValidatorAlreadyExists",type:"error",inputs:[]},{name:"ValidatorNotFound",type:"error",inputs:[]},{name:"InvalidPublicKey",type:"error",inputs:[]},{name:"NotHostPort",type:"error",inputs:[{type:"string",name:"field"},{type:"string",name:"input"},{type:"string",name:"backtrace"}]},{name:"NotIpPort",type:"error",inputs:[{type:"string",name:"field"},{type:"string",name:"input"},{type:"string",name:"backtrace"}]}],l4e=[{name:"owner",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"transferOwnership",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newOwner"}],outputs:[]},{name:"createZone",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple",name:"params",components:[{type:"address",name:"initialToken"},{type:"bool",name:"accessMode"},{type:"bool",name:"gatewayMode"},{type:"address[]",name:"allowedAccounts"},{type:"address[]",name:"zoneGateways"},{type:"address",name:"admin"},{type:"address[]",name:"sequencers"},{type:"uint8",name:"threshold"},{type:"string",name:"rpcUrl"}]}],outputs:[{type:"uint32",name:"zoneId"},{type:"address",name:"portal"}]},{name:"nextZoneId",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint32"}]},{name:"zones",type:"function",stateMutability:"view",inputs:[{type:"uint32",name:"id"}],outputs:[{type:"tuple",name:"info",components:[{type:"uint32",name:"zoneId"},{type:"address",name:"portal"},{type:"bool",name:"accessMode"},{type:"bool",name:"gatewayMode"},{type:"address",name:"admin"},{type:"address[]",name:"sequencers"},{type:"uint8",name:"threshold"},{type:"address",name:"verifier"},{type:"string",name:"rpcUrl"}]}]},{name:"isZonePortal",type:"function",stateMutability:"view",inputs:[{type:"address",name:"portal"}],outputs:[{type:"bool"}]},{name:"OwnershipTransferred",type:"event",inputs:[{type:"address",name:"previousOwner",indexed:!0},{type:"address",name:"newOwner",indexed:!0}]},{name:"ZoneCreated",type:"event",inputs:[{type:"uint32",name:"zoneId",indexed:!0},{type:"address",name:"portal",indexed:!0},{type:"address",name:"initialToken"},{type:"bool",name:"accessMode"},{type:"bool",name:"gatewayMode"},{type:"address",name:"admin"},{type:"address[]",name:"sequencers"},{type:"uint8",name:"threshold"},{type:"address",name:"verifier"}]},{name:"InvalidToken",type:"error",inputs:[]},{name:"TokenTransferPolicyNotSet",type:"error",inputs:[]},{name:"InvalidClosedLoopConfig",type:"error",inputs:[]},{name:"NotOwner",type:"error",inputs:[]},{name:"InvalidAdmin",type:"error",inputs:[]},{name:"InvalidSequencerSet",type:"error",inputs:[]},{name:"AlreadyInitialized",type:"error",inputs:[]},{name:"TokenMetadataTooLong",type:"error",inputs:[]},{name:"DuplicateAllowedAccount",type:"error",inputs:[]},{name:"DuplicateZoneGateway",type:"error",inputs:[]},{name:"ZoneCreated",type:"event",inputs:[{type:"uint32",name:"zoneId",indexed:!0},{type:"address",name:"portal",indexed:!0},{type:"address",name:"messenger",indexed:!0},{type:"address",name:"initialToken"},{type:"address",name:"admin"},{type:"address",name:"sequencer"},{type:"address",name:"verifier"},{type:"bytes32",name:"genesisBlockHash"},{type:"bytes32",name:"genesisTempoBlockHash"},{type:"uint64",name:"genesisTempoBlockNumber"}]},{name:"createZone",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple",name:"params",components:[{type:"address",name:"initialToken"},{type:"address",name:"admin"},{type:"address",name:"sequencer"},{type:"address",name:"verifier"},{type:"tuple",name:"zoneParams",components:[{type:"bytes32",name:"genesisBlockHash"},{type:"bytes32",name:"genesisTempoBlockHash"},{type:"uint64",name:"genesisTempoBlockNumber"}]},{type:"string",name:"rpcUrl"}]}],outputs:[{type:"uint32",name:"zoneId"},{type:"address",name:"portal"}]},{name:"verifier",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]}],c4e=[{name:"SequencerSetUpdated",type:"event",inputs:[{type:"uint64",name:"nonce",indexed:!0},{type:"uint8",name:"threshold"},{type:"address[]",name:"sequencers"}]},{name:"TokenEnabled",type:"event",inputs:[{type:"address",name:"token",
138indexed:!0},{type:"string",name:"name"},{type:"string",name:"symbol"},{type:"string",name:"currency"}]},{name:"RoleUpdated",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"uint8",name:"prev"},{type:"uint8",name:"next"}]},{name:"EnforcementModesUpdated",type:"event",inputs:[{type:"bool",name:"accessMode"},{type:"bool",name:"gatewayMode"}]},{name:"LeaderUpdated",type:"event",inputs:[{type:"address",name:"previousLeader",indexed:!0},{type:"address",name:"newLeader",indexed:!0},{type:"uint64",name:"leaderEpoch",indexed:!0},{type:"uint64",name:"leaderActivationTempoBlock"}]},{name:"zoneId",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint32"}]},{name:"admin",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"messenger",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"isAccessEnforced",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bool"}]},{name:"setAccessMode",type:"function",stateMutability:"nonpayable",inputs:[{type:"bool",name:"enforced"}],outputs:[]},{name:"isGatewayOpen",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bool"}]},{name:"setGatewayMode",type:"function",stateMutability:"nonpayable",inputs:[{type:"bool",name:"enforced"}],outputs:[]},{name:"hasRole",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"uint8",name:"role"}],outputs:[{type:"bool"}]},{name:"setAllowedAccount",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"account"},{type:"bool",name:"allowed"}],outputs:[]},{name:"setGateway",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"account"},{type:"bool",name:"allowed"}],outputs:[]},{name:"setPauseGuardian",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"account"},{type:"bool",name:"allowed"}],outputs:[]},{name:"setSequencerSet",type:"function",stateMutability:"nonpayable",inputs:[{type:"address[]",name:"newSequencers"},{type:"uint8",name:"newThreshold"}],outputs:[]},{name:"verifier",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"sequencerSetVersion",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"sequencerThreshold",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{name:"zoneHeight",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"isSequencer",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"}],outputs:[{type:"bool"}]},{name:"sequencerCount",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"sequencerAt",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"index"}],outputs:[{type:"address"}]},{name:"leader",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"leaderEpoch",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"leaderActivationTempoBlock",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"setLeader",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newLeader"},{type:"uint64",name:"expectedEpoch"}],outputs:[]},{name:"withdrawalBatchIndex",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"blockHash",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"currentDepositQueueHash",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"lastSyncedTempoBlockNumber",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"withdrawalQueueHead",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"withdrawalQueueTail",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"withdrawalQueueSlot",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"queueIndex"}],outputs:[{type:"bytes32"}]},{name:"calculateDepositFee",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint128",name:"fee"}]},{name:"calculateBouncebackFee",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint128",name:"fee"}]},{name:"depositCount",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"lastProcessedDepositNumber",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"FIXED_DEPOSIT_GAS",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"MAX_GAS_FEE_RATE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint128"}]},{name:"MAX_TOKENS_ENABLED_PER_TEMPO_BLOCK",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"MAX_TOKEN_METADATA_BYTES",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"areDepositsActive",type:"function",stateMutability:"view",inputs:[{type:"address",name:"token"}],outputs:[{type:"bool"}]},{name:"tokenConfig",type:"function",stateMutability:"view",inputs:[{type:"address",name:"token"}],outputs:[{type:"tuple",components:[{type:"bool",name:"enabled"},{type:"bool",name:"depositsActive"}]}]},{name:"initialize",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint32",name:"zoneId"},{type:"address",name:"initialToken"},{type:"bool",name:"accessMode"},{type:"bool",name:"gatewayMode"},{type:"address[]",name:"allowedAccounts"},{type:"address[]",name:"zoneGateways"},{type:"address",name:"admin"},{type:"address",name:"messenger"},{type:"address[]",name:"sequencers"},{type:"uint8",name:"threshold"},{type:"address",name:"verifier"},{type:"string",name:"rpcUrl"}],outputs:[]},{name:"deliverWithdrawal",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"address",name:"token"},{type:"uint128",name:"amount"},{type:"bytes32",name:"memo"},{type:"uint64",name:"gasLimit"},{type:"bytes",name:"callbackData"}],outputs:[]},{name:"MAX_DEPOSITS_PER_TEMPO_BLOCK",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"MAX_WITHDRAWAL_GAS_LIMIT",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"paused",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bool"}]},{name:"pauseExpiry",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"abdicationEffectiveAt",type:"function",stateMutability:"view",inputs:[{type:"uint8",name:"capability"}],outputs:[{type:"uint64"}]},{name:"processWithdrawals",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple[]",name:"withdrawals",components:[{type:"address",name:"token"},{type:"bytes32",name:"senderTag"},{type:"address",name:"to"},{type:"uint128",name:"amount"},{type:"bytes32",name:"memo"},{type:"uint64",name:"gasLimit"},{type:"uint64",name:"fallbackNonce"},{type:"bytes",name:"callbackData"},{type:"bytes",name:"encryptedSender"}]},{type:"bytes32",name:"remainingQueue"}],outputs:[]},{name:"pause",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"resume",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"abdicate",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint8",name:"capability"}],outputs:[]},{name:"submitBatch",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"tempoBlockNumber"},{type:"uint64",name:"recentTempoBlockNumber"},{type:"tuple",name:"blockTransition",components:[{type:"bytes32",name:"prevBlockHash"},{type:"bytes32",name:"nextBlockHash"}]},{type:"tuple",name:"depositQueueTransition",components:[{type:"bytes32",name:"prevProcessedHash"},{type:"bytes32",name:"nextProcessedHash"},{type:"uint64",name:"prevDepositNumber"},{type:"uint64",name:"nextDepositNumber"}]},{type:"bytes32",name:"withdrawalQueueHash"},{type:"bytes",name:"verifierConfig"},{type:"bytes",name:"proof"},{type:"uint256",name:"nextZoneHeight"},{type:"bytes[]",name:"signatures"}],outputs:[]},{name:"enableToken",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"}],outputs:[]},{name:"pauseDeposits",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"}],outputs:[]},{name:"resumeDeposits",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"}],outputs:[]},{name:"setZoneGasRate",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint128",name:"newZoneGasRate"}],outputs:[]},{name:"setMaxTempoGasRate",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint128",name:"newMaxTempoGasRate"}],outputs:[]},{name:"setBouncebackGas",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"newBouncebackGas"}],outputs:[]},{name:"transferAdmin",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newAdmin"}],outputs:[]},{name:"acceptAdmin",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"rpcUrl",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{name:"setRpcUrl",type:"function",stateMutability:"nonpayable",inputs:[{type:"string",name:"rpcUrl"}],outputs:[]},{name:"deposit",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"},{type:"uint128",name:"amount"},{type:"uint256",name:"keyIndex"},{type:"tuple",name:"encrypted",components:[{type:"bytes32",name:"ephemeralPubkeyX"},{type:"uint8",name:"ephemeralPubkeyYParity"},{type:"bytes",name:"ciphertext"},{type:"bytes12",name:"nonce"},{type:"bytes16",name:"tag"}]},{type:"address",name:"tempoRefundRecipient"}],outputs:[{type:"bytes32",name:"newCurrentDepositQueueHash"}]},{name:"depositEncrypted",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"},{type:"uint128",name:"amount"},{type:"uint256",name:"keyIndex"},{type:"tuple",name:"encrypted",components:[{type:"bytes32",name:"ephemeralPubkeyX"},{type:"uint8",name:"ephemeralPubkeyYParity"},{type:"bytes",name:"ciphertext"},{type:"bytes12",name:"nonce"},{type:"bytes16",name:"tag"}]},{type:"address",name:"tempoRefundRecipient"}],outputs:[{type:"bytes32",name:"newCurrentDepositQueueHash"}]},{name:"setSequencerEncryptionKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"x"},{type:"uint8",name:"yParity"},{type:"uint8",name:"popV"},{type:"bytes32",name:"popR"},{type:"bytes32",name:"popS"}],outputs:[]},{name:"isTokenEnabled",type:"function",stateMutability:"view",inputs:[{type:"address",name:"token"}],outputs:[{type:"bool"}]},{name:"enabledTokenCount",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"enabledTokenAt",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"index"}],outputs:[{type:"address"}]},{name:"tokenEnablementHash",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"zoneGasRate",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint128"}]},{name:"maxTempoGasRate",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint128"}]},{name:"bouncebackGas",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"pendingAdmin",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"refunds",type:"function",stateMutability:"view",inputs:[{type:"address",name:"token"},{type:"address",name:"owner"}],outputs:[{type:"uint128"}]},{name:"sequencerEncryptionKey",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32",name:"x"},{type:"uint8",name:"yParity"},{type:"address",name:"pubkey"}]},{name:"encryptionKeyCount",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"encryptionKeyAt",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"index"}],outputs:[{type:"tuple",name:"entry",components:[{type:"bytes32",name:"x"},{type:"uint8",name:"yParity"},{type:"uint64",name:"activationBlock"}]}]},{name:"isEncryptionKeyValid",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"keyIndex"}],outputs:[{type:"bool",name:"valid"},{type:"uint64",name:"expiresAtBlock"}]},{name:"encryptionKeyAtBlock",type:"function",stateMutability:"view",inputs:[{type:"uint64",name:"tempoBlockNumber"}],outputs:[{type:"bytes32",name:"x"},{type:"uint8",name:"yParity"},{type:"uint256",name:"keyIndex"}]},{name:"claimRefund",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"token"}],outputs:[{type:"uint128",name:"amount"}]},{name:"DepositMade",type:"event",inputs:[{type:"bytes32",name:"newCurrentDepositQueueHash",indexed:!0},{type:"address",name:"sender",indexed:!0},{type:"address",name:"token"},{type:"uint128",name:"netAmount"},{type:"uint128",name:"fee"},{type:"uint256",name:"keyIndex"},{type:"bytes32",name:"ephemeralPubkeyX"},{type:"uint8",name:"ephemeralPubkeyYParity"},{type:"bytes",name:"ciphertext"},{type:"bytes12",name:"nonce"},{type:"bytes16",name:"tag"},{type:"address",name:"tempoRefundRecipient"},{type:"uint64",name:"depositNumber"}]},{name:"DepositsPaused",type:"event",inputs:[{type:"address",name:"token",
138indexed:!0}]},{name:"DepositsResumed",type:"event",inputs:[{type:"address",name:"token",indexed:!0}]},{name:"PortalPaused",type:"event",inputs:[{type:"address",name:"account",indexed:!0}]},{name:"PortalResumed",type:"event",inputs:[{type:"address",name:"account",indexed:!0}]},{name:"AbdicationScheduled",type:"event",inputs:[{type:"uint8",name:"capability",indexed:!0},{type:"uint64",name:"effectiveAt"}]},{name:"RpcUrlUpdated",type:"event",inputs:[{type:"string",name:"rpcUrl"}]},{name:"SequencerEncryptionKeyUpdated",type:"event",inputs:[{type:"bytes32",name:"x"},{type:"uint8",name:"yParity"},{type:"address",name:"pubkey"},{type:"uint256",name:"keyIndex"},{type:"uint64",name:"activationBlock"}]},{name:"BatchSubmitted",type:"event",inputs:[{type:"uint64",name:"withdrawalBatchIndex",indexed:!0},{type:"uint256",name:"withdrawalQueueIndex",indexed:!0},{type:"bytes32",name:"nextProcessedDepositQueueHash"},{type:"bytes32",name:"nextBlockHash"},{type:"bytes32",name:"withdrawalQueueHash"},{type:"uint64",name:"lastProcessedDepositNumber"}]},{name:"WithdrawalProcessed",type:"event",inputs:[{type:"address",name:"to",indexed:!0},{type:"bytes32",name:"senderTag",indexed:!0},{type:"address",name:"token"},{type:"uint128",name:"amount"},{type:"bool",name:"callbackSuccess"}]},{name:"WithdrawalBounceBack",type:"event",inputs:[{type:"bytes32",name:"newCurrentDepositQueueHash",indexed:!0},{type:"uint64",name:"fallbackNonce",indexed:!0},{type:"address",name:"token"},{type:"uint128",name:"amount"},{type:"uint64",name:"depositNumber"}]},{name:"DepositBounceBack",type:"event",inputs:[{type:"address",name:"tempoRefundRecipient",indexed:!0},{type:"address",name:"token"},{type:"uint128",name:"amount"},{type:"uint128",name:"bouncebackFee"}]},{name:"DepositBounceBackPending",type:"event",inputs:[{type:"address",name:"tempoRefundRecipient",indexed:!0},{type:"address",name:"token"},{type:"uint128",name:"amount"},{type:"uint128",name:"bouncebackFee"}]},{name:"RefundClaimed",type:"event",inputs:[{type:"address",name:"recipient",indexed:!0},{type:"address",name:"token",indexed:!0},{type:"uint128",name:"amount"}]},{name:"ZoneGasRateUpdated",type:"event",inputs:[{type:"uint128",name:"zoneGasRate"}]},{name:"MaxTempoGasRateUpdated",type:"event",inputs:[{type:"uint128",name:"maxTempoGasRate"}]},{name:"BouncebackGasUpdated",type:"event",inputs:[{type:"uint64",name:"bouncebackGas"}]},{name:"AdminTransferStarted",type:"event",inputs:[{type:"address",name:"currentAdmin",indexed:!0},{type:"address",name:"pendingAdmin",indexed:!0}]},{name:"AdminTransferred",type:"event",inputs:[{type:"address",name:"previousAdmin",indexed:!0},{type:"address",name:"newAdmin",indexed:!0}]},{name:"NotSequencer",type:"error",inputs:[]},{name:"NotAdmin",type:"error",inputs:[]},{name:"NotPauseAuthority",type:"error",inputs:[]},{name:"CapabilityAbdicated",type:"error",inputs:[{type:"uint8",name:"capability"}]},{name:"AbdicationAlreadyScheduled",type:"error",inputs:[{type:"uint8",name:"capability"}]},{name:"PortalIsPaused",type:"error",inputs:[]},{name:"NotPendingAdmin",type:"error",inputs:[]},{name:"InvalidProof",type:"error",inputs:[]},{name:"InvalidTempoBlockNumber",type:"error",inputs:[]},{name:"NotFactory",type:"error",inputs:[]},{name:"NotSelf",type:"error",inputs:[]},{name:"AlreadyInitialized",type:"error",inputs:[]},{name:"MustDelegateCall",type:"error",inputs:[]},{name:"CallbackRejected",type:"error",inputs:[]},{name:"TransferFailed",type:"error",inputs:[]},{name:"ReentrantWithdrawal",type:"error",inputs:[]},{name:"EncryptionKeyExpired",type:"error",inputs:[{type:"uint256",name:"keyIndex"},{type:"uint64",name:"activationBlock"},{type:"uint64",name:"supersededAtBlock"}]},{name:"InvalidEncryptionKeyIndex",type:"error",inputs:[{type:"uint256",name:"keyIndex"}]},{name:"NoEncryptionKeySet",type:"error",inputs:[]},{name:"NoEncryptionKeyAtBlock",type:"error",inputs:[{type:"uint64",name:"blockNumber"}]},{name:"InvalidEphemeralPubkey",type:"error",inputs:[]},{name:"InvalidCiphertextLength",type:"error",inputs:[{type:"uint256",name:"actual"},{type:"uint256",name:"expected"}]}
138,{name:"InvalidProofOfPossession",type:"error",inputs:[]},{name:"DepositTooSmall",type:"error",inputs:[]},{name:"TokenEnablementBlockCapacityExceeded",type:"error",inputs:[{type:"uint64",name:"maximum"}]},{name:"TokenMetadataTooLong",type:"error",inputs:[]},{name:"GasFeeRateTooHigh",type:"error",inputs:[]},{name:"DepositsNotActive",type:"error",inputs:[]},{name:"TokenAlreadyEnabled",type:"error",inputs:[]},{name:"TokenTransferPolicyNotSet",type:"error",inputs:[]},{name:"InvalidDepositTransition",type:"error",inputs:[]},{name:"InvalidSequencerSet",type:"error",inputs:[]},{name:"SequencerConfigurationUnchanged",type:"error",inputs:[]},{name:"InvalidQuorumCertificate",type:"error",inputs:[]},{name:"CallbackDidNotReturnToZone",type:"error",inputs:[]},{name:"InvalidBouncebackRecipient",type:"error",inputs:[]},{name:"TokenNotEnabled",type:"error",inputs:[]},{name:"DepositBlockCapacityExceeded",type:"error",inputs:[{type:"uint64",name:"maximum"}]},{name:"InvalidCallbackTarget",type:"error",inputs:[]},{name:"AccountNotAllowed",type:"error",inputs:[{type:"address",name:"account"}]},{name:"InvalidLeader",type:"error",inputs:[]},{name:"ActiveLeaderRemoved",type:"error",inputs:[]},{name:"LeaderAlreadyUpdatedThisBlock",type:"error",inputs:[]},{name:"StaleLeadershipEpoch",type:"error",inputs:[{type:"uint64",name:"expected"},{type:"uint64",name:"actual"}]},{name:"deposit",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"_token"},{type:"address",name:"to"},{type:"uint128",name:"amount"},{type:"bytes32",name:"memo"},{type:"address",name:"tempoRefundRecipient"}],outputs:[{type:"bytes32"}]}],u4e=[{name:"verify",type:"function",stateMutability:"view",inputs:[{type:"uint32",name:"zoneId"},{type:"uint64",name:"tempoBlockNumber"},{type:"uint64",name:"anchorBlockNumber"},{type:"bytes32",name:"anchorBlockHash"},{type:"uint64",name:"expectedWithdrawalBatchIndex"},{type:"uint256",name:"nextZoneHeight"},{type:"tuple",name:"blockTransition",components:[{type:"bytes32",name:"prevBlockHash"},{type:"bytes32",name:"nextBlockHash"}]},{type:"tuple",name:"depositQueueTransition",components:[{type:"bytes32",name:"prevProcessedHash"},{type:"bytes32",name:"nextProcessedHash"},{type:"uint64",name:"prevDepositNumber"},{type:"uint64",name:"nextDepositNumber"}]},{type:"tuple",name:"tokenEnablementTransition",components:[{type:"uint64",name:"prevProcessedTokenCount"},{type:"uint64",name:"nextProcessedTokenCount"}]},{type:"bytes32",name:"withdrawalQueueHash"},{type:"bytes",name:"verifierConfig"},{type:"bytes",name:"proof"}],outputs:[{type:"bool"}]},{name:"verify",type:"function",stateMutability:"view",inputs:[{type:"uint32",name:"zoneId"},{type:"uint64",name:"tempoBlockNumber"},{type:"uint64",name:"anchorBlockNumber"},{type:"bytes32",name:"anchorBlockHash"},{type:"uint64",name:"expectedWithdrawalBatchIndex"},{type:"tuple",name:"blockTransition",components:[{type:"bytes32",name:"prevBlockHash"},{type:"bytes32",name:"nextBlockHash"}]},{type:"tuple",name:"depositQueueTransition",components:[{type:"bytes32",name:"prevProcessedHash"},{type:"bytes32",name:"nextProcessedHash"},{type:"uint64",name:"prevDepositNumber"},{type:"uint64",name:"nextDepositNumber"}]},{type:"bytes32",name:"withdrawalQueueHash"},{type:"bytes",name:"verifierConfig"},{type:"bytes",name:"proof"}],outputs:[{type:"bool"}]}];[...Pa,...WEe,...JEe,...t4e,...e4e,...Yb,...ZEe,...QEe,...ZK,...XEe,...YEe,...a4e,...n4e,...r4e,...s4e,...o4e,...i4e,...l4e,...c4e,...u4e];const d4e=`�Ethereum Signed Message:
139`;function f4e(e){const t=typeof e=="string"?zb(e):typeof e.raw=="string"?e.raw:Nn(e.raw),n=zb(`${d4e}${wn(t)}`);return Ku([n,t])}function QK(e,t){return Wn(f4e(e),t)}class p4e extends Oe{constructor({domain:t}){super(`Invalid domain "${Jn(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class m4e extends Oe{constructor({primaryType:t,types:n}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(n))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class h4e extends Oe{constructor({type:t}){super(`Struct type "${t}
139" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}class y4e extends Oe{constructor({type:t}){const n=t.replace(/^(u?int)/,"$&256");super(`Type "${t}" is not a valid EIP-712 type.`,{metaMessages:[`Use "${n}" instead.`],name:"InvalidTypedDataTypeError"})}}function b4e(e){const{domain:t,message:n,primaryType:r,types:a}=e,s=(i,l)=>{for(const c of i){const{name:u,type:f}=c,p=l[u],m=f.replace(/(\[[0-9]*\])+$/,"");if(m==="int"||m==="uint")throw new y4e({type:f});const h=f.match(Jz);if(h&&(typeof p=="number"||typeof p=="bigint")){const[C,T,w]=h;nt(p,{signed:T==="int",size:Number.parseInt(w,10)/8})}if(f==="address"&&typeof p=="string"&&!dn(p))throw new Ln({address:p});const y=f.match(o1e);if(y){const[C,T]=y;if(T&&wn(p)!==Number.parseInt(T,10))throw new lbe({expectedSize:Number.parseInt(T,10),givenSize:wn(p)})}const x=a[f];x&&(x4e(f),s(x,p))}};if(a.EIP712Domain&&t){if(typeof t!="object")throw new p4e({domain:t});s(a.EIP712Domain,t)}if(r!=="EIP712Domain")if(a[r])s(a[r],n);else throw new m4e({primaryType:r,types:a})}function g4e({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function x4e(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new h4e({type:e})}function v4e(e){const{domain:t={},message:n,primaryType:r}=e,a={EIP712Domain:g4e({domain:t}),...e.types};b4e({domain:t,message:n,primaryType:r,types:a});const s=["0x1901"];return t&&s.push(w4e({domain:t,types:a})),r!=="EIP712Domain"&&s.push(XK({data:n,primaryType:r,types:a})),Wn(Ku(s))}function w4e({domain:e,types:t}){return XK({data:e,primaryType:"EIP712Domain",types:t})}function XK({data:e,primaryType:t,types:n}){const r=YK({data:e,primaryType:t,types:n});return Wn(r)}function YK({data:e,primaryType:t,types:n}){const r=[{type:"bytes32"}],a=[E4e({primaryType:t,types:n})];for(const s of n[t]){const[i,l]=tV({types:n,name:s.name,type:s.type,value:e[s.name]});r.push(i),a.push(l)}return Fc(r,a)}function E4e({primaryType:e,types:t}){const n=Kt(k4e({primaryType:e,types:t}));return Wn(n)}function k4e({primaryType:e,types:t}){let n="";const r=eV({primaryType:e,types:t});r.delete(e);const a=[e,...Array.from(r).sort()];for(const s of a)n+=`${s}(${t[s].map(({name:i,type:l})=>`${l} ${i}`).join(",")})`;return n}function eV({primaryType:e,types:t},n=new Set){const r=e.match(/^\w*/u),a=r==null?void 0:r[0];if(n.has(a)||t[a]===void 0)return n;n.add(a);for(const s of t[a])eV({primaryType:s.type,types:t},n);return n}function tV({types:e,name:t,type:n,value:r}){if(e[n]!==void 0)return[{type:"bytes32"},Wn(YK({data:r,primaryType:n,types:e}))];if(n==="bytes")return[{type:"bytes32"},Wn(r)];if(n==="string")return[{type:"bytes32"},Wn(Kt(r))];if(n.lastIndexOf("]")===n.length-1){const a=n.slice(0,n.lastIndexOf("[")),s=r.map(i=>tV({name:t,type:a,types:e,value:i}));return[{type:"bytes32"},Wn(Fc(s.map(([i])=>i),s.map(([,i])=>i)))]}return[{type:n},r]}TK(0);TK(0,42431);const Do="0xaAAAaaAA00000000000000000000000000000000",nV="0xAACC000000000000000000000000000000000000",C4e="0x7171717171717171717171717171717171717171",A4e="0x5165300000000000000000000000000000000000";function Zm(e){const t=vr(e);if(t.type==="multisig"||t.type==="keychain")throw new Error("Multisig owners must use primitive signatures.");return t}const ZN=1024;function rV(e,t="hex"){const n=(()=>{if(typeof e=="string"){if(e.length>3&&e.length%2!==0)throw new bce(e);return ra(e)}return e})(),r=j1(n,{recursiveReadLimit:Number.POSITIVE_INFINITY}),a=aV(r,t);if(r.position<r.bytes.length)throw new vce({count:r.bytes.length-r.position});return a}function aV(e,t="hex",n=0){if(n>=ZN)throw new gce({limit:ZN});if(e.bytes.length===0)return t==="hex"?Nn(e.bytes):e.bytes;const r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){const s=QN(e,r,128),i=e.readBytes(s);return t==="hex"?Nn(i):i}const a=QN(e,r,192);return P4e(e,a,t,n+1)}function QN(e,t,n){if(n===128&&t<128)return 1;if(t<=n+55)return t-n;if(t===n+55+1)return e.readUint8();if(t===n+55+2)return e.readUint16();if(t===n+55+3)return e.readUint24();if(t===n+55+4)return e.readUint32();throw new Oe("Invalid RLP prefix")}function P4e(e,t,n,r){const a=e.position,s=[];for(;e.position-a<t;)s.push(aV(e,n,r));if(e.position-a!==t)throw new xce({consumed:e.position-a,declared:t});return s}function T4e(e){return It(e)&&e.length===66}
139function S4e(e){const t=yz(e,0,1);if(t==="0x04")return"eip7702";if(t==="0x03")return"eip4844";if(t==="0x02")return"eip1559";if(t==="0x01")return"eip2930";if(t!=="0x"&&Pn(t)>=192)return"legacy";throw new Kce({serializedType:t})}function B4e(e){const t=S4e(e);return t==="eip1559"?N4e(e):t==="eip2930"?R4e(e):t==="eip4844"?I4e(e):t==="eip7702"?_4e(e):O4e(e)}function _4e(e){const t=hg(e),[n,r,a,s,i,l,c,u,f,p,m,h,y]=t;if(t.length!==10&&t.length!==13)throw new Im({attributes:{chainId:n,nonce:r,maxPriorityFeePerGas:a,maxFeePerGas:s,gas:i,to:l,value:c,data:u,accessList:f,authorizationList:p,...t.length>9?{v:m,r:h,s:y}:{}},serializedTransaction:e,type:"eip7702"});const x={chainId:Pn(n),type:"eip7702"};return It(l)&&l!=="0x"&&(x.to=l),It(i)&&i!=="0x"&&(x.gas=Pt(i)),It(u)&&u!=="0x"&&(x.data=u),It(r)&&(x.nonce=r==="0x"?0:Pn(r)),It(c)&&c!=="0x"&&(x.value=Pt(c)),It(s)&&s!=="0x"&&(x.maxFeePerGas=Pt(s)),It(a)&&a!=="0x"&&(x.maxPriorityFeePerGas=Pt(a)),f.length!==0&&f!=="0x"&&(x.accessList=yg(f)),p.length!==0&&p!=="0x"&&(x.authorizationList=M4e(p)),bz(x),{...t.length===13?Qm(t):void 0,...x}}function I4e(e){const t=hg(e),n=t.length===4,r=n?t[0]:t,a=n?t.slice(1):[],[s,i,l,c,u,f,p,m,h,y,x,C,T,w]=r,[v,g,A]=a;if(!(r.length===11||r.length===14))throw new Im({attributes:{chainId:s,nonce:i,maxPriorityFeePerGas:l,maxFeePerGas:c,gas:u,to:f,value:p,data:m,accessList:h,...r.length>9?{v:C,r:T,s:w}:{}},serializedTransaction:e,type:"eip4844"});const S={blobVersionedHashes:x,chainId:Pn(s),to:f,type:"eip4844"};return It(u)&&u!=="0x"&&(S.gas=Pt(u)),It(m)&&m!=="0x"&&(S.data=m),It(i)&&(S.nonce=i==="0x"?0:Pn(i)),It(p)&&p!=="0x"&&(S.value=Pt(p)),It(y)&&y!=="0x"&&(S.maxFeePerBlobGas=Pt(y)),It(c)&&c!=="0x"&&(S.maxFeePerGas=Pt(c)),It(l)&&l!=="0x"&&(S.maxPriorityFeePerGas=Pt(l)),h.length!==0&&h!=="0x"&&(S.accessList=yg(h)),v&&g&&A&&(S.sidecars=DE({blobs:v,commitments:g,proofs:A})),gz(S),{...r.length===14?Qm(r):void 0,...S}}function N4e(e){const t=hg(e),[n,r,a,s,i,l,c,u,f,p,m,h]=t;if(!(t.length===9||t.length===12))throw new Im({attributes:{chainId:n,nonce:r,maxPriorityFeePerGas:a,maxFeePerGas:s,gas:i,to:l,value:c,data:u,accessList:f,...t.length>9?{v:p,r:m,s:h}:{}},serializedTransaction:e,type:"eip1559"});const y={chainId:Pn(n),type:"eip1559"};return It(l)&&l!=="0x"&&(y.to=l),It(i)&&i!=="0x"&&(y.gas=Pt(i)),It(u)&&u!=="0x"&&(y.data=u),It(r)&&(y.nonce=r==="0x"?0:Pn(r)),It(c)&&c!=="0x"&&(y.value=Pt(c)),It(s)&&s!=="0x"&&(y.maxFeePerGas=Pt(s)),It(a)&&a!=="0x"&&(y.maxPriorityFeePerGas=Pt(a)),f.length!==0&&f!=="0x"&&(y.accessList=yg(f)),H1(y),{...t.length===12?Qm(t):void 0,...y}}function R4e(e){const t=hg(e),[n,r,a,s,i,l,c,u,f,p,m]=t;if(!(t.length===8||t.length===11))throw new Im({attributes:{chainId:n,nonce:r,gasPrice:a,gas:s,to:i,value:l,data:c,accessList:u,...t.length>8?{v:f,r:p,s:m}:{}},serializedTransaction:e,type:"eip2930"});const h={chainId:Pn(n),type:"eip2930"};return It(i)&&i!=="0x"&&(h.to=i),It(s)&&s!=="0x"&&(h.gas=Pt(s)),It(c)&&c!=="0x"&&(h.data=c),It(r)&&(h.nonce=r==="0x"?0:Pn(r)),It(l)&&l!=="0x"&&(h.value=Pt(l)),It(a)&&a!=="0x"&&(h.gasPrice=Pt(a)),u.length!==0&&u!=="0x"&&(h.accessList=yg(u)),xz(h),{...t.length===11?Qm(t):void 0,...h}}function O4e(e){const t=rV(e,"hex"),[n,r,a,s,i,l,c,u,f]=t;if(!(t.length===6||t.length===9))throw new Im({attributes:{nonce:n,gasPrice:r,gas:a,to:s,value:i,data:l,...t.length>6?{v:c,r:u,s:f}:{}},serializedTransaction:e,type:"legacy"});const p={type:"legacy"};
139if(It(s)&&s!=="0x"&&(p.to=s),It(a)&&a!=="0x"&&(p.gas=Pt(a)),It(l)&&l!=="0x"&&(p.data=l),It(n)&&(p.nonce=n==="0x"?0:Pn(n)),It(i)&&i!=="0x"&&(p.value=Pt(i)),It(r)&&r!=="0x"&&(p.gasPrice=Pt(r)),vz(p),t.length===6)return p;const m=It(c)&&c!=="0x"?Pt(c):0n;if(f==="0x"&&u==="0x")return m>0&&(p.chainId=Number(m)),p;const h=m,y=Number((h-35n)/2n);if(y>0)p.chainId=y;else if(h!==27n&&h!==28n)throw new q$({v:h});return p.v=h,p.s=f,p.r=u,p.yParity=h%2n===0n?1:0,p}function hg(e){return rV(`0x${e.slice(4)}`,"hex")}function yg(e){const t=[];for(let n=0;n<e.length;n++){const[r,a]=e[n];if(!dn(r,{strict:!1}))throw new Ln({address:r});t.push({address:r,storageKeys:a.map(s=>T4e(s)?s:na(s))})}return t}function M4e(e){const t=[];for(let n=0;n<e.length;n++){const[r,a,s,i,l,c]=e[n];t.push({address:a,chainId:r==="0x"?0:Pn(r),nonce:s==="0x"?0:Pn(s),...Qm([i,l,c])})}return t}function Qm(e){const t=e.slice(-3),n=t[0]==="0x"?0n:Pt(t[0]);if(n!==0n&&n!==1n)throw new zce({yParity:n});const r=n===0n?27n:28n;return{r:Ds(t[1],{size:32}),s:Ds(t[2],{size:32}),v:r,yParity:r===27n?0:1}}function sV(e){const t=e.account;return t!=null&&t.keyType&&t.keyType!=="secp256k1"||(t==null?void 0:t.source)==="accessKey"||(t==null?void 0:t.source)==="multisig"||typeof e.calls<"u"||typeof e.feePayer<"u"||typeof e.feePayerSignature<"u"||typeof e.feeToken<"u"||typeof e.keyAuthorization<"u"||typeof e.multisigSimulation<"u"||typeof e.nonceKey<"u"||typeof e.owner<"u"||typeof e.signature<"u"||typeof e.signatures<"u"||typeof e.validBefore<"u"||typeof e.validAfter<"u"?"tempo":e.type?e.type:UE(e)}function I4(e){try{return sV(e)==="tempo"}catch{return!1}}function XN(e){const t=Mt(e,0,1);return t==="0x76"||t==="0x78"?D4e(e):B4e(e)}async function iV(e,t){if(!I4(e)){if(t&&"type"in t&&t.type!=="secp256k1")throw new Error("Unsupported signature type. Expected `secp256k1` but got `"+t.type+"`.");if(t&&"type"in t){const{r,s:a,yParity:s}=t==null?void 0:t.signature;return Kb(e,{r:Je(r,{size:32}),s:Je(a,{size:32}),yParity:s})}return Kb(e,t)}if(sV(e)==="tempo")return F4e(e,t);throw new Error("Unsupported transaction type")}function D4e(e){const{feePayerSignature:t,nonce:n,...r}=lg(e);return{...r,nonce:Number(n??0n),feePayerSignature:t&&{r:Je(t.r,{size:32}),s:Je(t.s,{size:32}),yParity:t.yParity}}}async function F4e(e,t){var C;const n=(()=>{if(e.signature)return e.signature;if(t&&"type"in t)return t;if(t)return vr({r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)})})(),{chainId:r,feePayer:a,multisigSimulation:s,nonce:i,owner:l,...c}=e,u=(()=>{const T=e.feePayerSignature;if(T)return{r:BigInt(T.r),s:BigInt(T.s),yParity:Number(T.yParity)};if(T===null||a)return null})(),f=typeof e.feePayerSignature<"u"&&e.feePayerSignature!==null,p=typeof n<"u"||!!(s&&e.signatures),m=a===!0&&(!p||!u)||typeof a=="object"&&!p||!p&&f,h={...c,calls:(C=c.calls)!=null&&C.length?c.calls:[{to:c.to||(!c.data||c.data==="0x"?"0x0000000000000000000000000000000000000000":void 0),value:c.value,data:c.data}],chainId:Number(r),feePayerSignature:u,type:"tempo",...i?{nonce:BigInt(i)}:{}},y={...h};m&&delete y.feeToken;const x=(()=>{if(n)return n;if(!s||!e.signatures)return;const T=ed(Qb(y)),w=e.signatures.map(S=>Zm(S)),v=za(s.config),g=e.from;if(!g)throw new Error("A multisig sender is required for signing.");const A=l4({account:g,config:v,payload:T,signatures:w});return vr({account:g,config:v,signatures:A})})();if(x&&typeof e.feePayer=="object"){const T=Qb(h,{signature:x}),w=e.from??qi({payload:ed(T),root:!0,signature:x}),v=k8e(T,{sender:w}),g=await e.feePayer.sign({hash:v});return Bi(T,{feePayerSignature:ng(g)})}return a===!0||!x&&f?x&&u?Bi(y,{signature:x}):x?Bi(y,{format:"feePayer",sender:e.from,signature:x}):Bi(y,{feePayerSignature:null}):Bi(y,{feePayerSignature:void 0,signature:x})}function F3(e){const t=(()=>{if(typeof e=="string")return;const{address:l,...c}=e;return c})(),n=(()=>{if(!t)return;const l=t.owners.map(c=>typeof c=="string"||"address"in c?{owner:c,weight:1}:c);return za({...t,owners:l.map(({owner:c,weight:u})=>({owner:typeof c=="string"?c:c.address,weight:u})),threshold:t.threshold??1})})();if(typeof e!="string"){if((e.address===void 0||e.address==="infer")&&n.version!==0n)throw new Error("An initial multisig config must have version zero.");if(e.address!==void 0&&e.address!=="infer"&&n.version===0n)throw new Error("A current multisig config must have a ver
139sion.")}const r=zm(typeof e=="string"?e:e.address===void 0||e.address==="infer"?U5e(n,{factory:C4e}):e.address),a=t?t.owners.flatMap(l=>{const c=typeof l=="string"||"address"in l?l:l.owner;return typeof c=="string"?[]:[nn(c)]}):[];if(a.some(l=>l.source==="multisig"||N4(l)))throw new Error("Multisig owners must use primitive signatures.");const s=(n==null?void 0:n.owners.flatMap(({owner:l})=>{const c=a.find(u=>Ls(u.address,l));return c?[c]:[]}))??[],i={address:r,config:n,owners:s,publicKey:"0x",source:"multisig",type:"local",async sign({hash:l}){return Ir(await U3(i,{payload:l}))},async signMessage(){throw new Error("`signMessage` is not supported for multisig accounts.")},async signTransaction(l,c){var x;const{serializer:u=iV}=c??{},f=l;if(f.owner){const C=nn(f.owner);if(C.type!=="local")throw new Error("A local owner account is required to approve a multisig transaction.");if(C.source!=="root")throw new Error("A Tempo owner account is required to approve a multisig transaction.");const{owner:T,...w}=f;return await C.signTransaction(w,c)}if(s.length===0)return await u(l);const p={...f,signatures:void 0,...f.feePayerSignature===void 0?{}:{feePayerSignature:null}},m=Wn(await u(p)),h=f.multisigSimulation;if(f.from&&!Ls(f.from,r))throw new Error("Multisig account does not match the transaction sender.");const y=await U3(i,{config:h==null?void 0:h.config,payload:m,signatures:(x=f.signatures)==null?void 0:x.map(C=>Zm(C))});return await u(l,y)},async signTypedData(){throw new Error("`signTypedData` is not supported for multisig accounts.")}};return i}function oV(e){return e.source==="multisig"}async function U3(e,t){const{config:n,payload:r,signatures:a=[]}=t,s=n??e.config;if(!s)throw new Error("A current multisig config is required for local signing.");const i=Cd({account:e.address,config:s,payload:r}),l=[...a],c=new Set;let u=0;for(const p of a){const m=qi({payload:i,signature:p}).toLowerCase(),h=s.owners.find(y=>Ls(y.owner,m));!h||c.has(m)||(c.add(m),u+=Number(h.weight))}const f=[...s.owners].sort((p,m)=>Number(m.weight)-Number(p.weight)||p.owner.toLowerCase().localeCompare(m.owner.toLowerCase()));for(const p of f){if(u>=Number(s.threshold))break;const m=p.owner.toLowerCase();if(c.has(m))continue;const h=e.owners.find(y=>Ls(y.address,p.owner));if(h){if(!h.sign)throw new Error("Multisig owner account cannot sign.");if(l.push(Zm(await h.sign({hash:i}))),c.add(m),u+=Number(p.weight),u>=Number(s.threshold))break}}if(u<Number(s.threshold))throw new Error("Local multisig owners do not meet the threshold.");return vr({account:e.address,config:s,signatures:l4({account:e.address,config:s,payload:r,signatures:l})})}function N4(e){return e.source==="accessKey"&&"accessKeyAddress"in e}function lV(e,t){const{admin:n,chainId:r,expiry:a,key:s,limits:i,scopes:l,witness:c}=t,{accessKeyAddress:u,keyType:f}=R4(s),p=N4(e)||oV(e)?{account:e.address}:{};return og({address:u,chainId:r,type:f,witness:c,...n?{isAdmin:!0}:{},...p,...n?{}:{expiry:a,limits:i,scopes:l}})}async function U4e(e,t){const{admin:n,chainId:r,expiry:a,key:s,limits:i,multisig:l,scopes:c,signatures:u,witness:f}=t,{accessKeyAddress:p,keyType:m}=R4(s),h=N4(e),y=oV(e),x=h||y?{account:e.address}:{},C=n?{}:{expiry:a,limits:i,scopes:c},T=lV(e,t),w=await(async()=>{if(h)return e.sign({hash:T,raw:!0});if(y){if(!l)throw new Error("Multisig state is required to sign a key authorization.");return Ir(await U3(e,{config:l.config,payload:T,signatures:u==null?void 0:u.map(v=>Zm(v))}))}return e.sign({hash:T})})();return ig({address:p,chainId:r,signature:vr(w),type:m,...f?{witness:f}:{},...n?{isAdmin:!0}:{},...x,...C})}function R4(e){return"accessKeyAddress"in e?{accessKeyAddress:e.accessKeyAddress,keyType:e.keyType}:"publicKey"in e&&e.publicKey?{accessKeyAddress:To(t4(e.publicKey)),keyType:e.type}:{accessKeyAddress:e.address,keyType:e.type}}const YN=["genesis","t0","t1","t1a","t1b","t1c","t2","t3","t4","t5","t6"];function j4e(e,t){return YN.indexOf(e)<YN.indexOf(t)}function L4e(e){const{abi:t,data:n}=e,r=Ro(n,0,4),a=t.find(s=>s.type==="function"&&r===Fm(ms(s)));if(!a)throw new ibe(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:a.name,args:"inputs"in a&&a.inputs&&a.inputs.length>0?Um(a.inputs,Ro(n,4)):void 0}}const $w="/docs/contract/encodeErrorResult";function eR(e){const{abi:t,errorName:n,args:r}=e;let a=t[0];if(n){const c=Uc({abi:t,args:r,name:n});if(!c)throw new nN(n,{docsPath:$w});a=c}if(a.type!=="error")throw new nN(void 0,{docsPath:$w});const s=ms(a),i=Fm(s);
139let l="0x";if(r&&r.length>0){if(!a.inputs)throw new rbe(a.name,{docsPath:$w});l=Fc(a.inputs,r)}return Zn([i,l])}const zw="/docs/contract/encodeFunctionResult";function $4e(e){const{abi:t,functionName:n,result:r}=e;let a=t[0];if(n){const i=Uc({abi:t,name:n});if(!i)throw new qu(n,{docsPath:zw});a=i}if(a.type!=="function")throw new qu(void 0,{docsPath:zw});if(!a.outputs)throw new Rz(a.name,{docsPath:zw});const s=(()=>{if(a.outputs.length===0)return[];if(a.outputs.length===1)return[r];if(Array.isArray(r))return r;throw new Oz(r)})();return Fc(a.outputs,s)}const Xy=new Rm(8192);function z4e(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(Xy.get(n))return Xy.get(n);const r=e().finally(()=>Xy.delete(n));return Xy.set(n,r),r}function H4e(e,t={}){return async(n,r={})=>{var m;const{dedupe:a=!1,methods:s,retryDelay:i=150,retryCount:l=3,signal:c,uid:u}={...t,...r},{method:f}=n;if((m=s==null?void 0:s.exclude)!=null&&m.includes(f))throw new ac(new Error("method not supported"),{method:f});if(s!=null&&s.include&&!s.include.includes(f))throw new ac(new Error("method not supported"),{method:f});if(c!=null&&c.aborted)throw Oo(c);const p=a?V4e(`${u}.${Jn(n)}`):void 0;return z4e(()=>D3(async()=>{try{return await e(n,c?{signal:c}:void 0)}catch(h){if(c!=null&&c.aborted)throw Oo(c);if(xd(h))throw h;const y=h;switch(y.code){case O0.code:throw new O0(y);case M0.code:throw new M0(y);case D0.code:throw new D0(y,{method:n.method});case F0.code:throw new F0(y);case xc.code:throw new xc(y);case Mo.code:throw new Mo(y);case U0.code:throw new U0(y);case j0.code:throw new j0(y);case L0.code:throw new L0(y);case ac.code:throw new ac(y,{method:n.method});case Wu.code:throw new Wu(y);case $0.code:throw new $0(y);case Uu.code:throw new Uu(y);case z0.code:throw new z0(y);case H0.code:throw new H0(y);case K0.code:throw new K0(y);case V0.code:throw new V0(y);case G0.code:throw new G0(y);case q0.code:throw new q0(y);case W0.code:throw new W0(y);case J0.code:throw new J0(y);case Z0.code:throw new Z0(y);case Q0.code:throw new Q0(y);case X0.code:throw new X0(y);case Y0.code:throw new Y0(y);case 5e3:throw new Uu(y);case em.code:throw new em(y);default:throw h instanceof Oe?h:new I1e(y)}}},{delay:({count:h,error:y})=>{var x;if(y&&y instanceof x0){const C=(x=y==null?void 0:y.headers)==null?void 0:x.get("Retry-After");if(C!=null&&C.match(/\d/))return Number.parseInt(C,10)*1e3}return~~(1<<h)*i},retryCount:l,signal:c,shouldRetry:({error:h})=>K4e(h)}),{enabled:a,id:p})}}function K4e(e){return xd(e)?!1:"code"in e&&typeof e.code=="number"?e.code===-1||e.code===Wu.code||e.code===xc.code||e.code===429||e.code===-32007:e instanceof x0&&e.status?e.status===403||e.status===408||e.status===4
13913||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function V4e(e,t=0){let n=3735928559^t,r=1103547991^t;for(let a=0;a<e.length;a++){const s=e.charCodeAt(a);n=Math.imul(n^s,2654435761),r=Math.imul(r^s,1597334677)}return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>16,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>16,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(36)}const bg="x-batch-gateway:true";async function G4e(e){const{data:t,ccipRequest:n}=e,{args:[r]}=L4e({abi:N3,data:t}),a=[],s=[];return await Promise.all(r.map(async(i,l)=>{try{s[l]=i.urls.includes(bg)?await G4e({data:i.data,ccipRequest:n}):await n(i),a[l]=!1}catch(c){a[l]=!0,s[l]=q4e(c)}})),$4e({abi:N3,functionName:"query",result:[a,s]})}function q4e(e){return e.name==="HttpRequestError"&&e.status?eR({abi:N3,errorName:"HttpError",args:[e.status,e.shortMessage]}):eR({abi:[_z],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}function W4e(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:r}){return new Promise((a,s)=>{(async()=>{let i;const l=new AbortController;try{n>0&&(i=setTimeout(()=>{r&&l.abort()},n)),a(await e({signal:(l==null?void 0:l.signal)||null}))}catch(c){if(l!=null&&l.signal.aborted&&xd(c)){s(t);return}s(c)}finally{clearTimeout(i)}})()})}function J4e(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const tR=J4e(),Z4e=10485760;function Q4e(e,t={}){const{url:n,headers:r}=Y4e(e);return{async request(a){var x,C,T;const{body:s,fetchFn:i=t.fetchFn??fetch,maxResponseBodySize:l=t.maxResponseBodySize??Z4e,onRequest:c=t.onRequest,onResponse:u=t.onResponse,timeout:f=t.timeout??1e4}=a,p={...t.fetchOptions??{},...a.fetchOptions??{}},{headers:m,method:h,signal:y}=p;try{const w=await W4e(async({signal:A})=>{const S={...p,body:Array.isArray(s)?Jn(s.map(D=>({jsonrpc:"2.0",id:D.id??tR.take(),...D}))):Jn({jsonrpc:"2.0",id:s.id??tR.take(),...s}),headers:{...r,"Content-Type":"application/json",...m},method:h||"POST",signal:y||(f>0?A:null)},_=new Request(n,S),k=await(c==null?void 0:c(_,S))??{...S,url:n};return await i(k.url??n,k)},{errorInstance:new oN({body:s,url:n}),timeout:f,signal:!0});u&&await u(w);let v;const g=await X4e(w,{maxResponseBodySize:l});if((x=w.headers.get("Content-Type"))!=null&&x.startsWith("application/json"))v=JSON.parse(g);else{v=g;try{v=JSON.parse(v||"{}")}catch(A){if(w.ok)throw A;v={error:v}}}if(!w.ok){if(typeof((C=v.error)==null?void 0:C.code)=="number"&&typeof((T=v.error)==null?void 0:T.message)=="string")return v;throw new x0({body:s,details:Jn(v.error)||w.statusText,headers:w.headers,status:w.status,url:n})}return v}catch(w){throw y!=null&&y.aborted?Oo(y):xd(w)||w instanceof x0||w instanceof xb||w instanceof oN?w:new x0({body:s,cause:w,url:n})}}}}async function X4e(e,{maxResponseBodySize:t}){if(t===!1)return e.text();const n=e.headers.get("Content-Length");if(n){const l=Number(n);if(l>t)throw new xb({maxSize:t,size:l})}if(!e.body){const l=await e.text(),c=new TextEncoder().encode(l).length;if(c>t)throw new xb({maxSize:t,size:c});return l}const r=e.body.getReader(),a=new TextDecoder;let s="",i=0;try{for(;;){const{done:l,value:c}=await r.read();if(l)break;if(i+=c.byteLength,i>t)throw await r.cancel(),new xb({maxSize:t,size:i});s+=a.decode(c,{stream:!0})}return s+=a.decode(),s}finally{r.releaseLock()}}function Y4e(e){try{const t=new URL(e),n=(()=>{if(t.username){const r=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username="",t.password="",{url:t.toString(),headers:{Authorization:`Basic ${btoa(r)}`}}}})();return{url:t.toString(),...n}}catch{return{url:e}}}function eke(e,t){return SE(e,t)}function gs(e){return{...e,data:ca(e),to:e.address}}async function O4(e,t){const n=await e.request({method:"multisig_getConfig",params:[{address:t.address}]});return n?HH(n):null}async function j3(e,t){const{account:n,...r}=t;return hn(e,{...r,...j3.call({account:n})})}(function(e){function t(n){return gs({address:nV,abi:Yb,args:[n.account],functionName:"getConfigCommitment"})}e.call=t})(j3||(j3={}));async function L3(e,t){return L3.inner(Tc,e,t)}(function(e){async function t(a,s,i){const{account:l,currentConfig:c,nextConfig:u,...f}=i,p=l??s.account,m=(()=>
139{if(typeof p=="object"&&p.source==="multisig")return p})(),h=(()=>{if(c)return c;if(m!=null&&m.config)return m.config})(),y=(()=>{if(m)return m.address;if(typeof p=="string")return p;if(p)return p.address})(),x=await(async()=>{if(h)return za(h);if(!y)throw new Error("A multisig account address or current config is required.");const T=await O4(s,{address:y});if(!T)throw new Error(`No current multisig config is cached for account ${y}. Provide the current config.`);return T})(),C=(()=>{if(m)return{...m,config:x};if(typeof p=="object")return p;if(y)return F3({address:y,...x})})();return await a(s,{...f,...C?{account:C}:{},...e.call({currentConfig:x,nextConfig:u})})}e.inner=t;function n(a){const s=za(a.currentConfig),i=za({owners:a.nextConfig.owners,salt:s.salt,threshold:a.nextConfig.threshold,version:s.version+1n});return gs({address:nV,abi:Yb,args:[s,i.threshold,i.owners],functionName:"updateConfig"})}e.call=n;function r(a){const[s]=Xo({abi:Yb,logs:a,eventName:"MultisigConfigUpdated",strict:!0});if(!s)throw new Error("`MultisigConfigUpdated` event not found.");return s}e.extractEvent=r})(L3||(L3={}));const tke={0:"secp256k1",1:"p256",2:"webAuthn"}
139,nke={true:"limited",false:"unlimited"};async function $3(e,t){return $3.inner(WK,e,t)}(function(e){async function t(r,a,s){var C;const{accessKey:i,admin:l,chainId:c=(C=a.chain)==null?void 0:C.id,expiry:u,limits:f,scopes:p,witness:m,...h}=s,y=h.account??a.account;if(!y)throw new Error("account is required.");if(!c)throw new Error("chainId is required.");const x=await rke(a,{account:y,accessKey:i,chainId:c,admin:l,expiry:u,limits:f,scopes:p,witness:m});return await r(a,{...h,keyAuthorization:x})}e.inner=t;function n(r){const[a]=Xo({abi:Pa,logs:r,eventName:"KeyAuthorized",strict:!0});if(!a)throw new Error("`KeyAuthorized` event not found.");return a}e.extractEvent=n})($3||($3={}));async function z3(e,t){return z3.inner(Tc,e,t)}(function(e){async function t(a,s,i){const{witness:l,...c}=i,u=e.call({witness:l});return await a(s,{...c,...u})}e.inner=t;function n(a){const{witness:s}=a;return gs({address:Do,abi:Pa,functionName:"burnKeyAuthorizationWitness",args:[s]})}e.call=n;function r(a){const[s]=Xo({abi:Pa,logs:a,eventName:"KeyAuthorizationWitnessBurned",strict:!0});if(!s)throw new Error("`KeyAuthorizationWitnessBurned` event not found.");return s}e.extractEvent=r})(z3||(z3={}));async function sm(e,t){const{account:n=e.account,accessKey:r,...a}=t;if(!n)throw new Error("account is required.");const s=nn(n),i=await hn(e,{...a,account:null,...sm.call({account:s.address,accessKey:r})});return{address:i.keyId,keyType:tke[i.signatureType]??"secp256k1",expiry:i.expiry,spendPolicy:nke[`${i.enforceLimits}`],isRevoked:i.isRevoked}}(function(e){function t(n){const{account:r,accessKey:a}=n;return gs({address:Do,abi:Pa,functionName:"getKey",args:[r,td(a)]})}e.call=t})(sm||(sm={}));async function e1(e,t){var f;const{account:n=e.account,accessKey:r,token:a,...s}=t;if(!n)throw new Error("account is required.");const i=nn(n),l=(f=e.chain)==null?void 0:f.hardfork;if(l&&j4e(l,"t3"))return{remaining:await hn(e,{...s,...e1.call({account:i.address,accessKey:r,token:a})}),periodEnd:void 0};const[c,u]=await hn(e,{...s,...e1.callWithPeriod({account:i.address,accessKey:r,token:a})});return{remaining:c,periodEnd:u}}(function(e){function t(r){const{account:a,accessKey:s,token:i}=r;return gs({address:Do,abi:Pa,functionName:"getRemainingLimit",args:[a,td(s),i]})}e.call=t;function n(r){const{account:a,accessKey:s,token:i}=r;return gs({address:Do,abi:Pa,functionName:"getRemainingLimitWithPeriod",args:[a,td(s),i]})}e.callWithPeriod=n})(e1||(e1={}));async function H3(e,t){const{account:n=e.account,accessKey:r,...a}=t;if(!n)throw new Error("account is required.");const s=nn(n);return hn(e,{...a,account:null,...H3.call({account:s.address,accessKey:r})})}(function(e){function t(n){const{account:r,accessKey:a}=n;return gs({address:Do,abi:Pa,functionName:"isAdminKey",args:[r,td(a)]})}e.call=t})(H3||(H3={}));async function K3(e,t){const{account:n=e.account,witness:r,...a}=t;if(!n)throw new Error("account is required.");const s=nn(n);return hn(e,{...a,account:null,...K3.call({account:s.address,witness:r})})}(function(e){function t(n){const{account:r,witness:a}=n;return gs({address:Do,abi:Pa,functionName:"isKeyAuthorizationWitnessBurned",args:[r,a]})}e.call=t})(K3||(K3={}));async function V3(e,t){return V3.inner(Tc,e,t)}(function(e){async function t(a,s,i){const{accessKey:l,...c}=i,u=e.call({accessKey:l});return await a(s,{...c,...u})}e.inner=t;function n(a){const{accessKey:s}=a;return gs({address:Do,abi:Pa,functionName:"revokeKey",args:[td(s)]})}e.call=n;function r(a){const[s]=Xo({abi:Pa,logs:a,eventName:"KeyRevoked",strict:!0});if(!s)throw new Error("`KeyRevoked` event not found.");return s}e.extractEvent=r})(V3||(V3={}));async function nR(e,t){var c;const{chainId:n=(c=e.chain)==null?void 0:c.id}=t,r=t.account??e.account;if(!r)throw new Error("account is required.");if(!n)throw new Error("chainId is required.");const a=nn(r),s=await(async()=>{if("multisig"in t)return t.multisig;if(a.source!=="multisig")return;const u=a;if(!u.config)throw new Error("A multisig config is required to prepare a key authorization.");return{config:u.config}})(),i=lV(a,{...t,chainId:BigInt(n),key:t.accessKey}),l=a.source==="multisig"&&s?Cd({account:a.address,config:s.config,payload:i}):i;return{...t,account:a,chainId:n,multisig:s,signPayload:l}}async function rke(e,t){if("hash"in t&&t.hash||"owner"in t&&t.owner){const f=t,p=f.owner;if(!p||typeof p=="string")throw new Error("A local owner account is required to approve a multisig key authorization.");const h=nn(p).sign;if(!h)throw new Error("A local owner account is required to approve a multisig key authorization.");const y=await(async()=>
139{if("hash"in f&&f.hash){const $=Ir(vr(await h({hash:f.hash})));return{hash:f.hash,signature:$}}const{account:w,owner:v,...g}=f,A=typeof w=="string"?w:w.address,S=await(async()=>{if(typeof w!="string"&&w.config)return w.config;const $=await O4(e,{address:A});if($)return $;throw new Error(`No current multisig config is cached for account ${A}. Provide the current config.`)})(),_=(()=>{if(S.version!==0n)return F3({address:A,...S});const{version:$,...O}=S;return F3({address:"infer",...O})})();if(!Ka(_.address,A))throw new Error("Initial multisig config does not match the account.");const k=await nR(e,{...g,account:_}),R=Ir(vr(await h({hash:k.signPayload}))),{accessKey:D,admin:B,chainId:M,expiry:E,limits:N,scopes:I,witness:F}=k,{accessKeyAddress:z,keyType:U}=R4(D),V=ig({account:_.address,address:z,chainId:BigInt(M),signature:vr({account:_.address,config:S,signatures:[Zm(R)]}),type:U,...F?{witness:F}:{},...B?{isAdmin:!0}:{expiry:E,limits:N,scopes:I}});return{keyAuthorization:yK(V)}})(),x=await e.request({method:"multisig_approveKeyAuthorization",params:[y]}),C=gK(x),T=g4(await(async()=>{if(C.status==="success")return C.keyAuthorization;const w=await T8e({account:C.account,approvals:C.approvals,config:C.config,hash:C.hash});return S8e(C.keyAuthorization,{account:C.account,approvals:w.selectedApprovals.length>0?w.selectedApprovals:w.approvals.slice(0,1),config:C.config})})());if(!T.signature)throw new Error("Expected a signed multisig key authorization.");return{...T,hash:C.hash,multisig:C,status:C.status}}const r="signPayload"in t?t:await nR(e,t),{accessKey:a,account:s,chainId:i,multisig:l,signPayload:c,...u}=r;return U4e(s,{chainId:BigInt(i),key:a,multisig:l,...u})}async function G3(e,t){return G3.inner(Tc,e,t)}(function(e){async function t(a,s,i){const{accessKey:l,token:c,limit:u,...f}=i,p=e.call({accessKey:l,token:c,limit:u});return await a(s,{...f,...p})}e.inner=t;function n(a){const{accessKey:s,token:i,limit:l}=a;return gs({address:Do,abi:Pa,functionName:"updateSpendingLimit",args:[td(s),i,l]})}e.call=n;function r(a){const[s]=Xo({abi:Pa,logs:a,eventName:"SpendingLimitUpdated",strict:!0});if(!s)throw new Error("`SpendingLimitUpdated` event not found.");return s}e.extractEvent=r})(G3||(G3={}));async function q3(e,t){const{account:n,admin:r,hash:a,signature:s,...i}=t;return hn(e,{...i,...q3.call({account:n,admin:r,hash:a,signature:s})})}(function(e){function t(n){const{account:r,admin:a=!0,hash:s,signature:i}=n;return gs({address:A4e,abi:ZK,functionName:a?"verifyKeychainAdmin":"verifyKeychain",args:[r,s,i]})}e.call=t})(q3||(q3={}));function td(e){return typeof e=="string"?e:e.accessKeyAddress}function ake(e){if(!I4(e))return Dc(e);const t=e.blockTimestamp==null?void 0:BigInt(e.blockTimestamp),n=e.multisig,{feePayerSignature:r,gasPrice:a,nonce:s,...i}=J8e(e);return{...i,accessList:i.accessList,...typeof t<"u"&&{blockTimestamp:t},feePayerSignature:r?{r:Je(r.r,{size:32}),s:Je(r.s,{size:32}),v:BigInt(r.v??27),yParity:r.yParity}:void 0,multisig:cV(n),nonce:Number(s),typeHex:CK[i.type],type:i.type}}function ske(e){return{...Bm(e),multisig:cV(e.multisig),...e.status==="pending"?{status:"pending",type:"tempo"}:{}}}function cV(e){if(!e)return;const t=gK(e);if(t.type!=="transaction")throw new Error("Expected a multisig transaction operation.");return t}function ike(e,t){const n=e,r=n.account?nn(n.account):void 0,a=n.owner?nn(n.owner):void 0;if((a==null?void 0:a.type)==="json-rpc")throw new Error("A local owner account is required to approve a multisig transaction.");if(!I4(n))return Vi(e);t&&(n.calls=n.calls??[{to:e.to||(!e.data||e.data==="0x"?"0x0000000000000000000000000000000000000000":void 0),value:e.value,data:e.data}]),n.feePayer===!0&&!n.feePayerSignature&&delete n.feeToken;const{owner:s,signatures:i,...l}=n,c=Q8e({...l,type:"tempo"});t==="estimateGas"&&(c.maxFeePerGas=void 0,c.maxPriorityFeePerGas=void 0),c.to=void 0,c.data=void 0,c.value=void 0;const u=a??r,[f,p]=(()=>{const h=u&&"keyType"in u?u.keyType:u==null?void 0:u.source;return h?h==="webAuthn"?["webAuthn","0x0578"]:["p256","secp256k1"].includes(h)?[h,void 0]:[n.keyType,rR(n.keyData)]:[n.keyType,rR(n.keyData)]})(),m=u&&"accessKeyAddress"in u?u.accessKeyAddress:n.keyId;return r&&(c.from=r.address),{...c,...n.capabilities?{capabilities:n.capabilities}:{},...p?{keyData:p}:{},...m?{keyId:m}:{},...f?{keyType:f}:{},...n.owner?{owner:void 0}:{},...typeof n.feePayer<"u"?{feePayer:typeof n.feePayer=="object"?nn(n.feePayer):n.feePayer}:{},..."feePayerSignature"in n&&n.feePayerSignature!==void 0?{feePayerSignature:n.feePayerSignature}:{}}}function rR(e){if(!e)return e;const t=(e.length-2)/2;return t<=4?e:Je(t,{size:2})}const wu=new Map;async function oke(e){wu.set(e,(wu.get(e)??0)+1),await Promise.resolve();const t=(wu.get(e)??0)>1;return queueMicrotask(()=>{const n=wu.get(e)??0;
139n<=1?wu.delete(e):wu.set(e,n-1)}),t}const lke=25,aR=((e,t)=>iV(e,t)),gg={blockTime:1e3,extendSchema:lce(),formatters:{transaction:F1({exclude:["aaAuthorizationList"],format:ake}),transactionReceipt:AE({format:ske}),transactionRequest:PE({format:ike})},prepareTransactionRequest:[async(e,{client:t,phase:n})=>{var l,c,u,f,p;const r=e;if(r.hash){if(!r.account||typeof r.account=="string"||r.account.source!=="multisig")throw new Error("A local multisig account is required to approve a stored multisig transaction.");if(!r.owner||typeof r.owner=="string")throw new Error("A local owner account is required to approve a stored multisig transaction.");if(r.owner.source!=="root")throw new Error("A Tempo owner account is required to approve a stored multisig transaction.");const m=await ht(t,cg,"getTransaction")({hash:r.hash}),h="multisig"in m?m.multisig:void 0;if(!h)throw new Error("Expected a multisig operation transaction.");if(!Ka(h.account,r.account.address))throw new Error("Multisig operation account does not match the requested account.");const y=XN(h.transaction);if(P8e({account:h.account,config:h.config,transaction:h.transaction}).toLowerCase()!==r.hash.toLowerCase())throw new Error("Multisig operation hash does not match transaction.");return{...y,account:r.account,from:h.account,multisigSimulation:sR({config:h.config,local:r.account}),owner:r.owner}}if(n==="afterFillParameters")return typeof r.gas<"u"&&r.feePayer&&!r.feePayerSignature&&(((l=r.keyAuthorization)==null?void 0:l.signature.type)==="webAuthn"?r.gas=(r.gas??0n)+20000n:((c=r.account)==null?void 0:c.source)==="accessKey"&&(r.gas=(r.gas??0n)+10000n)),r;const a=(()=>{var m;if(((m=r.account)==null?void 0:m.source)==="multisig")return{account:r.account.address,config:r.account.config,local:r.account}})();if(r.owner&&!a)throw new Error("A multisig account is required when an owner is provided.");if(r.owner&&typeof r.owner=="string")throw new Error("A local owner account is required to approve a multisig transaction.");if(r.owner&&r.owner.source!=="root")throw new Error("A Tempo owner account is required to approve a multisig transaction.");const s=!!a&&!!r.owner&&t.transport.multisig===!0;if(a){const{account:m,local:h}=a;if(!m)throw new Error("A multisig account address is required with a current config.");const y=await(async()=>{if(a.config)return a.config;if(!s)return;const x=await ht(t,O4,"getConfig")({address:m});if(!x)throw new Error(`No current multisig config is cached for account ${m}. Provide the current config.`);return x})();if(!y)throw new Error("A multisig config is required to prepare a transaction.");r.from=m,r.multisigSimulation=sR({config:y,local:h})}const i=await(async()=>{if(r.nonceKey==="expiring"||r.nonceKey===yc)return!0;if(typeof r.nonceKey<"u"||a)return!1;if(r.feePayer&&typeof r.nonceKey>"u")return!0;const m=r.account,h=typeof m=="string"?m:m==null?void 0:m.address;return h&&typeof r.nonceKey>"u"?await oke(h.toLowerCase()):!1})();if(s&&typeof r.nonceKey>"u"?(r.nonceKey=Lt(XE(31))+1n,r.nonce=0):i?(r.nonceKey=yc,r.nonce=0,typeof r.validAfter>"u"&&(r.validAfter=uke()),typeof r.validBefore>"u"&&(r.validBefore=Math.floor(Date.now()/1e3)+lke)):typeof r.nonceKey<"u"&&(r.nonce=typeof r.nonce=="number"?r.nonce:0),!r.keyAuthorization&&((u=r.account)==null?void 0:u.source)==="accessKey"){const m=r.account.keyAuthorizationManager;if(m){const h=r.chainId??((f=r.chain)==null?void 0:f.id);if(typeof h<"u"){const y=r.account.address,x=r.account.accessKeyAddress,C={address:y,accessKey:x,chainId:h},T=await m.get(C);if(T){const w=BigInt(Math.floor(Date.now()/1e3));if(T.expiry!=null&&BigInt(T.expiry)<=w)await m.remove(C);else{const v=await ht(t,sm,"getMetadata")({account:y,accessKey:x});Ka(v.address,x)&&!v.isRevoked&&v.expiry>w?await m.remove(C):r.keyAuthorization=T}}}}}return!r.feeToken&&((p=r.chain)!=null&&p.feeToken)&&(r.feeToken=r.chain.feeToken),r},{runAt:["beforeFillTransaction","afterFillParameters"]}],serializers:{transaction:aR,async transactionEnvelope({serializedTransaction:e,transaction:t}){var r;const n=t;if(!n.multisigSimulation)return e;try{zs(e)}catch{if(((r=XN(e).signature)==null?void 0:r.type)==="multisig")return e;throw new Error("A Tempo owner account is required to approve a multisig transaction.")}return await aR({...n,signatures:[...n.signatures??[],e]})}},async verifyHash(e,t){const{address:n,hash:r,signature:a,mode:s}=t,i=(()=>
139{if(typeof a=="string")try{return zs(a)}catch{return}})();if(i){if((i==null?void 0:i.type)==="keychain"&&s==="allowAccessKey"){const l=i.version==="v2"?Wn(un("0x04",r,n)):r,c=(()=>{try{return qi({payload:l,signature:i.inner})}catch{return}})();if(!c)return!1;const u=await sm(e,{account:n,accessKey:c,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});return u.isRevoked||u.expiry<=BigInt(Math.floor(Date.now()/1e3))?!1:v3(i.inner,{address:c,payload:l})}if(i.type==="p256"||i.type==="webAuthn"){const l=await am(e,{address:n,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});if(!l||l==="0xef01007702c00000000000000000000000000000000000")return v3(i,{address:n,payload:r})}}return await ht(e,qm,"verifyHash")({...t,chain:null})}};function sR(e){const{config:t,local:n}=e;return{approvals:dke(t).map(r=>{const a=n==null?void 0:n.owners.find(s=>Ka(s.address,r.owner));return{...cke(a),owner:r.owner}}),config:t}}function cke(e){const t=(()=>{if(e&&typeof e=="object"&&"keyType"in e&&typeof e.keyType=="string")return e.keyType})();return!t||t==="webAuthn"?{keyData:"0x0578",keyType:"webAuthn"}:t==="p256"||t==="secp256k1"?{keyType:t}:{keyData:"0x0578",keyType:"webAuthn"}}function uke(){const t=BigInt(Math.floor(Date.now()/1e3))-60n;return t<=0n?0:Number(BigInt(XE(8))%t)}function dke(e){const t=[...e.owners].sort((a,s)=>Number(s.weight)-Number(a.weight)||a.owner.toLowerCase().localeCompare(s.owner.toLowerCase())),n=[];let r=0;for(const a of t.slice(0,$s)){if(r>=Number(e.threshold))break;n.push(a),r+=Number(a.weight)}return n.sort((a,s)=>a.owner.toLowerCase().localeCompare(s.owner.toLowerCase()))}const iR=j({...gg,id:4217,blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.tempo.xyz"}},contracts:{earnFactory:{address:"0xb5889A96114014d4C032ebD76772c10bF3b97137"},erc4626EngineFactory:{address:"0xd43D00981222a8db444A528E69f19E3cE5A7D2Ff"}},name:"Tempo Mainnet",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.tempo.xyz"],webSocket:["wss://rpc.tempo.xyz"]}}}),fke=j({...gg,id:31318,name:"Tempo Devnet",hardfork:"t3",blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.devnet.tempo.xyz"}},nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.devnet.tempoxyz.dev"],webSocket:["wss://rpc.devnet.tempoxyz.dev"]}},testnet:!0}),pke=j({...gg,id:1337,name:"Tempo",hardfork:"t3",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["http://localhost:8545"]}}}),oR=j({...gg,id:42431,hardfork:"t5",blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.testnet.tempo.xyz"}},contracts:{earnFactory:{address:"0xb5889A96114014d4C032ebD76772c10bF3b97137"},erc4626EngineFactory:{address:"0xd43D00981222a8db444A528E69f19E3cE5A7D2Ff"}},name:"Tempo Testnet (Moderato)",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.moderato.tempo.xyz"],webSocket:["wss://rpc.moderato.tempo.xyz"]}},testnet:!0}),mke=j({id:1559,name:"Tenet",network:"tenet-mainnet",nativeCurrency:{name:"TENET",symbol:"TENET",decimals:18},rpcUrls:{default:{http:["https://rpc.tenet.org"]}},blockExplorers:{default:{name:"TenetScan Mainnet",url:"https://tenetscan.io",apiUrl:"https://tenetscan.io/api"}},testnet:!1}),hke=j({id:752025,name:"Ternoa",nativeCurrency:{name:"Capsule Coin",symbol:"CAPS",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.zkevm.ternoa.network"]}},blockExplorers:{default:{name:"Ternoa Explorer",url:"https://explorer-mainnet.zkevm.ternoa.network"}},testnet:!1}),yke=j({id:7,name:"ThaiChain",nativeCurrency:{name:"TCH",symbol:"TCH",decimals:18},rpcUrls:{default:{http:["https://rpc.thaichain.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp.thaichain.org",apiUrl:"https://exp.thaichain.org/api"}},contracts:{multicall3:{address:"0x0DaD6130e832c21719C5CE3bae93454E16A84826",blockCreated:4806386}},testnet:!1}),bke=j({id:8428,name:"THAT Mainnet",nativeCurrency:{name:"THAT",symbol:"THAT",decimals:18},rpcUrls:{default:{http:["https://api.thatchain.io/mainnet"]}},blockExplorers:{default:{name:"Blockscout",url:"https://that.blockscout.com"}},testnet:!1}),gke=j({id:361,name:"Theta Mainnet",nativeCurrency:{name:"TFUEL",symbol:"TFUEL",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-api.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"Theta Explorer",url:"https://explorer.thetatoken.org"}},testnet:!1}
vendor: 33,574 bytes, line 139
139),xke=j({id:365,name:"Theta Testnet",nativeCurrency:{name:"TFUEL",symbol:"TFUEL",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-api-testnet.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"Theta Explorer",url:"https://testnet-explorer.thetatoken.org"}},testnet:!0}),vke=j({id:108,name:"ThunderCore Mainnet",nativeCurrency:{name:"TT",symbol:"TT",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.thundercore.com"]}},blockExplorers:{default:{name:"ThunderCore Explorer",url:"https://explorer-mainnet.thundercore.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1}),wke=j({id:997,name:"5ireChain Thunder Testnet",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Thunder Explorer",url:"https://testnet.5irescan.io/"}},testnet:!0}),Eke=j({id:62092,name:"TikTrix Testnet",nativeCurrency:{name:"tTTX",symbol:"tTTX",decimals:18},rpcUrls:{default:{http:["https://tiktrix-rpc.xyz"]}},blockExplorers:{default:{name:"TikTrix Testnet Explorer",url:"https://tiktrix.xyz"}},testnet:!0}),kke=j({id:6969,name:"Tomb Mainnet",nativeCurrency:{name:"TOMB",symbol:"TOMB",decimals:18},rpcUrls:{default:{http:["https://rpc.tombchain.com"]}},blockExplorers:{default:{name:"Tomb Explorer",url:"https://tombscout.com"}},testnet:!1}),Cke=j({...Or,id:61166,name:"Treasure",nativeCurrency:{decimals:18,name:"MAGIC",symbol:"MAGIC"},rpcUrls:{default:{http:["https://rpc.treasure.lol"],webSocket:["wss://rpc.treasure.lol/ws"]}},blockExplorers:{default:{name:"Treasure Block Explorer",url:"https://treasurescan.io"}},contracts:{multicall3:{address:"0x2e29fe39496a56856D8698bD43e1dF4D0CE6266a",blockCreated:101}},testnet:!1}),Ake=j({...Or,id:978658,name:"Treasure Topaz Testnet",nativeCurrency:{decimals:18,name:"MAGIC",symbol:"MAGIC"},rpcUrls:{default:{http:["https://rpc.topaz.treasure.lol"],webSocket:["wss://rpc.topaz.treasure.lol/ws"]}},blockExplorers:{default:{name:"Treasure Topaz Block Explorer",url:"https://topaz.treasurescan.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:108112}},testnet:!0}),Pke=j({id:728126428,name:"Tron",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://api.trongrid.io/jsonrpc"]}},blockTime:3e3,blockExplorers:{default:{name:"Tronscan",url:"https://tronscan.org",apiUrl:"https://apilist.tronscanapi.com/api"}}}),Tke=j({id:3448148188,name:"Tron Nile",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://nile.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://nile.tronscan.org"}},testnet:!0}),Ske=j({id:2494104990,name:"Tron Shasta",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://api.shasta.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://shasta.tronscan.org"}},testnet:!0}),Bke=j({id:8,name:"Ubiq Mainnet",nativeCurrency:{name:"UBQ",symbol:"UBQ",decimals:18},rpcUrls:{default:{http:["https://pyrus2.ubiqscan.io"]}},blockExplorers:{default:{name:"Ubiq Scan",url:"https://ubiqscan.io"}},testnet:!1}),_ke=j({id:19991,name:"Ultra EVM",nativeCurrency:{decimals:18,name:"Ultra Token",symbol:"UOS"},rpcUrls:{default:{http:["https://evm.ultra.eosusa.io"]}},blockExplorers:{default:{name:"Ultra EVM Explorer",url:"https://evmexplorer.ultra.io"}}}),Ike=j({id:18881,name:"Ultra EVM Testnet",nativeCurrency:{decimals:18,name:"Ultra Token",symbol:"UOS"},rpcUrls:{default:{http:["https://evm.test.ultra.eosusa.io"]}},blockExplorers:{default:{name:"Ultra EVM Testnet Explorer",url:"https://evmexplorer.testnet.ultra.io"}},testnet:!0}),Nke=j({id:1231,name:"Ultron Mainnet",nativeCurrency:{name:"ULX",symbol:"ULX",decimals:18},rpcUrls:{default:{http:["https://ultron-rpc.net"]}},blockExplorers:{default:{name:"Ultron Scan",url:"https://ulxscan.com"}},testnet:!1}),Rke=j({id:1230,name:"Ultron Testnet",nativeCurrency:{name:"ULX",symbol:"ULX",decimals:18},rpcUrls:{default:{http:["https://ultron-dev.io"]}},blockExplorers:{default:{name:"Ultron Scan",url:"https://explorer.ultron-dev.io"}},testnet:!0}),Yy=1,Oke=j({...$e,id:130,name:"Unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://mainnet.unichain.org/"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz",apiUrl:"https://api.uniscan.xyz/api"}},contracts:{...$e.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[Yy]:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{[Yy]:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{[Yy]:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"}}},sourceId:Yy}),eb=11155111,Mke=j({...$e,id:1301,name:"Unichain Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://sepolia.unichain.org"]}},blockExplorers:{default:{name:"Uniscan",url:"https://sepolia.uniscan.xyz",apiUrl:"https://api-sepolia.uniscan.xyz/api"}},contracts:{...$e.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},portal:{[eb]:{address:"0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD"}},l1StandardBridge:{[eb]:{address:"0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2"}},disputeGameFactory:{[eb]:{address:"0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b"}}},testnet:!0,sourceId:eb}),Dke=j({id:8880,name:"Unique Mainnet",nativeCurrency:{decimals:18,name:"UNQ",symbol:"UNQ"},rpcUrls:{default:{http:["https://rpc.unique.network"]}},blockExplorers:{default:{name:"Unique Subscan",url:"https://unique.subscan.io/"}}}),Fke=j({id:8882,name:"Opal Testnet",nativeCurrency:{decimals:18,name:"OPL",symbol:"OPL"},rpcUrls:{default:{http:["https://rpc-opal.unique.network"]}},blockExplorers:{default:{name:"Opal Subscan",url:"https://opal.subscan.io/"}},testnet:!0}),Uke=j({id:8881,name:"Quartz Mainnet",nativeCurrency:{decimals:18,name:"QTZ",symbol:"QTZ"},rpcUrls:{default:{http:["https://rpc-quartz.unique.network"]}},blockExplorers:{default:{name:"Quartz Subscan",url:"https://quartz.subscan.io/"}}}),jke=j({id:18233,name:"Unreal",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://rpc.unreal-orbit.gelato.digital"]}},blockExplorers:{default:{name:"Unreal Explorer",url:"https://unreal.blockscout.com",apiUrl:"https://unreal.blockscout.com/api/v2"}},testnet:!0,contracts:{multicall3:{address:"0x8b6B0e60D8CD84898Ea8b981065A12F876eA5677",blockCreated:1745}}}),Lke=j({id:7773777,name:"VALYGO NFT",nativeCurrency:{decimals:18,name:"VYO",symbol:"VYO"},rpcUrls:{default:{http:["https://rpc-gw-1.vyoscan.com/ext/bc/2RyzsmGypNQZPby1miwMMV8spTvhgd9qd2peNRzU1mErUQqSSw/rpc","https://rpc-gw-2.vyoscan.com/ext/bc/2RyzsmGypNQZPby1miwMMV8spTvhgd9qd2peNRzU1mErUQqSSw/rpc"],webSocket:["wss://ws.vyoscan.com/ext/bc/2RyzsmGypNQZPby1miwMMV8spTvhgd9qd2peNRzU1mErUQqSSw/ws"]}},blockExplorers:{default:{name:"VYOScan NFT",url:"https://nft.vyoscan.com",apiUrl:"https://nft.vyoscan.com/api"}},contracts:{multicall3:{address:"0x4469693a04BAE365795329a89b24F4Eb1303Ea08"}}}),$ke=j({id:7771777,name:"VALYGO Smartchain",nativeCurrency:{decimals:18,name:"VYO",symbol:"VYO"},rpcUrls:{default:{http:["https://rpc-gw-1.vyoscan.com/ext/bc/2t51dXsuxUvd9teY9TKEJmgxmxMk3CRF88UYTA4HQgjeYZqzSX/rpc","https://rpc-gw-2.vyoscan.com/ext/bc/2t51dXsuxUvd9teY9TKEJmgxmxMk3CRF88UYTA4HQgjeYZqzSX/rpc"],webSocket:["wss://ws.vyoscan.com/ext/bc/2t51dXsuxUvd9teY9TKEJmgxmxMk3CRF88UYTA4HQgjeYZqzSX/ws"]}},blockExplorers:{default:{name:"VYOScan",url:"https://vyoscan.com",apiUrl:"https://vyoscan.com/api"}},contracts:{multicall3:{address:"0xeFa3c632BD275750597cE9ca2346A5becAA0F344"}}}),zke=j({id:1480,name:"Vana",blockTime:6e3,nativeCurrency:{decimals:18,name:"Vana",symbol:"VANA"},rpcUrls:{default:{http:["https://rpc.vana.org/"]}},blockExplorers:{default:{name:"Vana Block Explorer",url:"https://vanascan.io",apiUrl:"https://vanascan.io/api"}},contracts:{multicall3:{address:"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",blockCreated:716763}}}),Hke=j({id:14800,name:"Vana Moksha Testnet",blockTime:6e3,nativeCurrency:{decimals:18,name:"Vana",symbol:"VANA"},rpcUrls:{default:{http:["https://rpc.moksha.vana.org"]}},blockExplorers:{default:{name:"Vana Moksha Testnet",url:"https://moksha.vanascan.io",apiUrl:"https://moksha.vanascan.io/api"}},contracts:{multicall3:{address:"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",blockCreated:732283}},testnet:!0}),Kke=j({id:2040,name:"Vanar Mainnet",nativeCurrency:{name:"VANRY",symbol:"VANRY",decimals:18},rpcUrls:{default:{http:["https://rpc.vanarchain.com"]}},blockExplorers:{default:{name:"Vanar Mainnet Explorer",url:"https://explorer.vanarchain.com/"}},testnet:!1}),Vke=j({id:100009,name:"Vechain",nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},rpcUrls:{default:{http:["https://mainnet.vechain.org"]}},blockExplorers:{default:{name:"Vechain Explorer",url:"https://explore.vechain.org"},vechainStats:{name:"Vechain Stats",url:"https://vechainstats.com"}}}),Gke=j({id:106,name:"Velas EVM Mainnet",nativeCurrency:{name:"VLX",symbol:"VLX",decimals:18},rpcUrls:{default:{http:["https://evmexplorer.velas.com/rpc"]}},blockExplorers:{default:{name:"Velas Explorer",url:"https://evmexplorer.velas.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:55883577}},testnet:!1}),qke=j({id:88,name:"Viction",nativeCurrency:{name:"Viction",symbol:"VIC",decimals:18},rpcUrls:{default:{http:["https://rpc.viction.xyz"]}},blockExplorers:{default:{name:"VIC Scan",url:"https://vicscan.xyz"}},testnet:!1}),Wke=j({id:89,name:"Viction Testnet",nativeCurrency:{name:"Viction",symbol:"VIC",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.viction.xyz"]}},blockExplorers:{default:{name:"VIC Scan",url:"https://testnet.vicscan.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:12170179}},testnet:!0}),Jke=j({id:888888,name:"Vision",nativeCurrency:{name:"VISION",symbol:"VS",decimals:18},rpcUrls:{default:{http:["https://infragrid.v.network/ethereum/compatible"]}},blockExplorers:{default:{name:"Vision Scan",url:"https://visionscan.org"}},testnet:!1}),Zke=j({id:666666,name:"Vision Testnet",nativeCurrency:{name:"VISION",symbol:"VS",decimals:18},rpcUrls:{default:{http:["https://vpioneer.infragrid.v.network/ethereum/compatible"]}},blockExplorers:{default:{name:"Vision Scan",url:"https://visionscan.org/?chain=vpioneer"}},testnet:!0}),Qke=j({id:888,name:"Wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}}),Xke=j({id:999,name:"Wanchain Testnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0}),Yke=j({id:9496,name:"WeaveVM Alphanet",nativeCurrency:{name:"Testnet WeaveVM",symbol:"tWVM",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.wvm.dev"]}},blockExplorers:{default:{name:"WeaveVM Alphanet Explorer",url:"https://explorer.wvm.dev"}},testnet:!0}),e7e=j({id:1111,name:"WEMIX",network:"wemix-mainnet",nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},rpcUrls:{default:{http:["https://api.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://explorer.wemix.com"}}}),t7e=j({id:1112,name:"WEMIX Testnet",network:"wemix-testnet",nativeCurrency:{name:"WEMIX",symbol:"tWEMIX",decimals:18},rpcUrls:{default:{http:["https://api.test.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://testnet.wemixscan.com",apiUrl:"https://testnet.wemixscan.com/api"}},testnet:!0}),n7e=j({id:420420421,name:"Westend Asset Hub",nativeCurrency:{decimals:18,name:"Westies",symbol:"WND"},rpcUrls:{default:{http:["https://westend-asset-hub-eth-rpc.polkadot.io"]}},blockExplorers:{default:{name:"subscan",url:"https://westend-asset-hub-eth-explorer.parity.io"}},testnet:!0}),r7e=j({testnet:!1,name:"Whitechain",blockExplorers:{default:{name:"Whitechain Explorer",url:"https://explorer.whitechain.io"}},id:1875,rpcUrls:{default:{http:["https://rpc.whitechain.io"]}},nativeCurrency:{decimals:18,name:"WhiteBIT Coin",symbol:"WBT"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:25212237}}}),tb=11155111,a7e=j({...$e,id:1874,name:"Whitechain Sepolia",nativeCurrency:{decimals:18,name:"WBT",symbol:"WBT"},blockTime:1e3,rpcUrls:{default:{http:["https://rpc.testnet.whitechain.io"],webSocket:["wss://rpc.testnet.whitechain.io/ws"]}},blockExplorers:{default:{name:"Whitechain Testnet Explorer",url:"https://explorer.testnet.whitechain.io"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},disputeGameFactory:{[tb]:{address:"0xfaa2fAA8912C069c01abc169c33713c79027c833"}},portal:{[tb]:{address:"0xFF9b597b0781457ae6aa7256Ca5ed5839bF7D0C3",blockCreated:11071328}},l1StandardBridge:{[tb]:{address:"0x0c50bE539AB5D72d226038928F2eB25100899DED",blockCreated:11071328}}},testnet:!0,sourceId:tb}),s7e=j({testnet:!0,name:"Whitechain Testnet",blockExplorers:{default:{name:"Whitechain Explorer",url:"https://testnet.whitechain.io"}},id:2625,rpcUrls:{default:{http:["https://rpc-testnet.whitechain.io"]}},nativeCurrency:{decimals:18,name:"WhiteBIT Coin",symbol:"WBT"}}),i7e=j({id:42070,name:"WMC Testnet",nativeCurrency:{name:"WMTx",symbol:"WMTx",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet-base.worldmobile.net"]}},blockExplorers:{default:{name:"WMC Explorer",url:"https://explorer2-base-testnet.worldmobile.net"}},testnet:!0}),t0=1,o7e=j({...$e,id:480,name:"World Chain",network:"worldchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://worldchain-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Worldscan",url:"https://worldscan.org",apiUrl:"https://api.worldscan.org/api"},blockscout:{name:"Blockscout",url:"https://worldchain-mainnet.explorer.alchemy.com",apiUrl:"https://worldchain-mainnet.explorer.alchemy.com/api"}},contracts:{...$e.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[t0]:{address:"0x069c4c579671f8c120b1327a73217D01Ea2EC5ea"}},l2OutputOracle:{[t0]:{address:"0x19A6d1E9034596196295CF148509796978343c5D"}},portal:{[t0]:{address:"0xd5ec14a83B7d95BE1E2Ac12523e2dEE12Cbeea6C"}},l1StandardBridge:{[t0]:{address:"0x470458C91978D2d929704489Ad730DC3E3001113"}}},testnet:!1,sourceId:t0}),n0=11155111,l7e=j({...$e,id:4801,name:"World Chain Sepolia",network:"worldchain-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://worldchain-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Worldscan Sepolia",url:"https://sepolia.worldscan.org",apiUrl:"https://api-sepolia.worldscan.org/api"},blockscout:{name:"Blockscout",url:"https://worldchain-sepolia.explorer.alchemy.com",apiUrl:"https://worldchain-sepolia.explorer.alchemy.com/api"}},contracts:{...$e.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[n0]:{address:"0x8Ec1111f67Dad6b6A93B3F42DfBC92D81c98449A"}},l2OutputOracle:{[n0]:{address:"0xc8886f8BAb6Eaeb215aDB5f1c686BF699248300e"}},portal:{[n0]:{address:"0xFf6EBa109271fe6d4237EeeD4bAb1dD9A77dD1A4"}},l1StandardBridge:{[n0]:{address:"0xd7DF54b3989855eb66497301a4aAEc33Dbb3F8DE"}}},testnet:!0,sourceId:n0}),c7e=j({id:103,name:"WorldLand Mainnet",nativeCurrency:{decimals:18,name:"WLC",symbol:"WLC"},rpcUrls:{default:{http:["https://seoul.worldland.foundation"]}},blockExplorers:{default:{name:"WorldLand Scan",url:"https://scan.worldland.foundation"}},testnet:!1}),u7e=j({id:660279,name:"Xai Mainnet",nativeCurrency:{name:"Xai",symbol:"XAI",decimals:18},rpcUrls:{default:{http:["https://xai-chain.net/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.xai-chain.net"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:222549}},testnet:!1}),d7e=j({id:37714555429,name:"Xai Testnet",nativeCurrency:{name:"sXai",symbol:"sXAI",decimals:18},rpcUrls:{default:{http:["https://testnet-v2.xai-chain.net/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer-v2.xai-chain.net"}},testnet:!0}),f7e=j({id:50,name:"XDC Network",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xdcrpc.com"]}},blockExplorers:{default:{name:"XDCScan",url:"https://xdcscan.com"}},contracts:{multicall3:{address:"0x0B1795ccA8E4eC4df02346a082df54D437F8D9aF",blockCreated:75884020}}}),p7e=j({id:51,name:"Apothem Network",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]}},blockExplorers:{default:{name:"XDCScan",url:"https://testnet.xdcscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59765389}},testnet:!0}),m7e=j({id:1643,name:"XGR Mainnet",nativeCurrency:{name:"XGR",symbol:"XGR",decimals:18},rpcUrls:{default:{http:["https://rpc.xgr.network"]}},blockExplorers:{default:{name:"XGR Explorer",url:"https://explorer.xgr.network"}}}),h7e=j({id:1879,name:"XGR Testnet",nativeCurrency:{name:"XGR",symbol:"XGR",decimals:18},rpcUrls:{default:{http:["https://rpc1.testnet.xgr.network"]}},blockExplorers:{default:{name:"XGR Testnet Explorer",url:"https://explorer.testnet.xgr.network"}},testnet:!0}),y7e=j({id:196,name:"X Layer Mainnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},blockTime:1e3,rpcUrls:{default:{http:["https://xlayerrpc.okx.com"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer",apiUrl:"https://www.oklink.com/api/v5/explorer/xlayer/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:47416}}}),lR=j({id:1952,name:"X1 Testnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://xlayertestrpc.okx.com"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer-test"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:624344}},testnet:!0}),b7e=j({id:3721,name:"Xone Chain Mainnet",nativeCurrency:{decimals:18,name:"XOC",symbol:"XOC"},rpcUrls:{default:{http:["https://rpc.xone.org"]}},blockExplorers:{default:{name:"Xone Mainnet Explorer",url:"https://xonescan.com",apiUrl:"http://api.xonescan.com/api"}},testnet:!1}),g7e=j({id:33772211,name:"Xone Chain Testnet",nativeCurrency:{decimals:18,name:"XOC",symbol:"XOC"},rpcUrls:{default:{http:["https://rpc-testnet.xone.org","https://rpc-testnet.xone.plus","https://rpc-testnet.knight.center"]}},blockExplorers:{default:{name:"Xone Testnet Explorer",url:"https://testnet.xonescan.com",apiUrl:"http://api.testnet.xonescan.com/api"}},testnet:!0}),x7e=j({id:20250217,name:"Xphere Mainnet",nativeCurrency:{decimals:18,name:"XP",symbol:"XP"},rpcUrls:{default:{http:["https://en-bkk.x-phere.com"]}},blockExplorers:{default:{name:"Xphere Tamsa Explorer",url:"https://xp.tamsa.io"}},testnet:!1}),v7e=j({id:1998991,name:"Xphere Testnet",nativeCurrency:{decimals:18,name:"XPT",symbol:"XPT"},rpcUrls:{default:{http:["http://testnet.x-phere.com"]}},blockExplorers:{default:{name:"Xphere Tamsa Explorer",url:"https://xpt.tamsa.io"}},testnet:!0}),w7e=j({id:37,name:"CONX Chain",nativeCurrency:{decimals:18,name:"XPLA",symbol:"XPLA"},rpcUrls:{default:{http:["https://dimension-evm-rpc.xpla.dev"]}},blockExplorers:{default:{name:"CONX Explorer",url:"https://explorer.conx.xyz"}},testnet:!1}),E7e=j({id:273,name:"XR One",nativeCurrency:{decimals:18,name:"XR1",symbol:"XR1"},rpcUrls:{default:{http:["https://xr1.calderachain.xyz/http"],webSocket:["wss://xr1.calderachain.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://xr1.calderaexplorer.xyz"}},testnet:!1}),k7e=j({id:144e4,name:"XRPL EVM",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.xrplevm.org"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.xrplevm.org",apiUrl:"https://explorer.xrplevm.org/api/v2"}},testnet:!1}),C7e=j({id:1440002,name:"XRPL EVM Devnet",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.xrplevm.org/"]},public:{http:["https://rpc.xrplevm.org/"]}},blockExplorers:{default:{name:"XRPLEVM Devnet Explorer",url:"https://explorer.xrplevm.org/"}},contracts:{multicall3:{address:"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31",blockCreated:15237286}},testnet:!0}),A7e=j({id:1449e3,name:"XRPL EVM Testnet",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.xrplevm.org"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.testnet.xrplevm.org",apiUrl:"https://explorer.testnet.xrplevm.org/api/v2"}},contracts:{multicall3:{address:"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31",blockCreated:492302}},testnet:!0}),P7e=j({id:2730,name:"XR Sepolia",nativeCurrency:{decimals:18,name:"tXR",symbol:"tXR"},rpcUrls:{default:{http:["https://xr-sepolia-testnet.rpc.caldera.xyz/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://xr-sepolia-testnet.explorer.caldera.xyz"}},testnet:!0}),T7e=j({id:6423,name:"YNX Testnet",nativeCurrency:{decimals:18,name:"YNXT",symbol:"YNXT"},rpcUrls:{default:{http:["https://evm.ynxweb4.com"]}},blockExplorers:{default:{name:"YNX Explorer",url:"https://explorer.ynxweb4.com"}},testnet:!0}),S7e=j({id:50005,name:"Yooldo Verse",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.yooldo-verse.xyz"]}},blockExplorers:{default:{name:"Yooldo Verse Explorer",url:"https://explorer.yooldo-verse.xyz"}}}),B7e=j({id:50006,name:"Yooldo Verse Testnet",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.yooldo-verse.xyz"]}},blockExplorers:{default:{name:"Yooldo Verse Testnet Explorer",url:"https://explorer.testnet.yooldo-verse.xyz"}},testnet:!0}),_7e=j({id:21072026,name:"Zagros",nativeCurrency:{decimals:18,name:"Zagros",symbol:"ZAGROS"},rpcUrls:{default:{http:["https://rpc.zagros.network","https://rpc.zagrosnetwork.com"],webSocket:["wss://rpc.zagros.network/ws"]}},blockExplorers:{default:{name:"ZagrosRadar",url:"https://zagrosradar.com",apiUrl:"https://zagrosradar.com/api/v1"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:51}}}),I7e=j({id:8408,name:"ZenChain Testnet",nativeCurrency:{decimals:18,name:"ZTC",symbol:"ZTC"},rpcUrls:{default:{http:["https://zenchain-testnet.api.onfinality.io/public"],webSocket:["wss://zenchain-testnet.api.onfinality.io/public-ws"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:230019}},blockExplorers:{default:{name:"Zentrace",url:"https://zentrace.io"}},testnet:!0}),N7e=j({id:383414847825,name:"Zeniq Mainnet",nativeCurrency:{name:"ZENIQ",symbol:"ZENIQ",decimals:18},rpcUrls:{default:{http:["https://api.zeniq.network"]}},blockExplorers:{default:{name:"Zeniq Explorer",url:"https://zeniqscan.com"}},testnet:!1}),R7e=j({id:543210,name:"Zero Network",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zerion.io/v1/zero"]}},blockExplorers:{default:{name:"Zero Network Explorer",url:"https://explorer.zero.network"}},testnet:!1}),O7e=j({id:7e3,name:"ZetaChain",nativeCurrency:{decimals:18,name:"Zeta",symbol:"ZETA"},rpcUrls:{default:{http:["https://zetachain-evm.blockpi.network/v1/rpc/public"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1632781}},blockExplorers:{default:{name:"ZetaScan",url:"https://zetascan.com"}},testnet:!1}),M7e=j({id:7001,name:"ZetaChain Athens Testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2715217}},blockExplorers:{default:{name:"ZetaScan",url:"https://testnet.zetascan.com"}},testnet:!0}),D7e=j({id:1337803,name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0}),F7e=j({id:32769,name:"Zilliqa",network:"zilliqa",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.zilliqa.com"}},testnet:!1}),U7e=j({id:33101,name:"Zilliqa Testnet",network:"zilliqa-testnet",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://dev-api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.testnet.zilliqa.com"}},testnet:!0}),Hw=1,j7e=j({...$e,id:48900,name:"Zircuit Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.zircuit.com"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.zircuit.com"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{[Hw]:{address:"0x92Ef6Af472b39F1b363da45E35530c24619245A4"}},portal:{[Hw]:{address:"0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"}},l1StandardBridge:{[Hw]:{address:"0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"}}},testnet:!1}),Kw=11155111,L7e=j({...$e,id:48898,name:"Zircuit Garfield Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://garfield-testnet.zircuit.com/"]}},blockExplorers:{default:{name:"Zircuit Garfield Testnet Explorer",url:"https://explorer.garfield-testnet.zircuit.com"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{[Kw]:{address:"0xd69D3AC5CA686cCF94b258291772bc520FEAf211"}},portal:{[Kw]:{address:"0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21"}},l1StandardBridge:{[Kw]:{address:"0x87a7E2bCA9E35BA49282E832a28A6023904460D8"}}},testnet:!0}),$7e=j({id:42766,name:"ZKFair Mainnet",network:"zkfair-mainnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://scan.zkfair.io",apiUrl:"https://scan.zkfair.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6090959}},testnet:!1}),z7e=j({id:43851,name:"ZKFair Testnet",network:"zkfair-testnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://testnet-rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://testnet-scan.zkfair.io"}},testnet:!0}),H7e=j({id:810180,name:"zkLink Nova",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zklink.io"]}},blockExplorers:{default:{name:"zkLink Nova Block Explorer",url:"https://explorer.zklink.io"}}}),K7e=j({id:810181,name:"zkLink Nova Sepolia Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zklink.io"]}},blockExplorers:{default:{name:"zkLink Nova Block Explorer",url:"https://sepolia.explorer.zklink.io"}},testnet:!0}),cR=j({...Or,blockTime:200,id:324,name:"ZKsync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"ZKsync Explorer",url:"https://explorer.zksync.io/",apiUrl:"https://block-explorer-api.mainnet.zksync.io/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:3908235},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:45659388}}}),uR=j({...Or,id:260,name:"ZKsync InMemory Node",network:"zksync-in-memory-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8011"]}},testnet:!0}),V7e=j({...Or,id:272,name:"ZKsync CLI Local Custom Hyperchain",nativeCurrency:{name:"BAT",symbol:"BAT",decimals:18},rpcUrls:{default:{http:["http://localhost:15200"],webSocket:["ws://localhost:15201"]}},blockExplorers:{default:{name:"ZKsync explorer",url:"http://localhost:15005/",apiUrl:"http://localhost:15005/api"}},testnet:!0}),G7e=j({...Or,id:270,name:"ZKsync CLI Local Hyperchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:15100"],webSocket:["ws://localhost:15101"]}},blockExplorers:{default:{name:"ZKsync explorer",url:"http://localhost:15005/",apiUrl:"http://localhost:15005/api"}},testnet:!0}),q7e=j({id:9,name:"ZKsync CLI Local Hyperchain L1",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:15045"]}},blockExplorers:{default:{name:"Blockscout",url:"http://localhost:15001/",apiUrl:"http://localhost:15001/api/v2"}},testnet:!0}),dR=j({...Or,id:270,name:"ZKsync CLI Local Node",network:"zksync-cli-local-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:3050"]}},testnet:!0}),fR=j({...Or,blockTime:200,id:300,name:"ZKsync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"ZKsync Explorer",url:"https://sepolia.explorer.zksync.io/",blockExplorerApi:"https://block-explorer-api.sepolia.zksync.dev/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:3855712}},testnet:!0}),W7e=j({id:375,name:"zkXPLA Mainnet",network:"zkxpla",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zkxpla.io"]}},blockExplorers:{default:{name:"zkXPLA Mainnet Explorer",url:"https://explorer.zkxpla.io",apiUrl:"https://explorer.zkxpla.io/api"}},testnet:!1}),J7e=j({id:475,name:"zkXPLA Testnet",network:"zkxpla-testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet-rpc.zkxpla.io"]}},blockExplorers:{default:{name:"zkXPLA Testnet Explorer",url:"https://testnet-explorer.zkxpla.io",apiUrl:"https://testnet-explorer.zkxpla.io/api"}},testnet:!0}),r0=1,Z7e=j({...$e,id:7777777,name:"Zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy",apiUrl:"https://explorer.zora.energy/api"}},contracts:{...$e.contracts,disputeGameFactory:{[r0]:{address:"0xB0F15106fa1e473Ddb39790f197275BC979Aa37e"}},l2OutputOracle:{[r0]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882},portal:{[r0]:{address:"0x1a0ad011913A150f69f6A19DF447A0CfD9551054"}},l1StandardBridge:{[r0]:{address:"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631"}}},sourceId:r0}),nb=11155111,Q7e=j({...$e,id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/",apiUrl:"https://sepolia.explorer.zora.energy/api"}},contracts:{...$e.contracts,l2OutputOracle:{[nb]:{address:"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160},portal:{[nb]:{address:"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f"}},l1StandardBridge:{[nb]:{address:"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB"}}},sourceId:nb,testnet:!0}),pR=5,X7e=j({...$e,id:999,name:"Zora Goerli Testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy",apiUrl:"https://testnet.explorer.zora.energy/api"}},contracts:{...$e.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123},portal:{[pR]:{address:"0xDb9F51790365e7dc196e7D072728df39Be958ACe"}}},sourceId:pR,testnet:!0}),uV=Object.freeze(Object.defineProperty({__proto__:null,abey:mce,abstract:ade,abstractTestnet:sde,acala:ide,acria:ode,adf:lde,adi:cde,agungTestnet:ude,aioz:dde,alephZero:fde,alephZeroTestnet:pde,alienx:mde,alienxHalTestnet:hde,alpenTestnet:yde,ancient8:wde,ancient8Sepolia:Ede,anvil:kde,apeChain:Ade,apexTestnet:Pde,apollo:Tde,arbitrum:Sde,arbitrumGoerli:Bde,arbitrumNova:_de,arbitrumSepolia:Ide,arc:Nde,arcTestnet:Rde,arenaz:Ode,areonNetwork:Mde,areonNetworkTestnet:Dde,areum:Fde,artelaTestnet:Ude,arthera:jde,artheraTestnet:Lde,assetChain:$de,assetChainTestnet:zde,astar:Hde,astarZkEVM:Kde,astarZkyoto:Vde,atletaOlympia:Gde,aurora:qde,auroraTestnet:Wde,auroria:Jde,autheoTestnet:Zde,avalanche:Qde,avalancheFuji:Xde,b3:efe,b3Sepolia:nfe,bahamut:rfe,base
139:Az,baseGoerli:ife,basePreconf:afe,baseSepolia:Pz,baseSepoliaPreconf:ofe,basecampTestnet:sfe,battlechain:lfe,battlechainTestnet:cfe,beam:ufe,beamTestnet:dfe,bearNetworkChainMainnet:ffe,bearNetworkChainTestnet:pfe,berachain:mfe,berachainBepolia:hfe,berachainTestnet:yfe,berachainTestnetbArtio:bfe,bevmMainnet:gfe,bifrost:xfe,birdlayer:vfe,bitTorrent:Tfe,bitTorrentTestnet:Sfe,bitgert:wfe,bitkub:Efe,bitkubTestnet:kfe,bitlayer:Cfe,bitlayerTestnet:Afe,bitrock:Pfe,blast:Bfe,blastSepolia:Ife,bob:Nfe,bobSepolia:Mfe,boba:Rfe,bobaSepolia:Ofe,boolBetaMainnet:Dfe,botanix:Ffe,botanixTestnet:Ufe,bounceBit:jfe,bounceBitTestnet:Lfe,bronos:$fe,bronosTestnet:zfe,bsc:Hfe,bscGreenfield:Kfe,bscTestnet:Vfe,bsquared:Gfe,bsquaredTestnet:qfe,btr:Wfe,btrTestnet:Jfe,bxn:Zfe,bxnTestnet:Qfe,cannon:Xfe,canto:Yfe,celo:upe,celoAlfajores:dpe,celoSepolia:fpe,chang:ppe,chiliz:mpe,chips:hpe,citrate:ype,citrea:bpe,citreaTestnet:gpe,classic:xpe,codex:vpe,codexTestnet:wpe,coinbit:Epe,coinex:kpe,confluxESpace:Cpe,confluxESpaceTestnet:Ape,coreDao:Ppe,coreTestnet1:Tpe,coreTestnet2:Spe,corn:_pe,cornTestnet:Npe,cpchain:Rpe,crab:Ope,creatorTestnet:Mpe,creditCoin3Devnet:Dpe,creditCoin3Mainnet:Fpe,creditCoin3Testnet:Upe,cronos:jpe,cronosTestnet:Lpe,cronoszkEVM:$pe,cronoszkEVMTestnet:zpe,crossbell:Hpe,crossfi:Kpe,curtis:Vpe,cyber:Gpe,cyberTestnet:qpe,dailyNetwork:Wpe,dailyNetworkTestnet:Jpe,darwinia:Zpe,datahavenTestnet:Qpe,dbkchain:Xpe,dchain:Ype,dchainTestnet:e0e,defiOracleMetaMainnet:r0e,defichainEvm:t0e,defichainEvmTestnet:n0e,degen:a0e,dfk:s0e,diode:i0e,disChain:o0e,dodochainTestnet:l0e,dogechain:c0e,domaTestnet:u0e,donatuz:d0e,dosChain:f0e,dosChainTestnet:p0e,dreyerxMainnet:m0e,dreyerxTestnet:y0e,dustboyIoT:b0e,dymension:g0e,eCanna:x0e,eCannaTestnet:v0e,eden:w0e,edexa:E0e,edexaTestnet:k0e,edgeless:C0e,edgelessTestnet:A0e,edgeware:P0e,edgewareTestnet:T0e,eduChain:S0e,eduChainTestnet:B0e,elastos:_0e,elastosTestnet:I0e,electroneum:N0e,electroneumTestnet:R0e,elysiumTestnet:O0e,energy:M0e,eni:D0e,eniTestnet:F0e,enuls:U0e,eon:j0e,eos:L0e,eosTestnet:$0e,eteria:z0e,etherlink:H0e,etherlinkShadownetTestnet:K0e,etherlinkTestnet:V0e,ethernity:G0e,etp:q0e,evmos:W0e,evmosTestnet:J0e,excelonMainnet:Z0e,expanse:Q0e,exsat:X0e,exsatTestnet:Y0e,fantom:eme,fantomSonicTestnet:tme,fantomTestnet:nme,fibo:rme,filecoin:ame,filecoinCalibration:sme,filecoinHyperspace:ime,fireChain:pce,flame:ome,flare:lme,flareTestnet:cme,flowMainnet:ume,flowPreviewnet:dme,flowTestnet:fme,fluence:pme,fluenceStage:mme,fluenceTestnet:hme,fluent:yme,fluentDevnet:bme,fluentTestnet:gme,form:xme,formTestnet:wme,forma:vme,formicarium:xge,forta:Eme,foundry:kme,fraxtal:Cme,fraxtalTestnet:Ame,funkiMainnet:Tme,funkiSepolia:Bme,fuse:_me,fuseSparknet:Ime,fusion:Nme,fusionTestnet:Rme,garnet:Ome,gatechain:Mme,geist:Dme,genesys:Fme,gensyn:Ume,giwaSepolia:Bz,giwaSepoliaPreconf:jme,glideL1Protocol:Lme,glideL2Protocol:$me,gnosis:zme,gnosisChiado:Hme,goChain:Gme,goat:Kme,gobi:Vme,godwoken:qme,goerli:Wme,graphite:Jme,graphiteTestnet:Zme,grav:Qme,gravity:Xme,gunz:Yme,guruNetwork:ehe,guruTestnet:the,ham:nhe,happychainTestnet:rhe,haqqMainnet:ahe,haqqTestedge2:she,hardhat:ihe,harmonyOne:ohe,hashkey:lhe,hashkeyTestnet:che,hausTestnet:uhe,haustTestnet:dhe,hedera:fhe,hederaPreviewnet:phe,hederaTestnet:mhe,hela:hhe,heliosTestnet:yhe,hemi:bhe,hemiSepolia:ghe,henesys:xhe,holesky:vhe,hoodi:whe,horizenTestnet:Ehe,hpb:khe,hpp:Che,hppSepolia:Ahe,huddle01Mainnet:The,huddle01Testnet:Bhe,humanity:_he,humanityTestnet:Ihe,humanode:Nhe,humanodeTestnet5:Rhe,hychain:Ohe,hychainTestnet:Mhe,hyperEvm:eN,hyperliquid:eN,hyperliquidEvmTestnet:Dhe,hyveChain:Fhe,iSunCoin:eye,icbNetwork:Uhe,idchain:jhe,igra:Lhe,immutableZkEvm:$he,immutableZkEvmTestnet:zhe,inEVM:Hhe,initVerse:Khe,initVerseGenesis:Vhe,injective:Ghe,injectiveTestnet:qhe,ink:Whe,inkSepolia:Jhe,iota:Zhe,iotaTestnet:Qhe,iotex:Xhe,iotexTestnet:Yhe,jasmyChain:tye,jasmyChainTestnet:nye,jbc:rye,jbcTestnet:aye,jocMainnet:sye,jocTestnet:iye,jovay:oye,jovaySepolia:lye,juneo:cye,juneoBCH1Chain:uye,juneoDAI1Chain:dye,juneoDOGE1Chain:fye,juneoEUR1Chain:pye,juneoGLD1Chain:mye,juneoLINK1Chain:hye,juneoLTC1Chain:yye,juneoSGD1Chain:gye,juneoSocotraTestnet:xye,juneoUSD1Chain:vye,juneoUSDT1Chain:wye,juneomBTC1Chain:bye,kaia:Eye,kairos:kye,kakarotSepolia:Cye,kakarotStarknetSepolia:Aye,kardiaChain:Pye,karura:Tye,katana:Sye,kava:Bye,kavaTestnet:_ye,kcc:Iye,kii:Nye,kiiTestnetOro:Rye,kinto:Oye,klaytn:Mye,klaytnBaobab:Dye,koi:Fye,kroma:Uye,kromaSepoli
139a:jye,krown:Lye,l3x:$ye,l3xTestnet:zye,ladyChain:Hye,lavita:Kye,lens:Vye,lensTestnet:Gye,lestnet:qye,lightlinkPegasus:Wye,lightlinkPhoenix:Jye,linea:O1e,lineaGoerli:M1e,lineaSepolia:D1e,lineaTestnet:F1e,lisk:U1e,liskSepolia:j1e,loadAlphanet:L1e,localhost:$1e,loop:z1e,lukso:H1e,luksoTestnet:K1e,lumiaMainnet:V1e,lumiaTestnet:G1e,lumoz:q1e,lumozTestnet:W1e,luxeports:J1e,lycan:Z1e,lyra:Q1e,mainnet:X1e,mandala:Y1e,manta:ege,mantaSepoliaTestnet:tge,mantaTestnet:nge,mantle:rge,mantleSepoliaTestnet:age,mantleTestnet:sge,mantraDuKongEVMTestnet:ige,mantraEVM:oge,mapProtocol:lge,marooTestnet:cge,marsCredit:uge,matchain:dge,matchainTestnet:fge,mchVerse:pge,megaeth:mge,megaethTestnet:hge,mekong:yge,meld:bge,memecore:gge,merlin:vge,merlinErigonTestnet:wge,metachain:Ege,metachainIstanbul:kge,metadium:Cge,metalL2:Age,meter:Pge,meterTestnet:Tge,metis:Sge,metisGoerli:Bge,metisSepolia:_ge,mev:Ige,mevTestnet:Nge,mezo:Rge,mezoTestnet:Oge,mint:Mge,mintSepoliaTestnet:Dge,mitosisTestnet:Fge,mizuhikiTestnetAwaji:Uge,mode:jge,modeTestnet:Lge,monad:$ge,monadTestnet:zge,moonbaseAlpha:Hge,moonbeam:Kge,moonbeamDev:Vge,moonriver:Gge,morph:qge,morphHolesky:Wge,morphSepolia:Jge,morphTachyon:Zge,morphTachyonTestnet:Qge,nahmii:Xge,nautilus:Yge,near:exe,nearTestnet:txe,neonDevnet:nxe,neonMainnet:rxe,neoxMainnet:axe,neoxT4:sxe,newton:ixe,nexi:oxe,nexilix:lxe,nibiru:cxe,nitrographTestnet:uxe,nomina:dxe,oasisTestnet:fxe,oasys:pxe,odysseyTestnet:mxe,okc:hxe,omax:yxe,omni:bxe,omniOmega:gxe,oneWorld:xxe,oortMainnetDev:vxe,opBNB:wxe,opBNBTestnet:Exe,openledger:kxe,optimism:Cxe,optimismGoerli:Axe,optimismSepolia:Pxe,optopia:Txe,optopiaTestnet:Sxe,orderly:Bxe,orderlySepolia:_xe,otimDevnet:Ixe,palm:Nxe,palmTestnet:Rxe,paseoPassetHub:Oxe,peaq:Mxe,pgn:Dxe,pgnTestnet:Fxe,phoenix:Uxe,planq:jxe,plasma:Lxe,plasmaDevnet:$xe,plasmaTestnet:zxe,playfiAlbireo:Hxe,plinga:Kxe,plume:Gxe,plumeDevnet:Wxe,plumeMainnet:Zxe,plumeSepolia:Xxe,plumeTestnet:eve,polterTestnet:tve,polygon:nve,polygonAmoy:rve,polygonMumbai:ave,polygonZkEvm:sve,polygonZkEvmCardona:ive,polygonZkEvmTestnet:ove,polynomial:lve,polynomialSepolia:cve,potos:uve,potosTestnet:dve,premiumBlockTestnet:fve,pulsechain:pve,pulsechainV4:mve,pumpfiTestnet:hve,pyrope:yve,qMainnet:gve,qTestnet:xve,ql1:bve,quai:vve,quaiTestnet:wve,rabbitChainTestnet:Eve,radius:kve,radiusTestnet:Cve,reactiveTestnet:Ave,real:Pve,redbellyMainnet:Tve,redbellyTestnet:Sve,reddio:Bve,reddioSepolia:_ve,redstone:Ive,rei:Nve,reyaNetwork:Rve,rise:Ove,riseTestnet:Mve,rivalz:Dve,robinhood:Fve,robinhoodTestnet:Uve,rollux:jve,rolluxTestnet:Lve,ronin:$ve,root:zve,rootPorcini:Hve,rootstock:Kve,rootstockTestnet:Vve,rss3:Gve,rss3Sepolia:qve,saakuru:Wve,saga:Jve,saigon:Zve,sanko:Qve,sapphire:Xve,sapphireTestnet:Yve,satoshiVM:e2e,satoshiVMTestnet:t2e,scroll:n2e,scrollSepolia:r2e,sei:a2e,seiTestnet:i2e,seismicDevnet:s2e,sentrix:o2e,sentrixTestnet:l2e,sepolia:c2e,shape:u2e,shapeSepolia:f2e,shardeum:p2e,shardeumSphinx:m2e,shibarium:h2e,shibariumTestnet:y2e,shiden:b2e,shimmer:g2e,shimmerTestnet:x2e,sidraChain:v2e,silentData:w2e,silicon:E2e,siliconSepolia:k2e,sixProtocol:C2e,skaleBase:F2e,skaleBaseSepoliaTestnet:U2e,skaleBlockBrawlers:A2e,skaleCalypso:P2e,skaleCalypsoTestnet:T2e,skaleCryptoBlades:S2e,skaleCryptoColosseum:B2e,skaleEuropa:_2e,skaleEuropaTestnet:I2e,skaleExorde:N2e,skaleHumanProtocol:R2e,skaleNebula:O2e,skaleNebulaTestnet:M2e,skaleRazor:D2e,skaleTitan:j2e,skaleTitanTestnet:L2e,sketchpad:$2e,snax:z2e,snaxTestnet:H2e,somnia:K2e,somniaTestnet:V2e,soneium:G2e,soneiumMinato:q2e,songbird:W2e,songbirdTestnet:J2e,sonic:Z2e,sonicBlazeTestnet:Q2e,sonicTestnet:X2e,sophon:Y2e,sophonTestnet:e6e,sova:t6e,sovaSepolia:n6e,spicy:r6e,stable:a6e,stableTestnet:s6e,statusNetworkSepolia:dN,statusSepolia:dN,step:i6e,story:o6e,storyAeneid:l6e,storyOdyssey:c6e,storyTestnet:u6e,stratis:d6e,subtensorEvm:f6e,superlumio:p6e,superposition:m6e,superseed:h6e,superseedSepolia:y6e,surgeTestnet:b6e,swan:g6e,swanProximaTestnet:x6e,swanSaturnTestnet:v6e,swellchain:w6e,swellchainTestnet:E6e,swissdlt:k6e,syscoin:C6e,syscoinTestnet:A6e,tac:P6e,tacSPB:T6e,taiko:S6e,taikoHekla:B6e,taikoHoodi:_6e,taikoJolnir:I6e,taikoKatla:N6e,taikoTestnetSepolia:R6e,taraxa:O6e,taraxaTestnet:M6e,teaSepolia:D6e,telcoinTestnet:F6e,telos:U6e,telosTestnet:j6e,tempo:iR,tempoDevnet:fke,tempoLocalnet:pke,tempoMainnet:iR,tempo
139Moderato:oR,tempoTestnet:oR,tenet:mke,ternoa:hke,thaiChain:yke,that:bke,theta:gke,thetaTestnet:xke,thunderCore:vke,thunderTestnet:wke,tiktrixTestnet:Eke,tomb:kke,treasure:Cke,treasureTopaz:Ake,tron:Pke,tronNile:Tke,tronShasta:Ske,ubiq:Bke,ultra:_ke,ultraTestnet:Ike,ultron:Nke,ultronTestnet:Rke,unichain:Oke,unichainSepolia:Mke,unique:Dke,uniqueOpal:Fke,uniqueQuartz:Uke,unreal:jke,valygoNft:Lke,valygoSmartchain:$ke,vana:zke,vanaMoksha:Hke,vanar:Kke,vechain:Vke,velas:Gke,viction:qke,victionTestnet:Wke,vision:Jke,visionTestnet:Zke,wanchain:Qke,wanchainTestnet:Xke,weaveVMAlphanet:Yke,wemix:e7e,wemixTestnet:t7e,westendAssetHub:n7e,whitechain:r7e,whitechainSepolia:a7e,whitechainTestnet:s7e,wmcTestnet:i7e,worldLand:c7e,worldchain:o7e,worldchainSepolia:l7e,x1Testnet:lR,xLayer:y7e,xLayerTestnet:lR,xai:u7e,xaiTestnet:d7e,xdc:f7e,xdcTestnet:p7e,xgr:m7e,xgrTestnet:h7e,xoneMainnet:b7e,xoneTestnet:g7e,xphereMainnet:x7e,xphereTestnet:v7e,xpla:w7e,xrOne:E7e,xrSepolia:P7e,xrplevm:k7e,xrplevmDevnet:C7e,xrplevmTestnet:A7e,ynxTestnet:T7e,yooldoVerse:S7e,yooldoVerseTestnet:B7e,zagros:_7e,zenchainTestnet:I7e,zeniq:N7e,zeroG:cce,zeroGGalileoTestnet:uce,zeroGMainnet:dce,zeroGTestnet:fce,zeroNetwork:R7e,zetachain:O7e,zetachainAthensTestnet:M7e,zhejiang:D7e,zilliqa:F7e,zilliqaTestnet:U7e,zircuit:j7e,zircuitGarfieldTestnet:L7e,zkFair:$7e,zkFairTestnet:z7e,zkLinkNova:H7e,zkLinkNovaSepoliaTestnet:K7e,zkSync:cR,zkSyncInMemoryNode:uR,zkSyncLocalNode:dR,zkSyncSepoliaTestnet:fR,zkXPLA:W7e,zkXPLATestnet:J7e,zksync:cR,zksyncInMemoryNode:uR,zksyncLocalCustomHyperchain:V7e,zksyncLocalHyperchain:G7e,zksyncLocalHyperchainL1:q7e,zksyncLocalNode:dR,zksyncSepoliaTestnet:fR,zora:Z7e,zoraSepolia:Q7e,zoraTestnet:X7e},Symbol.toStringTag,{value:"Module"})),Y7e=Object.values(uV).filter(e=>typeof e=="object"&&e!==null&&typeof e.id=="number"&&typeof e.name=="string");function im(e){var t;return((t=Y7e.find(n=>n.id===e))==null?void 0:t.name)??`Chain ${e}`}const Gs=e=>Object.values(uV).find(t=>(t==null?void 0:t.id)===e),eCe={1:"https://ethereum-rpc.publicnode.com",1514:void 0,4217:"https://rpc.tempo.xyz",4663:"https://rpc.mainnet.chain.robinhood.com",5042:"https://rpc.mainnet.arc.io",8453:void 0,10200:void 0,42161:void 0,84532:void 0,421614:void 0,5042002:"https://rpc.testnet.arc.network",11155111:void 0};function Sd(e){var n;return eCe[e]||((n=Gs(e))==null?void 0:n.rpcUrls.default.http[0])}function tCe(e){var t;return((t=Gs(e))==null?void 0:t.testnet)===!0}function t1(e,t){return tCe(e)===(t==="testnet")}const nCe=8e3;function rCe(e,t){return e>=t&&t>0?{label:"Confirmed",dotClass:"bg-green-400 animate-pulse",barClass:"bg-green-400"}:e>0?{label:"In Progress",dotClass:"bg-amber-400",barClass:"bg-amber-400"}:{label:"Pending",dotClass:"bg-red-400",barClass:"bg-red-400"}}async function aCe(e){const t=e.toLowerCase(),n=Ht.getAllSourceChains();try{const r=await Promise.any(n.map(async a=>{var u,f;if(!Gs(a))throw new Error("Chain not supported:"+a);const i=Sd(a);if(!i)throw new Error("No RPC URL for chain:"+a);const l=new AbortController,c=setTimeout(()=>l.abort(),nCe);try{const p=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:"eth_getTransactionByHash",params:[t],id:1}),signal:l.signal});if(!p.ok)throw new Error(`HTTP Error on chain ${a}`);if(((f=(u=(await p.json()).result)==null?void 0:u.hash)==null?void 0:f.toLowerCase())===t)return a;throw new Error(`Tx not found on chain ${a}`)}finally{clearTimeout(c)}}));return console.log(`Found transaction on chainId: ${r}`),r}catch{return console.log(`Transaction ${t} not found on any supported chains.`),null}}function xg(e){if(e===void 0)return"—";const t=Math.max(0,Date.now()/1e3-e),n=[["y",3600*24*365],["d",3600*24],["h",3600],["m",60]];for(const[r,a]of n){const s=Math.floor(t/a);if(s>=1)return`${s}${r} ago`}return"just now"}function mR(e){if(e==="")return;const t=Number(e);if(!(!Number.isFinite(t)||t<0))return Math.floor(t)}const sCe=/^0x[a-fA-F0-9]{64}$/;function iCe(){const[e,t]=G.useState(""),[n,r]=G.useState(!1),[a,s]=G.useState(null),i=Bc(),l=u=>{t(u),a&&s(null)},c=async u=>{const f=u.trim();if(f){if(!sCe.test(f)){s("Invalid transaction hash. Expected 0x followed by 64 hex characters.");return}r(!0),s(null);try{const p=await aCe(f);p?i(`/tx/${p}/${f}
139`):s("Transaction not found on any supported chain.")}catch(p){console.error("Failed to route to transaction:",p),s("Search failed. Please try again.")}finally{r(!1)}}};return W.jsxs("div",{className:"flex flex-wrap items-start gap-2 w-full",children:[W.jsx(lL,{value:e,onChange:l,onSubmit:c,isDisabled:n,isInvalid:!!a,showFieldError:!!a,fieldErrorProps:{children:a??void 0},placeholder:"Search by source transaction hash...",className:"flex-1"}),W.jsx(Ho,{variant:"primary",text:"Search",isLoading:n,isDisabled:!e.trim()||n,onPress:()=>c(e)})]})}function dV({currentPage:e,totalPages:t,onPageChange:n}){return W.jsx(gne,{currentPage:e,numPages:t,callback:n})}const oCe={1:{bg:"rgba(99, 125, 255, 0.15)",text:"#637DFF"},42161:{bg:"rgba(41, 160, 240, 0.15)",text:"#29A0F0"},10:{bg:"rgba(255, 4, 32, 0.15)",text:"#FF0420"},137:{bg:"rgba(130, 71, 229, 0.15)",text:"#8247E5"},8453:{bg:"rgba(0, 82, 255, 0.15)",text:"#0052FF"},100:{bg:"rgba(0, 125, 115, 0.15)",text:"#007D73"},43114:{bg:"rgba(232, 65, 66, 0.15)",text:"#E84142"},56:{bg:"rgba(240, 185, 11, 0.15)",text:"#F0B90B"},250:{bg:"rgba(19, 181, 236, 0.15)",text:"#13B5EC"},1313161554:{bg:"rgba(0, 209, 146, 0.15)",text:"#00D192"}};function lCe(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);const n=Math.abs(t)%360;return{bg:`hsla(${n}, 75%, 60%, 0.15)`,text:`hsl(${n}, 75%, 50%)`}}function Va({chainId:e,className:t=""}){const n=im(e),r=oCe[e]??lCe(n);return W.jsx("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-xs font-medium text-white whitespace-nowrap ${t}`,style:{backgroundColor:r.bg},children:n})}const Gt="No Chain";var So=(e=>(e.PENDING="Pending",e.IN_PROGRESS="In Progress",e.CONFIRMED="Confirmed",e))(So||{});const cCe=zte;function n1({label:e,value:t,options:n,onChange:r,disabled:a=!1,hideLabel:s=!1,hideBadge:i=!1,className:l=""}){const c=[{id:Gt,text:a?"Select Source First":"All Chains",itemValue:Gt},...n.map(u=>({id:u,text:im(u),itemValue:u}))];return W.jsxs("div",{className:l,children:[!s&&W.jsx("label",{className:"text-xs font-semibold uppercase tracking-wider text-(--klerosUIComponentsSecondaryText) mb-2 block",children:e}),W.jsx(cCe,{items:c,selectedKey:t,isDisabled:a,placeholder:"All Chains",callback:u=>{r(u.id===Gt?Gt:Number(u.id))},className:"w-full"}),!i&&t!==Gt&&!a&&W.jsx("div",{className:"mt-2",children:W.jsx(Va,{chainId:t})})]})}function fV({title:e,hasActiveFilter:t,onClearFilters:n}){return W.jsxs("div",{className:"px-5 py-3 border-b border-(--border) flex items-center justify-between bg-(--surface)",children:[W.jsxs("div",{className:"flex items-center gap-2",children:[W.jsx("svg",{className:"w-4 h-4 text-purple-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2a1 1 0 01-.293.707L13 13.414V19a1 1 0 01-.553.894l-4 2A1 1 0 017 21v-7.586L3.293 6.707A1 1 0 013 6V4z"})}),W.jsx("span",{className:"text-sm font-semibold text-(--text-secondary)",children:e}),t&&W.jsx("span",{className:"px-2 py-0.5 text-xs rounded-full bg-purple-700 text-white font-medium",children:"Active"})]}),t&&W.jsx(Ho,{variant:"secondary",small:!0,onPress:n,text:"Clear filters"})]})}function uCe({sourceChain:e,destChain:t,onSourceChange:n,onDestChange:r,blockRange:a,fromBlock:s,toBlock:i,onFromBlockChange:l,onToBlockChange:c,hasActiveFilter:u,onClearFilters:f,network:p}){const m=G.useMemo(()=>{try{const y=Ht.getAllSourceChains();return p?y.filter(x=>t1(x,p)):y}catch{return[]}},[p]),h=G.useMemo(()=>{if(e===Gt)return[];try{const y=Ht.getDestinationChains(e);return p?y.filter(x=>t1(x,p)):y}catch{return[]}},[e,p]);return W.jsxs("div",{className:"glass border border-(--border) overflow-hidden",children:[W.jsx(fV,{title:"Filter Messages",hasActiveFilter:u,onClearFilters:f}),W.jsxs("div",{className:"p-5",children:[W.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[W.jsx(n1,{label:"Source Chain",value:e,options:m,onChange:y=>{n(y),r(Gt)}}),W.jsx(n1,{label:"Destination Chain",value:t,options:h,onChange:r,disabled:e===Gt})]}),W.jsx("div",{className:"mt-4 pt-4 border-t border-(--border)",children:W.jsx(dCe,{blockRange:a,fromBlock:s,toBlock:i,onFromBlockChange:l,onToBlockChange:c,disabled:e===Gt||t===Gt})})]})]})}function dCe({blockRange:e,fromBlock:t,toBlock:n,onFromBlockChange:r,onToBlockChange:a,disabled:s}){return W.jsxs("div",{className:"space-y-3",children:[W.jsxs("div",{className:"flex items-center gap-2",children:[W.jsx("svg",{className:"w-3.5 h-3.5 text-purple-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"})}),W.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-(--text-muted)",children:"Block Range"})]}),W.jsxs("div",{className:`grid grid-cols-2 gap-3 ${s?"opacity-40 pointer-events-none":""}`,children:[W.jsx("div",{children:W.jsx(_S,{label:"From Block",value:t===""?Number.NaN:Number(t),onChange:i=>r(Number.isNaN(i)?"":String(i)),minValue:0,placeholder:"e.g. 18000000",isDisabled:s,inputProps:{className:"font-mono"},className:"w-full"})}),W.jsx("div",{children:W.jsx(_S,{label:"To Block",value:n===""?NaN:Number(n),onChange:i=>a(Number.isNaN(i)?"":String(i)),minValue:0,placeholder:"e.g. 18010000",isDisabled:s,inputProps:{className:"font-mono"},className:"w-full"})})]}),e&&W.jsx("div",{className:"flex items-center gap-2 px-3 py-2 rounded-base bg-(--surface) border border-(--border)",children:W.jsxs("span",{className:"text-xs text-(--text-muted)",children:["Scanning ",W.jsx("span",{className:"font-semibold text-(--text-secondary)",children:e.chain})," blocks"," ",W.jsxs("span",{className:"font-mono text-purple-500",children:["#",e.start.toLocaleStr
139ing()]})," → ",W.jsxs("span",{className:"font-mono text-purple-500",children:["#",e.end.toLocaleString()]}),W.jsxs("span",{className:"text-(--text-muted)",children:[" (",e.windowSize.toLocaleString()," blocks)"]})]})})]})}const fCe={sm:"px-3 py-1 text-xs",md:"px-4 py-2 text-sm"};function pV({options:e,value:t,onChange:n,size:r="sm"}){return W.jsx("div",{className:"inline-flex items-center gap-1 rounded-full border border-(--border) bg-(--surface) p-1 shrink-0",children:e.map(a=>{const s=a.value===t;return W.jsx("button",{type:"button","aria-pressed":s,onClick:()=>n(a.value),className:`rounded-full font-medium transition-colors ${fCe[r]} ${s?"bg-purple-700 text-white":"text-(--text-muted) hover:text-(--text-secondary)"}`,children:a.label},a.value)})})}const pCe=[{value:"mainnet",label:"Mainnet"},{value:"testnet",label:"Testnet"}];function mV({value:e,onChange:t}){return W.jsx(pV,{options:pCe,value:e,onChange:t})}function r1({icon:e,message:t,action:n}){return W.jsxs("div",{className:"glass border border-(--border) py-16 text-center",children:[e,W.jsx("p",{className:"text-(--text-muted) text-sm",children:t}),n]})}const mCe=3e4;function hV(){const[,e]=G.useState(0);G.useEffect(()=>{const t=setInterval(()=>e(n=>n+1),mCe);return()=>clearInterval(t)},[])}function hCe({messages:e,isLoading:t,onClearFilters:n}){const r=Bc();return hV(),e.length===0&&t?W.jsx(r1,{icon:W.jsxs("svg",{className:"w-8 h-8 mx-auto mb-3 text-purple-500 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[W.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",className:"opacity-25"}),W.jsx("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",className:"opacity-75"})]}),message:"Loading messages…"}):e.length===0?W.jsx(r1,{icon:W.jsx("svg",{className:"w-12 h-12 mx-auto mb-3 text-(--text-muted) opacity-40",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),message:"No messages match the selected filters.",action:W.jsx(Ho,{variant:"secondary",small:!0,onPress:n,className:"mt-4",text:"Clear Filters"})}):W.jsx("div",{className:"glass overflow-hidden border border-(--border)",children:W.jsx("div",{className:"overflow-x-auto",children:W.jsxs("table",{className:"w-full",children:[W.jsx("thead",{children:W.jsx("tr",{className:"border-b border-(--border) bg-(--surface)",children:["Source Chain","Destination Chain","Transaction Hash","Block","Timestamp"].map(a=>W.jsx("th",{className:"px-6 py-3 text-left text-xs font-semibold text-(--text-muted) uppercase tracking-wider",children:a},a))})}),W.jsx("tbody",{className:"divide-y divide-(--border)",children:e.map((a,s)=>W.jsx(yCe,{message:a,index:s,onClick:()=>r(`/tx/${a.sourceChain}/${a.txHash}`)},a.messageId??`${a.sourceChain}-${a.txHash}`))})]})})})}function yCe({message:e,index:t,onClick:n}){return W.jsxs("tr",{onClick:n,className:"hover-lift hover:bg-(--surface-elevated) cursor-pointer transition-all animate-fade-in",style:{animationDelay:`${t*.05}s`},children:[W.jsx("td",{className:"px-6 py-3",children:W.jsx(Va,{chainId:e.sourceChain})}),W.jsx("td",{className:"px-6 py-3",children:W.jsxs("div",{className:"flex items-center gap-2",children:[W.jsx("svg",{className:"w-4 h-4 text-purple-500 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})}),W.jsx(Va,{chainId:e.destinationChain})]})}),W.jsx("td",{className:"px-6 py-3",children:W.jsxs("span",{className:"font-mono text-sm",children:[e.txHash.slice(0,10),"…",e.txHash.slice(-8)]})}),W.jsx("td",{className:"px-6 py-3",children:W.jsxs("span",{className:"font-mono text-sm text-(--text-secondary)",children:["#",e.blockNumber.toLocaleString()]})}),W.jsx("td",{className:"px-6 py-3",children:W.jsx("span",{className:"text-sm text-(--text-secondary)",title:e.blockTimestamp?new Date(e.blockTimestamp*1e3).toLocaleStr
139ing():void 0,children:xg(e.blockTimestamp)})})]})}async function bCe(e,t){var u;const{abi:n,address:r,args:a,functionName:s,dataSuffix:i=typeof e.dataSuffix=="string"?e.dataSuffix:(u=e.dataSuffix)==null?void 0:u.value,...l}=t,c=ca({abi:n,args:a,functionName:s});try{return await ht(e,B4,"estimateGas")({data:`${c}${i?i.replace("0x",""):""}`,to:r,...l})}catch(f){const p=l.account?nn(l.account):void 0;throw Ac(f,{abi:n,address:r,args:a,docsPath:"/docs/contract/estimateContractGas",functionName:s,sender:p==null?void 0:p.address})}}async function gCe(e,t){var f;const{abi:n,address:r,args:a,functionName:s,dataSuffix:i=typeof e.dataSuffix=="string"?e.dataSuffix:(f=e.dataSuffix)==null?void 0:f.value,...l}=t,c=l.account?nn(l.account):e.account,u=ca({abi:n,args:a,functionName:s});try{const{data:p}=await ht(e,Pd,"call")({batch:!1,data:`${u}${i?i.replace("0x",""):""}`,to:r,...l,account:c}),m=Qo({abi:n,args:a,functionName:s,data:p||"0x"}),h=n.filter(y=>"name"in y&&y.name===t.functionName);return{result:m,request:{abi:h,address:r,args:a,dataSuffix:i,functionName:s,...l,account:c}}}catch(p){throw Ac(p,{abi:n,address:r,args:a,docsPath:"/docs/contract/simulateContract",functionName:s,sender:c==null?void 0:c.address})}}const W3=256;let rb=W3,ab;function yV(e=11){if(!ab||rb+e>W3*2){ab="",rb=0;for(let t=0;t<W3;t++)ab+=(256+Math.random()*256|0).toString(16).substring(1)}return ab.substring(rb,rb+++e)}function xCe(e){const{batch:t,chain:n,ccipRead:r,dataSuffix:a,key:s="base",name:i="Base Client",tokens:l,type:c="base"}=e,u=e.experimental_blockTag??(typeof(n==null?void 0:n.experimental_preconfirmationTime)=="number"?"pending":void 0),f=(n==null?void 0:n.blockTime)??12e3,p=Math.min(Math.max(Math.floor(f/2),500),4e3),m=e.pollingInterval??p,h=e.cacheTime??m,y=e.account?nn(e.account):void 0,{config:x,request:C,value:T}=e.transport({account:y,chain:n,pollingInterval:m}),w={...x,...T},v={account:y,batch:t,cacheTime:h,ccipRead:r,chain:n,dataSuffix:a,key:s,name:i,pollingInterval:m,request:C,tokens:l,transport:w,type:c,uid:yV(),...u?{experimental_blockTag:u}:{}};function g(A){return S=>{const _=S(A);for(const R in v)delete _[R];const k={...A,..._};for(const R in _){const D=A[R],B=_[R];hR(D)&&hR(B)&&(k[R]={...D,...B})}return Object.assign(k,{extend:g(k)})}}return Object.assign(v,{extend:g(v)})}function hR(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function sb(e,t){const n=(r={})=>t(e,r);for(const r of["call","calls","callWithPeriod","estimateGas","prepare","prepareRecipient","predict","simulate"])if(Object.hasOwn(t,r)){const a=t[r];n[r]=(s={})=>a.length===1?a(s):a(e,s)}for(const r of["extractEvent","extractEvents"])Object.hasOwn(t,r)&&(n[r]=t[r]);return n}function M4(e){var n,r,a,s,i,l;if(!(e instanceof Oe))return!1;const t=e.walk(c=>c instanceof o3);return t instanceof o3?((n=t.data)==null?void 0:n.errorName)==="HttpError"||((r=t.data)==null?void 0:r.errorName)==="ResolverError"||((a=t.data)==null?void 0:a.errorName)==="ResolverNotContract"||((s=t.data)==null?void 0:s.errorName)==="ResolverNotFound"||((i=t.data)==null?void 0:i.errorName)==="ReverseAddressMismatch"||((l=t.data)==null?void 0:l.errorName)==="UnsupportedResolverProfile":!1}function bV(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return It(t)?t:null}function J3(e){let t=new Uint8Array(32).fill(0);if(!e)return Nn(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const a=bV(n[r]),s=a?Mi(a):Wn(cc(n[r]),"bytes");t=Wn(Ku([t,s]),"bytes")}return Nn(t)}function vCe(e){return`[${e.slice(2)}]`}function wCe(e){const t=new Uint8Array(32).fill(0);return e?bV(e)||Wn(cc(e)):Nn(t)}function D4(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const n=new Uint8Array(cc(t).byteLength+2);let r=0;const a=t.split(".");for(let s=0;s<a.length;s++){let i=cc(a[s]);i.byteLength>255&&(i=cc(vCe(wCe(a[s])))),n[r]=i.length,n.set(i,r+1),r+=i.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}async function ECe(e,t){const{blockNumber:n,blockTag:r,coinType:a,name:s,gatewayUrls:i,strict:l}=t,{chain:c}=e,u=(()=>
139{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return bd({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),f=c==null?void 0:c.ensTlds;if(f&&!f.some(m=>s.endsWith(m)))return null;const p=a!=null?[J3(s),BigInt(a)]:[J3(s)];try{const m=ca({abi:NK,functionName:"addr",args:p}),h={address:u,abi:IK,functionName:"resolveWithGateways",args:[Kt(D4(s)),m,i??[bg]],blockNumber:n,blockTag:r},x=await ht(e,hn,"readContract")(h);if(x[0]==="0x")return null;const C=kCe({coinType:a,data:x[0],args:p});return C==="0x"||na(C)==="0x00"?null:C}catch(m){if(l)throw m;if(M4(m))return null;throw m}}function kCe({coinType:e,data:t,args:n}){try{return Qo({abi:NK,args:n,functionName:"addr",data:t})}catch(r){if(e==null)throw r;const a=na(t);if(wn(a)===20)return I0(a);throw r}}class CCe extends Oe{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class a0 extends Oe{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class F4 extends Oe{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class ACe extends Oe{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const PCe=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,TCe=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,SCe=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,BCe=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function _Ce(e){try{const t=await fetch(e,{method:"HEAD"});if(t.status===200){const n=t.headers.get("content-type");return n==null?void 0:n.startsWith("image/")}return!1}catch(t){return typeof t=="object"&&typeof t.response<"u"||!Object.hasOwn(globalThis,"Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}function yR(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function gV({uri:e,gatewayUrls:t}){const n=SCe.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=yR(t==null?void 0:t.ipfs,"https://ipfs.io"),a=yR(t==null?void 0:t.arweave,"https://arweave.net"),s=e.match(PCe),{protocol:i,subpath:l,target:c,subtarget:u=""}=(s==null?void 0:s.groups)||{},f=i==="ipns:/"||l==="ipns/",p=i==="ipfs:/"||l==="ipfs/"||TCe.test(e);if(e.startsWith("http")&&!f&&!p){let h=e;return t!=null&&t.arweave&&(h=e.replace(/https:\/\/arweave.net/g,t==null?void 0:t.arweave)),{uri:h,isOnChain:!1,isEncoded:!1}}if((f||p)&&c)return{uri:`${r}/${f?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if(i==="ar:/"&&c)return{uri:`${a}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let m=e.replace(BCe,"");if(m.startsWith("<svg")&&(m=`data:image/svg+xml;base64,${btoa(m)}`),m.startsWith("data:")||m.startsWith("{"))return{uri:m,isOnChain:!0,isEncoded:!1};throw new F4({uri:e})}function xV(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new CCe({data:e});return e.image||e.image_url||e.image_data}async function ICe({gatewayUrls:e,uri:t}){try{const n=await fetch(t).then(a=>a.json());return await U4({gatewayUrls:e,uri:xV(n)})}catch{throw new F4({uri:t})}}async function U4({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=gV({uri:t,gatewayUrls:e});if(r||await _Ce(n))return n;throw new F4({uri:t})}function NCe(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,a]=t.split("/"),[s,i]=n.split(":"),[l,c]=r.split(":");if(!s||s.toLowerCase()!=="eip155")throw new a0({reason:"Only EIP-155 supported"});if(!i)throw new a0({reason:"Chain ID not found"});if(!c)throw new a0({reason:"Contract address not found"});if(!a)throw new a0({reason:"Token ID not found"});if(!l)throw new a0({reason:"ERC namespace not found"});return{chainID:Number.parseInt(i,10),namespace:l.toLowerCase(),contractAddress:c,tokenID:a}}async function RCe(e,{nft:t}){if(t.namespace==="erc721")return hn(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}
139],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if(t.namespace==="erc1155")return hn(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new ACe({namespace:t.namespace})}async function OCe(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?MCe(e,{gatewayUrls:t,record:n}):U4({uri:n,gatewayUrls:t})}async function MCe(e,{gatewayUrls:t,record:n}){const r=NCe(n),a=await RCe(e,{nft:r}),{uri:s,isOnChain:i,isEncoded:l}=gV({uri:a,gatewayUrls:t});if(i&&(s.includes("data:application/json;base64,")||s.startsWith("{"))){const u=l?atob(s.replace("data:application/json;base64,","")):s,f=JSON.parse(u);return U4({uri:xV(f),gatewayUrls:t})}let c=r.tokenID;return r.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),ICe({gatewayUrls:t,uri:s.replace(/(?:0x)?{id}/,c)})}async function vV(e,t){const{blockNumber:n,blockTag:r,key:a,name:s,gatewayUrls:i,strict:l}=t,{chain:c}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return bd({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),f=c==null?void 0:c.ensTlds;if(f&&!f.some(p=>s.endsWith(p)))return null;try{const p={address:u,abi:IK,args:[Kt(D4(s)),ca({abi:$N,functionName:"text",args:[J3(s),a]}),i??[bg]],functionName:"resolveWithGateways",blockNumber:n,blockTag:r},h=await ht(e,hn,"readContract")(p);if(h[0]==="0x")return null;const y=Qo({abi:$N,functionName:"text",data:h[0]});return y===""?null:y}catch(p){if(l)throw p;if(M4(p))return null;throw p}}async function DCe(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:a,gatewayUrls:s,strict:i,universalResolverAddress:l}){const c=await ht(e,vV,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:a,universalResolverAddress:l,gatewayUrls:s,strict:i});if(!c)return null;try{return await OCe(e,{record:c,gatewayUrls:r})}catch{return null}}async function FCe(e,t){const{address:n,blockNumber:r,blockTag:a,coinType:s=60n,gatewayUrls:i,strict:l}=t,{chain:c}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return bd({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})();try{const f={address:u,abi:cEe,args:[n,s,i??[bg]],functionName:"reverseWithGateways",blockNumber:r,blockTag:a},p=ht(e,hn,"readContract"),[m]=await p(f);return m||null}catch(f){if(l)throw f;if(M4(f))return null;throw f}}async function UCe(e,t){const{blockNumber:n,blockTag:r,name:a}=t,{chain:s}=e,i=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!s)throw new Error("client chain not configured. universalResolverAddress is required.");return bd({blockNumber:n,chain:s,contract:"ensUniversalResolver"})})(),l=s==null?void 0:s.ensTlds;if(l&&!l.some(u=>a.endsWith(u)))throw new Error(`${a} is not a valid ENS TLD (${l==null?void 0:l.join(", ")}) for chain "${s.name}" (id: ${s.id}).`);const[c]=await ht(e,hn,"readContract")({address:i,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[Kt(D4(a))],blockNumber:n,blockTag:r});return c}async function jCe(e,t){var C,T,w;const{account:n=e.account,blockNumber:r,blockTag:a="latest",blobs:s,data:i,gas:l,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:f,maxPriorityFeePerGas:p,to:m,value:h,...y}=t,x=n?nn(n):void 0;try{Wo(t);const g=(typeof r=="bigint"?nt(r):void 0)||a,A=(w=(T=(C=e.chain)==null?void 0:C.formatters)==null?void 0:T.transactionRequest)==null?void 0:w.format,_=(A||Vi)({...vd(y,{format:A}),account:x,blobs:s,data:i,gas:l,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:f,maxPriorityFeePerGas:p,to:m,value:h},"createAccessList"),k=await e.request({method:"eth_createAccessList",params:[_,g]});if(k.error)throw new Oe(k.error,{details:k.error});return{accessList:k.accessList,gasUsed:BigInt(k.gasUsed)}}catch(v){throw GE(v,{...t,account:x,chain:e.chain})}}async function LCe(e){const t=dg(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}async function wV(e,{address:t,args:n,event:r,events:a,fromBlock:s,strict:i,toBlock:l}={}){const c=a??(r?[r]:void 0),u=dg(e,{method:"eth_newFilter"});let f=[];c&&(f=[c.flatMap(h=>Wm({abi:[h],eventName:h.name,args:n}))],r&&(f=f[0]));const p=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof s=="bigint"?nt(s):s,toBlock:typeof l=="bigint"?nt(l):l,...f.length?{topics:f}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:s,id:p,request:u(p),strict:!!i,toBlock:l,type:"event"}}async function EV(e){const t=dg(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}async function $Ce(e,{address:t,blockHash:n,blockNumber:r,blockTag:a=e.experimental_blockTag??"latest",requireCanonical:s}){var c,u,f;const i=Zo({blockHash:n,blockNumber:r,blockTag:a,requireCanonical:s});if((c=e.batch)!=null&&c.multicall&&((f=(u=e.chain)==null?void 0:u.contracts)!=null&&f.multicall3)){const p=e.chain.contracts.multicall3.address,m=ca({abi:Cc,functionName:"getEthBalance",args:[t]}),{data:h}=await ht(e,Pd,"call")({to:p,data:m,blockHash:n,blockNumber:r,blockTag:a,requireCanonical:s});return Qo({abi:Cc,functionName:"getEthBalance",args:[t],data:h||"0x"})}const l=await e.request({method:"eth_getBalance",params:[t,i]});return BigInt(l)}async function zCe(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}async function HCe(e,{blockHash:t,blockNumber:n,blockTag:r=e.experimental_blockTag??"latest"}={}){var l,c,u;const a=n!==void 0?nt(n):void 0,s=await e.request({method:"eth_getBlockReceipts",params:[t||a||r]},{dedupe:!!(t||a)});if(!s)throw new T4({blockHash:t,blockNumber:n});const i=((u=(c=(l=e.chain)==null?void 0:l.formatters)==null?void 0:c.transactionReceipt)==null?void 0:u.format)||Bm;return s.map(f=>i(f,"getBlockReceipts"))}async function KCe(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){const a=n!==void 0?nt(n):void 0;let s;return t?s=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):s=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[a||r]},{dedupe:!!a}),Pn(s)}async function VCe(e,{address:t,blockNumber:n,blockTag:r="latest"}){const a=await am(e,{address:t,...n!==void 0?{blockNumber:n}:{blockTag:r}});if(a&&wn(a)===23&&a.startsWith("0xef0100"))return I0(Ro(a,3,23))}class GCe extends Oe{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function qCe(e,t){const{address:n,factory:r,factoryData:a}=t;try{const[s,i,l,c,u,f,p]=await ht(e,hn,"readContract")({abi:WCe,address:n,functionName:"eip712Domain",factory:r,factoryData:a});return{domain:{name:i,version:l,chainId:Number(c),verifyingContract:u,salt:f},extensions:p,fields:s}}catch(s){const i=s;throw i.name==="ContractFunctionExecutionError"&&i.cause.name==="ContractFunctionZeroDataError"?new GCe({address:n}):i}}const WCe=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];function JCe(e){var t;return{baseFeePerGas:e.baseFeePerGas.map(n=>BigInt(n)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.olde
139stBlock),reward:(t=e.reward)==null?void 0:t.map(n=>n.map(r=>BigInt(r)))}}async function ZCe(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:a}){const s=typeof n=="bigint"?nt(n):void 0,i=await e.request({method:"eth_feeHistory",params:[nt(t),s||r,a]},{dedupe:!!s});return JCe(i)}async function QCe(e,{filter:t}){const n=t.strict??!1,a=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(s=>ps(s));return t.abi?Xo({abi:t.abi,logs:a,strict:n}):a}function XCe(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function YCe(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?Pn(e.nonce):void 0,storageProof:e.storageProof?XCe(e.storageProof):void 0}}async function eAe(e,{address:t,blockHash:n,blockNumber:r,blockTag:a="latest",requireCanonical:s,storageKeys:i}){const l=Zo({blockHash:n,blockNumber:r,blockTag:a,requireCanonical:s}),c=await e.request({method:"eth_getProof",params:[t,i,l]});return YCe(c)}async function tAe(e,{hash:t}){const n=await e.request({method:"eth_getRawTransactionByHash",params:[t]},{dedupe:!0});if(!n)throw new _E({hash:t});return n}async function nAe(e,{address:t,blockHash:n,blockNumber:r,blockTag:a="latest",requireCanonical:s,slot:i}){const l=Zo({blockHash:n,blockNumber:r,blockTag:a,requireCanonical:s});return await e.request({method:"eth_getStorageAt",params:[t,i,l]})}async function rAe(e,{blockHash:t,blockNumber:n,blockTag:r="latest",requireCanonical:a,requests:s}){const i=Zo({blockHash:t,blockNumber:n,blockTag:r,requireCanonical:a});return e.request({method:"eth_getStorageValues",params:[s,i]})}async function aAe(e,{hash:t,transactionReceipt:n}){const[r,a]=await Promise.all([ht(e,Td,"getBlockNumber")({}),t?ht(e,cg,"getTransaction")({hash:t}):void 0]),s=(n==null?void 0:n.blockNumber)||(a==null?void 0:a.blockNumber);return s?r-s+1n:0n}async function sAe(e,t){var _,k;const{account:n,authorizationList:r,allowFailure:a=!0,blockHash:s,blockNumber:i,blockOverrides:l,blockTag:c,requireCanonical:u,stateOverride:f}=t,p=t.contracts,m=typeof((_=e.batch)==null?void 0:_.multicall)=="object"?e.batch.multicall:{},h=t.batchSize??m.batchSize??1024,y=t.deployless??m.deployless??!1,x=(()=>{if(t.multicallAddress)return t.multicallAddress;if(y)return null;if(e.chain)return bd({blockNumber:i,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),C=[[]];let T=0,w=0;for(let R=0;R<p.length;R++){const{abi:D,address:B,args:M,functionName:E}=p[R];try{const N=ca({abi:D,args:M,functionName:E});w+=(N.length-2)/2,h>0&&w>h&&C[T].length>0&&(T++,w=(N.length-2)/2,C[T]=[]),C[T]=[...C[T],{allowFailure:!0,callData:N,target:B}]}catch(N){const I=Ac(N,{abi:D,address:B,args:M,docsPath:"/docs/contract/multicall",functionName:E,sender:n});if(!a)throw I;C[T]=[...C[T],{allowFailure:!0,callData:"0x",target:B}]}}const v=!!((k=e.batch)!=null&&k.multicall),g=v?C.flatMap(R=>R.map(D=>[D])):C,A=await Promise.allSettled(g.map(R=>v?iAe(e,{account:n,authorizationList:r,batchSize:h,blockHash:s,blockNumber:i,blockOverrides:l,blockTag:c,call:R[0],multicallAddress:x,requireCanonical:u,stateOverride:f}).then(D=>[D]):ht(e,hn,"readContract")({...x===null?{code:ug}:{address:x},abi:Cc,account:n,args:[R],authorizationList:r,blockHash:s,blockNumber:i,blockOverrides:l,blockTag:c,functionName:"aggregate3",requireCanonical:u,stateOverride:f}))),S=[];for(let R=0;R<A.length;R++){const D=A[R];if(D.status==="rejected"){if(!a)throw D.reason;for(let M=0;M<g[R].length;M++)S.push({status:"failure",error:D.reason,result:void 0});continue}const B=D.value;for(let M=0;M<B.length;M++){const{returnData:E,success:N}=B[M],{callData:I}=g[R][M],{abi:F,address:z,functionName:U,args:V}=p[S.length];try{if(I==="0x")throw new Dm;if(!N)throw new q1({data:E});const $=Qo({abi:F,args:V,data:E,functionName:U});S.push(a?{result:$,status:"success"}:$)}catch($){const O=Ac($,{abi:F,address:z,args:V,docsPath:"/docs/contract/multicall",functionName:U});if(!a)throw O;S.push({error:O,result:void 0,status:"failure"})}}}if(S.length!==p.length)throw new Oe("multicall results mismatch");return S}async function iAe(e,t){var u;const{batchSize:n,call:r,multicallAddress:a,...s}=t,{wait:i=0}=typeof((u=e.batch)==null?void 0:u.multicall)=="object"?e.batch.multicall:{},{schedule:l}
139=C4({id:Jn(["multicall",e.uid,n,a,s]),wait:i,shouldSplitBatch(f){return n===0?!1:f.reduce((m,{callData:h})=>m+(h.length-2)/2,0)>n},fn:f=>ht(e,hn,"readContract")({...a===null?{code:ug}:{address:a},...s,abi:Cc,args:[f],functionName:"aggregate3"})}),[c]=await l(r);return c}async function a1(e,t){const{blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",blocks:a,returnFullTransactions:s,traceTransfers:i,validation:l}=t;try{const c=[];for(const m of a){const h=m.blockOverrides?MK(m.blockOverrides):void 0,y=m.calls.map(C=>{const T=C,w=T.account?nn(T.account):void 0,v=T.abi?ca(T):T.data,g={...T,account:w,data:T.dataSuffix?Ku([v||"0x",T.dataSuffix]):v,from:T.from??(w==null?void 0:w.address)};return Wo(g),Vi(g)}),x=m.stateOverrides?J1(m.stateOverrides):void 0;c.push({blockOverrides:h,calls:y,stateOverrides:x})}const f=(typeof n=="bigint"?nt(n):void 0)||r;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:c,returnFullTransactions:s,traceTransfers:i,validation:l},f]})).map((m,h)=>({...U1(m),calls:m.calls.map((y,x)=>{var B,M;const{abi:C,args:T,functionName:w,to:v}=a[h].calls[x],g=((B=y.error)==null?void 0:B.data)??y.returnData,A=BigInt(y.gasUsed),S=y.maxUsedGas===void 0?void 0:BigInt(y.maxUsedGas),_=(M=y.logs)==null?void 0:M.map(E=>ps(E)),k=y.status==="0x1"?"success":"failure",R=C&&k==="success"&&g!=="0x"?Qo({abi:C,data:g,functionName:w}):null,D=(()=>{if(k==="success")return;let E;if(g==="0x"?E=new Dm:g&&(E=new q1({data:g})),!!E)return Ac(E,{abi:C??[],address:v??"0x",args:T,functionName:w??"<unknown>"})})();return{data:g,gasUsed:A,logs:_,...S===void 0?{}:{maxUsedGas:S},status:k,...k==="success"?{result:R}:{error:D}}})}))}catch(c){const u=c,f=W1(u,{});throw f instanceof Nm?u:f}}function oAe(...e){var s;const[t,n]=(()=>{if(Array.isArray(e[0])){const[i,l]=e;return[cAe(i),l]}return e})(),{bytecode:r,args:a}=n;return un(r,(s=t.inputs)!=null&&s.length&&(a!=null&&a.length)?m4(t.inputs,a):"0x")}function lAe(e){return y4(e)}function cAe(e){const t=e.find(n=>n.type==="constructor");if(!t)throw new Jb({name:"constructor"});return t}function uAe(...e){const[t,n,r={}]=(()=>{if(Array.isArray(e[0])){const[s,i,l,c]=e;return[Z3(s,i),l,c]}return e})(),a=lK(t.outputs,n,r);if(!(a&&Object.keys(a).length===0))return a&&Object.keys(a).length===1?Array.isArray(a)?a[0]:Object.values(a)[0]:a}function Ql(...e){const[t,n=[]]=(()=>{if(Array.isArray(e[0])){const[u,f,p]=e;return[Z3(u,f,{args:p}),p]}const[l,c]=e;return[l,c]})(),{overloads:r}=t,a=r?Z3([t,...r],t.name,{args:n}):t,s=dAe(a),i=n.length>0?m4(a.inputs,n):void 0;return i?un(s,i):s}function Bd(e,t={}){return y4(e,t)}function Z3(e,t,n){const r=sg(e,t,n);if(r.type!=="function")throw new Jb({name:t,type:"function"});return r}function dAe(e){return b4(e)}const Q3="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",X3="0x0000000000000000000000000000000000000000",fAe="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",kV="0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063fd00430c1461002d575b5f5ffd5b6100476004803603810190610042919061012b565b610049565b005b80825f375f5f825f865afa610060573d5f5f3e3d5ffd5b3d5f5f3e3d5ff35b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61009982610070565b9050919050565b6100a98161008f565b81146100b3575f5ffd5b50565b5f813590506100c4816100a0565b92915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f8401126100eb576100ea6100ca565b5b8235905067ffffffffffffffff811115610108576101076100ce565b5b602083019150836001820283011115610124576101236100d2565b5b9250929050565b5f5f5f6040848603121561014257610141610068565b5b5f61014f868287016100b6565b935050602084013567ffffffffffffffff8111156101705761016f61006c565b5b61017c868287016100d6565b9250925050925092509256fea2646970667358221220635ed99185cacf3f2acba6921f23687c969cec2bbaf5f9ad599f507e6e105e6964736f6c63430008230033",h0=1000000n,pAe=0x00000000000000000000000000000000deadbeefn,mAe=z8e($8e("event Transfer(address indexed from, address indexed to, uint256 value)")),bR=Bd("function balanceOf(address) returns (uint256)"),gR=Bd("function decimals() returns (uint256)"),xR=Bd("function tokenURI(uint256) returns (string)"),vR=Bd("function symbol() returns (string)"),hAe=Bd("function query(address target, bytes data)");async function yAe(e,t){const{blockNumber:n,blockTag:r,calls:a,stateOverrides:s,traceAssetChanges:i,traceTransfers:l,validation:c}=t,u=t.account?nn(t.account):void 0;if(i&&!u)throw new Oe("`account` is required when `traceAssetChanges` is true");const f=u?oAe(lAe("constructor(bytes, bytes)"),{bytecode:OK,args:[fAe,Ql(Bd("function getBalance(address)"),[u.address])]}):void 0,p=r??e.experimental_blockTag??"latest";let m=n;if(i&&typeof m!="bigint"&&p!=="earliest"&&p!=="pending")if(p==="latest")m=await Td(e,{cacheTime:0});else{const H=await $a(e,{blockTag:p});if(typeof H.number!="bigint")throw new Oe(`Block tag \`${p}
139\` did not resolve to a number.`);m=H.number}const h=typeof m=="bigint"?{blockNumber:m}:{blockTag:p},y=i?await a1(e,{...h,blocks:[{calls:a.map(H=>({...H,from:u.address})),stateOverrides:s}],traceTransfers:l,validation:c}):void 0,x=y?[...new Set([...bAe(y[0].calls.flatMap(H=>H.logs??[]),u.address),...t.calls.map(H=>{var Z;return(Z=H.to)==null?void 0:Z.toLowerCase()})])].filter(H=>!!H&&H!==Q3&&H!==X3):[],C=gAe([...u?[u.address]:[],...x,...(s==null?void 0:s.map(({address:H})=>H))??[]]),T=[{address:C,code:kV}],[w,v]=await Promise.all([i?Promise.all([ER(e,{account:u.address,...h,data:f,stateOverride:s}),...x.map(H=>ER(e,{account:u.address,address:H,...h,data:Ql(bR,[u.address]),staticCallAddress:C,stateOverride:s}))]):[],a1(e,{...h,blocks:[{calls:[...a,{to:X3}].map(H=>({...H,from:u==null?void 0:u.address})),stateOverrides:s},...i?[{calls:[{data:f}]},{calls:x.map(H=>({to:C,gas:h0,data:y0(H,Ql(bR,[u.address]))})),stateOverrides:T},{calls:x.map(H=>({to:C,gas:h0,data:y0(H,Ql(gR))})),stateOverrides:T},{calls:x.map(H=>({to:C,gas:h0,data:y0(H,Ql(xR,[0n]))})),stateOverrides:T},{calls:x.map(H=>({to:C,gas:h0,data:y0(H,Ql(vR))})),stateOverrides:T}]:[]],traceTransfers:l,validation:c})]),g=v[0],[A,S,_,k,R]=i?v.slice(1):[],{calls:D,...B}=g,M=D.slice(0,-1),E=w.map(H=>wR(H)?Pt(H.data):null),N=(A==null?void 0:A.calls)??[],I=(S==null?void 0:S.calls)??[],z=[...N,...I].map(H=>wR(H)?Pt(H.data):null),U=((_==null?void 0:_.calls)??[]).map(H=>Vw(H,gR)),V=((R==null?void 0:R.calls)??[]).map(H=>Vw(H,vR)),$=((k==null?void 0:k.calls)??[]).map(H=>Vw(H,xR)),O=[];for(const[H,Z]of z.entries()){const ee=E[H],ae=w[H],ie=typeof ee=="bigint"?ee:H>0&&(ae==null?void 0:ae.status)==="success"&&ae.data==="0x"?0n:null;if(typeof Z!="bigint"||typeof ie!="bigint")continue;const fe=U[H-1],le=V[H-1],xe=$[H-1],he=H===0?{address:Q3,decimals:18,symbol:"ETH"}:{address:x[H-1],decimals:xe||fe?Number(fe??1):void 0,symbol:le??void 0};O.push({token:he,value:{pre:ie,post:Z,diff:Z-ie}})}return{assetChanges:O,block:B,results:M}}function y0(e,t){return Ql(hAe,[e,t])}function bAe(e,t){const n=qo(t.toLowerCase(),{size:32});return e.filter(r=>{var a,s,i;return((a=r.topics[0])==null?void 0:a.toLowerCase())!==mAe||r.address.toLowerCase()===Q3?!1:((s=r.topics[1])==null?void 0:s.toLowerCase())===n||((i=r.topics[2])==null?void 0:i.toLowerCase())===n}).map(r=>r.address.toLowerCase())}function wR(e){return e.status==="success"&&/^0x[\da-f]{64}$/i.test(e.data)}function Vw(e,t){if(e.status==="failure"||e.data==="0x")return null;try{return uAe(t,e.data)}catch{return null}}async function ER(e,t){const{account:n,address:r,blockNumber:a,blockTag:s,data:i,staticCallAddress:l,stateOverride:c}=t;try{return{data:(await Pd({...e,ccipRead:!1},{account:r?X3:n,data:r?y0(r,i):i,stateOverride:r&&l?[...c??[],{address:l,code:kV}]:c,...r?{gas:h0,to:l}:{},...typeof a=="bigint"?{blockNumber:a}:{blockTag:s}})).data??"0x",status:"success"}}catch(u){if(!(u instanceof KE)||!(u.cause instanceof rc))throw u;return{data:"0x",status:"failure"}}}function gAe(e){const t=new Set(e.map(r=>r.toLowerCase()));let n=pAe;for(;t.has(`0x${n.toString(16).padStart(40,"0")}`);)n++;return`0x${n.toString(16).padStart(40,"0")}`}async function xAe(e,{address:t,message:n,factory:r,factoryData:a,signature:s,...i}){const l=QK(n);return ht(e,qm,"verifyHash")({address:t,factory:r,factoryData:a,hash:l,signature:s,...i})}async function vAe(e,t){const{address:n,factory:r,factoryData:a,signature:s,message:i,primaryType:l,types:c,domain:u,...f}=t,p=v4e({message:i,primaryType:l,types:c,domain:u});return ht(e,qm,"verifyHash")({address:n,factory:r,factoryData:a,hash:p,signature:s,...f})}const wAe=["size","totalDifficulty","transactions","uncles","withdrawals"];function EAe(e,{onBlockHeader:t,onError:n}){let r;const a=Jn(["watchBlockHeaders",e.uid]);return Li(a,{onBlockHeader:t,onError:n},s=>{let i=!0,l=!1,c=()=>i=!1;return(async()=>{var u;try{const f=(()=>{if(e.transport.type==="fallback"){const m=e.transport.transports.find(h=>h.config.type==="webSocket"||h.config.type==="ipc");return m?m.value:e.transport}return e.transport})(),{unsubscribe:p}=await f.subscribe({params:["newHeads"],onData(m){var y,x,C;if(!i)return;const h=(((C=(x=(y=e.chain)==null?void 0:y.formatters)==null?void 0:x.block)==null?void 0:C.format)||U1)(m.result,"watchBlockHeaders");for(const T of wAe)delete h[T];s.onBlockHeader(h,r),r=h},onError(m){var h;l&&((h=s.onError)==null||h.call(s,m))}});l=!0,c=p,i||c()}catch(f){(u=s.onError)==null||u.call(s,f)}})(),()=>c()})}function kAe(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:a,onError:s,includeTransactions:i,poll:l,pollingInterval:c=e.pollingInterval}){const u=typeof l<"u"?l:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].c
139onfig.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),f=i??!1;let p;return u?(()=>{const y=Jn(["watchBlocks",e.uid,t,n,r,f,c]);return Li(y,{onBlock:a,onError:s},x=>Jm(async()=>{var C;try{const T=await ht(e,$a,"getBlock")({blockTag:t,includeTransactions:f});if(T.number!==null&&(p==null?void 0:p.number)!=null){if(T.number===p.number)return;if(T.number-p.number>1&&n)for(let w=(p==null?void 0:p.number)+1n;w<T.number;w++){const v=await ht(e,$a,"getBlock")({blockNumber:w,includeTransactions:f});x.onBlock(v,p),p=v}}((p==null?void 0:p.number)==null||t==="pending"&&(T==null?void 0:T.number)==null||T.number!==null&&T.number>p.number)&&(x.onBlock(T,p),p=T)}catch(T){(C=x.onError)==null||C.call(x,T)}},{emitOnBegin:r,interval:c}))})():(()=>{let y=!0,x=!0,C=()=>y=!1;return(async()=>{try{r&&ht(e,$a,"getBlock")({blockTag:t,includeTransactions:f}).then(v=>{y&&x&&(a(v,void 0),x=!1)}).catch(s);const T=(()=>{if(e.transport.type==="fallback"){const v=e.transport.transports.find(g=>g.config.type==="webSocket"||g.config.type==="ipc");return v?v.value:e.transport}return e.transport})(),{unsubscribe:w}=await T.subscribe({params:["newHeads"],async onData(v){var A;if(!y)return;const g=await ht(e,$a,"getBlock")({blockNumber:(A=v.result)==null?void 0:A.number,includeTransactions:f}).catch(()=>{});y&&(a(g,p),x=!1,p=g)},onError(v){s==null||s(v)}});C=w,y||C()}catch(T){s==null||s(T)}})(),()=>C()})()}function CAe(e,{address:t,args:n,batch:r=!0,event:a,events:s,fromBlock:i,onError:l,onLogs:c,poll:u,pollingInterval:f=e.pollingInterval,strict:p}){const m=typeof u<"u"?u:typeof i=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].c
139onfig.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),h=p??!1;return m?(()=>{const C=Jn(["watchEvent",t,n,r,e.uid,a,f,i]);return Li(C,{onLogs:c,onError:l},T=>{let w;i!==void 0&&(w=i-1n);let v,g=!1;const A=Jm(async()=>{var S;if(!g){try{v=await ht(e,wV,"createEventFilter")({address:t,args:n,event:a,events:s,strict:h,fromBlock:i})}catch{}g=!0;return}try{let _;if(v)_=await ht(e,fg,"getFilterChanges")({filter:v});else{const k=await ht(e,Td,"getBlockNumber")({});w&&w!==k?_=await ht(e,A4,"getLogs")({address:t,args:n,event:a,events:s,fromBlock:w+1n,toBlock:k}):_=[],w=k}if(_.length===0)return;if(r)T.onLogs(_);else for(const k of _)T.onLogs([k])}catch(_){v&&_ instanceof Mo&&(g=!1),(S=T.onError)==null||S.call(T,_)}},{emitOnBegin:!0,interval:f});return async()=>{v&&await ht(e,pg,"uninstallFilter")({filter:v}),A()}})})():(()=>{let C=!0,T=()=>C=!1;return(async()=>{try{const w=(()=>{if(e.transport.type==="fallback"){const S=e.transport.transports.find(_=>_.config.type==="webSocket"||_.config.type==="ipc");return S?S.value:e.transport}return e.transport})(),v=s??(a?[a]:void 0);let g=[];v&&(g=[v.flatMap(_=>Wm({abi:[_],eventName:_.name,args:n}))],a&&(g=g[0]));const{unsubscribe:A}=await w.subscribe({params:["logs",{address:t,topics:g}],onData(S){var k;if(!C)return;const _=S.result;try{const{eventName:R,args:D}=Xb({abi:v??[],data:_.data,topics:_.topics,strict:h}),B=ps(_,{args:D,eventName:R});c([B])}catch(R){let D,B;if(R instanceof Vb||R instanceof LE){if(p)return;D=R.abiItem.name,B=(k=R.abiItem.inputs)==null?void 0:k.some(E=>!("name"in E&&E.name))}const M=ps(_,{args:B?[]:{},eventName:D});c([M])}},onError(S){l==null||l(S)}});T=A,C||T()}catch(w){l==null||l(w)}})(),()=>T()})()}function AAe(e,{batch:t=!0,onError:n,onTransactions:r,poll:a,pollingInterval:s=e.pollingInterval}){return(typeof a<"u"?a:e.transport.type!=="webSocket"&&e.transport.type!=="ipc")?(()=>{const u=Jn(["watchPendingTransactions",e.uid,t,s]);return Li(u,{onTransactions:r,onError:n},f=>{let p;const m=Jm(async()=>{var h;try{if(!p)try{p=await ht(e,EV,"createPendingTransactionFilter")({});return}catch(x){throw m(),x}const y=await ht(e,fg,"getFilterChanges")({filter:p});if(y.length===0)return;if(t)f.onTransactions(y);else for(const x of y)f.onTransactions([x])}catch(y){(h=f.onError)==null||h.call(f,y)}},{emitOnBegin:!0,interval:s});return async()=>{p&&await ht(e,pg,"uninstallFilter")({filter:p}),m()}})})():(()=>{let u=!0,f=()=>u=!1;return(async()=>{try{const{unsubscribe:p}=await e.transport.subscribe({params:["newPendingTransactions"],onData(m){if(!u)return;const h=m.result;r([h])},onError(m){n==null||n(m)}});f=p,u||f()}catch(p){n==null||n(p)}})(),()=>f()})()}const PAe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;function TAe(e){return PAe.test(e)?!Number.isNaN(new Date(e).getTime()):!1}function Gw(e){return TAe(e)?new Date(e):new Date(Number.NaN)}function SAe(e){var p,m,h;const{scheme:t,statement:n,...r}=((p=e.match(BAe))==null?void 0:p.groups)??{},{chainId:a,expirationTime:s,issuedAt:i,notBefore:l,requestId:c,...u}=((m=e.match(_Ae))==null?void 0:m.groups)??{},f=(h=e.split("Resources:")[1])==null?void 0:h.split(`
140- `).slice(1);return{...r,...u,...a?{chainId:Number(a)}:{},...s?{expirationTime:Gw(s)}:{},...i?{issuedAt:Gw(i)}:{},...l?{notBefore:Gw(l)}:{},...c?{requestId:c}:{},...f?{resources:f}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}const BAe=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+\-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,_Ae=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;function IAe(e){const{address:t,domain:n,message:r,nonce:a,scheme:s,time:i=new Date}=e;if(n&&r.domain!==n||a&&r.nonce!==a||s&&r.scheme!==s||Number.isNaN(i.getTime())||r.expirationTime&&(Number.isNaN(r.expirationTime.getTime())||i>=r.expirationTime)||r.notBefore&&(Number.isNaN(r.notBefore.getTime())||i<r.notBefore))return!1;try{if(!r.address||!dn(r.address,{strict:!1})||t&&!Ka(r.address,t))return!1}catch{return!1}return!0}async function NAe(e,t){const{address:n,domain:r,message:a,nonce:s,scheme:i,signature:l,time:c=new Date,...u}=t,f=SAe(a);if(!f.address||!IAe({address:n,domain:r,message:f,nonce:s,scheme:i,time:c}))return!1;const m=QK(a);return qm(e,{address:f.address,hash:m,signature:l,...u})}function j4(e,t){return{amount:e,decimals:t,formatted:eke(e,t)}}function Xm(e,t){const{decimals:n,token:r}=t,a=CV(e,r);if(a)return{address:a.address,decimals:n??a.decimals};if(dn(r,{strict:!1}))return{address:r,decimals:n??OAe(e,r)};throw new Error(`Token "${r}" is not a declared ERC-20 token on the client's \`tokens\` array (with an address for the client's chain), and is not a valid address.`)}function CV(e,t){var s;const n=e.tokens,r=(s=e.chain)==null?void 0:s.id;if(!n||r===void 0)return;const a=RAe(n,t);if(a)return Y3(a,r);if(dn(t,{strict:!1}))for(const i of n){const l=Y3(i,r);if(l&&Ka(l.address,t))return l}}function Y3(e,t){const n=e.addresses[t];if(n)return{address:n,currency:e.currency,decimals:e.decimals,name:e.name,popular:e.popular,symbol:e.symbol}}function RAe(e,t){var r;const n=t.toLowerCase();for(const a of e)if(((r=a.symbol)==null?void 0:r.toLowerCase())===n)return a}function OAe(e,t){var a;const n=e.tokens,r=(a=e.chain)==null?void 0:a.id;if(n&&r!==void 0)for(const s of n){const i=Y3(s,r);if(i&&Ka(i.address,t))return i.decimals}}async function L4(e,t){const{address:n,decimals:r}=Xm(e,t);return r!==void 0?{address:n,decimals:r}:{address:n,decimals:await hn(e,{abi:dc,address:n,functionName:"decimals"})}}function $4(e){return{...e,data:ca(e),to:e.address}}async function s1(e,t){const{account:n,decimals:r,spender:a,token:s,...i}=t,[l,{decimals:c}]=await Promise.all([hn(e,{...i,...s1.call(e,{account:n,spender:a,token:s})}),L4(e,{decimals:r,token:s})]);return j4(l,c)}(function(e){function t(n,r){return $4({address:Xm(n,r).address,abi:dc,functionName:"allowance",args:[r.account,r.spender]})}e.call=t})(s1||(s1={}));async function i1(e,t){const{account:n=e.account,decimals:r,token:a,...s}=t;if(!n)throw new Mm;const i=nn(n).address,[l,{decimals:c}]=await Promise.all([hn(e,{...s,...i1.call(e,{account:i,token:a})}),L4(e,{decimals:r,token:a})]);return j4(l,c)}(function(e){function t(n,r){const a=r.account??n.account;if(!a)throw new Mm;const s=nn(a).address;return $4({address:Xm(n,r).address,abi:dc,functionName:"balanceOf",args:[s]})}e.call=t})(i1||(i1={}));async function MAe(e,t){const{token:n,...r}=t,{address:a}=Xm(e,{token:n}),s=CV(e,n),[i,l,c]=await Promise.all([(s==null?void 0:s.decimals)??hn(e,{...r,abi:dc,address:a,functionName:"decimals"}),(s==null?void 0:s.name)??hn(e,{...r,abi:dc,address:a,functionName:"name"}),(s==null?void 0:s.symbol)??hn(e,{...r,abi:dc,address:a,functionName:"symbol"})]);
140return{decimals:i,name:l,symbol:c}}async function o1(e,t){const{decimals:n,token:r,...a}=t,[s,{decimals:i}]=await Promise.all([hn(e,{...a,...o1.call(e,{token:r})}),L4(e,{decimals:n,token:r})]);return j4(s,i)}(function(e){function t(n,r){return $4({address:Xm(n,r).address,abi:dc,args:[],functionName:"totalSupply"})}e.call=t})(o1||(o1={}));function DAe(e){return{call:t=>Pd(e,t),createAccessList:t=>jCe(e,t),createBlockFilter:()=>LCe(e),createContractEventFilter:t=>jK(e,t),createEventFilter:t=>wV(e,t),createPendingTransactionFilter:()=>EV(e),estimateContractGas:t=>bCe(e,t),estimateGas:t=>B4(e,t),getBalance:t=>$Ce(e,t),getBlobBaseFee:()=>zCe(e),getBlock:t=>$a(e,t),getBlockNumber:t=>Td(e,t),getBlockReceipts:t=>HCe(e,t),getBlockTransactionCount:t=>KCe(e,t),getBytecode:t=>am(e,t),getChainId:()=>mg(e),getCode:t=>am(e,t),getContractEvents:t=>LK(e,t),getDelegation:t=>VCe(e,t),getEip712Domain:t=>qCe(e,t),getEnsAddress:t=>ECe(e,t),getEnsAvatar:t=>DCe(e,t),getEnsName:t=>FCe(e,t),getEnsResolver:t=>UCe(e,t),getEnsText:t=>vV(e,t),getFeeHistory:t=>ZCe(e,t),estimateFeesPerGas:t=>HEe(e,t),getFilterChanges:t=>fg(e,t),getFilterLogs:t=>QCe(e,t),getGasPrice:()=>S4(e),getLogs:t=>A4(e,t),getProof:t=>eAe(e,t),estimateMaxPriorityFeePerGas:t=>zEe(e,t),fillTransaction:t=>VK(e,t),getRawTransaction:t=>tAe(e,t),getStorageAt:t=>nAe(e,t),getStorageValues:t=>rAe(e,t),getTransaction:t=>cg(e,t),getTransactionConfirmations:t=>aAe(e,t),getTransactionCount:t=>KK(e,t),getTransactionReceipt:t=>wb(e,t),multicall:t=>sAe(e,t),prepareTransactionRequest:t=>_4(e,t),readContract:t=>hn(e,t),sendRawTransaction:t=>qK(e,t),sendRawTransactionSync:t=>qEe(e,t),simulate:t=>a1(e,t),simulateBlocks:t=>a1(e,t),simulateCalls:t=>yAe(e,t),simulateContract:t=>gCe(e,t),verifyHash:t=>qm(e,t),verifyMessage:t=>xAe(e,t),verifySiweMessage:t=>NAe(e,t),verifyTypedData:t=>vAe(e,t),uninstallFilter:t=>pg(e,t),waitForTransactionReceipt:t=>GEe(e,t),watchBlockHeaders:t=>EAe(e,t),watchBlocks:t=>kAe(e,t),watchBlockNumber:t=>JK(e,t),watchContractEvent:t=>LEe(e,t),watchEvent:t=>CAe(e,t),watchPendingTransactions:t=>AAe(e,t),token:FAe(e)}}function FAe(e){return{getAllowance:sb(e,s1),getBalance:sb(e,i1),getMetadata:sb(e,MAe),getTotalSupply:sb(e,o1)}}function Ym(e){const{key:t="public",name:n="Public Client"}=e;return xCe({...e,key:t,name:n,type:"publicClient"}).extend(DAe)}function UAe({key:e,methods:t,name:n,request:r,retryCount:a=3,retryDelay:s=150,timeout:i,type:l},c){const u=yV();return{config:{key:e,methods:t,name:n,request:r,retryCount:a,retryDelay:s,timeout:i,type:l},request:H4e(r,{methods:t,retryCount:a,retryDelay:s,uid:u}),value:c}}class jAe extends Oe{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}let LAe=0;const kR=new WeakMap;function $Ae(e){if(!e)return"default";const t=kR.get(e);if(t!==void 0)return t;const n=LAe++;return kR.set(e,n),n}function eh(e,t={}){const{batch:n,fetchFn:r,fetchOptions:a,key:s="http",maxResponseBodySize:i,methods:l,name:c="HTTP JSON-RPC",onFetchRequest:u,onFetchResponse:f,retryDelay:p,raw:m}=t;return({chain:h,retryCount:y,timeout:x})=>{const{batchSize:C=1e3,wait:T=0}=typeof n=="object"?n:{},w=t.retryCount??y,v=x??t.timeout??1e4,g=e||(h==null?void 0:h.rpcUrls.default.http[0]);if(!g)throw new jAe;const A=Q4e(g,{fetchFn:r,fetchOptions:a,maxResponseBodySize:i,onRequest:u,onResponse:f,timeout:v});return UAe({key:s,methods:l,name:c,async request({method:S,params:_},k){const R={method:S,params:_},D=k!=null&&k.signal?{signal:k.signal}:void 0,{schedule:B}=C4({id:`${g}.${$Ae(k==null?void 0:k.signal)}`,wait:T,shouldSplitBatch(I){return I.length>C},fn:I=>A.request({body:I,fetchOptions:D}),sort:(I,F)=>I.id-F.id}),M=async I=>n?B(I):[await A.request({body:I,fetchOptions:D})],[{error:E,result:N}]=await M(R);if(m)return{error:E,result:N};if(E)throw new VE({body:R,error:E,url:g});return N},retryCount:w,retryDelay:p,timeout:v,type:"http"},{fetchOptions:a,url:g})}}async function zAe(e,t,n,r){const a=Gs(r),s=Ym({transport:eh(Sd(r)),chain:a}),i=[],l=await s.getContractEvents({address:e,abi:Ht.YahoAbi,eventName:"MessageDispatched",fromBlock:t,toBlock:n}),c=[...new Set(l.map(p=>p.blockNumber))],u=await Promise.all(c.map(p=>s.getBlock({blockNumber:p}))),f=new Map(c.map((p,m)=>[p,Number(u[m].timestamp)]));for(const p of l){const{args:m,transactionHash:h,blockNumber:y}=p;if(!(m!=null&&m.message))continue;const{messageId:x,message:C}=m,T={nonce:Number(C.nonce),targetChainId:Number(C.targetChainId),threshold:Number(C.threshold),sender:C.sender,receiver:C.receiver,data:C.data,reporters:[...C.reporters],adapters:[...C.adapters]};i.push({txHash:h,blockNumber:Number(y),blockTimestamp:f.get(y),messageId:x.toString(),message:T})}return i.sort((p,m)=>p.blockNumber-m.blockNumber),i}async function HAe(e,t,n){const r=Gs(t),a=Ym({transport:eh(Sd(t)),chain:r}),s=await a.getTransactionReceipt({hash:n});if(!s.logs.some(x=>x.address.toLowerCase()===e.toLowerCase()))return null;const c=(await a.getContractEvents({address:e,abi:Ht.YahoAbi,eventName:"MessageDispatched",fromBlock:s.blockNumber,toBlock:s.blockNumber})).find(x=>x.transactionHash===n);if(!c)return null;const{args:u,blockNumber:f}=c,{messageId:p,message:m}=u,h={nonce:Number(m.nonce),targetChainId:Number(m.targetChainId),threshold:Number(m.threshold),sender:m.sender,receiver:m.receiver,data:m.data,reporters:[...m.reporters],adapters:[...m.adapters]},y=await a.getBlock({blockNumber:f});return{txHash:n,blockNumber:Number(f),blockTimestamp:Number(y.timestamp),messageId:p.toString(),message:h}}const AV="veashi_v1_",z4=2,KAe=100;function e8(e){return e.toLowerCase()}function l1(e){return e.messageId?e.messageId.toLowerCase():`${e8(e.txHash)}:${e.nonce??0}`}let CR=!1;function VAe(e){CR||(CR=!0,console.warn("[cache] localStorage write failed; cache disabled:",e))}function PV(e,t){return`${AV}${e}_${t}`}function H4(e,t){if(typeof window>"u")return null;try{const n=localStorage.getItem(PV(e,t));if(!n)return null;const r=JSON.parse(n);return r.version!==z4?null:r}catch{return null}}function GAe(e,t,n){if(!(typeof window>"u"))try{localStorage.setItem(PV(e,t),JSON.stringify(n))}catch(r){VAe(r)}}function K4(e){if(e.length===0)return[];const t=[...e].sort((r,a)=>r.start-a.start),n=[{...t[0]}];for(let r=1;r<t.length;r++){const a=n.at(-1),s=t[r];s.start<=a.end+1?a.end=Math.max(a.end,s.end):n.push({...s})}return n}function qAe(e,t){const n=[];for(const r of e)r.end<t||n.push({start:Math.max(r.start,t),end:r.end});return n}function WAe(e,t){if(e.end<e.start)return[];const n=K4(t.filter(s=>s.end>=e.start&&s.start<=e.end));if(n.length===0)return[e];const r=[];let a=e.start;for(const s of n)s.start>a&&r.push({start:a,end:s.start-1}),a=Math.max(a,s.end+1);return a<=e.end&&r.push({start:a,end:e.end}),r}function JAe(e,t){return ZAe(e,t)[0]??null}function ZAe(e,t){if(typeof window>"u")return[];const n=`${AV}${e}_`,r=e8(t),a=[];try{for(let s=0;s<localStorage.length;s++){const i=localStorage.key(s);
140if(!(i!=null&&i.startsWith(n)))continue;const l=localStorage.getItem(i);if(!l)continue;const c=JSON.parse(l);if(c.version===z4)for(const u of c.messages)e8(u.txHash)===r&&a.push(u)}}catch{return a}return a}function QAe(e,t,n){const r=H4(e,t);return r?[...r.messages].sort((s,i)=>i.blockNumber-s.blockNumber):[]}function XAe(e,t,n,r){const a=H4(e,t)??{scannedRanges:[],messages:[]},s=new Set(a.messages.map(l1)),i=r.filter(p=>{const m=l1(p);return s.has(m)?!1:(s.add(m),!0)}),l=[...a.messages,...i].sort((p,m)=>m.blockNumber-p.blockNumber),c=l.slice(0,KAe),u=l.length-c.length;let f=K4([...a.scannedRanges,n]);if(u>0&&c.length>0){const p=c[c.length-1].blockNumber;f=qAe(f,p)}GAe(e,t,{version:z4,scannedRanges:f,messages:c,lastUpdated:Date.now()})}const YAe="https://indexer.hyperindex.xyz/3756f54/v1/graphql",e9e=5e3,TV=`
141  id messageId txHash sourceChainId yaho nonce targetChainId
142  threshold sender receiver data reporters adapters blockNumber blockTimestamp
143`,t9e=`
144  query GetMessageByTxHash($txHash: String!) {
145    MessageDispatched(where: { txHash: { _eq: $txHash } }, limit: 1) {
146      ${TV}
147    }
148  }
149`;function SV(e){return{txHash:e.txHash.toLowerCase(),sourceChain:Number(e.sourceChainId),destinationChain:Number(e.targetChainId),thresholdRequired:Number(e.threshold),thresholdCurrent:0,sourceAddress:e.sender,destinationAddress:e.receiver,blockNumber:Number(e.blockNumber),blockTimestamp:Number(e.blockTimestamp),messageId:e.messageId,nonce:Number(e.nonce),adapters:JSON.parse(e.adapters),reporters:JSON.parse(e.reporters),data:e.data}}async function BV(e,t){const n=new AbortController,r=setTimeout(()=>n.abort(),e9e);try{const a=await fetch(YAe,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e,variables:t}),signal:n.signal});if(!a.ok)return null;const s=await a.json();return console.log("GraphQL response:",s),s.errors?null:s.data}catch(a){return console.error("GraphQL request failed:",a),null}finally{clearTimeout(r)}}async function n9e(e){const t=[],n={limit:e.limit??10,offset:e.offset??0};e.sourceChainId!==void 0&&(t.push("{ sourceChainId: { _eq: $sourceChainId } }"),n.sourceChainId=String(e.sourceChainId)),e.destinationChainId!==void 0&&(t.push("{ targetChainId: { _eq: $targetChainId } }"),n.targetChainId=String(e.destinationChainId));const r=t.length>0?`where: { _and: [${t.join(", ")}] }`:"",a=["$limit: Int","$offset: Int"];e.sourceChainId!==void 0&&a.push("$sourceChainId: numeric"),e.destinationChainId!==void 0&&a.push("$targetChainId: numeric");const s=`
150    query GetMessages(${a.join(", ")}) {
151      MessageDispatched(
152        ${r}
153        order_by: { blockTimestamp: desc }
154        limit: $limit
155        offset: $offset
156      ) { ${TV} }
157    }
158  `,i=await BV(s,n);return i?i.MessageDispatched.map(SV):null}async function r9e(e){const t=await BV(t9e,{txHash:e.toLowerCase()});return!t||t.MessageDispatched.length===0?null:SV(t.MessageDispatched[0])}const AR=BigInt(1e6),a9e=BigInt(1e4),s9e=15e3,PR=10;function i9e(e){return e.toLowerCase()}function _V(e,t){const n=e.blockTimestamp??e.blockNumber;return(t.blockTimestamp??t.blockNumber)-n}function IV(e,t){if(t.length===0)return e;const n=new Set(e.map(l1)),r=t.filter(a=>!n.has(l1(a)));return r.length===0?e:[...e,...r].sort(_V)}function NV(e,t){return e===Gt?t:t.includes(e)?[e]:[]}function RV(e,t){return t?e.filter(n=>t1(n,t)):e}function o9e(e,t,n){const r=e===Gt?RV(Ht.getAllSourceChains(),n):[e],a=[];for(const s of r){const i=Ht.getDestinationChains(s),l=NV(t,i);for(const c of l)a.push(...QAe(s,c))}return a.sort(_V)}async function l9e(e,t,n,r,a,s,i,l,c){const u=await zAe(t,a,s,n);if(e.aborted)return 0;const f={start:Number(a),end:Number(s)},m=u.map(x=>({txHash:i9e(x.txHash),sourceChain:n,destinationChain:x.message.targetChainId,thresholdRequired:x.message.threshold,thresholdCurrent:0,sourceAddress:x.message.sender,destinationAddress:x.message.receiver,blockNumber:x.blockNumber,blockTimestamp:x.blockTimestamp,messageId:x.messageId,adapters:x.message.adapters,reporters:x.message.reporters,nonce:x.message.nonce,data:x.message.data})).filter(x=>x.destinationChain===r);XAe(n,r,f,m);const h=m.filter(x=>x.blockNumber>=i.start&&x.blockNumber<=i.end);if(h.length===0)return 0;const y=[...h].sort((x,C)=>C.blockNumber-x.blockNumber).slice(0,Math.max(0,l));return y.length===0?0:(c(x=>IV(x,y)),y.length)}async function c9e(e,t,n,r,a,s,i,l){let c=BigInt(a.end);
158const u=BigInt(a.start);let f=0;for(;c>=u&&f<i&&!e.aborted;){let p=c-a9e+BigInt(1);if(p<u&&(p=u),f+=await l9e(e,t,n,r,p,c,s,i-f,l),e.aborted)break;c=p-BigInt(1),await new Promise(m=>setTimeout(m,500))}return f}async function u9e(e,t,n,r,a,s){if(a.aborted)return;const i=Ht.getYaho(e,t);if(!i)return;const l=H4(e,t),c=K4(WAe(n,(l==null?void 0:l.scannedRanges)??[]));if(c.length===0)return;const u=[...c].sort((p,m)=>m.end-p.end);let f=0;for(const p of u){if(a.aborted||f>=PR)break;f+=await c9e(a,i,e,t,p,r,PR-f,s)}}async function d9e(e,t,n,r,a){for(const{dstId:s,scanRange:i}of t){if(r.aborted)break;await u9e(e,s,i,n,r,a)}}function f9e(e,t,n,r,a,s){if(e.has(t))return;const i=d9e(t,n,r,a,s).catch(l=>{console.error(`RPC backfill failed for chain ${t}:`,l)}).finally(()=>{e.delete(t)});e.set(t,i)}async function p9e(e,t,n,r,a){const s=await n9e({sourceChainId:e,destinationChainId:t,limit:10});if(r.aborted)return!1;if(s!==null){const i=s.filter(l=>l.blockNumber>=n.start&&l.blockNumber<=n.end);i.length>0&&a(l=>IV(l,i))}return!!Ht.getYaho(e,t)}async function m9e(e,t,n,r,a){const s=[];for(const i of t){if(r.aborted)break;await p9e(e,i,n,r,a)&&s.push(i)}return s}function h9e(e,t){return e!==void 0?BigInt(e):t-AR>BigInt(0)?t-AR:BigInt(1)}async function y9e(e,t,n,r,a){try{const s=Ym({chain:r,transport:eh(Sd(e))});let i,l;if(t!==void 0&&n!==void 0)i=BigInt(t),l=BigInt(n);else{const c=await s.getBlockNumber();if(a.aborted)return null;l=n!==void 0?BigInt(n):c,i=h9e(t,l)}return a.aborted?null:l<i?(console.warn(`Invalid block range for chain ${e}: ${i}-${l}`),null):{start:Number(i),end:Number(l)}}catch(s){return console.error(`Failed to determine RPC scan range for chain ${e}:`,s),null}}async function b9e(e,t,n,r,a,s,i,l,c,u){if(!s.aborted)try{const f=Gs(e);if(!f){console.warn(`Unsupported source chain ${e}`);return}const p=Ht.getDestinationChains(e),m=NV(t,p);if(m.length===0)return;const h=await m9e(e,m,a,s,c);if(s.aborted||h.length===0)return;const y=await y9e(e,n,r,f,s);if(!y)return;u(i?{chain:f.name,start:y.start,end:y.end,windowSize:y.end-y.start}:null);const x=h.map(C=>({dstId:C,scanRange:y}));f9e(l,e,x,a,s,c)}catch(f){console.error(`Scanning failed for chain ${e}:`,f)}}function g9e(e,t,n,r,a){const[s,i]=G.useState([]),[l,c]=G.useState(!1),[u,f]=G.useState(null),[p,m]=G.useState(null),h=G.useRef(null);return G.useEffect(()=>{if(e!==Gt&&t!==Gt&&e===t){i([]),c(!1);return}h.current&&h.current.abort(),h.current=new AbortController;const y=h.current.signal,x=o9e(e,t,a);i(x),c(!0),m(null),f(null);const C=e===Gt?RV(Ht.getAllSourceChains(),a):[e],T={start:n??0,end:r??Number.MAX_SAFE_INTEGER},w=new Map,v=async()=>{try{const A=C.map(S=>b9e(S,t,n,r,T,y,C.length===1,w,i,f));await Promise.all(A)}catch(A){console.error("Global scanning failed:",A),m("Failed to scan blockchain.")}finally{y.aborted||c(!1)}};v();const g=setInterval(()=>{y.aborted||v()},s9e);return()=>{clearInterval(g),h.current&&h.current.abort()}},[e,t,n,r,a]),{messages:s,isScanning:l,blockRange:u,error:p}}function TR(e,t){const[n,r]=G.useState(e);return G.useEffect(()=>{const a=setTimeout(()=>r(e),t);return()=>clearTimeout(a)},[e,t]),n}const qw=10;function x9e(){const[e,t]=G.useState(1),[n,r]=G.useState("mainnet"),[a,s]=G.useState(Gt),[i,l]=G.useState(Gt),[c,u]=G.useState(""),[f,p]=G.useState(""),m=TR(c,600),h=TR(f,600),y=G.useMemo(()=>mR(m),[m]),x=G.useMemo(()=>mR(h),[h]),{messages:C,isScanning:T,blockRange:w,error:v}=g9e(a,i,y,x,n),g=a!==Gt||i!==Gt,A=Math.max(1,Math.ceil(C.length/qw));G.useEffect(()=>{e>A&&t(A)},[A,e]);const S=G.useMemo(()=>{const B=(e-1)*qw;return C.slice(B,B+qw)},[C,e]),_=B=>{r(B),s(Gt),l(Gt),u(""),p(""),t(1)},k=B=>{s(B),t(1)},R=B=>{l(B),t(1)},D=()=>{s(Gt),l(Gt),u(""),p(""),t(1)};return W.jsxs("div",{className:"min-h-screen",children:[W.jsx(lm,{}),W.jsxs("main",{className:"max-w-7xl mx-auto p-6 space-y-6",children:[W.jsxs("div",{className:"animate-fade-in flex items-center justify-between gap-4",children:[W.jsx("div",{className:"flex-1",children:W.jsx(iCe,{})}),W.jsx(mV,{value:n,onChange:_})]}),v&&W.jsx("div",{className:"p-4 bg-red-500/10 border border-red-500/20 rounded-base text-red-500 text-sm animate-fade-in",children:v}),W.jsx("div",{className:"animate-fade-in",style:{animationDelay:"0.1s"},children:W.jsx(uCe,{sourceChain:a,destChain:i,onSourceChange:k,onDestChange:R,blockRange:w,fromBlock:c,toBlock:f,onFromBlockChange:B=>{u(B),t(1)},onToBlockChange:B=>{p(B),t(1)},hasActiveFilter:g,onClearFilters:D,network:n})}),W.jsxs("div",{className:"animate-fade-in",style:{animationDelay:"0.2s"},children:[W.jsxs("div",{className:"flex items-center justify-between mb-4",children:[W.jsxs("h2",{className:"text-2xl font-bold bg-linear-to-r from-white to-(--text-secondary) bg-clip-text text-transparent flex items-center gap-3",children:["Cross-Chain Messages",T&&W.jsx("span",{className:"text-sm font-normal text-purple-500 animate-pulse flex items-center gap-1.5",children:W.jsxs("svg",{className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[W.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",className:"opacity-25"}),W.jsx("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",className:"opacity-75"})]})})]}),W.jsxs("span",{className:"text-sm text-(--text-muted)",children:[C.length," messages found"]}
158)]}),W.jsx(hCe,{messages:S,isLoading:T,onClearFilters:D})]}),W.jsx("div",{className:"animate-fade-in",style:{animationDelay:"0.3s"},children:W.jsx(dV,{currentPage:e,totalPages:A,onPageChange:t})})]})]})}function v9e(e,t){const[n,r]=G.useState(null),[a,s]=G.useState(!0),[i,l]=G.useState(null),[c,u]=G.useState(null);return G.useEffect(()=>{if(!e||!t)return;let f=!1;return(async()=>{s(!0),l(null),r(null),u(null);const m=JAe(e,t);if(m){f||(r(m),u("cache"),s(!1));return}let h=null;try{h=await r9e(t)}catch(y){console.error("Envio lookup failed:",y)}if(h&&!f){r(h),u("chain"),s(!1);return}try{let y=[];try{y=Ht.getDestinationChains(e)}catch{}let x=null;for(const T of y){if(f)return;const w=Ht.getYaho(e,T);if(w)try{if(x=await HAe(w,e,t),x)break}catch{continue}}if(f)return;if(!x){l("Transaction not found. It may not exist on this chain or be outside the scanned range.");return}const C={txHash:x.txHash,sourceChain:e,destinationChain:x.message.targetChainId,thresholdRequired:x.message.threshold,thresholdCurrent:0,sourceAddress:x.message.sender,destinationAddress:x.message.receiver,blockNumber:x.blockNumber,messageId:x.messageId,adapters:x.message.adapters,reporters:x.message.reporters,nonce:x.message.nonce,data:x.message.data};r(C),u("chain")}catch(y){f||(console.error("useTransaction failed:",y),l("Failed to fetch transaction details."))}finally{f||s(!1)}})(),()=>{f=!0}},[e,t]),{message:n,isLoading:a,error:i,source:c}}const w9e=1e4;function E9e(e){const[t,n]=G.useState("pending"),[r,a]=G.useState(!0),[s,i]=G.useState(null);return G.useEffect(()=>{if(!(e!=null&&e.messageId)||!(e!=null&&e.destinationChain)){a(!1);return}let l=!1,c;async function u(){a(!0);let f=!1;try{if(!e)throw new Error("Message");const p=Gs(e.destinationChain),m=Ym({transport:eh(Sd(e.destinationChain)),chain:p}),h=Ht.getYaru(e.sourceChain,e.destinationChain);if(f=await m.readContract({address:h,abi:Ht.YaruAbi,functionName:"executed",args:[e.messageId]}),l)return;n(f?"executed":"pending"),i(null)}catch(p){console.error("Failed to check execution status from contract:",p),l||i(p instanceof Error?p:new Error("Unknown error"))}finally{l||a(!1)}!l&&!f&&(c=setTimeout(u,w9e))}return u(),()=>{l=!0,c&&clearTimeout(c)}},[e]),{status:t,isLoading:r,error:s}}const k9e="0x0000000000000000000000000000000000000000000000000000000000000000";function C9e(e,t,n){const r={...e};let a=0;return t.forEach((s,i)=>{const l=n[i];if(l.status==="success"){const c=l.result;r[s]=c&&c!==k9e?So.CONFIRMED:So.PENDING}else a+=1,console.error(`Adapter ${s} failed:`,l.error)}),{merged:r,failedCount:a}}function A9e(e,t=!1){const[n,r]=G.useState({}),a=G.useRef({}),[s,i]=G.useState(!1),[l,c]=G.useState(null);return G.useEffect(()=>{var h;if(!((h=e==null?void 0:e.adapters)!=null&&h.length)||e.sourceChain===void 0||e.nonce===void 0)return;a.current={};let u=!1,f=!1,p;const m=async()=>{if(f)return;f=!0,i(!0),c(null);let y=!1;try{const x=Gs(e.destinationChain),C=Ym({transport:eh(Sd(e.destinationChain)),chain:x});if(!e.sourceChain||!e.messageId||!e.adapters)throw new Error("Hashi message not constructed");const T=BigInt(e.sourceChain),w=BigInt(e.messageId),v=e.adapters.map(D=>({address:D,abi:Ht.AdapterAbi,functionName:"getHash",args:[T,w]})),g=await C.multicall({contracts:v});if(u)return;const{merged:A,failedCount:S}=C9e(a.current,e.adapters,g);a.current=A,r(A);const _=e.adapters.filter(D=>A[D]===So.CONFIRMED).length,k=_===e.adapters.length,R=_>=e.thresholdRequired;y=k||R&&t,S>0&&c(new Error(`${S} adapter call(s) failed`))}catch(x){if(u)return;console.error("Failed to fetch adapter statuses:",x),c(x instanceof Error?x:new Error("Unknown error"))}finally{f=!1,u||i(!1)}!u&&!y&&(p=setTimeout(m,1e4))};return m(),()=>{u=!0,p&&clearTimeout(p)}},[e,t]),{statuses:n,isLoading:s,error:l}}function P9e(e,t){var r,a,s;const n=(s=(a=(r=Gs(e))==null?void 0:r.blockExplorers)==null?void 0:a.default)==null?void 0:s.url;if(n)return`${n}/address/${t}`}function V4(e,t){var r,a,s;const n=(s=(a=(r=Gs(e))==null?void 0:r.blockExplorers)==null?void 0:a.default)==null?void 0:s.url;if(n)return`${n}/tx/${t}`}function T9e({icon:e,label:t}){const n={route:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"}),address:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"}),threshold:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}),info:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}),bridge:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"})};return W.jsxs("div",{className:"flex items-center gap-2",children:[W.jsx("svg",{className:"w-4 h-4 text-purple-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n[e]}),W.jsx("span",{className:"text-sm font-semibold text-(--text-secondary)",children:t})]})}function ds({icon:e,label:t,delay:n,className:r="",children:a}){return W.jsxs(wQ,{className:`w-full h-auto min-w-0 p-5 ${n?"animate-fade-in":""} ${r}`.trim(),style:n?{animationDelay:n}:void 0,children:[e&&t&&W.jsx(T9e,{icon:e,label:t}),a]})}function S9e({message:e,source:t,txHash:n}){const r=V4(e.sourceChain,n);return W.jsxs(ds,{delay:"0.05s",children:[W.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[W.jsxs("div",{className:"min-w-0 flex-1",children:[W.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-(--text-muted) mb-1.5",children:"Source Transaction"}),r?W.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-sm break-all text-purple-400 hover:text-purple-300",children:n}):W.jsx(Us,{copiableContent:n,info:"Copy transaction hash",children:W.jsx("span",{className:"font-mono text-sm break-all",children:n})})]}),t&&W.jsx("span",{className:`shrink-0 text-xs font-medium px-2 py-0.5 rounded-full ${t==="cache"?"bg-purple-500/10 text-purple-400":"bg-blue-500/10 text-blue-400"}`,children:t==="cache"?"Cached":"On-chain"})]}),W.jsxs("div",{className:"mt-3 pt-3 border-t border-(--border) flex flex-wrap gap-x-6 gap-y-1",children:[W.jsxs("span",{className:"text-xs text-(--text-muted)",children:["Block ",W.jsxs("span",{className:"font-mono text-(--text-primary)",children:["#",e.blockNumber.toLocaleStr
158ing()]})]}),e.nonce!==void 0&&W.jsxs("span",{className:"text-xs text-(--text-muted)",children:["Nonce ",W.jsx("span",{className:"font-mono text-(--text-primary)",children:e.nonce})]}),e.messageId&&W.jsxs("span",{className:"text-xs text-(--text-muted) min-w-0 truncate",children:["ID ",W.jsxs("span",{className:"font-mono text-(--text-primary)",children:[e.messageId.slice(0,18),"…"]})]})]})]})}function B9e({message:e}){return W.jsx(ds,{icon:"route",label:"Chain Route",delay:"0.1s",children:W.jsxs("div",{className:"mt-4 flex flex-col gap-2",children:[W.jsxs("div",{children:[W.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-(--text-muted) mb-1.5",children:"From"}),W.jsx(Va,{chainId:e.sourceChain,className:"text-sm"})]}),W.jsxs("div",{className:"flex items-center gap-1.5 py-0.5",children:[W.jsx("div",{className:"flex-1 h-px bg-(--border)"}),W.jsx("div",{className:"w-5 h-5 rounded-full bg-purple-500/15 flex items-center justify-center shrink-0",children:W.jsx("svg",{className:"w-3 h-3 text-purple-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})})}),W.jsx("div",{className:"flex-1 h-px bg-(--border)"})]}),W.jsxs("div",{children:[W.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-(--text-muted) mb-1.5",children:"To"}),W.jsx(Va,{chainId:e.destinationChain,className:"text-sm"})]})]})})}function G4(){return W.jsxs("p",{className:"flex items-center gap-1.5 text-xs text-amber-400/80 mt-1.5",children:[W.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400 animate-pulse shrink-0"}),"RPC error, retrying…"]})}function _9e({message:e,statuses:t,isLoading:n,error:r}){const a=e.thresholdRequired,s=t?Object.values(t).filter(y=>y===So.CONFIRMED).length:0,i=n?e.thresholdCurrent??0:s,l=a>0?Math.round(i/a*100):0,{label:c,dotClass:u,barClass:f}=rCe(i,a),p=!n&&!!r&&i===0,m=n?"Verifying...":p?"Checking…":c,h=n?"bg-purple-400 animate-pulse":p?"bg-amber-400 animate-pulse":u;return W.jsx(ds,{icon:"threshold",label:"Consensus",delay:"0.1s",children:W.jsxs("div",{className:"mt-4",children:[W.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-3",children:[W.jsxs("div",{children:[W.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-(--text-muted) mb-1",children:"Required"}),W.jsx("p",{className:"text-2xl font-bold font-mono",children:a})]}),W.jsxs("div",{children:[W.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-(--text-muted) mb-1",children:"Achieved"}),W.jsx("p",{className:"text-2xl font-bold font-mono",children:i})]})]}),W.jsxs("div",{className:"flex items-center gap-1.5 mb-3",children:[W.jsx("span",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${h}`}),W.jsx("span",{className:"text-xs font-medium text-(--text-secondary)",children:m})]}),W.jsx("div",{className:"h-1.5 rounded-full bg-(--surface) overflow-hidden",children:W.jsx("div",{className:`h-full rounded-full transition-all duration-700 ${n?"bg-purple-400/50 animate-pulse":f}`,style:{width:`${l}%`}})}),W.jsxs("p",{className:"text-xs text-(--text-muted) mt-1.5",children:[l,"% met"]}),r&&W.jsx(G4,{})]})})}const I9e={[Ht.Bridges.CCIP]:"CCIP",[Ht.Bridges.LZ]:"LayerZero",[Ht.Bridges.VEA]:"Vea",[Ht.Bridges.DEBRIDGE]:"DeBridge"};function OV(e){return I9e[e]??e.charAt(0).toUpperCase()+e.slice(1)}const N9e={[Ht.Bridges.CCIP]:{bg:"rgba(55, 115, 255, 0.1)",text:"#3773FF",border:"rgba(55, 115, 255, 0.3)"},[Ht.Bridges.LZ]:{bg:"rgba(255, 255, 255, 0.08)",text:"#FFFFFF",border:"rgba(255, 255, 255, 0.2)"},[Ht.Bridges.VEA]:{bg:"rgba(236, 72, 153, 0.1)",text:"#EC4899",border:"rgba(236, 72, 153, 0.3)"},[Ht.Bridges.DEBRIDGE]:{bg:"rgba(103, 230, 220, 0.1)",text:"#67E6DC",border:"rgba(103, 230, 220, 0.3)"}},SR=[{bg:"rgba(245, 158, 11, 0.1)",text:"#F59E0B",border:"rgba(245, 158, 11, 0.3)"},{bg:"rgba(132, 204, 22, 0.1)",text:"#84CC16",border:"rgba(132, 204, 22, 0.3)"},{bg:"rgba(251, 113, 133, 0.1)",text:"#FB7185",border:"rgba(251, 113, 133, 0.3)"},{bg:"rgba(129, 140, 248, 0.1)",text:"#818CF8",border:"rgba(129, 140, 248, 0.3)"},{bg:"rgba(34, 211, 238, 0.1)",text:"#22D3EE",border:"rgba(34, 211, 238, 0.3)"},{bg:"rgba(167, 139, 250, 0.1)",text:"#A78BFA",border:"rgba(167, 139, 250, 0.3)"}];function R9e(e){let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return Math.abs(t)}function O9e(e){return N9e[e]??SR[R9e(e)%SR.length]}function t8(e,t,n,r){const a=(s,i)=>!!s&&!!i&&s.toLowerCase()===i.toLowerCase();for(const s of Ht.getAvailableBridges(e,t)){const i=Ht.getBridgeAddresses(e,t,s);if(i&&(a(n,i.adapter)||a(r,i.reporter)))return s}return null}function q4({bridge:e,className:t=""}){const n=O9e(e),r=OV(e);return W.jsx("span",{className:`inline-flex items-center px-2.5 py-1 rounded-base text-xs font-mono font-medium border ${t}`,style:{backgroundColor:n.bg,color:n.text,borderColor:n.border},children:r})}function M9e({message:e}){const t=e.adapters??[],n=e.reporters??[],r=new Set;let a=!1;t.forEach(l=>{const c=t8(e.sourceChain,e.destinationChain,l);c!==null?r.add(c):a=!0}
158),n.forEach(l=>{const c=t8(e.sourceChain,e.destinationChain,void 0,l);c!==null?r.add(c):a=!0});const s=Array.from(r),i=s.length+(a?1:0);return W.jsx(ds,{icon:"bridge",label:"Bridges",delay:"0.13s",children:W.jsxs("div",{className:"mt-4",children:[W.jsxs("div",{className:"flex items-baseline gap-1 mb-1",children:[W.jsx("span",{className:"text-3xl font-bold font-mono",children:i}),W.jsxs("span",{className:"text-(--text-muted) text-lg font-mono",children:[" bridge",i!==1?"s":""]})]}),W.jsx("div",{className:"mb-3",children:W.jsx("span",{className:"text-xs font-medium text-(--text-secondary)",children:i===0?"No bridges found":"Active bridges"})}),W.jsx("div",{className:"flex flex-wrap gap-1.5",children:i===0?W.jsx("p",{className:"text-xs text-(--text-muted)",children:"—"}):W.jsxs(W.Fragment,{children:[s.map(l=>W.jsx(q4,{bridge:l},l)),a&&W.jsx("span",{className:"inline-flex items-center px-2.5 py-1 rounded-base text-xs font-mono font-medium border border-(--border) text-(--text-muted)",children:"Unknown"})]})})]})})}function D9e({message:e}){return W.jsx(ds,{icon:"address",label:"Addresses",delay:"0.15s",children:W.jsxs("div",{className:"mt-4 space-y-3",children:[W.jsx(BR,{label:"Sender",address:e.sourceAddress}),W.jsx(BR,{label:"Receiver",address:e.destinationAddress})]})})}function BR({label:e,address:t}){return W.jsxs("div",{children:[W.jsx("p",{className:"text-xs text-(--text-muted) uppercase tracking-wide mb-1",children:e}),W.jsx("div",{className:"bg-(--surface) rounded-base px-3 py-2 border border-(--border)",children:W.jsx(Us,{copiableContent:t,info:"Copy address",children:W.jsx("span",{className:"font-mono text-sm break-all",children:t})})})]})}function F9e(e,t,n){return t?{label:"Loading...",className:"text-(--text-muted) animate-pulse"}:e===So.CONFIRMED?{label:"Confirmed",className:"text-green-400"}:e===So.PENDING?{label:"Pending",className:"text-red-400"}:!e&&n?{label:"Checking…",className:"text-amber-400/80 animate-pulse"}:{label:e||So.PENDING,className:"text-amber-400/80"}}function U9e({message:e,statuses:t,isLoading:n,error:r}){const a=e.adapters??[],s=e.reporters??[];if(a.length===0&&s.length===0)return W.jsx(ds,{icon:"bridge",label:"Adapters & Reporters",delay:"0.2s",children:W.jsx("p",{className:"mt-4 text-xs text-(--text-muted)",children:"Adapter data unavailable — not yet fetched from chain."})});const i=new Map,l=Math.max(a.length,s.length);for(let u=0;u<l;u++){const f=a[u],p=s[u],m=t8(e.sourceChain,e.destinationChain,f,p),h=m!==null?m:`unknown-${u}`,y=i.get(h)||{bridgeName:m!==null?OV(m):"Unknown"};i.set(h,{...y,adapter:f??y.adapter,reporter:p??y.reporter,status:f&&t?t[f]:y.status})}const c=Array.from(i.entries());return W.jsxs(ds,{icon:"bridge",label:"Adapters & Reporters",delay:"0.2s",children:[W.jsx("div",{className:"mt-4 space-y-3",children:c.map(([u,f])=>{const p=F9e(f.status,n,!!r);return W.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between gap-4 bg-(--surface) rounded-base px-4 py-3 border border-(--border)",children:[W.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4 flex-1",children:[W.jsx("div",{className:"w-24 shrink-0",children:W.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-(--text-primary)",children:f.bridgeName})}),W.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:[f.adapter&&W.jsxs("div",{className:"flex items-center gap-2",children:[W.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wider text-(--text-muted)",children:"Adapter"}),W.jsx(Us,{copiableContent:f.adapter,info:"Copy adapter address",children:W.jsx("span",{className:"font-mono text-sm break-all",children:f.adapter})})]}),f.reporter&&W.jsxs("div",{className:"flex items-center gap-2",children:[W.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wider text-(--text-muted)",children:"Reporter"}),W.jsx(Us,{copiableContent:f.reporter,info:"Copy reporter address",children:W.jsx("span",{className:"font-mono text-sm break-all",children:f.reporter})})]})]})]}),W.jsx("div",{className:"shrink-0 pt-3 lg:pt-0 border-t border-(--border) lg:border-0 flex items-center",children:W.jsx("span",{className:`text-xs font-medium ${p.className}`,children:p.label})})]},u)})}),r&&W.jsx(G4,{})]})}const j9e=22;function L9e({message:e,execStatus:t,execLoading:n,execError:r}){const a=$9e(n,t),s=!!e.data&&e.data!=="0x";return W.jsx(ds,{icon:"info",label:"Details",delay:"0.15s",children:W.jsxs("div",{className:"mt-4 space-y-3",children:[e.messageId&&W.jsx(_R,{label:"Message ID",children:W.jsx(Us,{copiableContent:e.messageId,info:"Copy message ID",children:W.jsx("span",{className:"font-mono text-sm break-all",children:e.messageId})})}),e.data!==void 0&&W.jsx(_R,{label:"Message Data",children:s?W.jsx(Us,{copiableContent:e.data,info:"Copy message data",children:W.jsx("span",{className:"font-mono text-sm break-all",children:e.data.length>j9e?`${e.data.slice(0,14)}…${e.data.slice(-8)}`:e.data})}):W.jsx("span",{className:"font-mono text-sm text-(--text-muted)",children:"Empty"})}),W.jsx("dl",{children:W.jsx(z9e,{label:"Execution",children:W.jsxs("div",{className:"flex items-center gap-1.5",children:[W.jsx("span",{className:`w-1.5 h-1.5 rounded-full inline-block ${a.dotClassName}`}),W.jsx("span",{className:"text-sm font-mono",children:a.text})]})})}),r&&W.jsx(G4,{})]})})}function $9e(e,t){return e?{dotClassName:"bg-purple-400 animate-pulse",text:"Checking…"}:t==="executed"?{dotClassName:"bg-green-400",text:"Executed"}:{dotClassName:"bg-amber-400 animate-pulse",text:"Pending"}}function z9e({label:e,children:t}){return W.jsxs("div",{className:"flex items-start justify-between gap-4",children:[W.jsx("dt",{className:"text-xs text-(--text-muted) uppercase tracking-wide shrink-0 mt-0.5",children:e}),W.jsx("dd",{className:"text-right flex flex-col items-end gap-0.5 min-w-0",children:t})]})}function _R({label:e,children:t}){return W.jsxs("div",{children:[W.jsx("p",{className:"text-xs text-(--text-muted) uppercase tracking-wide mb-1",children:e}),W.jsx("div",{className:"bg-(--surface) rounded-base px-3 py-2 border border-(--border)",children:t})]})}function H9e({message:e,source:t,txHash:n}){const{status:r,isLoading:a,error:s}=E9e(e),{statuses:i,isLoading:l,error:c}=A9e(e,r==="executed");return W.jsxs(W.Fragment,{children:[W.jsx(S9e,{message:e,source:t,txHash:n}),W.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[W.jsx(B9e,{message:e}),W.jsx(_9e,{message:e,statuses:i,isLoading:l,error:c}),W.jsx(M9e,{message:e})]}),W.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[W.jsx(D9e,{message:e}),W.jsx(L9e,{message:e,execStatus:r,execLoading:a,execError:s})]}),W.jsx(U9e,{message:e,statuses:i,isLoading:l,error:c})]})}function K9e(){const e=Bc(),n=(GR()["*"]??"").split("/").filter(
158Boolean),r=n.length>=2,a=r?Number(n[0]):null,s=r?n[1]:n[0];return W.jsxs("div",{className:"min-h-screen",children:[W.jsx(lm,{}),W.jsxs("main",{className:"max-w-7xl mx-auto px-6 py-8 space-y-4",children:[W.jsx(Ho,{variant:"secondary",small:!0,onPress:()=>e("/"),icon:W.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),text:"Back to Messages"}),r?W.jsx(G9e,{chainId:a,txHash:s}):W.jsxs(W.Fragment,{children:[W.jsxs("div",{className:"glass border border-(--border) p-5 animate-fade-in",style:{animationDelay:"0.05s"},children:[W.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-(--text-muted) mb-1",children:"Source Transaction"}),W.jsx(Us,{copiableContent:s,info:"Copy transaction hash",children:W.jsx("span",{className:"font-mono text-sm break-all",children:s})})]}),W.jsx(V9e,{})]})]})]})}function V9e(){return W.jsxs("div",{className:"glass border border-(--border) p-10 text-center animate-fade-in",style:{animationDelay:"0.1s"},children:[W.jsx("div",{className:"w-12 h-12 mx-auto mb-4 rounded-full bg-amber-500/10 flex items-center justify-center",children:W.jsx("svg",{className:"w-6 h-6 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),W.jsx("p",{className:"text-sm font-medium mb-1",children:"Source chain required"}),W.jsx("p",{className:"text-xs text-(--text-muted) max-w-xs mx-auto",children:"Navigate to this transaction from the messages table, which includes the source chain ID in the URL (/tx/chainId/hash)."})]})}function G9e({chainId:e,txHash:t}){const{message:n,isLoading:r,error:a,source:s}=v9e(e,t);return r?W.jsx("div",{className:"glass border border-(--border) p-10 text-center animate-fade-in",children:W.jsx("p",{className:"text-sm text-(--text-muted)",children:"Loading transaction…"})}):a||!n?W.jsxs("div",{className:"glass border border-red-500/20 p-10 text-center animate-fade-in",children:[W.jsx("p",{className:"text-sm font-medium text-red-400 mb-1",children:"Not found"}),W.jsx("p",{className:"text-xs text-(--text-muted)",children:a??"Transaction could not be loaded."})]}):W.jsx(H9e,{message:n,source:s,txHash:t})}function Jl({label:e,chainId:t,address:n}){if(!n)return null;const r=P9e(t,n);return W.jsxs("div",{className:"grid grid-cols-[110px_1fr] items-center gap-3 py-2.5",children:[W.jsxs("div",{className:"shrink-0",children:[W.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-(--text-muted)",children:e}),W.jsx("p",{className:"text-[10px] text-(--text-muted)",children:im(t)})]}),W.jsxs("div",{className:"flex items-center justify-end gap-3 min-w-0",children:[W.jsx(Us,{copiableContent:n,info:`Copy ${e} address`,children:W.jsx("span",{className:"font-mono text-sm break-all",children:n})}),r&&W.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-purple-400 hover:text-purple-300 text-xs shrink-0",children:"View ↗"})]})]})}function q9e({isOpen:e,onOpenChange:t,sourceChainId:n,destinationChainId:r,bridges:a}){return W.jsxs(iX,{isOpen:e,onOpenChange:t,isDismissable:!0,ariaLabel:"Route contract details",modalOverlayClassname:"pt-(--header-height)",className:"!h-auto !w-[90vw] max-w-2xl max-h-[80vh] overflow-y-auto p-6 my-2",children:[W.jsxs("h3",{className:"text-lg font-bold mb-4",children:[im(n)," → ",im(r)]}),W.jsxs("section",{className:"mb-5",children:[W.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wider text-(--text-muted) mb-2",children:"Core Contracts"}),W.jsxs("div",{className:"divide-y divide-(--border)",children:[W.jsx(Jl,{label:"Yaho",chainId:n,address:Ht.getYaho(n,r)}),W.jsx(Jl,{label:"Switch",chainId:n,address:Ht.getSwitch(n,r)}),W.jsx(Jl,{label:"Yaru",chainId:r,address:Ht.getYaru(n,r)}),W.jsx(Jl,{label:"Hashi",chainId:r,address:Ht.getHashi(n,r)}),W.jsx(Jl,{label:"Lightbulb",chainId:r,address:Ht.getLightbulb(n,r)})]})]}),W.jsxs("section",{children:[W.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wider text-(--text-muted) mb-2",children:"Bridges"}),a.length===0?W.jsx("p",{className:"text-xs text-(--text-muted)",children:"No bridges configured for this route."}):W.jsx("div",{className:"space-y-4",children:a.map(s=>
158W.jsxs("div",{children:[W.jsx(q4,{bridge:s,className:"mb-1.5"}),W.jsxs("div",{className:"divide-y divide-(--border)",children:[W.jsx(Jl,{label:"Reporter",chainId:n,address:Ht.getReporter(n,r,s)}),W.jsx(Jl,{label:"Adapter",chainId:r,address:Ht.getAdapter(n,r,s)})]})]},s))})]})]})}function W9e(e){return W.jsx("svg",{...e,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}function J9e({routes:e}){const[t,n]=G.useState(null);return e.length===0?W.jsx("div",{className:"glass border border-(--border) py-16 text-center",children:W.jsx("p",{className:"text-(--text-muted) text-sm",children:"No routes configured."})}):W.jsxs(W.Fragment,{children:[W.jsx("div",{className:"glass overflow-hidden border border-(--border)",children:W.jsx("div",{className:"overflow-x-auto",children:W.jsxs("table",{className:"w-full",children:[W.jsx("thead",{children:W.jsx("tr",{className:"border-b border-(--border) bg-(--surface)",children:["Source Chain","Destination Chain","Bridges",""].map(r=>W.jsx("th",{className:"px-6 py-3 text-left text-xs font-semibold text-(--text-muted) uppercase tracking-wider",children:r},r))})}),W.jsx("tbody",{className:"divide-y divide-(--border)",children:e.map(r=>W.jsxs("tr",{className:"hover:bg-(--surface-elevated) transition-all",children:[W.jsx("td",{className:"px-6 py-3",children:W.jsx(Va,{chainId:r.sourceChainId})}),W.jsx("td",{className:"px-6 py-3",children:W.jsx(Va,{chainId:r.destinationChainId})}),W.jsx("td",{className:"px-6 py-3",children:W.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.bridges.map(a=>W.jsx("button",{type:"button",onClick:()=>n(r),className:"appearance-none bg-transparent border-0 p-0 m-0 cursor-pointer",children:W.jsx(q4,{bridge:a})},a))})}),W.jsx("td",{className:"px-6 py-3",children:W.jsx(Ho,{variant:"secondary",small:!0,text:"Details",Icon:W9e,onPress:()=>n(r)})})]}
158,`${r.sourceChainId}-${r.destinationChainId}`))})]})})}),t&&W.jsx(q9e,{isOpen:t!==null,onOpenChange:r=>{r||n(null)},sourceChainId:t.sourceChainId,destinationChainId:t.destinationChainId,bridges:t.bridges})]})}function Z9e(){const[e,t]=G.useState("mainnet"),n=G.useMemo(()=>{const r=[];for(const a of Ht.getAllSourceChains())if(t1(a,e))for(const s of Ht.getDestinationChains(a))r.push({sourceChainId:a,destinationChainId:s,bridges:Ht.getAvailableBridges(a,s)});return r},[e]);return W.jsxs("div",{className:"min-h-screen",children:[W.jsx(lm,{}),W.jsxs("main",{className:"max-w-7xl mx-auto p-6 space-y-6",children:[W.jsxs("div",{className:"animate-fade-in flex items-start justify-between gap-4",children:[W.jsxs("div",{children:[W.jsx("h2",{className:"text-2xl font-bold bg-linear-to-r from-white to-(--text-secondary) bg-clip-text text-transparent",children:"Supported Routes"}),W.jsx("p",{className:"text-sm text-(--text-muted) mt-1",children:"Every cross-chain route Veashi supports, and the bridges securing each one."})]}),W.jsx(mV,{value:e,onChange:t})]}),W.jsx("div",{className:"animate-fade-in",style:{animationDelay:"0.1s"},children:W.jsx(J9e,{routes:n})})]})]})}const Fo=[{bridgeKey:"arbToEth",network:"testnet",label:"Arbitrum Sepolia → Sepolia (Testnet)",sourceChainId:421614,destinationChainId:11155111,inboxAddress:"0x8B925669606026CcCfAFD72840F5b0CAeDA80078",outboxAddress:"0xf720FA4575FB2FE96c7f05B1b5abc2d281cDa09a"},{bridgeKey:"arbToEth",network:"devnet",label:"Arbitrum Sepolia → Sepolia (Devnet)",sourceChainId:421614,destinationChainId:11155111,inboxAddress:"0x45138BC4E364A16919C4571699171d774A7590BD",outboxAddress:"0x60af9Fc1dd7d5bce69a66A8AEf456952b03A39C7"},{bridgeKey:"arbToGnosis",network:"testnet",label:"Arbitrum Sepolia → Gnosis Chiado (Testnet)",sourceChainId:421614,destinationChainId:10200,inboxAddress:"0x162f826E18380567CE0548395a3Ad2A54EA87B96",outboxAddress:"0x15aC29269b044E1d9042F597513B27Ffa4A7f257"},{bridgeKey:"arbToGnosis",network:"devnet",label:"Arbitrum Sepolia → Gnosis Chiado (Devnet)",sourceChainId:421614,destinationChainId:10200,inboxAddress:"0x2E973e20B24088bc74755a7A5cd1A37Dcb53E061",outboxAddress:"0x879A9F4476D4445A1deCf40175a700C4c829824D"}];function Q9e(e,t){return Fo.find(n=>n.bridgeKey===e&&n.network===t)}function X9e(){return[...new Set(Fo.map(e=>e.sourceChainId))]}function Y9e(e){const t=e===Gt?Fo:Fo.filter(n=>n.sourceChainId===e);return[...new Set(t.map(n=>n.destinationChainId))]}function ePe(e,t,n){return Fo.filter(r=>r.network===e&&(t===Gt||r.sourceChainId===t)&&(n===Gt||r.destinationChainId===n))}const tPe=[{value:"testnet",label:"Testnet"},{value:"devnet",label:"Devnet"}];function nPe({network:e,onNetworkChange:t,sourceChain:n,destChain:r,onSourceChange:a,onDestChange:s,hasActiveFilter:i,onClearFilters:l}){const c=G.useMemo(()=>X9e(),[]),u=G.useMemo(()=>Y9e(n),[n]);return W.jsxs("div",{className:"glass border border-(--border) overflow-hidden",children:[W.jsx(fV,{title:"Filter Epochs",hasActiveFilter:i,onClearFilters:l}),W.jsx("div",{className:"p-5",children:W.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[W.jsx(n1,{label:"From Chain",value:n,options:c,onChange:a}),W.jsx(n1,{label:"To Chain",value:r,options:u,onChange:s}),W.jsxs("div",{className:"flex flex-col",children:[W.jsx("label",{className:"text-xs font-semibold uppercase tracking-wider text-(--klerosUIComponentsSecondaryText) mb-2 block",children:"Network"}),W.jsx("div",{className:"flex-1 flex items-center",children:W.jsx(pV,{options:tPe,value:e,onChange:t,size:"md"})})]})]})})]})}const rPe={Pending:{bg:"bg-(--klerosUIComponentsWarningLight)",text:"text-(--klerosUIComponentsWarning)"},Saved:{bg:"bg-(--klerosUIComponentsWarningLight)",text:"text-(--klerosUIComponentsWarning)"},Claimed:{bg:"bg-(--surface)",text:"text-(--text-secondary)"},Challenged:{bg:"bg-(--klerosUIComponentsErrorLight)",text:"text-(--klerosUIComponentsError)"},Verifying:{bg:"bg-purple-700/20",text:"text-purple-400"},Verified:{bg:"bg-(--klerosUIComponentsSuccessLight)",text:"text-(--klerosUIComponentsSuccess)"},Resolved:{bg:"bg-pink-600/20",text:"text-pink-400"},Unknown:{bg:"bg-(--surface)",text:"text-(--text-muted)"}};function MV({status:e}){const t=rPe[e];return W.jsx("span",{className:`px-2.5 py-1 rounded-full text-xs font-medium whitespace-nowrap ${t.bg} ${t.text}`,children:e})}function aPe({rows:e,isLoading:t,onClearFilters:n}){const r=Bc();return hV(),e.length===0&&t?W.jsx(r1,{icon:W.jsxs("svg",{className:"w-8 h-8 mx-auto mb-3 text-purple-500 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[W.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",className:"opacity-25"}),W.jsx("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",className:"opacity-75"})]}),message:"Loading epochs…"}):e.length===0?W.jsx(r1,{icon:W.jsx("svg",{className:"w-12 h-12 mx-auto mb-3 text-(--text-muted) opacity-40",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),message:"No epochs found for the selected chains and network.",action:W.jsx(Ho,{variant:"secondary",small:!0,onPress:n,className:"mt-4",text:"Clear Filters"})}):W.jsx("div",{className:"glass overflow-hidden border border-(--border)",children:W.jsx("div",{className:"overflow-x-auto",children:W.jsxs("table",{className:"w-full",children:[W.jsx("thead",{children:W.jsx("tr",{className:"border-b border-(--border) bg-(--surface)",children:["Route","Epoch","Status","State Root","Timestamp"].map(a=>W.jsx("th",{className:"px-6 py-3 text-left text-xs font-semibold text-(--text-muted) uppercase tracking-wider",children:a},a))})}),W.jsx("tbody",{className:"divide-y divide-(--border)",children:e.map((a,s)=>W.jsx(sPe,{row:a,index:s,onClick:()=>r(`/vea/${a.route.bridgeKey}/${a.route.network}/${a.epoch}`)},`${a.route.bridgeKey}-${a.route.network}-${a.epoch}`))})]})})})}function sPe({row:e,index:t,onClick:n}){var a,s,i,l;const r=((a=e.snapshot)==null?void 0:a.stateRoot)??((s=e.claim)==null?void 0:s.stateRoot);return W.jsxs("tr",{onClick:n,onKeyDown:c=>{c.key==="Enter"&&n()},tabIndex:0,role:"link","aria-label":`View epoch ${e.epoch} details`,className:"hover-lift hover:bg-(--surface-elevated) cursor-pointer transition-all animate-fade-in",style:{animationDelay:`${t*.05}s`},children:[W.jsx("td",{className:"px-6 py-3",children:W.jsxs("div",{className:"flex items-center gap-2",children:[W.jsx(Va,{chainId:e.route.sourceChainId}),W.jsx("svg",{className:"w-4 h-4 text-purple-500 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})}),W.jsx(Va,{chainId:e.route.destinationChainId})]})}),W.jsx("td",{className:"px-6 py-3",children:W.jsxs("span",{className:"font-mono text-sm text-(--text-secondary)",children:["#",e.epoch]})}),W.jsx("td",{className:"px-6 py-3",children:W.jsx(MV,{status:e.status})}),W.jsx("td",{className:"px-6 py-3",children:W.jsx("span",{className:"font-mono text-sm",children:r?`${r.slice(0,10)}…${r.slice(-8)}`:"—"})}),W.jsx("td",{className:"px-6 py-3",children:W.jsx("span",{className:"text-sm text-(--text-secondary)",t
158itle:(i=e.snapshot)!=null&&i.timestamp?new Date(e.snapshot.timestamp*1e3).toLocaleString():void 0,children:xg((l=e.snapshot)==null?void 0:l.timestamp)})})]})}function iPe(e,t){if(t){const n=t.verification[0],r=(n==null?void 0:n.startTimestamp)!==void 0&&(n==null?void 0:n.verifiedTimestamp)===void 0;return t.challenged&&t.verified?"Resolved":r?"Verifying":t.challenged?"Challenged":t.verified?"Verified":"Claimed"}return e&&(!e.saved||e.resolving)?"Pending":"Saved"}const Ni="https://indexer.hyperindex.xyz/3756f54/v1/graphql",oPe=5e3,Eu=1e3;class n8 extends Error{constructor(t="Could not reach the Vea indexer."){super(t),this.name="VeaIndexerError"}}async function Ri(e,t,n){const r=new AbortController,a=setTimeout(()=>r.abort(),oPe);try{const s=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:t,variables:n}),signal:r.signal});if(!s.ok)return null;const i=await s.json();return i.errors?(console.error("Vea GraphQL errors:",i.errors),null):i.data}catch(s){return console.error("Vea GraphQL request failed:",s),null}finally{clearTimeout(a)}}const DV=`
159  id epoch caller txHash timestamp stateRoot numberMessages saved resolving
160  fallback { executor timestamp txHash ticketId }
161`,FV=`
162  id epoch stateRoot bridger timestamp txHash challenged verified
163  challenge { txHash timestamp challenger }
164  verification { startTimestamp startCaller startTxHash verifiedTimestamp verifiedCaller verifiedTxHash }
165`;function UV(e){return{id:e.id,epoch:e.epoch!==null?Number(e.epoch):void 0,caller:e.caller??void 0,txHash:e.txHash??void 0,timestamp:e.timestamp!==null?Number(e.timestamp):void 0,stateRoot:e.stateRoot??void 0,numberMessages:Number(e.numberMessages),saved:e.saved,resolving:e.resolving,fallback:e.fallback.map(t=>({executor:t.executor,timestamp:t.timestamp!==null?Number(t.timestamp):void 0,txHash:t.txHash,ticketId:t.ticketId}))}}function jV(e){return{id:e.id,epoch:Number(e.epoch),stateRoot:e.stateRoot,bridger:e.bridger,timestamp:Number(e.timestamp),txHash:e.txHash,challenged:e.challenged,verified:e.verified,challenge:e.challenge.map(t=>({txHash:t.txHash,timestamp:Number(t.timestamp),challenger:t.challenger})),verification:e.verification.map(t=>({startTimestamp:t.startTimestamp!==null?Number(t.startTimestamp):void 0,startCaller:t.startCaller??void 0,startTxHash:t.startTxHash??void 0,verifiedTimestamp:t.verifiedTimestamp!==null?Number(t.verifiedTimestamp):void 0,verifiedCaller:t.verifiedCaller??void 0,verifiedTxHash:t.verifiedTxHash??void 0}))}}function LV(e,t,n,r){return{route:e,epoch:t,snapshot:n,claim:r,status:iPe(n,r)}}const lPe=200;async function cPe(e){const t=`
166    query GetSnapshots($inbox: String!, $limit: Int!) {
167      Snapshot(
168        where: { inbox_id: { _eq: $inbox }, saved: { _eq: true } }
169        order_by: { timestamp: desc }
170        limit: $limit
171      ) { ${DV} }
172    }
173  `,n=await Ri(Ni,t,{inbox:e.inboxAddress,limit:lPe});return n?n.Snapshot.map(UV):null}async function uPe(e){if(e.length===0)return[];const n=(await Promise.all(e.map(async f=>({route:f,snapshots:await cPe(f)})))).filter(f=>f.snapshots!==null);if(n.length===0)return null;const r=n.flatMap(({route:f,snapshots:p})=>p.filter(m=>m.epoch!==void 0).map(m=>({route:f,epoch:m.epoch,snapshot:m}))),a=new Map;for(const f of r){const p=a.get(f.route.outboxAddress);p?p.add(f.epoch):a.set(f.route.outboxAddress,new Set([f.epoch]))}const s=`
174    query GetClaims($outbox: String!, $epochs: [numeric!]!) {
175      Claim(where: { outbox_id: { _eq: $outbox }, epoch: { _in: $epochs } }) { ${FV} }
176    }
177  `,i=[...a.entries()],l=await Promise.all(i.map(([f,p])=>Ri(Ni,s,{outbox:f,epochs:[...p].map(String)}))),c=new Map,u=new Set;return i.forEach(([f],p)=>{const m=l[p];if(m===null){u.add(f);return}for(const h of m.Claim){const y=jV(h);c.set(`${f}_${y.epoch}`,y)}}),r.map(({route:f,epoch:p,snapshot:m})=>{const h=c.get(`${f.outboxAddress}_${p}`)??null,y=LV(f,p,m,h);return h===null&&u.has(f.outboxAddress)?{...y,status:"Unknown"}:y}).sort((f,p)=>{var m,h;return(((m=p.snapshot)==null?void 0:m.timestamp)??0)-(((h=f.snapshot)==null?void 0:h.timestamp)??0)})}async function dPe(e,t){const n=`
178    query GetSnapshot($inbox: String!, $epoch: numeric!) {
179      Snapshot(where: { inbox_id: { _eq: $inbox }, epoch: { _eq: $epoch } }, limit: 1) { ${DV} }
180    }
181  `,r=await Ri(Ni,n,{inbox:e.inboxAddress,epoch:String(t)});if(!r||r.Snapshot.length===0)return null;const a=UV(r.Snapshot[0]),s=`
182    query GetClaim($outbox: String!, $epoch: numeric!) {
183      Claim(where: { outbox_id: { _eq: $outbox }, epoch: { _eq: $epoch } }, limit: 1) { ${FV} }
184    }
185  `,i=await Ri(Ni,s,{outbox:e.outboxAddress,epoch:String(t)}),l=i!=null&&i.Claim[0]?jV(i.Claim[0]):null,c=`
186    query GetMessages($snapshot: String!, $limit: Int!, $offset: Int!) {
187      Message(
188        where: { snapshot_id: { _eq: $snapshot } }
189        order_by: { timestamp: asc }
190        limit: $limit
191        offset: $offset
192      ) {
193        id txHash timestamp from to
194      }
195    }
196  `,u=[];for(let x=0;;x+=Eu){const C=await Ri(Ni,c,{snapshot:a.id,limit:Eu,offset:x});if(C===null)throw new n8;if(u.push(...C.Message),C.Message.length<Eu)break}const f=u.map(x=>`${e.outboxAddress}-${x.id.split("-")[1]}`),p=new Map,m=`
197    query GetRelayed($ids: [String!]!) { MessageExecution(where: { id: { _in: $ids } }) { id txHash relayer } }
198  `,h=await Promise.all(Array.from({length:Math.ceil(f.length/Eu)},(x,C)=>Ri(Ni,m,{ids:f.slice(C*Eu,(C+1)*Eu)})));for(const x of h){if(x===null)throw new n8;for(const C of x.MessageExecution)p.set(C.id,C)}const y=u.map(x=>{const C=x.id.split("-")[1],T=p.get(`${e.outboxAddress}-${C}`);return{id:x.id,nonce:Number(C),txHash:x.txHash,timestamp:Number(x.timestamp),from:x.from,to:x.to,executed:!!T,relayedTxHash:T==null?void 0:T.txHash,relayer:T==null?void 0:T.relayer}});return{row:LV(e,t,a,l),messages:y}}async function fPe(e){const t=e.toLowerCase(),n=Fo.map(async s=>{var u;const l=await Ri(Ni,`
199      query FindSnapshotByTx($inbox: String!, $tx: String!) {
200        Snapshot(where: { inbox_id: { _eq: $inbox }, txHash: { _eq: $tx } }, limit: 1) { epoch }
201      }
202    `,{inbox:s.inboxAddress,tx:t}),c=(u=l==null?void 0:l.Snapshot[0])==null?void 0:u.epoch;return c!=null?{route:s,epoch:Number(c)}:null}),r=Fo.map(async s=>{var u;const l=await Ri(Ni,`
203      query FindClaimByTx($outbox: String!, $tx: String!) {
204        Claim(where: { outbox_id: { _eq: $outbox }, txHash: { _eq: $tx } }, limit: 1) { epoch }
205      }
206    `,{outbox:s.outboxAddress,tx:t}),c=(u=l==null?void 0:l.Claim[0])==null?void 0:u.epoch;return c!=null?{route:s,epoch:Number(c)}:null});return(await Promise.all([...n,...r])).find(s=>s!==null)??null}async function pPe(e){const t=`
207    query FindSnapshotByEpoch($inbox: String!, $epoch: numeric!) {
208      Snapshot(where: { inbox_id: { _eq: $inbox }, epoch: { _eq: $epoch }, saved: { _eq: true } }, limit: 1) {
209        epoch
210        timestamp
211      }
212    }
213  `,r=(await Promise.all(Fo.map(async a=>{const s=await Ri(Ni,t,{inbox:a.inboxAddress,epoch:String(e)}),i=s==null?void 0:s.Snapshot[0];return i?{route:a,epoch:Number(i.epoch),timestamp:Number(i.timestamp??0)}:null}))).filter(a=>a!==null);return r.length===0?null:r.reduce((a,s)=>s.timestamp>a.timestamp?s:a)}const mPe=/^0x[a-fA-F0-9]{64}$/,hPe=/^\d{1,15}$/;function yPe(){const[e,t]=G.useState(""),[n,r]=G.useState(!1),[a,s]=G.useState(null),i=Bc(),l=u=>{t(u),a&&s(null)},c=async u=>{const f=u.trim();if(!f)return;const p=mPe.test(f),m=hPe.test(f);if(!p&&!m){s("Enter a transaction hash (0x + 64 hex characters) or an epoch number.");return}r(!0),s(null);try{const h=p?await fPe(f):await pPe(Number(f));h?i(`/vea/${h.route.bridgeKey}/${h.route.network}/${h.epoch}`):s(p?"No epoch found for that transaction hash.":"No epoch found with that number.")}catch(h){console.error("Failed to route to epoch:",h),s("Search failed. Please try again.")}finally{r(!1)}};return W.jsxs("div",{className:"flex flex-wrap items-start gap-2 w-full",children:[W.jsx(lL,{value:e,onChange:l,onSubmit:c,isDisabled:n,isInvalid:!!a,showFieldError:!!a,fieldErrorProps:{children:a??void 0},placeholder:"Search by epoch number or transaction hash...",className:"flex-1"}),W.jsx(Ho,{variant:"primary",text:"Search",isLoading:n,isDisabled:!e.trim()||n,onPress:()=>c(e)})]})}function bPe(e){const[t,n]=G.useState([]),[r,a]=G.useState(!0),[s,i]=G.useState(null);return G.useEffect(()=>{let l=!1;return a(!0),i(null),n([]),uPe(e).then(c=>{l||(c===null?(i("Could not reach the Vea indexer."),n([])):n(c),a(!1))}).catch(()=>{l||(i("Could not reach the Vea indexer."),n([]),a(!1))}),()=>{l=!0}},[e]),{rows:t,isLoading:r,error:s}}const Ww=10;function gPe(){const[e,t]=G.useState("testnet"),[n,r]=G.useState(Gt),[a,s]=G.useState(Gt),[i,l]=G.useState(1),c=G.useMemo(()=>ePe(e,n,a),[e,n,a]),{rows:u,isLoading:f,error:p}=bPe(c),m=Math.max(1,Math.ceil(u.length/Ww));G.useEffect(()=>{i>m&&l(m)}
213,[m,i]);const h=G.useMemo(()=>{const v=(i-1)*Ww;return u.slice(v,v+Ww)},[u,i]),y=v=>{t(v),l(1)},x=v=>{r(v),s(Gt),l(1)},C=v=>{s(v),l(1)},T=n!==Gt||a!==Gt,w=()=>{r(Gt),s(Gt),l(1)};return W.jsxs("div",{className:"min-h-screen",children:[W.jsx(lm,{}),W.jsxs("main",{className:"max-w-7xl mx-auto p-6 space-y-6",children:[W.jsxs("div",{className:"animate-fade-in",children:[W.jsx("h2",{className:"text-2xl font-bold bg-linear-to-r from-white to-(--text-secondary) bg-clip-text text-transparent",children:"Vea Epochs"}),W.jsx("p",{className:"text-sm text-(--text-muted) mt-1",children:"Snapshot, claim, and verification lifecycle for each Vea bridge epoch."})]}),W.jsx("div",{className:"animate-fade-in",style:{animationDelay:"0.05s"},children:W.jsx(yPe,{})}),W.jsx("div",{className:"animate-fade-in",style:{animationDelay:"0.08s"},children:W.jsx(nPe,{network:e,onNetworkChange:y,sourceChain:n,destChain:a,onSourceChange:x,onDestChange:C,hasActiveFilter:T,onClearFilters:w})}),p&&W.jsx("div",{className:"p-4 bg-red-500/10 border border-red-500/20 rounded-base text-red-500 text-sm animate-fade-in",children:p}),W.jsx("div",{className:"animate-fade-in",style:{animationDelay:"0.1s"},children:W.jsx(aPe,{rows:h,isLoading:f,onClearFilters:w})}),W.jsx("div",{className:"animate-fade-in",style:{animationDelay:"0.2s"},children:W.jsx(dV,{currentPage:i,totalPages:m,onPageChange:l})})]})]})}function xPe({row:e}){const t=vPe(e);return t.length===0?W.jsx("p",{className:"text-sm text-(--text-muted)",children:"No on-chain events recorded for this epoch yet."}):W.jsx("ol",{className:"space-y-4",children:t.map((n,r)=>{const a=V4(n.chainId,n.txHash);return W.jsxs("li",{className:"flex items-start gap-4 animate-fade-in",style:{animationDelay:`${r*.05}s`},children:[W.jsx("div",{className:"w-2.5 h-2.5 mt-1.5 rounded-full bg-purple-500 shrink-0"}),W.jsxs("div",{className:"flex-1 min-w-0 pb-4 border-b border-(--border) last:border-none",children:[W.jsxs("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[W.jsx("span",{className:"text-sm font-semibold",children:n.title}),W.jsx(Va,{chainId:n.chainId})]}),W.jsxs("div",{className:"mt-1 flex items-center gap-3 flex-wrap text-xs text-(--text-muted)",children:[a?W.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-purple-400 hover:text-purple-300",children:[n.txHash.slice(0,10),"…",n.txHash.slice(-8)]}):W.jsx(Us,{copiableContent:n.txHash,info:"Copy transaction hash",children:W.jsxs("span",{className:"font-mono",children:[n.txHash.slice(0,10),"…",n.txHash.slice(-8)]})}),n.caller&&W.jsxs("span",{className:"font-mono",children:[n.caller.slice(0,6),"…",n.caller.slice(-4)]}),W.jsx("span",{children:xg(n.timestamp)})]})]})]},`${n.title}-${n.txHash}`)})})}function vPe(e){const{snapshot:t,claim:n,route:r}=e,a=[];t!=null&&t.txHash&&a.push({title:"Snapshot Saved",chainId:r.sourceChainId,txHash:t.txHash,timestamp:t.timestamp,caller:t.caller}),n!=null&&n.txHash&&a.push({title:"Claimed",chainId:r.destinationChainId,txHash:n.txHash,timestamp:n.timestamp,caller:n.bridger});const s=n==null?void 0:n.challenge[0];s&&a.push({title:"Challenged",chainId:r.destinationChainId,txHash:s.txHash,timestamp:s.timestamp,caller:s.challenger});const i=n==null?void 0:n.verification[0];i!=null&&i.startTxHash&&a.push({title:"Verification Started",chainId:r.destinationChainId,txHash:i.startTxHash,timestamp:i.startTimestamp,caller:i.startCaller}),i!=null&&i.verifiedTxHash&&a.push({title:s?"Resolved":"Verified",chainId:r.destinationChainId,txHash:i.verifiedTxHash,timestamp:i.verifiedTimestamp,caller:i.verifiedCaller});const l=t==null?void 0:t.fallback[0];return l&&a.push({title:"Fallback Executed",chainId:r.sourceChainId,txHash:l.txHash,timestamp:l.timestamp,caller:l.executor}),a}function wPe({messages:e,sourceChainId:t}){return e.length===0?W.jsx("div",{className:"glass border border-(--border) py-10 text-center",children:W.jsx("p",{className:"text-(--text-muted) text-sm",children:"No messages in this snapshot."})}):W.jsx("div",{className:"glass overflow-hidden border border-(--border)",children:W.jsx("div",{className:"overflow-x-auto",children:W.jsxs("table",{className:"w-full",children:[W.jsx("thead",{children:W.jsx("tr",{className:"border-b border-(--border) bg-(--surface)",children:["Nonce","From","To","Transaction","Status","Timestamp"].map(n=>
213W.jsx("th",{className:"px-6 py-3 text-left text-xs font-semibold text-(--text-muted) uppercase tracking-wider",children:n},n))})}),W.jsx("tbody",{className:"divide-y divide-(--border)",children:e.map(n=>{const r=V4(t,n.txHash);return W.jsxs("tr",{className:"animate-fade-in",children:[W.jsxs("td",{className:"px-6 py-3 font-mono text-sm text-(--text-secondary)",children:["#",n.nonce]}),W.jsxs("td",{className:"px-6 py-3 font-mono text-xs",children:[n.from.slice(0,6),"…",n.from.slice(-4)]}),W.jsxs("td",{className:"px-6 py-3 font-mono text-xs",children:[n.to.slice(0,6),"…",n.to.slice(-4)]}),W.jsx("td",{className:"px-6 py-3",children:r?W.jsxs("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-xs text-purple-400 hover:text-purple-300",children:[n.txHash.slice(0,10),"…",n.txHash.slice(-8)]}):W.jsx(Us,{copiableContent:n.txHash,info:"Copy transaction hash",children:W.jsxs("span",{className:"font-mono text-xs",children:[n.txHash.slice(0,10),"…",n.txHash.slice(-8)]})})}),W.jsx("td",{className:"px-6 py-3",children:W.jsx("span",{className:`px-2.5 py-1 rounded-full text-xs font-medium whitespace-nowrap ${n.executed?"bg-(--klerosUIComponentsSuccessLight) text-(--klerosUIComponentsSuccess)":"bg-(--klerosUIComponentsWarningLight) text-(--klerosUIComponentsWarning)"}`,children:n.executed?"Executed":"Pending"})}),W.jsx("td",{className:"px-6 py-3 text-sm text-(--text-secondary)",children:xg(n.timestamp)})]},n.id)})})]})})})}function EPe(e,t){const[n,r]=G.useState(null),[a,s]=G.useState([]),[i,l]=G.useState(!0),[c,u]=G.useState(null);return G.useEffect(()=>{let f=!1;return l(!0),u(null),dPe(e,t).then(p=>{f||(p===null?(u("Epoch not found."),r(null),s([])):(r(p.row),s(p.messages)),l(!1))}).catch(p=>{f||(u(p instanceof n8?p.message:"Epoch not found."),r(null),s([]),l(!1))}),()=>{f=!0}},[e,t]),{row:n,messages:a,isLoading:i,error:c}}function kPe(){const e=Bc(),t=GR(),n=t.bridgeKey,r=t.network,a=Number(t.epoch),s=Q9e(n,r);return W.jsxs("div",{className:"min-h-screen",children:[W.jsx(lm,{}),W.jsxs("main",{className:"max-w-7xl mx-auto px-6 py-8 space-y-4",children:[W.jsx(Ho,{variant:"secondary",small:!0,onPress:()=>e("/vea"),icon:W.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),text:"Back to Vea Epochs"}),!s||Number.isNaN(a)?W.jsx(CPe,{}):W.jsx(APe,{route:s,epoch:a})]})]})}function CPe(){return W.jsxs("div",{className:"glass border border-red-500/20 p-10 text-center animate-fade-in",children:[W.jsx("p",{className:"text-sm font-medium text-red-400 mb-1",children:"Invalid epoch link"}),W.jsx("p",{className:"text-xs text-(--text-muted)",children:"The bridge, network, or epoch in this URL is not recognized."})]})}function APe({route:e,epoch:t}){var i,l,c;const{row:n,messages:r,isLoading:a,error:s}=EPe(e,t);return a?W.jsx("div",{className:"glass border border-(--border) p-10 text-center animate-fade-in",children:W.jsx("p",{className:"text-sm text-(--text-muted)",children:"Loading epoch…"})}):s||!n?W.jsxs("div",{className:"glass border border-red-500/20 p-10 text-center animate-fade-in",children:[W.jsx("p",{className:"text-sm font-medium text-red-400 mb-1",children:"Not found"}),W.jsx("p",{className:"text-xs text-(--text-muted)",children:s??"This epoch could not be loaded."})]}):W.jsxs(W.Fragment,{children:[W.jsxs(ds,{delay:"0.05s",children:[W.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[W.jsxs("div",{className:"flex items-center gap-3",children:[W.jsx(Va,{chainId:e.sourceChainId}),W.jsx("svg",{className:"w-4 h-4 text-purple-500 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})}),W.jsx(Va,{chainId:e.destinationChainId}),W.jsxs("span",{className:"font-mono text-sm text-(--text-secondary)",children:["Epoch #",t]})]}),W.jsx(MV,{status:n.status})]}),W.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-4 text-sm",children:[W.jsxs("div",{children:[W.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-(--text-muted) mb-1",children:"State Root"}),W.jsx("p",{className:"font-mono text-xs break-all",children:((i=n.snapshot)==null?void 0:i.stateRoot)??((l=n.claim)==null?void 0:l.stateRoot)??"—"})]}),W.jsxs("div",{children:[W.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-(--text-muted) mb-1",children:"Messages"}),W.jsx("p",{className:"font-mono text-xs",children:((c=n.snapshot)==null?void 0:c.numberMessages)??r.length})]})]})]}),W.jsx(ds,{label:"Lifecycle",icon:"info",delay:"0.1s",children:W.jsx(xPe,{row:n})}),W.jsx(ds,{label:"Messages",icon:"route",delay:"0.15s",children:W.jsx(wPe,{messages:r,sourceChainId:e.sourceChainId})})]})}const PPe=YW([{element:W.jsx(mJ,{}),children:[{path:"/",element:W.jsx(x9e,{})},{path:"/routes",element:W.jsx(Z9e,{})},{path:"/vea",element:W.jsx(gPe,{})}
213,{path:"/vea/:bridgeKey/:network/:epoch",element:W.jsx(kPe,{})},{path:"/tx/*",element:W.jsx(K9e,{})}]}]);_q.createRoot(document.getElementById("root")).render(W.jsx(G.StrictMode,{children:W.jsx(lJ,{router:PPe})}));export{Oe as B,x0 as H,G4e as a,Ku as b,Pd as c,k1e as d,Fc as e,Oo as f,HE as g,xd as h,Ka as i,It as j,bg as l,Jn as s};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.