\"u\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\"function\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),H0.exports=JM(),H0.exports}var e9=WM(),t9=\"__TSS_CONTEXT\",Iy=Symbol.for(\"TSS_SERVER_FUNCTION\"),n9=\"application/x-tss-framed\",Jr={JSON:0,CHUNK:1,END:2,ERROR:3},r9=/;\\s*v=(\\d+)/;function i9(e){const t=e.match(r9);return t?parseInt(t[1],10):void 0}function a9(e){const t=i9(e);if(t!==void 0&&t!==1)throw new Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var tS=()=>window.__TSS_START_OPTIONS__;const nS=!1;function uc(e){return e[e.length-1]}function s9(e){return typeof e==\"function\"}function Ua(e,t){return s9(e)?e(t):e}const rS=Object.prototype.hasOwnProperty,U6=Object.prototype.propertyIsEnumerable;function iS(e){for(const t in e)if(rS.call(e,t))return!0;return!1}const o9=()=>Object.create(null),La=(e,t)=>Da(e,t,o9);function Da(e,t,n=()=>({}),i=0){if(e===t)return e;if(i>500)return t;const s=t,u=q6(e)&&q6(s);if(!u&&!(md(e)&&md(s)))return s;const c=u?e:D6(e);if(!c)return s;const f=u?s:D6(s);if(!f)return s;const d=c.length,p=f.length,y=u?new Array(p):n();let m=0;for(let b=0;b\"u\")return!0;const n=t.prototype;return!(!H6(n)||!n.hasOwnProperty(\"isPrototypeOf\"))}function H6(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function q6(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xt(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,s=e.length;is||!Xt(e[c],t[c],n)))return!1;return s===u}return!1}function Xa(e){let t,n;const i=new Promise((s,u)=>{t=s,n=u});return i.status=\"pending\",i.resolve=s=>{i.status=\"resolved\",i.value=s,t(s),e?.(s)},i.reject=s=>{i.status=\"rejected\",n(s)},i}function u9(e){return typeof e?.message!=\"string\"?!1:e.message.startsWith(\"Failed to fetch dynamically imported module\")||e.message.startsWith(\"error loading dynamically imported module\")||e.message.startsWith(\"Importing a module script failed\")}function cc(e){return!!(e&&typeof e==\"object\"&&typeof e.then==\"function\")}function c9(e){return e.replace(/[\\x00-\\x1f\\x7f]/g,\"\")}function F6(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return c9(t)}const l9=[\"http:\",\"https:\",\"mailto:\",\"tel:\"];function gd(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}const f9={\"&\":\"\\\\u0026\",\">\":\"\\\\u003e\",\"<\":\"\\\\u003c\",\"\\u2028\":\"\\\\u2028\",\"\\u2029\":\"\\\\u2029\"},d9=/[&><\\u2028\\u2029]/g;function p9(e){return e.replace(d9,t=>f9[t])}function Ku(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\\\\x00-\\x1f\\x7f]/.test(e)&&!e.startsWith(\"//\"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,i=\"\",s;for(;(s=t.exec(e))!==null;)i+=F6(e.slice(n,s.index))+s[0],n=t.lastIndex;i=i+F6(n?e.slice(n):e);let u=!1;return i.startsWith(\"//\")&&(u=!0,i=\"/\"+i.replace(/^\\/+/,\"\")),{path:i,handledProtocolRelativeURL:u}}function h9(e){return/\\s|[^\\u0000-\\u007F]/.test(e)?e.replace(/\\s|[^\\u0000-\\u007F]/gu,encodeURIComponent):e}function y9(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{u.next&&(u.prev?(u.prev.next=u.next,u.next.prev=u.prev,u.next=void 0,i&&(i.next=u,u.prev=i)):(u.next.prev=void 0,n=u.next,u.next=void 0,i&&(u.prev=i,i.next=u)),i=u)};return{get(u){const c=t.get(u);if(c)return s(c),c.value},set(u,c){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===i&&(i=void 0)}const f=t.get(u);if(f)f.value=c,s(f);else{const d={key:u,value:c,prev:i};i&&(i.next=d),i=d,n||(n=d),t.set(u,d)}},clear(){t.clear(),n=void 0,i=void 0}}}const Wi=4,aS=5;function m9(e){const t=e.indexOf(\"{\");if(t===-1)return null;const n=e.indexOf(\"}\",t);return n===-1||t+1>=e.length?null:[t,n]}function sS(e,t,n=new Uint16Array(6)){const i=e.indexOf(\"/\",t),s=i===-1?e.length:i,u=e.substring(t,s);if(!u||!u.includes(\"$\"))return n[0]=0,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n;if(u===\"$\"){const f=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=f,n[4]=f,n[5]=f,n}if(u.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=s,n[4]=s,n[5]=s,n;const c=m9(u);if(c){const[f,d]=c,p=u.charCodeAt(f+1);if(p===45){if(f+2!z.parse&&z.caseSensitive===_&&z.prefix===C&&z.suffix===P);if(I)x=I;else{const z=V0(1,n.fullPath??n.from,_,C,P);x=z,z.depth=u,z.parent=s,s.dynamic??=[],s.dynamic.push(z)}break}case 3:{const A=d.substring(S,v[1]),R=d.substring(v[4],E),_=y&&!!(A||R),C=A?_?A:A.toLowerCase():void 0,P=R?_?R:R.toLowerCase():void 0,I=!m&&s.optional?.find(z=>!z.parse&&z.caseSensitive===_&&z.prefix===C&&z.suffix===P);if(I)x=I;else{const z=V0(3,n.fullPath??n.from,_,C,P);x=z,z.parent=s,z.depth=u,s.optional??=[],s.optional.push(z)}break}case 2:{const A=d.substring(S,v[1]),R=d.substring(v[4],E),_=y&&!!(A||R),C=A?_?A:A.toLowerCase():void 0,P=R?_?R:R.toLowerCase():void 0,I=V0(2,n.fullPath??n.from,_,C,P);x=I,I.parent=s,I.depth=u,s.wildcard??=[],s.wildcard.push(I)}}s=x}if(m&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(\"/\")+1)===95){const v=Ha(n.fullPath??n.from);v.kind=aS,v.parent=s,u++,v.depth=u,s.pathless??=[],s.pathless.push(v),s=v}const b=(n.path||!n.children)&&!n.isRoot;if(b&&d.endsWith(\"/\")){const v=Ha(n.fullPath??n.from);v.kind=Wi,v.parent=s,u++,v.depth=u,s.index=v,s=v}s.parse=m??null,s.priority=n.options?.params?.priority??0,b&&!s.route&&(s.route=n,s.fullPath=n.fullPath??n.from)}if(n.children)for(const d of n.children)Ud(e,t,d,f,s,u,c)}function K0(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Yi(e){if(e.pathless)for(const t of e.pathless)Yi(t);if(e.static)for(const t of e.static.values())Yi(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())Yi(t);if(e.dynamic?.length){e.dynamic.sort(K0);for(const t of e.dynamic)Yi(t)}if(e.optional?.length){e.optional.sort(K0);for(const t of e.optional)Yi(t)}if(e.wildcard?.length){e.wildcard.sort(K0);for(const t of e.wildcard)Yi(t)}}function Ha(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function V0(e,t,n,i,s){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:i,suffix:s}}function g9(e,t){const n=Ha(\"/\"),i=new Uint16Array(6);for(const s of e)Ud(!1,i,s,1,n,0);Yi(n),t.masksTree=n,t.flatCache=lc(1e3)}function b9(e,t){e||=\"/\";const n=t.flatCache.get(e);if(n)return n;const i=pg(e,t.masksTree);return t.flatCache.set(e,i),i}function v9(e,t,n,i,s){e||=\"/\",i||=\"/\";const u=t?`case\\0${e}`:e;let c=s.singleCache.get(u);return c||(c=Ha(\"/\"),Ud(t,new Uint16Array(6),{from:e},1,c,0),s.singleCache.set(u,c)),pg(i,c,n)}function w9(e,t,n=!1){const i=n?e:`nofuzz\\0${e}`,s=t.matchCache.get(i);if(s!==void 0)return s;e||=\"/\";let u;try{u=pg(e,t.segmentTree,n)}catch(c){if(c instanceof URIError)u=null;else throw c}return u&&(u.branch=uS(u.route)),t.matchCache.set(i,u),u}function x9(e){return e===\"/\"?e:e.replace(/\\/{1,}$/,\"\")}function S9(e,t=!1,n){const i=Ha(e.fullPath),s=new Uint16Array(6),u={},c={};let f=0;return Ud(t,s,e,1,i,0,d=>{if(n?.(d,f),d.id in u&&bn(),u[d.id]=d,f!==0&&d.path){const p=x9(d.fullPath);(!c[p]||d.fullPath.endsWith(\"/\"))&&(c[p]=d)}f++}),Yi(i),{processedTree:{segmentTree:i,singleCache:lc(1e3),matchCache:lc(1e3),flatCache:null,masksTree:null},routesById:u,routesByPath:c}}function pg(e,t,n=!1){const i=e.split(\"/\"),s=A9(e,i,t,n);if(!s)return null;const[u]=oS(e,i,s);return{route:s.node.route,rawParams:u}}function oS(e,t,n){const i=E9(n.node);let s=null;const u=Object.create(null);let c=n.extract?.part??0,f=n.extract?.node??0,d=n.extract?.path??0,p=n.extract?.segment??0;for(;f=0;z--){const k=m.wildcard[z],{prefix:L,suffix:D}=k;if(!(L&&(C||!(k.caseSensitive?P:I??=P.toLowerCase()).startsWith(L)))){if(D){if(C)continue;const Q=t.slice(b).join(\"/\").slice(-D.length);if((k.caseSensitive?Q:Q.toLowerCase())!==D)continue}f.push({node:k,index:c,skipped:v,depth:x+1,statics:S,dynamics:E,optionals:A,extract:R,rawParams:_})}}if(m.optional){const z=v|1<=0;L--){const D=m.optional[L];f.push({node:D,index:b,skipped:z,depth:k,statics:S,dynamics:E,optionals:A,extract:R,rawParams:_})}if(!C)for(let L=m.optional.length-1;L>=0;L--){const D=m.optional[L],{prefix:Q,suffix:Y}=D;if(Q||Y){const te=D.caseSensitive?P:I??=P.toLowerCase();if(Q&&!te.startsWith(Q)||Y&&!te.endsWith(Y))continue}f.push({node:D,index:b+1,skipped:v,depth:k,statics:S,dynamics:E,optionals:A+jf(c,b),extract:R,rawParams:_})}}if(!C&&m.dynamic&&P)for(let z=m.dynamic.length-1;z>=0;z--){const k=m.dynamic[z],{prefix:L,suffix:D}=k;if(L||D){const Q=k.caseSensitive?P:I??=P.toLowerCase();if(L&&!Q.startsWith(L)||D&&!Q.endsWith(D))continue}f.push({node:k,index:b+1,skipped:v,depth:x+1,statics:S,dynamics:E+jf(c,b),optionals:A,extract:R,rawParams:_})}if(!C&&m.staticInsensitive){const z=m.staticInsensitive.get(I??=P.toLowerCase());z&&f.push({node:z,index:b+1,skipped:v,depth:x+1,statics:S+jf(c,b),dynamics:E,optionals:A,extract:R,rawParams:_})}if(!C&&m.static){const z=m.static.get(P);z&&f.push({node:z,index:b+1,skipped:v,depth:x+1,statics:S+jf(c,b),dynamics:E,optionals:A,extract:R,rawParams:_})}if(m.pathless){const z=x+1;for(let k=m.pathless.length-1;k>=0;k--){const L=m.pathless[k];f.push({node:L,index:b,skipped:v,depth:z,statics:S,dynamics:E,optionals:A,extract:R,rawParams:_})}}}if(p)return p;if(i&&d){let y=d.index;for(let b=0;be.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Wi)>(e.node.kind===Wi)||t.node.kind===Wi==(e.node.kind===Wi)&&t.depth>e.depth))):!0}function od(e){return hg(e.filter(t=>t!==void 0).join(\"/\"))}function hg(e){return e.replace(/\\/{2,}/g,\"/\")}function cS(e){return e===\"/\"?e:e.replace(/^\\/{1,}/,\"\")}function li(e){const t=e.length;return t>1&&e[t-1]===\"/\"?e.replace(/\\/{1,}$/,\"\"):e}function lS(e){return li(cS(e))}function bd(e,t){return e?.endsWith(\"/\")&&e!==\"/\"&&e!==`${t}/`?e.slice(0,-1):e}function M9(e,t,n){return bd(e,n)===bd(t,n)}function _9({base:e,to:t,trailingSlash:n=\"never\",cache:i}){const s=t.startsWith(\"/\"),u=!s&&t===\".\";let c;if(i){c=s?t:u?e:e+\"\\0\"+t;const p=i.get(c);if(p)return p}let f;if(u)f=e.split(\"/\");else if(s)f=t.split(\"/\");else{for(f=e.split(\"/\");f.length>1&&uc(f)===\"\";)f.pop();const p=t.split(\"/\");for(let y=0,m=p.length;y1&&(uc(f)===\"\"?n===\"never\"&&f.pop():n===\"always\"&&f.push(\"\"));const d=hg(f.join(\"/\"))||\"/\";return c&&i&&i.set(c,d),d}function P9(e){const t=new Map(e.map(s=>[encodeURIComponent(s),s])),n=Array.from(t.keys()).map(s=>s.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")).join(\"|\"),i=new RegExp(n,\"g\");return s=>s.replace(i,u=>t.get(u)??u)}function Q0(e,t,n){const i=t[e];return typeof i!=\"string\"?i:e===\"_splat\"?/^[a-zA-Z0-9\\-._~!/]*$/.test(i)?i:i.split(\"/\").map(s=>V6(s,n)).join(\"/\"):V6(i,n)}function K6({path:e,params:t,decoder:n,...i}){let s=!1;const u=Object.create(null);if(!e||e===\"/\")return{interpolatedPath:\"/\",usedParams:u,isMissingParams:s};if(!e.includes(\"$\"))return{interpolatedPath:e,usedParams:u,isMissingParams:s};const c=e.length;let f=0,d,p=\"\";for(;f{t[0]===\"?\"&&(t=t.substring(1));const n=C9(t);for(const i in n){const s=n[i];if(typeof s==\"string\")try{n[i]=e(s)}catch{}}return n}}function I9(e,t){const n=typeof t==\"function\";function i(s){if(typeof s==\"object\"&&s!==null)try{return e(s)}catch{}else if(n&&typeof s==\"string\")try{return t(s),e(s)}catch{}return s}return s=>{const u=fS(s,i);return u?`?${u}`:\"\"}}const Va=\"__root__\";function yg(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==\"string\")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get(\"Location\")===null&&t.set(\"Location\",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function yn(e){return e instanceof Response&&!!e.options}function k9(e){if(e!==null&&typeof e==\"object\"&&e.isSerializedRedirect)return yg(e)}const ky=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},$9=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Dd=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Qa=(e,t,n=!0)=>{const i={...e.router.options.context??{}},s=n?t:t-1;for(let u=0;u<=s;u++){const c=e.matches[u];if(!c)continue;const f=e.router.getMatch(c.id);f&&Object.assign(i,f.__routeContext,f.__beforeLoadContext)}return i},Q6=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,i=e.matches.findIndex(c=>c.routeId===e.router.routeTree.id),s=i>=0?i:0;let u=n?e.matches.findIndex(c=>c.routeId===n):e.firstBadMatchIndex??e.matches.length-1;u<0&&(u=s);for(let c=u;c>=0;c--){const f=e.matches[c];if(e.router.looseRoutesById[f.routeId].options.notFoundComponent)return c}return n?u:s},ea=(e,t,n)=>{if(!(!yn(n)&&!zt(n)))throw yn(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,i=>({...i,status:yn(n)?\"redirected\":zt(n)?\"notFound\":i.status===\"pending\"?\"success\":i.status,context:Qa(e,t.index),isFetching:!1,error:n})),zt(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),yn(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},dS=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Z6=(e,t,n)=>{const i=Qa(e,n);e.updateMatch(t,s=>({...s,context:i}))},Vu=(e,t,n)=>{const{id:i,routeId:s}=e.matches[t],u=e.router.looseRoutesById[s];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,ea(e,e.router.getMatch(i),n);try{u.options.onError?.(n)}catch(c){n=c,ea(e,e.router.getMatch(i),n)}e.updateMatch(i,c=>(c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,c._nonReactive.loadPromise?.resolve(),{...c,error:n,status:\"error\",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!yn(n)&&!zt(n)&&(e.serialError??=n)},pS=(e,t,n,i)=>{if(i._nonReactive.pendingTimeout!==void 0)return;const s=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Dd(e,t)&&(n.options.loader||n.options.beforeLoad||yS(n))&&typeof s==\"number\"&&s!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){const u=setTimeout(()=>{ky(e)},s);i._nonReactive.pendingTimeout=u}},B9=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;pS(e,t,n,i);const s=()=>{const u=e.router.getMatch(t);u.preload&&(u.status===\"redirected\"||u.status===\"notFound\")&&ea(e,u,u.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},N9=(e,t,n,i)=>{const s=e.router.getMatch(t);let u=s._nonReactive.loadPromise;s._nonReactive.loadPromise=Xa(()=>{u?.resolve(),u=void 0});const{paramsError:c,searchError:f}=s;c&&Vu(e,n,c),f&&Vu(e,n,f),pS(e,t,i,s);const d=new AbortController;let p=!1;const y=()=>{p||(p=!0,e.updateMatch(t,C=>({...C,isFetching:\"beforeLoad\",fetchCount:C.fetchCount+1,abortController:d})))},m=()=>{s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,C=>({...C,isFetching:!1}))};if(!i.options.beforeLoad){e.router.batch(()=>{y(),m()});return}s._nonReactive.beforeLoadPromise=Xa();const b={...Qa(e,n,!1),...s.__routeContext},{search:v,params:x,cause:S}=s,E=Dd(e,t),A={search:v,abortController:d,params:x,preload:E,context:b,location:e.location,navigate:C=>e.router.navigate({...C,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:E?\"preload\":S,matches:e.matches,routeId:i.id,...e.router.options.additionalContext},R=C=>{if(C===void 0){e.router.batch(()=>{y(),m()});return}(yn(C)||zt(C))&&(y(),Vu(e,n,C)),e.router.batch(()=>{y(),e.updateMatch(t,P=>({...P,__beforeLoadContext:C})),m()})};let _;try{if(_=i.options.beforeLoad(A),cc(_))return y(),_.catch(C=>{Vu(e,n,C)}).then(R)}catch(C){y(),Vu(e,n,C)}R(_)},L9=(e,t)=>{const{id:n,routeId:i}=e.matches[t],s=e.router.looseRoutesById[i],u=()=>f(),c=()=>N9(e,n,t,s),f=()=>{if(dS(e,n))return;const d=B9(e,n,s);return cc(d)?d.then(c):c()};return u()},j9=(e,t,n)=>{const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const s={ssr:e.router.options.ssr,matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([n.options.head?.(s),n.options.scripts?.(s),n.options.headers?.(s)]).then(([u,c,f])=>({meta:u?.meta,links:u?.links,headScripts:u?.scripts,headers:f,scripts:c,styles:u?.styles}))},hS=(e,t,n,i,s)=>{const u=t[i-1],{params:c,loaderDeps:f,abortController:d,cause:p}=e.router.getMatch(n),y=Qa(e,i),m=Dd(e,n);return{params:c,deps:f,preload:!!m,parentMatchPromise:u,abortController:d,context:y,location:e.location,navigate:b=>e.router.navigate({...b,_fromLocation:e.location}),cause:m?\"preload\":p,route:s,...e.router.options.additionalContext}},Y6=async(e,t,n,i,s)=>{try{const u=e.router.getMatch(n);try{(!(nS??e.router.isServer)||u.ssr===!0)&&fc(s);const c=s.options.loader,f=typeof c==\"function\"?c:c?.handler,d=f?.(hS(e,t,n,i,s)),p=!!f&&cc(d);if((p||s._lazyPromise||s._componentsPromise||s.options.head||s.options.scripts||s.options.headers||u._nonReactive.minPendingPromise)&&e.updateMatch(n,m=>({...m,isFetching:\"loader\"})),f){const m=p?await d:d;ea(e,e.router.getMatch(n),m),m!==void 0&&e.updateMatch(n,b=>({...b,loaderData:m}))}s._lazyPromise&&await s._lazyPromise;const y=u._nonReactive.minPendingPromise;y&&await y,s._componentsPromise&&await s._componentsPromise,e.updateMatch(n,m=>({...m,error:void 0,context:Qa(e,i),status:\"success\",isFetching:!1,updatedAt:Date.now()}))}catch(c){let f=c;if(f?.name===\"AbortError\"){if(u.abortController.signal.aborted){u._nonReactive.loaderPromise?.resolve(),u._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,p=>({...p,status:p.status===\"pending\"?\"success\":p.status,isFetching:!1,context:Qa(e,i)}));return}const d=u._nonReactive.minPendingPromise;d&&await d,zt(c)&&await s.options.notFoundComponent?.preload?.(),ea(e,e.router.getMatch(n),c);try{s.options.onError?.(c)}catch(p){f=p,ea(e,e.router.getMatch(n),p)}!yn(f)&&!zt(f)&&await fc(s,[\"errorComponent\"]),e.updateMatch(n,p=>({...p,error:f,context:Qa(e,i),status:\"error\",isFetching:!1}))}}catch(u){const c=e.router.getMatch(n);c&&(c._nonReactive.loaderPromise=void 0),ea(e,c,u)}},U9=async(e,t,n)=>{async function i(v,x,S,E,A){const R=Date.now()-x.updatedAt,_=v?A.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:A.options.staleTime??e.router.options.defaultStaleTime??0,C=A.options.shouldReload,P=typeof C==\"function\"?C(hS(e,t,s,n,A)):C,{status:I,invalid:z}=E,k=R>=_&&(!!e.forceStaleReload||E.cause===\"enter\"||S!==void 0&&S!==E.id);c=I===\"success\"&&(z||(P??k)),v&&A.options.preload===!1||(c&&!e.sync&&y?(f=!0,(async()=>{try{await Y6(e,t,s,n,A);const L=e.router.getMatch(s);L._nonReactive.loaderPromise?.resolve(),L._nonReactive.loadPromise?.resolve(),L._nonReactive.loaderPromise=void 0,L._nonReactive.loadPromise=void 0}catch(L){yn(L)&&await e.router.navigate(L.options)}})()):I!==\"success\"||c?await Y6(e,t,s,n,A):Z6(e,s,n))}const{id:s,routeId:u}=e.matches[n];let c=!1,f=!1;const d=e.router.looseRoutesById[u],p=d.options.loader,y=((typeof p==\"function\"?void 0:p?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==\"blocking\";if(dS(e,s)){if(!e.router.getMatch(s))return e.matches[n];Z6(e,s,n)}else{const v=e.router.getMatch(s),x=e.router.stores.matchesId.get()[n],S=(x&&e.router.stores.matchStores.get(x)||null)?.routeId===u?x:e.router.stores.matches.get().find(A=>A.routeId===u)?.id,E=Dd(e,s);if(v._nonReactive.loaderPromise){if(v.status===\"success\"&&!e.sync&&!v.preload&&y)return v;await v._nonReactive.loaderPromise;const A=e.router.getMatch(s),R=A._nonReactive.error||A.error;R&&ea(e,A,R),A.status===\"pending\"&&await i(E,v,S,A,d)}else{const A=E&&!e.router.stores.matchStores.has(s),R=e.router.getMatch(s);R._nonReactive.loaderPromise=Xa(),A!==R.preload&&e.updateMatch(s,_=>({..._,preload:A})),await i(E,v,S,R,d)}}const m=e.router.getMatch(s);f||(m._nonReactive.loaderPromise?.resolve(),m._nonReactive.loadPromise?.resolve(),m._nonReactive.loadPromise=void 0),clearTimeout(m._nonReactive.pendingTimeout),m._nonReactive.pendingTimeout=void 0,f||(m._nonReactive.loaderPromise=void 0),m._nonReactive.dehydrated=void 0;const b=f?m.isFetching:!1;return b!==m.isFetching||m.invalid!==!1?(e.updateMatch(s,v=>({...v,isFetching:b,invalid:!1})),e.router.getMatch(s)):m};async function X6(e){const t=e,n=[];$9(t.router)&&ky(t);let i;for(let b=0;b({...A,...E?{status:\"success\",globalNotFound:!0,error:void 0}:{status:\"notFound\",error:p},isFetching:!1})),y=b,await fc(x,[\"notFoundComponent\"])}else if(!t.preload){const b=t.matches[0];b.globalNotFound||t.router.getMatch(b.id)?.globalNotFound&&t.updateMatch(b.id,v=>({...v,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const b=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await fc(b,[\"errorComponent\"])}for(let b=0;b<=y;b++){const{id:v,routeId:x}=t.matches[b],S=t.router.looseRoutesById[x];try{const E=j9(t,v,S);if(E){const A=await E;t.updateMatch(v,R=>({...R,...A}))}}catch(E){console.error(`Error executing head for route ${x}:`,E)}}const m=ky(t);if(cc(m)&&await m,p)throw p;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function J6(e,t){const n=t.map(i=>e.options[i]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function fc(e,t=ud){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(i=>{const{id:s,...u}=i.options;Object.assign(e.options,u),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===ud?(()=>{if(e._componentsPromise===void 0){const i=J6(e,ud);i?e._componentsPromise=i.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():J6(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function yS(e){for(const t of ud)if(e.options[t]?.preload)return!0;return!1}const ud=[\"component\",\"errorComponent\",\"pendingComponent\",\"notFoundComponent\"];function D9(e){return{input:({url:t})=>{for(const n of e)t=$y(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=mS(e[n],t);return t}}}function H9(e){const t=lS(e.basepath),n=`/${t}`,i=e.caseSensitive?n:n.toLowerCase(),s=`${i}/`;return{input:({url:u})=>{const c=e.caseSensitive?u.pathname:u.pathname.toLowerCase();return c===i?u.pathname=\"/\":c.startsWith(s)&&(u.pathname=u.pathname.slice(n.length)),u},output:({url:u})=>(u.pathname=od([\"/\",t,u.pathname]),u)}}function $y(e,t){const n=e?.input?.({url:t});if(n){if(typeof n==\"string\")return new URL(n);if(n instanceof URL)return n}return t}function mS(e,t){const n=e?.output?.({url:t});if(n){if(typeof n==\"string\")return new URL(n);if(n instanceof URL)return n}return t}function q9(e,t){const{createMutableStore:n,createReadonlyStore:i,batch:s,init:u}=t,c=new Map,f=new Map,d=new Map,p=n(e.status),y=n(e.loadedAt),m=n(e.isLoading),b=n(e.isTransitioning),v=n(e.location),x=n(e.resolvedLocation),S=n(e.statusCode),E=n(e.redirect),A=n([]),R=n([]),_=n([]),C=i(()=>Y0(c,A.get())),P=i(()=>Y0(f,R.get())),I=i(()=>Y0(d,_.get())),z=i(()=>A.get()[0]),k=i(()=>A.get().some(G=>c.get(G)?.get().status===\"pending\")),L=i(()=>({locationHref:v.get().href,resolvedLocationHref:x.get()?.href,status:p.get()})),D=i(()=>({status:p.get(),loadedAt:y.get(),isLoading:m.get(),isTransitioning:b.get(),matches:C.get(),location:v.get(),resolvedLocation:x.get(),statusCode:S.get(),redirect:E.get()})),Q=lc(64);function Y(G){let re=Q.get(G);return re||(re=i(()=>{const ce=A.get();for(const le of ce){const $=c.get(le);if($&&$.routeId===G)return $.get()}}),Q.set(G,re)),re}const te={status:p,loadedAt:y,isLoading:m,isTransitioning:b,location:v,resolvedLocation:x,statusCode:S,redirect:E,matchesId:A,pendingIds:R,cachedIds:_,matches:C,pendingMatches:P,cachedMatches:I,firstId:z,hasPending:k,matchRouteDeps:L,matchStores:c,pendingMatchStores:f,cachedMatchStores:d,__store:D,getRouteMatchStore:Y,setMatches:ue,setPending:J,setCached:N};ue(e.matches),u?.(te);function ue(G){X0(G,c,A,n,s)}function J(G){X0(G,f,R,n,s)}function N(G){X0(G,d,_,n,s)}return te}function Y0(e,t){const n=[];for(const i of t){const s=e.get(i);s&&n.push(s.get())}return n}function X0(e,t,n,i,s){const u=e.map(f=>f.id),c=new Set(u);s(()=>{for(const f of t.keys())c.has(f)||t.delete(f);for(const f of e){const d=t.get(f.id);if(!d){const p=i(f);p.routeId=f.routeId,t.set(f.id,p);continue}d.routeId=f.routeId,d.get()!==f&&d.set(f)}y9(n.get(),u)||n.set(u)})}var na=\"__TSR_index\",W6=\"popstate\",e2=\"beforeunload\";function F9(e){let t=e.getLocation();const n=new Set,i=c=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:c}))},s=c=>{e.notifyOnIndexChange??!0?i(c):t=e.getLocation()},u=async({task:c,navigateOpts:f,...d})=>{if(f?.ignoreBlocker??!1){c();return}const p=e.getBlockers?.()??[],y=d.type===\"PUSH\"||d.type===\"REPLACE\";if(typeof document<\"u\"&&p.length&&y)for(const m of p){const b=vd(d.path,d.state);if(await m.blockerFn({currentLocation:t,nextLocation:b,action:d.type})){e.onBlocked?.();return}}c()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:c=>(n.add(c),()=>{n.delete(c)}),push:(c,f,d)=>{const p=t.state[na];f=t2(p+1,f),u({task:()=>{e.pushState(c,f),i({type:\"PUSH\"})},navigateOpts:d,type:\"PUSH\",path:c,state:f})},replace:(c,f,d)=>{const p=t.state[na];f=t2(p,f),u({task:()=>{e.replaceState(c,f),i({type:\"REPLACE\"})},navigateOpts:d,type:\"REPLACE\",path:c,state:f})},go:(c,f)=>{u({task:()=>{e.go(c),s({type:\"GO\",index:c})},navigateOpts:f,type:\"GO\"})},back:c=>{u({task:()=>{e.back(c?.ignoreBlocker??!1),s({type:\"BACK\"})},navigateOpts:c,type:\"BACK\"})},forward:c=>{u({task:()=>{e.forward(c?.ignoreBlocker??!1),s({type:\"FORWARD\"})},navigateOpts:c,type:\"FORWARD\"})},canGoBack:()=>t.state[na]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const f=e.getBlockers?.()??[];return e.setBlockers([...f,c]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(p=>p!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:i}}function t2(e,t){t||(t={});const n=mg();return{...t,key:n,__TSR_key:n,[na]:e}}function G9(e){const t=typeof document<\"u\"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const u=()=>s,c=k=>s=k,f=(k=>k),d=(()=>vd(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const k=mg();t.history.replaceState({[na]:0,key:k,__TSR_key:k},\"\")}let p=d(),y,m=!1,b=!1,v=!1,x=!1;const S=()=>p;let E,A;const R=()=>{E&&(z._ignoreSubscribers=!0,(E.isPush?t.history.pushState:t.history.replaceState)(E.state,\"\",E.href),z._ignoreSubscribers=!1,E=void 0,A=void 0,y=void 0)},_=(k,L,D)=>{const Q=f(L);A||(y=p),p=vd(L,D),E={href:Q,state:D,isPush:E?.isPush||k===\"push\"},A||(A=Promise.resolve().then(()=>R()))},C=k=>{p=d(),z.notify({type:k})},P=async()=>{if(b){b=!1;return}const k=d(),L=k.state[na]-p.state[na],D=L===1,Q=L===-1,Y=!D&&!Q||m;m=!1;const te=Y?\"GO\":Q?\"BACK\":\"FORWARD\",ue=Y?{type:\"GO\",index:L}:{type:Q?\"BACK\":\"FORWARD\"};if(v)v=!1;else{const J=u();if(typeof document<\"u\"&&J.length){for(const N of J)if(await N.blockerFn({currentLocation:p,nextLocation:k,action:te})){b=!0,t.history.go(1),z.notify(ue);return}}}p=d(),z.notify(ue)},I=k=>{if(x){x=!1;return}let L=!1;const D=u();if(typeof document<\"u\"&&D.length)for(const Q of D){const Y=Q.enableBeforeUnload??!0;if(Y===!0){L=!0;break}if(typeof Y==\"function\"&&Y()===!0){L=!0;break}}if(L)return k.preventDefault(),k.returnValue=\"\"},z=F9({getLocation:S,getLength:()=>t.history.length,pushState:(k,L)=>_(\"push\",k,L),replaceState:(k,L)=>_(\"replace\",k,L),back:k=>(k&&(v=!0),x=!0,t.history.back()),forward:k=>{k&&(v=!0),x=!0,t.history.forward()},go:k=>{m=!0,t.history.go(k)},createHref:k=>f(k),flush:R,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(e2,I,{capture:!0}),t.removeEventListener(W6,P)},onBlocked:()=>{y&&p!==y&&(p=y)},getBlockers:u,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener(e2,I,{capture:!0}),t.addEventListener(W6,P),t.history.pushState=function(...k){const L=n.apply(t.history,k);return z._ignoreSubscribers||C(\"PUSH\"),L},t.history.replaceState=function(...k){const L=i.apply(t.history,k);return z._ignoreSubscribers||C(\"REPLACE\"),L},z}function K9(e){let t=e.replace(/[\\x00-\\x1f\\x7f]/g,\"\");return t.startsWith(\"//\")&&(t=\"/\"+t.replace(/^\\/+/,\"\")),t}function vd(e,t){const n=K9(e),i=n.indexOf(\"#\"),s=n.indexOf(\"?\"),u=mg();return{href:n,pathname:n.substring(0,i>0?s>0?Math.min(i,s):i:s>0?s:n.length),hash:i>-1?n.substring(i):\"\",search:s>-1?n.slice(s,i===-1?void 0:i):\"\",state:t||{[na]:0,key:u,__TSR_key:u}}}function mg(){return(Math.random()+1).toString(36).substring(7)}function V9(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function yo(e,t){const n=t,i=e;return{fromLocation:n,toLocation:i,pathChanged:n?.pathname!==i.pathname,hrefChanged:n?.href!==i.href,hashChanged:n?.hash!==i.hash}}const By=new WeakMap;var Q9=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=n=>n(),this.update=n=>{const i=this.options,s=this.basepath??i?.basepath??\"/\",u=this.basepath===void 0,c=i?.rewrite;if(this.options={...i,...n},this.isServer=this.options.isServer??typeof document>\"u\",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=P9(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=G9()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==\"null\"?this.origin=window.origin:this.origin=\"http://localhost\"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let y;this.resolvePathCache=lc(1e3),y=this.buildRouteTree(),this.setRoutes(y)}if(!this.stores&&this.latestLocation){const y=this.getStoreConfig(this);this.batch=y.batch,this.stores=q9(Y9(this.latestLocation),y),o_(this)}let f=!1;const d=this.options.basepath??\"/\",p=this.options.rewrite;if(u||s!==d||c!==p){this.basepath=d;const y=[],m=lS(d);m&&m!==\"/\"&&y.push(H9({basepath:d})),p&&y.push(p),this.rewrite=y.length===0?void 0:y.length===1?y[0]:D9(y),this.history&&this.updateLatestLocation(),f=!0}f&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<\"u\"&&\"CSS\"in window&&typeof window.CSS?.supports==\"function\"&&(this.isViewTransitionTypesSupported=window.CSS.supports(\"selector(:active-view-transition-type(a))\"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=S9(this.routeTree,this.options.caseSensitive,(i,s)=>{i.init({originalIndex:s})});return this.options.routeMasks&&g9(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,i)=>{const s={eventType:n,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=(n,i)=>{const s=({pathname:d,search:p,hash:y,href:m,state:b})=>{if(!this.rewrite&&!/[ \\x00-\\x1f\\x7f\\u0080-\\uffff]/.test(d)){const A=this.options.parseSearch(p),R=this.options.stringifySearch(A);return{href:d+R+y,publicHref:d+R+y,pathname:Ku(d).path,external:!1,searchStr:R,search:La(i?.search,A),hash:Ku(y.slice(1)).path,state:Da(i?.state,b)}}const v=new URL(m,this.origin),x=$y(this.rewrite,v),S=this.options.parseSearch(x.search),E=this.options.stringifySearch(S);return x.search=E,{href:x.href.replace(x.origin,\"\"),publicHref:m,pathname:Ku(x.pathname).path,external:!!this.rewrite&&x.origin!==this.origin,searchStr:E,search:La(i?.search,S),hash:Ku(x.hash.slice(1)).path,state:Da(i?.state,b)}},u=s(n),{__tempLocation:c,__tempKey:f}=u.state;if(c&&(!f||f===this.tempLocationKey)){const d=s(c);return d.state.key=u.state.key,d.state.__TSR_key=u.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:u}}return u},this.resolvePathWithBase=(n,i)=>_9({base:n,to:i.includes(\"//\")?hg(i):i,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,s)=>typeof n==\"string\"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>X9({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.get().forEach(n=>{if(this.stores.pendingMatchStores.has(n))return;const i=this.stores.matchStores.get(n)?.get();i&&(i.status===\"pending\"||i.isFetching===\"loader\")&&this.cancelMatch(n)})},this.buildLocation=n=>{const i=(u={})=>{const c=u._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutesLightweight(c);u.from;const d=u.unsafeRelative===\"path\"?c.pathname:u.from??f.fullPath,p=u.to?`${u.to}`:void 0,y=f.search,m=Object.assign(Object.create(null),f.params),b=p?.charCodeAt(0)===47?\"/\":this.resolvePathWithBase(d,\".\"),v=p?this.resolvePathWithBase(b,p):b,x=u.params===!1||u.params===null?Object.create(null):(u.params??!0)===!0?m:Object.assign(m,Ua(u.params,m)),S=this.routesByPath[li(v)];let E;if(S)E=this.getRouteBranch(S);else if(v.includes(\"$\"))E=[];else{const Q=this.getMatchedRoutes(v);E=Q.matchedRoutes,this.options.notFoundRoute&&(!Q.foundRoute||Q.foundRoute.path!==\"/\"&&Q.routeParams[\"**\"])&&(E=[...E,this.options.notFoundRoute])}if(E.length&&iS(x))for(const Q of E){const Y=Q.options.params?.stringify??Q.options.stringifyParams;if(Y)try{Object.assign(x,Y(x))}catch{}}const A=n.leaveParams?v:Ku(K6({path:v,params:x,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let R=y;if(n._includeValidateSearch&&this.options.search?.strict){const Q={};E.forEach(Y=>{if(Y.options.validateSearch)try{Object.assign(Q,cd(Y.options.validateSearch,{...Q,...R}))}catch{}}),R=Q}R=J9({search:R,dest:u,destRoutes:E,_includeValidateSearch:n._includeValidateSearch}),R=La(y,R);const _=this.options.stringifySearch(R),C=u.hash===!0?c.hash:u.hash?Ua(u.hash,c.hash):void 0,P=C?`#${C}`:\"\";let I=u.state===!0?c.state:u.state?Ua(u.state,c.state):{};I=Da(c.state,I);const z=`${A}${_}${P}`;let k,L,D=!1;if(this.rewrite){const Q=new URL(z,this.origin),Y=mS(this.rewrite,Q);k=Q.href.replace(Q.origin,\"\"),Y.origin!==this.origin?(L=Y.href,D=!0):L=Y.pathname+Y.search+Y.hash}else k=h9(z),L=k;return{publicHref:L,href:k,pathname:A,search:R,searchStr:_,state:I,hash:C??\"\",external:D,unmaskOnReload:u.unmaskOnReload}},s=(u={},c)=>{const f=i(u);let d=c?i(c):void 0;if(!d){const p=Object.create(null);if(this.options.routeMasks){const y=b9(f.pathname,this.processedTree);if(y){Object.assign(p,y.rawParams);const{from:m,params:b,...v}=y.route,x=b===!1||b===null?Object.create(null):(b??!0)===!0?p:Object.assign(p,Ua(b,p));c={from:n.from,...v,params:x},d=i(c)}}}return d&&(f.maskedLocation=d),f};return n.mask?s(n,{from:n.from,...n.mask}):s(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:i,...s})=>{let u;const c=()=>{const p=[\"key\",\"__TSR_key\",\"__TSR_index\",\"__hashScrollIntoViewOptions\"];p.forEach(m=>{s.state[m]=this.latestLocation.state[m]});const y=Xt(s.state,this.latestLocation.state);return p.forEach(m=>{delete s.state[m]}),y},f=li(this.latestLocation.href)===li(s.href);let d=this.commitLocationPromise;if(this.commitLocationPromise=Xa(()=>{d?.resolve(),d=void 0}),f&&c())this.load();else{let{maskedLocation:p,hashScrollIntoView:y,...m}=s;p&&(m={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...m,search:m.searchStr,state:{...m.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(m.unmaskOnReload??this.options.unmaskOnReload??!1)&&(m.state.__tempKey=this.tempLocationKey)),m.state.__hashScrollIntoViewOptions=y??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,u=s.replace?\"REPLACE\":\"PUSH\",this.history[u===\"REPLACE\"?\"replace\":\"push\"](m.publicHref,m.state,{ignoreBlocker:i})}return this._scroll.next=s.resetScroll??!0,this.history.subscribers.size||this.load(u?{action:{type:u}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:s,viewTransition:u,ignoreBlocker:c,href:f,...d}={})=>{if(f){const m=this.history.location.state.__TSR_index,b=vd(f,{__TSR_index:n?m:m+1}),v=new URL(b.pathname,this.origin);d.to=$y(this.rewrite,v).pathname,d.search=this.options.parseSearch(b.search),d.hash=b.hash.slice(1)}const p=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const y=this.commitLocation({...p,viewTransition:u,replace:n,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:c});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:n,reloadDocument:i,href:s,publicHref:u,...c})=>{let f=!1;if(s)try{new URL(`${s}`),f=!0}catch{}if(f&&!i&&(i=!0),i){if(n!==void 0||!s){const p=this.buildLocation({to:n,...c});s=s??p.publicHref,u=u??p.publicHref}const d=!f&&u?u:s;if(gd(d,this.protocolAllowlist))return Promise.resolve();if(!c.ignoreBlocker){const p=this.history.getBlockers?.()??[];for(const y of p)if(y?.blockerFn&&await y.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:\"PUSH\"}))return Promise.resolve()}return c.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...c,href:s,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),i=this.stores.cachedMatches.get().filter(s=>!n.some(u=>u.id===s.id));this.batch(()=>{this.stores.status.set(\"pending\"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(n),this.stores.setCached(i)})},this.load=async n=>{const i=n?.action?.type;let s,u,c;const f=this.stores.resolvedLocation.get()??this.stores.location.get();for(c=new Promise(p=>{this.startTransition(async()=>{try{this.beforeLoad(),i?By.set(this.latestLocation,i):By.delete(this.latestLocation);const y=this.latestLocation,m=yo(y,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:\"onBeforeNavigate\",...m}),this.emit({type:\"onBeforeLoad\",...m}),await X6({router:this,sync:n?.sync,forceStaleReload:f.href===y.href,matches:this.stores.pendingMatches.get(),location:y,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=null,v=null,x=null,S=null;this.batch(()=>{const E=this.stores.pendingMatches.get(),A=E.length,R=this.stores.matches.get();b=A?R.filter(P=>!this.stores.pendingMatchStores.has(P.id)):null;const _=new Set;for(const P of this.stores.pendingMatchStores.values())P.routeId&&_.add(P.routeId);const C=new Set;for(const P of this.stores.matchStores.values())P.routeId&&C.add(P.routeId);v=A?R.filter(P=>!_.has(P.routeId)):null,x=A?E.filter(P=>!C.has(P.routeId)):null,S=A?E.filter(P=>C.has(P.routeId)):R,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),A&&(this.stores.setMatches(E),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...b.filter(P=>P.status!==\"error\"&&P.status!==\"notFound\"&&P.status!==\"redirected\")]),this.clearExpiredCache())});for(const[E,A]of[[v,\"onLeave\"],[x,\"onEnter\"],[S,\"onStay\"]])if(E)for(const R of E)this.looseRoutesById[R.routeId].options[A]?.(R)})})}})}catch(y){yn(y)?(s=y,this.navigate({...s.options,replace:!0,ignoreBlocker:!0})):zt(y)&&(u=y);const m=s?s.status:u?404:this.stores.matches.get().some(b=>b.status===\"error\")?500:200;this.batch(()=>{this.stores.statusCode.set(m),this.stores.redirect.set(s)})}this.latestLoadPromise===c&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=c,await c;this.latestLoadPromise&&c!==this.latestLoadPromise;)await this.latestLoadPromise;let d;this.hasNotFoundMatch()?d=404:this.stores.matches.get().some(p=>p.status===\"error\")&&(d=500),d!==void 0&&this.stores.statusCode.set(d)},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document<\"u\"&&\"startViewTransition\"in document&&typeof document.startViewTransition==\"function\"){let s;if(typeof i==\"object\"&&this.isViewTransitionTypesSupported){const u=this.latestLocation,c=this.stores.resolvedLocation.get(),f=typeof i.types==\"function\"?i.types(yo(u,c)):i.types;if(f===!1){n();return}s={update:n,types:f}}else s=n;document.startViewTransition(s)}else n()},this.updateMatch=(n,i)=>{this.startTransition(()=>{const s=this.stores.pendingMatchStores.get(n);if(s){s.set(i);return}const u=this.stores.matchStores.get(n);if(u){u.set(i);return}const c=this.stores.cachedMatchStores.get(n);if(c){const f=i(c.get());f.status===\"redirected\"?this.stores.cachedMatchStores.delete(n)&&this.stores.cachedIds.set(d=>d.filter(p=>p!==n)):c.set(f)}})},this.getMatch=n=>this.stores.cachedMatchStores.get(n)?.get()??this.stores.pendingMatchStores.get(n)?.get()??this.stores.matchStores.get(n)?.get(),this.invalidate=n=>{const i=s=>n?.filter?.(s)??!0?{...s,invalid:!0,...n?.forcePending||s.status===\"error\"||s.status===\"notFound\"?{status:\"pending\",error:void 0}:void 0}:s;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(i)),this.stores.setCached(this.stores.cachedMatches.get().map(i)),this.stores.setPending(this.stores.pendingMatches.get().map(i))}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||\"/\",this.resolveRedirect=n=>{const i=n.headers.get(\"Location\");if(!n.options.href||n.options._builtLocation){const s=n.options._builtLocation??this.buildLocation(n.options),u=this.getParsedLocationHref(s);n.options.href=u,n.headers.set(\"Location\",u)}else if(i)try{const s=new URL(i);if(this.origin&&s.origin===this.origin){const u=s.pathname+s.search+s.hash;n.options.href=u,n.headers.set(\"Location\",u)}}catch{}if(n.options.href&&!n.options._builtLocation&&gd(n.options.href,this.protocolAllowlist))throw new Error(\"Redirect blocked: unsafe protocol\");return n.headers.get(\"Location\")||n.headers.set(\"Location\",n.options.href),n},this.clearCache=n=>{const i=n?.filter;i!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(s=>!i(s))):this.stores.setCached([])},this.clearExpiredCache=()=>{const n=Date.now(),i=s=>{const u=this.looseRoutesById[s.routeId];if(!u.options.loader)return!0;const c=(s.preload?u.options.preloadGcTime??this.options.defaultPreloadGcTime:u.options.gcTime??this.options.defaultGcTime)??300*1e3;return s.status===\"error\"?!0:n-s.updatedAt>=c};this.clearCache({filter:i})},this.loadRouteChunk=fc,this.preloadRoute=async n=>{const i=n._builtLocation??this.buildLocation(n);let s=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const u=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),c=new Set([...u,...this.stores.cachedIds.get()]),f=s.filter(d=>!c.has(d.id));if(f.length){const d=this.stores.cachedMatches.get();this.stores.setCached([...d,...f])}try{return s=await X6({router:this,matches:s,location:i,preload:!0,updateMatch:(d,p)=>{u.has(d)?s=s.map(y=>y.id===d?p(y):y):this.updateMatch(d,p)}}),s}catch(d){if(yn(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:i});zt(d)||console.error(d);return}},this.matchRoute=(n,i)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||\"\",n.to):void 0,params:n.params||{},leaveParams:!0},u=this.buildLocation(s);if(i?.pending&&this.stores.status.get()!==\"pending\")return!1;const c=(i?.pending===void 0?!this.stores.isLoading.get():i.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),f=v9(u.pathname,i?.caseSensitive??!1,i?.fuzzy??!1,c.pathname,this.processedTree);return!f||n.params&&!Xt(f.rawParams,n.params,{partial:!0})?!1:i?.includeSearch??!0?Xt(c.search,u.search,{partial:!0})?f.rawParams:!1:f.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(n=>n.status===\"notFound\"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??\"fuzzy\",stringifySearch:e.stringifySearch??R9,parseSearch:e.parseSearch??z9,protocolAllowlist:e.protocolAllowlist??l9}),typeof document<\"u\"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=uS(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const n=this.getMatchedRoutes(e.pathname),{foundRoute:i,routeParams:s}=n;let{matchedRoutes:u}=n,c=!1;(i?i.path!==\"/\"&&s[\"**\"]:li(e.pathname))&&(this.options.notFoundRoute?u=[...u,this.options.notFoundRoute]:c=!0);const f=c?e_(this.options.notFoundMode,u):void 0,d=new Array(u.length),p=new Map;for(const y of this.stores.matchStores.values())y.routeId&&p.set(y.routeId,y.get());for(let y=0;ythis.navigate({...R,_fromLocation:e}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:d,routeId:b.id};m.__routeContext=b.options.context(A)??void 0}m.context={...E,...m.__routeContext,...m.__beforeLoadContext}}}return d}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),i=uc(t),s={...e.search};for(const p of t)try{Object.assign(s,cd(p.options.validateSearch,s))}catch{}const u=uc(this.stores.matchesId.get()),c=u&&this.stores.matchStores.get(u)?.get(),f=c&&c.routeId===i.id&&c.pathname===e.pathname;let d;if(f)d=c.params;else{const p=Object.assign(Object.create(null),n);for(const y of t)try{n2(y,p)}catch{}d=p}return{matchedRoutes:t,fullPath:i.fullPath,search:s,params:d}}},wd=class extends Error{},Z9=class extends Error{};function Y9(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:\"idle\",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function cd(e,t){if(e==null)return{};if(\"~standard\"in e){const n=e[\"~standard\"].validate(t);if(n instanceof Promise)throw new wd(\"Async validation not supported\");if(n.issues)throw new wd(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return\"parse\"in e?e.parse(t):typeof e==\"function\"?e(t):{}}function X9({pathname:e,routesById:t,processedTree:n}){const i=Object.create(null),s=li(e);let u;const c=w9(s,n,!0);return c&&(u=c.route,Object.assign(i,c.rawParams)),{matchedRoutes:c?.branch||[t.__root__],routeParams:i,foundRoute:u}}function J9({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){return W9(n)(e,t,i??!1)}function W9(e){let t,n;const i=[];for(const u of e){const c=u.options;if(\"search\"in c)c.search?.middlewares&&i.push(...c.search.middlewares);else if(c.preSearchFilters||c.postSearchFilters){const d=({search:p,next:y})=>{const m=y(c.preSearchFilters?c.preSearchFilters.reduce((b,v)=>v(b),p):p);return c.postSearchFilters?c.postSearchFilters.reduce((b,v)=>v(b),m):m};i.push(d)}const f=c.validateSearch;if(f){const d=({search:p,next:y,meta:m})=>{const b=y(p);if(n)try{const v=cd(f,b);if(m&&v)for(const x in v)x in b||(m.defaulted||=new Map).set(x,v[x]);return{...b,...v}}catch{}return b};i.push(d)}}const s=(u,c,f)=>{if(u>=i.length){if(!t.search)return{};if(t.search===!0)return c;const p=Ua(t.search,c);return f&&(f.explicit=p),p}const d=(p,y)=>{if(y){const m=f||{};return{search:s(u+1,p,m),meta:m}}return s(u+1,p,f)};return i[u]({search:c,next:d,meta:f})};return function(c,f,d){return t=f,n=d,s(0,c)}}function e_(e,t){if(e!==\"root\")for(let n=t.length-1;n>=0;n--){const i=t[n];if(i.children)return i.id}return Va}function n2(e,t){const n=e.options.params?.parse??e.options.parseParams;if(n){const i=n(t);if(i===!1)throw new Error(\"Route params.parse returned false for a matched route\");Object.assign(t,i)}}function t_(){try{return sessionStorage}catch{return}}const n_=\"tsr-scroll-restoration-v1_3\",gS=t_();function r_(){try{return JSON.parse(gS?.getItem(\"tsr-scroll-restoration-v1_3\")||\"{}\")}catch{return{}}}function i_(){try{gS?.setItem(n_,JSON.stringify(so))}catch{}}const so=r_(),r2=\"data-scroll-restoration-id\",a_=e=>e.state.__TSR_key||e.href;function s_(e){const t=e.getAttribute(r2);if(t)return`[${r2}=\"${t}\"]`;let n=\"\",i=e,s;for(;s=i.parentNode;){let u=1,c=i;for(;c=c.previousElementSibling;)u++;const f=`${i.localName}:nth-child(${u})`;n=n?`${f} > ${n}`:f,i=s}return n}let Df=!1;const oo=\"window\";function Ny(e){try{return typeof e==\"function\"?e():document.querySelector(e)}catch{}}function i2(e){const t=[];for(const n of e){if(n===oo)continue;const i=Ny(n);i&&t.push(i)}return t}function o_(e,t){const n=e.options.scrollRestoration,i=e._scroll;n&&(i.restoring=!0);const s=e.options.getScrollRestorationKey||a_,u=new Map,c=(p,y,m)=>{const b=u.get(p)||{};b.scrollX=y,b.scrollY=m,u.set(p,b)},f=p=>{if(!(Df||!i.restoring))if(p.target===document)c(oo,scrollX,scrollY);else{const y=p.target;c(y,y.scrollLeft,y.scrollTop)}},d=p=>{if(!i.restoring)return;const y=so[p]||={};for(const[m,b]of u)m===oo?y[oo]=b:m.isConnected&&(y[s_(m)]=b)};n&&!i.restoration&&(i.restoration=!0,Df=!1,history.scrollRestoration=\"manual\",document.addEventListener(\"scroll\",f,!0),e.subscribe(\"onBeforeLoad\",p=>{p.fromLocation&&d(s(p.fromLocation)),u.clear()}),addEventListener(\"pagehide\",()=>{d(s(e.stores.resolvedLocation.get()??e.stores.location.get())),i_()})),!i.reset&&(i.reset=!0,e.subscribe(\"onRendered\",p=>{const y=e.options.scrollRestorationBehavior,m=e.options.scrollToTopSelectors,b=i.next;let v;if(u.clear(),b||(i.next=!0),typeof e.options.scrollRestoration==\"function\"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const x=s(p.toLocation),S=p.fromLocation&&s(p.fromLocation);if(i.restoring&&S&&S!==x){const E=so[S];if(E){let A=so[x];for(const R in E){if(R===oo){if(b)continue}else{const _=Ny(R);if(!_||b&&m&&(v??=i2(m),v.includes(_)))continue}A||(A=so[x]={}),A[R]??=E[R]}}}Df=!0;try{const E=p.toLocation.hash,A=p.toLocation.state.__hashScrollIntoViewOptions??!0;let R=!1;if(b){const _=By.get(p.toLocation),C=E&&A&&(_===\"PUSH\"||_===\"REPLACE\"),P=i.restoring?so[x]:void 0;if(P)for(const I in P){const{scrollX:z,scrollY:k}=P[I];if(I===oo){if(C)continue;scrollTo({top:k,left:z,behavior:y}),R=!0}else{const L=Ny(I);L&&(L.scrollLeft=z,L.scrollTop=k)}}if(!R&&!E){const I={top:0,left:0,behavior:y};if(scrollTo(I),m){v??=i2(m);for(const z of v)z.scrollTo(I)}}}!R&&E&&A&&document.getElementById(E)?.scrollIntoView(A)}finally{Df=!1}}))}const Tr=Symbol.for(\"TSR_DEFERRED_PROMISE\");function u_(e,t){const n=e;return n[Tr]||(n[Tr]={status:\"pending\"},n.then(i=>{n[Tr].status=\"success\",n[Tr].data=i}).catch(i=>{n[Tr].status=\"error\",n[Tr].error={data:V9(i),__isServerError:!0}})),n}const c_=\"Error preloading route! ☝️\";function bS(e,t){if(e)return typeof e==\"string\"?e:e[t]}function l_(e){return e?.scriptFormat??\"module\"}function f_(e,t,n){const i=d_(t),s=bS(n,\"script\")??i.crossOrigin;return{...l_(e)===\"iife\"?{rel:\"preload\",as:\"script\"}:{rel:\"modulepreload\"},href:i.href,...s?{crossOrigin:s}:{}}}function d_(e){return typeof e==\"string\"?{href:e,crossOrigin:void 0}:e}function Hf(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}const n=new Set;for(const i of t){const s=JSON.stringify(i);n.has(s)||(n.add(s),e.push(i))}}function p_(e){return typeof e==\"string\"?{href:e,crossOrigin:void 0}:e}var vS=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,i=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),i?this._path=Va:this.parentRoute||bn();let s=i?Va:n?.path;s&&s!==\"/\"&&(s=cS(s));const u=n?.id||s;let c=i?Va:od([this.parentRoute.id===\"__root__\"?\"\":this.parentRoute.id,u]);s===\"__root__\"&&(s=\"/\"),c!==\"__root__\"&&(c=od([\"/\",c]));const f=c===\"__root__\"?\"/\":od([this.parentRoute.fullPath,s]);this._path=s,this._id=c,this._fullPath=f,this._to=li(f)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t==\"object\"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>yg({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error(\"Route cannot have both an 'id' and a 'path' option.\")}},h_=class extends vS{constructor(e){super(e)}},y_=(e=>(e[e.AggregateError=1]=\"AggregateError\",e[e.ArrowFunction=2]=\"ArrowFunction\",e[e.ErrorPrototypeStack=4]=\"ErrorPrototypeStack\",e[e.ObjectAssign=8]=\"ObjectAssign\",e[e.BigIntTypedArray=16]=\"BigIntTypedArray\",e[e.RegExp=32]=\"RegExp\",e))(y_||{}),hi=Symbol.asyncIterator,wS=Symbol.hasInstance,mo=Symbol.isConcatSpreadable,yi=Symbol.iterator,xS=Symbol.match,SS=Symbol.matchAll,ES=Symbol.replace,AS=Symbol.search,TS=Symbol.species,MS=Symbol.split,_S=Symbol.toPrimitive,go=Symbol.toStringTag,PS=Symbol.unscopables,CS={[hi]:0,[wS]:1,[mo]:2,[yi]:3,[xS]:4,[SS]:5,[ES]:6,[AS]:7,[TS]:8,[MS]:9,[_S]:10,[go]:11,[PS]:12},m_={0:hi,1:wS,2:mo,3:yi,4:xS,5:SS,6:ES,7:AS,8:TS,9:MS,10:_S,11:go,12:PS},O=void 0,g_={2:!0,3:!1,1:O,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},b_={0:\"Error\",1:\"EvalError\",2:\"RangeError\",3:\"ReferenceError\",4:\"SyntaxError\",5:\"TypeError\",6:\"URIError\"},v_={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function Ne(e,t,n,i,s,u,c,f,d,p,y,m){return{t:e,i:t,s:n,c:i,m:s,p:u,e:c,a:f,f:d,b:p,o:y,l:m}}function ha(e){return Ne(2,O,e,O,O,O,O,O,O,O,O,O)}var zS=ha(2),RS=ha(3),w_=ha(1),x_=ha(0),S_=ha(4),E_=ha(5),A_=ha(6),T_=ha(7);function M_(e){switch(e){case'\"':return'\\\\\"';case\"\\\\\":return\"\\\\\\\\\";case`\n`:return\"\\\\n\";case\"\\r\":return\"\\\\r\";case\"\\b\":return\"\\\\b\";case\"\t\":return\"\\\\t\";case\"\\f\":return\"\\\\f\";case\"<\":return\"\\\\x3C\";case\"\\u2028\":return\"\\\\u2028\";case\"\\u2029\":return\"\\\\u2029\";default:return O}}function ya(e){let t=\"\",n=0,i;for(let s=0,u=e.length;snP(e),NS=class extends Error{constructor(e,t){super(rP(e)),this.cause=t}},a2=class extends NS{constructor(e){super(\"parsing\",e)}},iP=class extends NS{constructor(e){super(\"deserialization\",e)}};function mi(e){return`Seroval Error (specific: ${e})`}var Hd=class extends Error{constructor(t){super(mi(1)),this.value=t}},LS=class extends Error{constructor(e){super(mi(2))}},aP=class extends Error{constructor(e){super(mi(3))}},Jc=class extends Error{constructor(e){super(mi(4))}},sP=class extends Error{constructor(e){super(mi(5)),this.value=e}},oP=class extends Error{constructor(e){super(mi(6))}},uP=class extends Error{constructor(e){super(mi(7))}},gi=class extends Error{constructor(e){super(mi(8))}},cP=class extends Error{constructor(e){super(mi(9))}},lP=class{constructor(e,t){this.value=e,this.replacement=t}},qd=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},fP=(e,t)=>{e.s(t),e.p.s=1,e.p.v=t},dP=(e,t)=>{e.f(t),e.p.s=2,e.p.v=t};qd.toString();fP.toString();dP.toString();var pP=()=>{let e=[],t=[],n=!0,i=!1,s=0,u=(d,p,y)=>{for(y=0;y{for(p=0,y=e.length;p(n&&(p=s++,t[p]=d),c(d),()=>{n&&(t[p]=t[s],t[s--]=void 0)});return{__SEROVAL_STREAM__:!0,on:d=>f(d),next:d=>{n&&(e.push(d),u(d,\"next\"))},throw:d=>{n&&(e.push(d),u(d,\"throw\"),n=!1,i=!1,t.length=0)},return:d=>{n&&(e.push(d),u(d,\"return\"),n=!1,i=!0,t.length=0)}}},hP=e=>t=>()=>{let n=0,i={[e]:()=>i,next:()=>{if(n>t.d)return{done:!0,value:void 0};let s=n++,u=t.v[s];if(s===t.t)throw u;return{done:s===t.d,value:u}}};return i},yP=(e,t)=>n=>()=>{let i=0,s=-1,u=!1,c=[],f=[],d=(y=0,m=f.length)=>{for(;y{let m=f.shift();m&&m.s({done:!1,value:y}),c.push(y)},throw:y=>{let m=f.shift();m&&m.f(y),d(),s=c.length,u=!0,c.push(y)},return:y=>{let m=f.shift();m&&m.s({done:!0,value:y}),d(),s=c.length,c.push(y)}});let p={[e]:()=>p,next:()=>{if(s===-1){let b=i++;if(b>=c.length){let v=t();return f.push(v),v.p}return{done:!1,value:c[b]}}if(i>s)return{done:!0,value:void 0};let y=i++,m=c[y];if(y!==s)return{done:!1,value:m};if(u)throw m;return{done:!0,value:m}}};return p},jS=e=>{let t=atob(e),n=t.length,i=new Uint8Array(n);for(let s=0;s{}),t}var TP=yP(hi,qd);function MP(e){return TP(e)}async function _P(e){try{return[1,await e]}catch(t){return[0,t]}}function PP(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function ld(e,t){e.marked.add(t)}function CP(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function Fd(e,t){let n=e.refs.get(t);return n!=null?(ld(e,n),{type:1,value:k_(n)}):{type:0,value:CP(e,t)}}function bg(e,t){let n=Fd(e,t);return n.type===1?n:IS(t)?{type:2,value:L_(n.value,t)}:n}function qa(e,t){let n=bg(e,t);if(n.type!==0)return n.value;if(t in CS)return N_(n.value,t);throw new Hd(t)}function Gd(e,t){let n=Fd(e,SP[t]);return n.type===1?n.value:Ne(26,n.value,t,O,O,O,O,O,O,O,O,O)}function zP(e){let t=Fd(e,wP);return t.type===1?t.value:Ne(27,t.value,O,O,O,O,O,O,qa(e,yi),O,O,O)}function RP(e){let t=Fd(e,xP);return t.type===1?t.value:Ne(29,t.value,O,O,O,O,O,[Gd(e,1),qa(e,hi)],O,O,O,O)}function OP(e,t,n,i){return Ne(n?11:10,e,O,O,O,i,O,O,O,O,$S(t),O)}function IP(e,t,n,i){return Ne(8,t,O,O,O,O,{k:n,v:i},O,Gd(e,0),O,O,O)}function kP(e,t,n){let i=new Uint8Array(n),s=\"\";for(let u=0,c=i.length;u{ld(this.base,t),Et(this,e,f).then(d=>{u.push(X_(t,d))},d=>{s(d),c()})},throw:f=>{ld(this.base,t),Et(this,e,f).then(d=>{u.push(J_(t,d)),i(u),c()},d=>{s(d),c()})},return:f=>{ld(this.base,t),Et(this,e,f).then(d=>{u.push(W_(t,d)),i(u),c()},d=>{s(d),c()})}})}async function QP(e,t,n,i){return Y_(n,Gd(e.base,4),await new Promise(VP.bind(e,t,n,i)))}async function ZP(e,t,n,i){let s=[];for(let u=0,c=i.v.length;u(e[e.Vanilla=1]=\"Vanilla\",e[e.Cross=2]=\"Cross\",e))(WP||{});function HS(e,t){for(let n=0,i=t.length;n0)for(let u=0,c=n.v,f=s.length;urC)throw new gi(t);return At(e,t.i,new RegExp(n,t.m))}throw new LS(t)}function bC(e,t,n){let i=At(e,n.i,new Set);for(let s=0,u=n.a,c=u.length;stC)throw new gi(t);return At(e,t.i,jS(ma(t.s)))}function xC(e,t,n){var i;let s=eC(n.c),u=Ve(e,t,n.f),c=(i=n.b)!=null?i:0;if(c<0||c>u.byteLength)throw new gi(n);return At(e,n.i,new s(u,c,n.l))}function SC(e,t,n){var i;let s=Ve(e,t,n.f),u=(i=n.b)!=null?i:0;if(u<0||u>s.byteLength)throw new gi(n);return At(e,n.i,new DataView(s,u,n.l))}function QS(e,t,n,i){if(n.p){let s=VS(e,t,n.p,{});Object.defineProperties(i,Object.getOwnPropertyDescriptors(s))}return i}function EC(e,t,n){let i=At(e,n.i,new AggregateError([],ma(n.m)));return QS(e,t,n,i)}function AC(e,t,n){let i=Ly(n,v_,n.s),s=At(e,n.i,new i(ma(n.m)));return QS(e,t,n,s)}function TC(e,t,n){let i=qd(),s=At(e,n.i,i.p),u=Ve(e,t,n.f);return n.s?i.s(u):i.f(u),s}function MC(e,t,n){return At(e,n.i,Object(Ve(e,t,n.f)))}function _C(e,t,n){let i=e.base.plugins;if(i){let s=ma(n.c);for(let u=0,c=i.length;ue.base.depthLimit)throw new cP(e.base.depthLimit);switch(t+=1,n.t){case 2:return Ly(n,g_,n.s);case 0:return Number(n.s);case 1:return ma(String(n.s));case 3:if(String(n.s).length>nC)throw new gi(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return lC(e,n);case 9:return fC(e,t,n);case 10:case 11:return yC(e,t,n);case 5:return mC(e,n);case 6:return gC(e,n);case 7:return bC(e,t,n);case 8:return vC(e,t,n);case 19:return wC(e,n);case 16:case 15:return xC(e,t,n);case 20:return SC(e,t,n);case 14:return EC(e,t,n);case 13:return AC(e,t,n);case 12:return TC(e,t,n);case 17:return Ly(n,m_,n.s);case 21:return MC(e,t,n);case 25:return _C(e,t,n);case 22:return PC(e,n);case 23:return CC(e,t,n);case 24:return zC(e,t,n);case 28:return RC(e,t,n);case 30:return OC(e,t,n);case 31:return IC(e,t,n);case 32:return kC(e,t,n);case 33:return $C(e,t,n);case 34:return BC(e,t,n);case 27:return NC(e,t,n);case 29:return LC(e,t,n);case 35:return jC(e,t,n);default:throw new LS(n)}}function UC(e,t){try{return Ve(e,0,t)}catch(n){throw new iP(n)}}var DC=()=>T;DC.toString();function u2(e,t){let n=qS(t.plugins),i=sC({plugins:n,refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit});return UC(i,e)}async function HC(e,t={}){let n=qS(t.plugins),i=$P(1,{plugins:n,disabledFeatures:t.disabledFeatures});return{t:await JP(i,e),f:i.base.features,m:Array.from(i.base.marked)}}function qC(e){return{tag:\"$TSR/t/\"+e.key,test:e.test,parse:{sync(t,n,i){return{v:n.parse(e.toSerializable(t))}},async async(t,n,i){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,i){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,i){return e.fromSerializable(n.deserialize(t.v))}}}var FC=class{constructor(e,t){this.stream=e,this.hint=t?.hint??\"binary\"}};const xd=globalThis.Buffer,ZS=!!xd&&typeof xd.from==\"function\";function YS(e){if(e.length===0)return\"\";if(ZS)return xd.from(e).toString(\"base64\");const t=32768,n=[];for(let i=0;inew ReadableStream({start(t){e.on({next(n){try{t.enqueue(XS(n))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),KC=new TextEncoder,VC=e=>new ReadableStream({start(t){e.on({next(n){try{typeof n==\"string\"?t.enqueue(KC.encode(n)):t.enqueue(XS(n.$b64))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),QC=\"(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i{try{for(;;){const{done:i,value:s}=await n.read();if(i){t.return(void 0);break}t.next(YS(s))}}catch(i){t.throw(i)}finally{n.releaseLock()}})(),t}function l2(e){const t=fs(),n=e.getReader(),i=new TextDecoder(\"utf-8\",{fatal:!0});return(async()=>{try{for(;;){const{done:s,value:u}=await n.read();if(s){try{const c=i.decode();c.length>0&&t.next(c)}catch{}t.return(void 0);break}try{const c=i.decode(u,{stream:!0});c.length>0&&t.next(c)}catch{t.next({$b64:YS(u)})}}}catch(s){t.throw(s)}finally{n.releaseLock()}})(),t}const YC={tag:\"tss/RawStream\",extends:[{tag:\"tss/RawStreamFactory\",test(e){return e===Qu},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return QC},deserialize(e,t,n){return Qu}},{tag:\"tss/RawStreamFactoryText\",test(e){return e===Zu},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return ZC},deserialize(e,t,n){return Zu}}],test(e){return e instanceof FC},parse:{sync(e,t,n){const i=e.hint===\"text\"?Zu:Qu;return{hint:t.parse(e.hint),factory:t.parse(i),stream:t.parse(fs())}},async async(e,t,n){const i=e.hint===\"text\"?Zu:Qu,s=e.hint===\"text\"?l2(e.stream):c2(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(i),stream:await t.parse(s)}},stream(e,t,n){const i=e.hint===\"text\"?Zu:Qu,s=e.hint===\"text\"?l2(e.stream):c2(e.stream);return{hint:t.parse(e.hint),factory:t.parse(i),stream:t.parse(s)}}},serialize(e,t,n){return\"(\"+t.serialize(e.factory)+\")(\"+t.serialize(e.stream)+\")\"},deserialize(e,t,n){const i=t.deserialize(e.stream);return t.deserialize(e.hint)===\"text\"?VC(i):GC(i)}};function XC(e){return{tag:\"tss/RawStream\",test:()=>!1,parse:{},serialize(){throw new Error(\"RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.\")},deserialize(t,n,i){return e(typeof n?.deserialize==\"function\"?n.deserialize(t.streamId):t.streamId)}}}const JC={tag:\"$TSR/Error\",test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return\"new Error(\"+t.serialize(e.message)+\")\"},deserialize(e,t){return new Error(t.deserialize(e.message))}};var Xi={},JS=e=>new ReadableStream({start:t=>{e.on({next:n=>{try{t.enqueue(n)}catch{}},throw:n=>{t.error(n)},return:()=>{try{t.close()}catch{}}})}}),WC={tag:\"seroval-plugins/web/ReadableStreamFactory\",test(e){return e===Xi},parse:{sync(){return Xi},async async(){return await Promise.resolve(Xi)},stream(){return Xi}},serialize(){return JS.toString()},deserialize(){return Xi}};function f2(e){let t=fs(),n=e.getReader();async function i(){try{let s=await n.read();s.done?t.return(s.value):(t.next(s.value),await i())}catch(s){t.throw(s)}}return i().catch(()=>{}),t}var ez={tag:\"seroval/plugins/web/ReadableStream\",extends:[WC],test(e){return typeof ReadableStream>\"u\"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Xi),stream:t.parse(fs())}},async async(e,t){return{factory:await t.parse(Xi),stream:await t.parse(f2(e))}},stream(e,t){return{factory:t.parse(Xi),stream:t.parse(f2(e))}}},serialize(e,t){return\"(\"+t.serialize(e.factory)+\")(\"+t.serialize(e.stream)+\")\"},deserialize(e,t){let n=t.deserialize(e.stream);return JS(n)}},tz=ez;const nz=[JC,YC,tz];function rz(){return[...tS()?.serializationAdapters?.map(qC)??[],...nz]}var d2=new TextDecoder,iz=new Uint8Array(0),p2=16*1024*1024,h2=32*1024*1024,y2=1024,m2=1e5;function az(e){const t=new Map,n=new Map,i=new Set;let s=!1,u=null,c=0,f;const d=new ReadableStream({start(m){f=m},cancel(){s=!0;try{u?.cancel()}catch{}t.forEach(m=>{try{m.error(new Error(\"Framed response cancelled\"))}catch{}}),t.clear(),n.clear(),i.clear()}});function p(m){const b=n.get(m);if(b)return b;if(i.has(m))return new ReadableStream({start(x){x.close()}});if(n.size>=y2)throw new Error(`Too many raw streams in framed response (max ${y2})`);const v=new ReadableStream({start(x){t.set(m,x)},cancel(){i.add(m),t.delete(m),n.delete(m)}});return n.set(m,v),v}function y(m){return p(m),t.get(m)}return(async()=>{const m=e.getReader();u=m;const b=[];let v=0;function x(){if(v<9)return null;const E=b[0];if(E.length>=9)return{type:E[0],streamId:(E[1]<<24|E[2]<<16|E[3]<<8|E[4])>>>0,length:(E[5]<<24|E[6]<<16|E[7]<<8|E[8])>>>0};const A=new Uint8Array(9);let R=0,_=9;for(let C=0;C0;C++){const P=b[C],I=Math.min(P.length,_);A.set(P.subarray(0,I),R),R+=I,_-=I}return{type:A[0],streamId:(A[1]<<24|A[2]<<16|A[3]<<8|A[4])>>>0,length:(A[5]<<24|A[6]<<16|A[7]<<8|A[8])>>>0}}function S(E){if(E===0)return iz;const A=new Uint8Array(E);let R=0,_=E;for(;_>0&&b.length>0;){const C=b[0];if(!C)break;const P=Math.min(C.length,_);A.set(C.subarray(0,P),R),R+=P,_-=P,P===C.length?b.shift():b[0]=C.subarray(P)}return v-=E,A}try{for(;;){const{done:E,value:A}=await m.read();if(s||E)break;if(A){if(v+A.length>h2)throw new Error(`Framed response buffer exceeded ${h2} bytes`);for(b.push(A),v+=A.length;;){const R=x();if(!R)break;const{type:_,streamId:C,length:P}=R;if(_!==Jr.JSON&&_!==Jr.CHUNK&&_!==Jr.END&&_!==Jr.ERROR)throw new Error(`Unknown frame type: ${_}`);if(_===Jr.JSON){if(C!==0)throw new Error(\"Invalid JSON frame streamId (expected 0)\")}else if(C===0)throw new Error(\"Invalid raw frame streamId (expected non-zero)\");if(P>p2)throw new Error(`Frame payload too large: ${P} bytes (max ${p2})`);const I=9+P;if(vm2)throw new Error(`Too many frames in framed response (max ${m2})`);S(9);const z=S(P);switch(_){case Jr.JSON:try{f.enqueue(d2.decode(z))}catch{}break;case Jr.CHUNK:{const k=y(C);k&&k.enqueue(z);break}case Jr.END:{const k=y(C);if(i.add(C),k){try{k.close()}catch{}t.delete(C)}break}case Jr.ERROR:{const k=y(C);if(i.add(C),k){const L=d2.decode(z);k.error(new Error(L)),t.delete(C)}break}}}}}if(v!==0)throw new Error(\"Incomplete frame at end of framed response\");try{f.close()}catch{}t.forEach(E=>{try{E.close()}catch{}}),t.clear()}catch(E){try{f.error(E)}catch{}t.forEach(A=>{try{A.error(E)}catch{}}),t.clear()}finally{try{m.releaseLock()}catch{}u=null}})(),{getOrCreateStream:p,jsonChunks:d}}var dc=null;async function jy(e){e.length>0&&await Promise.allSettled(e)}var sz=Object.prototype.hasOwnProperty;function WS(e){for(const t in e)if(sz.call(e,t))return!0;return!1}async function oz(e,t,n){dc||(dc=rz());const i=t[0],s=i.fetch??n,u=i.data instanceof FormData?\"formData\":\"payload\",c=i.headers?new Headers(i.headers):new Headers;if(c.set(\"x-tsr-serverFn\",\"true\"),u===\"payload\"&&c.set(\"accept\",`${n9}, application/x-ndjson, application/json`),i.method===\"GET\"){if(u===\"formData\")throw new Error(\"FormData is not supported with GET requests\");const d=await e3(i);if(d!==void 0){const p=fS({payload:d});e.includes(\"?\")?e+=`&${p}`:e+=`?${p}`}}let f;if(i.method===\"POST\"){const d=await uz(i);d?.contentType&&c.set(\"content-type\",d.contentType),f=d?.body}return await cz(async()=>s(e,{method:i.method,headers:c,signal:i.signal,body:f}))}async function e3(e){let t=!1;const n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&WS(e.context)&&(t=!0,n.context=e.context),t)return t3(n)}async function t3(e){return JSON.stringify(await Promise.resolve(HC(e,{plugins:dc})))}async function uz(e){if(e.data instanceof FormData){let n;return e.context&&WS(e.context)&&(n=await t3(e.context)),n!==void 0&&e.data.set(t9,n),{body:e.data}}const t=await e3(e);if(t)return{body:t,contentType:\"application/json\"}}async function cz(e){let t;try{t=await e()}catch(i){if(i instanceof Response)t=i;else throw console.log(i),i}if(t.headers.get(\"x-tss-raw\")===\"true\")return t;const n=t.headers.get(\"content-type\");if(n||bn(),t.headers.get(\"x-tss-serialized\")){let i;if(n.includes(\"application/x-tss-framed\")){if(a9(n),!t.body)throw new Error(\"No response body for framed response\");const{getOrCreateStream:s,jsonChunks:u}=az(t.body),c=[XC(s),...dc||[]],f=new Map;i=await lz({jsonStream:u,onMessage:d=>u2(d,{refs:f,plugins:c}),onError(d,p){console.error(d,p)}})}else if(n.includes(\"application/json\")){const s=await t.json(),u=[];i=u2(s,{plugins:dc}),await jy(u)}if(i||bn(),i instanceof Error)throw i;return i}if(n.includes(\"application/json\")){const i=await t.json(),s=k9(i);if(s)throw s;if(zt(i))throw i;return i}if(!t.ok)throw new Error(await t.text());return t}async function lz({jsonStream:e,onMessage:t,onError:n}){const i=e.getReader(),{value:s,done:u}=await i.read();if(u||!s)throw new Error(\"Stream ended before first object\");const c=JSON.parse(s);let f=!1;const d=(async()=>{try{for(;;){const{value:m,done:b}=await i.read();if(b)break;if(m)try{const v=[];try{t(JSON.parse(m))}finally{}await jy(v)}catch(v){n?.(`Invalid JSON: ${m}`,v)}}}catch(m){f||n?.(\"Stream processing error:\",m)}})();let p;const y=[];try{p=t(c)}catch(m){throw f=!0,i.cancel().catch(()=>{}),m}return await jy(y),Promise.resolve(p).catch(()=>{f=!0,i.cancel().catch(()=>{})}),d.finally(()=>{try{i.releaseLock()}catch{}}),p}function fz(e){const t=\"/./_serverFn/\"+e;return Object.assign((...s)=>{const u=tS()?.serverFns?.fetch;return oz(t,s,u??fetch)},{url:t,serverFnMeta:{id:e},[Iy]:!0})}var dz={key:\"$TSS/serverfn\",test:e=>typeof e!=\"function\"||!(Iy in e)?!1:!!e[Iy],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>fz(e)};function g2(e){return e.replaceAll(\"\\0\",\"/\").replaceAll(\"�\",\"/\")}function pz(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function hz(e){window.$_TSR||bn();const t=e.options.serializationAdapters;if(t?.length){const E=new Map;t.forEach(A=>{E.set(A.key,A.fromSerializable)}),window.$_TSR.t=E,window.$_TSR.buffer.forEach(A=>A())}window.$_TSR.initialized=!0,window.$_TSR.router||bn();const n=window.$_TSR.router;n.matches.forEach(E=>{E.i=g2(E.i)}),n.lastMatchId&&(n.lastMatchId=g2(n.lastMatchId));const{manifest:i,dehydratedData:s,lastMatchId:u}=n;e.ssr={manifest:i};const c=document.querySelector('meta[property=\"csp-nonce\"]')?.content;e.options.ssr={nonce:c},await e.options.hydrate?.(s);const f=e.matchRoutes(e.stores.location.get()),d=Promise.all(f.map(E=>e.loadRouteChunk(e.looseRoutesById[E.routeId])));function p(E){const A=e.looseRoutesById[E.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(A){const R=Xa();E._nonReactive.minPendingPromise=R,E._forcePending=!0,setTimeout(()=>{R.resolve(),e.updateMatch(E.id,_=>(_._nonReactive.minPendingPromise=void 0,{..._,_forcePending:void 0}))},A)}}function y(E){const A=e.looseRoutesById[E.routeId];A&&(A.options.ssr=E.ssr)}let m;f.forEach(E=>{const A=n.matches.find(R=>R.i===E.id);if(!A){E._nonReactive.dehydrated=!1,E.ssr=!1,y(E);return}pz(E,A),y(E),E._nonReactive.dehydrated=E.ssr!==!1,(E.ssr===\"data-only\"||E.ssr===!1)&&m===void 0&&(m=E.index,p(E))}),e.stores.setMatches(f);const b=e.stores.matches.get(),v=e.stores.location.get();await Promise.all(b.map(async E=>{try{const A=e.looseRoutesById[E.routeId],R=b[E.index-1]?.context??e.options.context;if(A.options.context){const I={deps:E.loaderDeps,params:E.params,context:R??{},location:v,navigate:z=>e.navigate({...z,_fromLocation:v}),buildLocation:e.buildLocation,cause:E.cause,abortController:E.abortController,preload:!1,matches:f,routeId:A.id};E.__routeContext=A.options.context(I)??void 0}E.context={...R,...E.__routeContext,...E.__beforeLoadContext};const _={ssr:e.options.ssr,matches:b,match:E,params:E.params,loaderData:E.loaderData},C=await A.options.head?.(_),P=await A.options.scripts?.(_);E.meta=C?.meta,E.links=C?.links,E.headScripts=C?.scripts,E.styles=C?.styles,E.scripts=P}catch(A){if(zt(A))E.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${E.routeId}`,A);else throw E.error=A,console.error(`Error during hydration for route ${E.routeId}:`,A),A}}));const x=f[f.length-1].id!==u;if(!f.some(E=>E.ssr===!1)&&!x)return f.forEach(E=>{E._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),d;const S=Promise.resolve().then(()=>e.load()).catch(E=>{console.error(\"Error during router hydration:\",E)});if(x){const E=f[1];E||bn(),p(E),E._displayPending=!0,E._nonReactive.displayPendingPromise=S,S.then(()=>{e.batch(()=>{e.stores.status.get()===\"pending\"&&(e.stores.status.set(\"idle\"),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(E.id,A=>({...A,_displayPending:void 0,displayPendingPromise:void 0}))})})}return d}var Sd=ie.use,nc=typeof window<\"u\"?ie.useLayoutEffect:ie.useEffect;function W0(e){const t=ie.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function yz(e,t,n={},i={}){ie.useEffect(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!=\"function\")return;const s=new IntersectionObserver(([u])=>{t(u)},n);return s.observe(e.current),()=>{s.disconnect()}},[t,n,i.disabled,e])}function mz(e){const t=ie.useRef(null);return ie.useImperativeHandle(e,()=>t.current,[]),t}function gz({promise:e}){if(Sd)return Sd(e);const t=u_(e);if(t[Tr].status===\"pending\")throw t;if(t[Tr].status===\"error\")throw t[Tr].error;return t[Tr].data}function bz(e){const t=F.jsx(vz,{...e});return e.fallback?F.jsx(ie.Suspense,{fallback:e.fallback,children:t}):t}function vz(e){const t=gz(e);return e.children(t)}function wg(e){const t=e.errorComponent??xg;return F.jsx(wz,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?ie.createElement(t,{error:n,reset:i}):e.children})}var wz=class extends ie.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function xg({error:e}){const[t,n]=ie.useState(!1);return F.jsxs(\"div\",{style:{padding:\".5rem\",maxWidth:\"100%\"},children:[F.jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\".5rem\"},children:[F.jsx(\"strong\",{style:{fontSize:\"1rem\"},children:\"Something went wrong!\"}),F.jsx(\"button\",{style:{appearance:\"none\",fontSize:\".6em\",border:\"1px solid currentColor\",padding:\".1rem .2rem\",fontWeight:\"bold\",borderRadius:\".25rem\"},onClick:()=>n(i=>!i),children:t?\"Hide Error\":\"Show Error\"})]}),F.jsx(\"div\",{style:{height:\".25rem\"}}),t?F.jsx(\"div\",{children:F.jsx(\"pre\",{style:{fontSize:\".7em\",border:\"1px solid red\",borderRadius:\".25rem\",padding:\".3rem\",color:\"red\",overflow:\"auto\"},children:e.message?F.jsx(\"code\",{children:e.message}):null})}):null]})}function xz({children:e,fallback:t=null}){return Sg()?F.jsx(Ao.Fragment,{children:e}):F.jsx(Ao.Fragment,{children:t})}function Sg(){return Ao.useSyncExternalStore(Sz,()=>!0,()=>!1)}function Sz(){return()=>{}}var n3=ie.createContext(null);function Ut(e){return ie.useContext(n3)}var Kd=ie.createContext(void 0),Ez=ie.createContext(void 0),tt=(e=>(e[e.None=0]=\"None\",e[e.Mutable=1]=\"Mutable\",e[e.Watching=2]=\"Watching\",e[e.RecursedCheck=4]=\"RecursedCheck\",e[e.Recursed=8]=\"Recursed\",e[e.Dirty=16]=\"Dirty\",e[e.Pending=32]=\"Pending\",e))(tt||{});function Az({update:e,notify:t,unwatched:n}){return{link:i,unlink:s,propagate:u,checkDirty:c,shallowPropagate:f};function i(p,y,m){const b=y.depsTail;if(b!==void 0&&b.dep===p)return;const v=b!==void 0?b.nextDep:y.deps;if(v!==void 0&&v.dep===p){v.version=m,y.depsTail=v;return}const x=p.subsTail;if(x!==void 0&&x.version===m&&x.sub===y)return;const S=y.depsTail=p.subsTail={version:m,dep:p,sub:y,prevDep:b,nextDep:v,prevSub:x,nextSub:void 0};v!==void 0&&(v.prevDep=S),b!==void 0?b.nextDep=S:y.deps=S,x!==void 0?x.nextSub=S:p.subs=S}function s(p,y=p.sub){const m=p.dep,b=p.prevDep,v=p.nextDep,x=p.nextSub,S=p.prevSub;return v!==void 0?v.prevDep=b:y.depsTail=b,b!==void 0?b.nextDep=v:y.deps=v,x!==void 0?x.prevSub=S:m.subsTail=S,S!==void 0?S.nextSub=x:(m.subs=x)===void 0&&n(m),v}function u(p){let y=p.nextSub,m;e:do{const b=p.sub;let v=b.flags;if(v&60?v&12?v&4?!(v&48)&&d(p,b)?(b.flags=v|40,v&=1):v=0:b.flags=v&-9|32:v=0:b.flags=v|32,v&2&&t(b),v&1){const x=b.subs;if(x!==void 0){const S=(p=x).nextSub;S!==void 0&&(m={value:y,prev:m},y=S);continue}}if((p=y)!==void 0){y=p.nextSub;continue}for(;m!==void 0;)if(p=m.value,m=m.prev,p!==void 0){y=p.nextSub;continue e}break}while(!0)}function c(p,y){let m,b=0,v=!1;e:do{const x=p.dep,S=x.flags;if(y.flags&16)v=!0;else if((S&17)===17){if(e(x)){const E=x.subs;E.nextSub!==void 0&&f(E),v=!0}}else if((S&33)===33){(p.nextSub!==void 0||p.prevSub!==void 0)&&(m={value:p,prev:m}),p=x.deps,y=x,++b;continue}if(!v){const E=p.nextDep;if(E!==void 0){p=E;continue}}for(;b--;){const E=y.subs,A=E.nextSub!==void 0;if(A?(p=m.value,m=m.prev):p=E,v){if(e(y)){A&&f(E),y=p.sub;continue}v=!1}else y.flags&=-33;y=p.sub;const R=p.nextDep;if(R!==void 0){p=R;continue e}}return v}while(!0)}function f(p){do{const y=p.sub,m=y.flags;(m&48)===32&&(y.flags=m|16,(m&6)===2&&t(y))}while((p=p.nextSub)!==void 0)}function d(p,y){let m=y.depsTail;for(;m!==void 0;){if(m===p)return!0;m=m.prevDep}return!1}}function Tz(e,t,n){const i=typeof e==\"object\",s=i?e:void 0;return{next:(i?e.next:e)?.bind(s),error:(i?e.error:t)?.bind(s),complete:(i?e.complete:n)?.bind(s)}}const Uy=[];let fd=0;const{link:b2,unlink:Mz,propagate:_z,checkDirty:r3,shallowPropagate:v2}=Az({update(e){return e._update()},notify(e){Uy[Dy++]=e,e.flags&=~tt.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=tt.Mutable|tt.Dirty,Ed(e))}});let Ff=0,Dy=0,Er,Hy=0;function i3(e){try{++Hy,e()}finally{--Hy||a3()}}function Ed(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=Mz(n,e)}function a3(){if(!(Hy>0)){for(;Ff{s.get(),f.current?c.next?.(s._snapshot):f.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(u){const c=Er,f=t?.compare??Object.is;if(n)Er=s,++fd,s.depsTail=void 0;else if(u===void 0)return!1;n&&(s.flags=tt.Mutable|tt.RecursedCheck);try{const d=s._snapshot,p=typeof u==\"function\"?u(d):u===void 0&&n?i(d):u;return d===void 0||!f(d,p)?(s._snapshot=p,!0):!1}finally{Er=c,n&&(s.flags&=~tt.RecursedCheck),Ed(s)}}};return n?(s.flags=tt.Mutable|tt.Dirty,s.get=function(){const u=s.flags;if(u&tt.Dirty||u&tt.Pending&&r3(s.deps,s)){if(s._update()){const c=s.subs;c!==void 0&&v2(c)}}else u&tt.Pending&&(s.flags=u&~tt.Pending);return Er!==void 0&&b2(s,Er,fd),s._snapshot}):s.set=function(u){if(s._update(u)){const c=s.subs;c!==void 0&&(_z(c),v2(c),a3())}},s}function Pz(e){const t=()=>{const i=Er;Er=n,++fd,n.depsTail=void 0,n.flags=tt.Watching|tt.RecursedCheck;try{return e()}finally{Er=i,n.flags&=~tt.RecursedCheck,Ed(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:tt.Watching|tt.RecursedCheck,notify(){const i=this.flags;i&tt.Dirty||i&tt.Pending&&r3(this.deps,this)?t():this.flags=tt.Watching},stop(){this.flags=tt.None,this.depsTail=void 0,Ed(this)}};return t(),n}var ey={exports:{}},ty={},ny={exports:{}},ry={};var x2;function Cz(){if(x2)return ry;x2=1;var e=Xc();function t(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var n=typeof Object.is==\"function\"?Object.is:t,i=e.useState,s=e.useEffect,u=e.useLayoutEffect,c=e.useDebugValue;function f(m,b){var v=b(),x=i({inst:{value:v,getSnapshot:b}}),S=x[0].inst,E=x[1];return u(function(){S.value=v,S.getSnapshot=b,d(S)&&E({inst:S})},[m,v,b]),s(function(){return d(S)&&E({inst:S}),m(function(){d(S)&&E({inst:S})})},[m]),c(v),v}function d(m){var b=m.getSnapshot;m=m.value;try{var v=b();return!n(m,v)}catch{return!0}}function p(m,b){return b()}var y=typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"?p:f;return ry.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,ry}var S2;function zz(){return S2||(S2=1,ny.exports=Cz()),ny.exports}var E2;function Rz(){if(E2)return ty;E2=1;var e=Xc(),t=zz();function n(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var i=typeof Object.is==\"function\"?Object.is:n,s=t.useSyncExternalStore,u=e.useRef,c=e.useEffect,f=e.useMemo,d=e.useDebugValue;return ty.useSyncExternalStoreWithSelector=function(p,y,m,b,v){var x=u(null);if(x.current===null){var S={hasValue:!1,value:null};x.current=S}else S=x.current;x=f(function(){function A(I){if(!R){if(R=!0,_=I,I=b(I),v!==void 0&&S.hasValue){var z=S.value;if(v(z,I))return C=z}return C=I}if(z=C,i(_,I))return z;var k=b(I);return v!==void 0&&v(z,k)?(_=I,z):(_=I,C=k)}var R=!1,_,C,P=m===void 0?null:m;return[function(){return A(y())},P===null?void 0:function(){return A(P())}]},[y,m,b,v]);var E=s(p,x[0],x[1]);return c(function(){S.hasValue=!0,S.value=E},[E]),d(E),E},ty}var A2;function Oz(){return A2||(A2=1,ey.exports=Rz()),ey.exports}var Iz=Oz();function kz(e,t){return e===t}function ot(e,t,n=kz){const i=ie.useCallback(c=>{if(!e)return()=>{};const{unsubscribe:f}=e.subscribe(c);return f},[e]),s=ie.useCallback(()=>e?.get(),[e]);return Iz.useSyncExternalStoreWithSelector(i,s,s,t,n)}var $z={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function ds(e){const t=Ut(),n=ie.useContext(e.from?Ez:Kd),i=e.from??n,s=i?e.from?t.stores.getRouteMatchStore(i):t.stores.matchStores.get(i):void 0,u=ie.useRef(void 0);return ot(s??$z,c=>{if((e.shouldThrow??!0)&&!c&&bn(),c===void 0)return;const f=e.select?e.select(c):c;if(e.structuralSharing??t.options.defaultStructuralSharing){const d=Da(u.current,f);return u.current=d,d}return f})}function s3(e){return ds({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function o3(e){const{select:t,...n}=e;return ds({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function u3(e){return ds({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function c3(e){return ds({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function l3(e){const t=Ut();return ie.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function f3(e){return ds({...e,select:t=>e.select?e.select(t.context):t.context})}var Bz=eS();function Nz(e,t){const n=Ut(),i=mz(t),{activeProps:s,inactiveProps:u,activeOptions:c,to:f,preload:d,preloadDelay:p,preloadIntentProximity:y,hashScrollIntoView:m,replace:b,startTransition:v,resetScroll:x,viewTransition:S,children:E,target:A,disabled:R,style:_,className:C,onClick:P,onBlur:I,onFocus:z,onMouseEnter:k,onMouseLeave:L,onTouchStart:D,ignoreBlocker:Q,params:Y,search:te,hash:ue,state:J,mask:N,reloadDocument:G,unsafeRelative:re,from:ce,_fromLocation:le,...$}=e,Z=Sg(),oe=ie.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),ae=ot(n.stores.location,Qe=>Qe,(Qe,It)=>Qe.href===It.href),fe=ie.useMemo(()=>{const Qe={_fromLocation:ae,...oe};return n.buildLocation(Qe)},[n,ae,oe]),we=fe.maskedLocation?fe.maskedLocation.publicHref:fe.publicHref,Ae=fe.maskedLocation?fe.maskedLocation.external:fe.external,Ze=ie.useMemo(()=>qz(we,Ae,n.history,R),[R,Ae,we,n.history]),Oe=ie.useMemo(()=>{if(Ze?.external)return gd(Ze.href,n.protocolAllowlist)?void 0:Ze.href;if(!Fz(f)&&!(typeof f!=\"string\"||f.indexOf(\":\")===-1))try{return new URL(f),gd(f,n.protocolAllowlist)?void 0:f}catch{}},[f,Ze,n.protocolAllowlist]),Dt=ie.useMemo(()=>{if(Oe)return!1;if(c?.exact){if(!M9(ae.pathname,fe.pathname,n.basepath))return!1}else{const Qe=bd(ae.pathname,n.basepath),It=bd(fe.pathname,n.basepath);if(!(Qe.startsWith(It)&&(Qe.length===It.length||Qe[It.length]===\"/\")))return!1}return(c?.includeSearch??!0)&&!Xt(ae.search,fe.search,{partial:!c?.exact,ignoreUndefined:!c?.explicitUndefined})?!1:c?.includeHash?Z&&ae.hash===fe.hash:!0},[c?.exact,c?.explicitUndefined,c?.includeHash,c?.includeSearch,ae,Oe,Z,fe.hash,fe.pathname,fe.search,n.basepath]),En=Dt?Ua(s,{})??Lz:iy,sn=Dt?iy:Ua(u,{})??iy,An=[C,En.className,sn.className].filter(Boolean).join(\" \"),Ht=(_||En.style||sn.style)&&{..._,...En.style,...sn.style},[Un,Or]=ie.useState(!1),wl=ie.useRef(!1),Ir=e.reloadDocument||Oe?!1:d??n.options.defaultPreload,va=p??n.options.defaultPreloadDelay??0,ar=ie.useCallback(()=>{n.preloadRoute({...oe,_builtLocation:fe}).catch(Qe=>{console.warn(Qe),console.warn(c_)})},[n,oe,fe]);yz(i,ie.useCallback(Qe=>{Qe?.isIntersecting&&ar()},[ar]),Hz,{disabled:!!R||Ir!==\"viewport\"}),ie.useEffect(()=>{wl.current||!R&&Ir===\"render\"&&(ar(),wl.current=!0)},[R,ar,Ir]);const Xo=Qe=>{const It=Qe.currentTarget.getAttribute(\"target\"),gr=A!==void 0?A:It;if(!R&&!Gz(Qe)&&!Qe.defaultPrevented&&(!gr||gr===\"_self\")&&Qe.button===0){Qe.preventDefault(),Bz.flushSync(()=>{Or(!0)});const ys=n.subscribe(\"onResolved\",()=>{ys(),Or(!1)});n.navigate({...oe,replace:b,resetScroll:x,hashScrollIntoView:m,startTransition:v,viewTransition:S,ignoreBlocker:Q})}};if(Oe)return{...$,ref:i,href:Oe,...E&&{children:E},...A&&{target:A},...R&&{disabled:R},..._&&{style:_},...C&&{className:C},...P&&{onClick:P},...I&&{onBlur:I},...z&&{onFocus:z},...k&&{onMouseEnter:k},...L&&{onMouseLeave:L},...D&&{onTouchStart:D}};const xl=Qe=>{if(R||Ir!==\"intent\")return;if(!va){ar();return}const It=Qe.currentTarget;if(Yu.has(It))return;const gr=setTimeout(()=>{Yu.delete(It),ar()},va);Yu.set(It,gr)},_p=Qe=>{R||Ir!==\"intent\"||ar()},qt=Qe=>{if(R||!Ir||!va)return;const It=Qe.currentTarget,gr=Yu.get(It);gr&&(clearTimeout(gr),Yu.delete(It))};return{...$,...En,...sn,href:Ze?.href,ref:i,onClick:eo([P,Xo]),onBlur:eo([I,qt]),onFocus:eo([z,xl]),onMouseEnter:eo([k,xl]),onMouseLeave:eo([L,qt]),onTouchStart:eo([D,_p]),disabled:!!R,target:A,...Ht&&{style:Ht},...An&&{className:An},...R&&jz,...Dt&&Uz,...Z&&Un&&Dz}}var iy={},Lz={className:\"active\"},jz={role:\"link\",\"aria-disabled\":!0},Uz={\"data-status\":\"active\",\"aria-current\":\"page\"},Dz={\"data-transitioning\":\"transitioning\"},Yu=new WeakMap,Hz={rootMargin:\"100px\"},eo=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function qz(e,t,n,i){if(!i)return t?{href:e,external:!0}:{href:n.createHref(e)||\"/\",external:!1}}function Fz(e){if(typeof e!=\"string\")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var el=ie.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:s,...u}=Nz(i,t),c=typeof i.children==\"function\"?i.children({isActive:u[\"data-status\"]===\"active\"}):i.children;if(!n){const{disabled:f,...d}=u;return ie.createElement(\"a\",d,c)}return ie.createElement(n,u,c)});function Gz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Kz=class extends vS{constructor(t){super(t),this.useMatch=n=>ds({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>f3({...n,from:this.id}),this.useSearch=n=>c3({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>u3({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>o3({...n,from:this.id}),this.useLoaderData=n=>s3({...n,from:this.id}),this.useNavigate=()=>l3({from:this.fullPath}),this.Link=Ao.forwardRef((n,i)=>F.jsx(el,{ref:i,from:this.fullPath,...n}))}};function Vz(e){return new Kz(e)}function Qz(){return e=>Yz(e)}var Zz=class extends h_{constructor(e){super(e),this.useMatch=t=>ds({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>f3({...t,from:this.id}),this.useSearch=t=>c3({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>u3({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>o3({...t,from:this.id}),this.useLoaderData=t=>s3({...t,from:this.id}),this.useNavigate=()=>l3({from:this.fullPath}),this.Link=Ao.forwardRef((t,n)=>F.jsx(el,{ref:n,from:this.fullPath,...t}))}};function Yz(e){return new Zz(e)}function nr(e){return new Xz(e,{silent:!0}).createRoute}var Xz=class{constructor(e,t){this.path=e,this.createRoute=n=>{const i=Vz(n);return i.isRoot=!1,i},this.silent=t?.silent}};function Bn(e,t){let n,i,s,u;const c=()=>(n||(n=e().then(d=>{n=void 0,i=d[t??\"default\"]}).catch(d=>{if(s=d,u9(s)&&s instanceof Error&&typeof window<\"u\"&&typeof sessionStorage<\"u\"){const p=`tanstack_router_reload:${s.message}`;sessionStorage.getItem(p)||(sessionStorage.setItem(p,\"1\"),u=!0)}})),n),f=function(p){if(u)throw window.location.reload(),new Promise(()=>{});if(s)throw s;if(!i)if(Sd)Sd(c());else throw c();return ie.createElement(i,p)};return f.preload=c,f}function Jz(e){const t=Ut(),n=`not-found-${ot(t.stores.location,i=>i.pathname)}-${ot(t.stores.status,i=>i)}`;return F.jsx(wg,{getResetKey:()=>n,onCatch:(i,s)=>{if(zt(i))e.onCatch?.(i,s);else throw i},errorComponent:({error:i})=>{if(zt(i))return e.fallback?.(i);throw i},children:e.children})}function Wz(){return F.jsx(\"p\",{children:\"Not Found\"})}function uo(e){return F.jsx(F.Fragment,{children:e.children})}function d3(e,t,n){return t.options.notFoundComponent?F.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?F.jsx(e.options.defaultNotFoundComponent,{...n}):F.jsx(Wz,{})}function eR(e){return null}function tR(){return eR(Ut()),null}var p3=ie.memo(function({matchId:t}){const n=Ut(),i=n.stores.matchStores.get(t);i||bn();const s=ot(n.stores.loadedAt,c=>c),u=ot(i,c=>c);return F.jsx(nR,{router:n,matchId:t,resetKey:s,matchState:ie.useMemo(()=>{const c=u.routeId,f=n.routesById[c].parentRoute?.id;return{routeId:c,ssr:u.ssr,_displayPending:u._displayPending,parentRouteId:f}},[u._displayPending,u.routeId,u.ssr,n.routesById])})});function nR({router:e,matchId:t,resetKey:n,matchState:i}){const s=e.routesById[i.routeId],u=s.options.pendingComponent??e.options.defaultPendingComponent,c=u?F.jsx(u,{}):null,f=s.options.errorComponent??e.options.defaultErrorComponent,d=s.options.onCatch??e.options.defaultOnCatch,p=s.isRoot?s.options.notFoundComponent??e.options.notFoundRoute?.options.component:s.options.notFoundComponent,y=i.ssr===!1||i.ssr===\"data-only\",m=(!s.isRoot||s.options.wrapInSuspense||y)&&(s.options.wrapInSuspense??u??(s.options.errorComponent?.preload||y))?ie.Suspense:uo,b=f?wg:uo,v=p?Jz:uo;return F.jsxs(s.isRoot?s.options.shellComponent??uo:uo,{children:[F.jsx(Kd.Provider,{value:t,children:F.jsx(m,{fallback:c,children:F.jsx(b,{getResetKey:()=>n,errorComponent:f||xg,onCatch:(x,S)=>{if(zt(x))throw x.routeId??=i.routeId,x;d?.(x,S)},children:F.jsx(v,{fallback:x=>{if(x.routeId??=i.routeId,!p||x.routeId&&x.routeId!==i.routeId||!x.routeId&&!s.isRoot)throw x;return ie.createElement(p,x)},children:y||i._displayPending?F.jsx(xz,{fallback:c,children:F.jsx(T2,{matchId:t})}):F.jsx(T2,{matchId:t})})})})}),i.parentRouteId===Va?F.jsxs(F.Fragment,{children:[F.jsx(rR,{resetKey:n}),e.options.scrollRestoration&&nS?F.jsx(tR,{}):null]}):null]})}function rR({resetKey:e}){const t=Ut(),n=ie.useRef(void 0);return nc(()=>{const i=t.latestLocation.href;(n.current===void 0||n.current!==i)&&(t.emit({type:\"onRendered\",...yo(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=i)},[t.latestLocation.state.__TSR_key,e,t]),null}var T2=ie.memo(function({matchId:t}){const n=Ut(),i=(y,m)=>n.getMatch(y.id)?._nonReactive[m]??y._nonReactive[m],s=n.stores.matchStores.get(t);s||bn();const u=ot(s,y=>y),c=u.routeId,f=n.routesById[c],d=ie.useMemo(()=>{const y=(n.routesById[c].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:c,loaderDeps:u.loaderDeps,params:u._strictParams,search:u._strictSearch});return y?JSON.stringify(y):void 0},[c,u.loaderDeps,u._strictParams,u._strictSearch,n.options.defaultRemountDeps,n.routesById]),p=ie.useMemo(()=>{const y=f.options.component??n.options.defaultComponent;return y?F.jsx(y,{},d):F.jsx(h3,{})},[d,f.options.component,n.options.defaultComponent]);if(u._displayPending)throw i(u,\"displayPendingPromise\");if(u._forcePending)throw i(u,\"minPendingPromise\");if(u.status===\"pending\"){const y=f.options.pendingMinMs??n.options.defaultPendingMinMs;if(y){const m=n.getMatch(u.id);if(m&&!m._nonReactive.minPendingPromise){const b=Xa();m._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),m._nonReactive.minPendingPromise=void 0},y)}}throw i(u,\"loadPromise\")}if(u.status===\"notFound\")return zt(u.error)||bn(),d3(n,f,u.error);if(u.status===\"redirected\")throw yn(u.error)||bn(),i(u,\"loadPromise\");if(u.status===\"error\")throw u.error;return p}),h3=ie.memo(function(){const t=Ut(),n=ie.useContext(Kd);let i,s=!1,u;{const p=n?t.stores.matchStores.get(n):void 0;[i,s]=ot(p,y=>[y?.routeId,y?.globalNotFound??!1]),u=ot(t.stores.matchesId,y=>y[y.findIndex(m=>m===n)+1])}const c=i?t.routesById[i]:void 0,f=t.options.defaultPendingComponent?F.jsx(t.options.defaultPendingComponent,{}):null;if(s)return c||bn(),d3(t,c,void 0);if(!u)return null;const d=F.jsx(p3,{matchId:u});return i===Va?F.jsx(ie.Suspense,{fallback:f,children:d}):d});function iR(){const e=Ut(),t=ie.useRef({router:e,mounted:!1}),[n,i]=ie.useState(!1),s=ot(e.stores.isLoading,m=>m),u=ot(e.stores.hasPending,m=>m),c=W0(s),f=s||n||u,d=W0(f),p=s||u,y=W0(p);return e.startTransition=m=>{i(!0),ie.startTransition(()=>{m(),i(!1)})},ie.useEffect(()=>{const m=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return li(e.latestLocation.publicHref)!==li(b.publicHref)&&e.commitLocation({...b,replace:!0}),()=>{m()}},[e,e.history]),nc(()=>{if(typeof window<\"u\"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),nc(()=>{c&&!s&&e.emit({type:\"onLoad\",...yo(e.stores.location.get(),e.stores.resolvedLocation.get())})},[c,e,s]),nc(()=>{y&&!p&&e.emit({type:\"onBeforeRouteMount\",...yo(e.stores.location.get(),e.stores.resolvedLocation.get())})},[p,y,e]),nc(()=>{if(d&&!f){const m=yo(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:\"onResolved\",...m}),i3(()=>{e.stores.status.set(\"idle\"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[f,d,e]),null}function aR(){const e=Ut(),t=e.routesById[Va].options.pendingComponent??e.options.defaultPendingComponent,n=t?F.jsx(t,{}):null,i=F.jsxs(typeof document<\"u\"&&e.ssr?uo:ie.Suspense,{fallback:n,children:[F.jsx(iR,{}),F.jsx(sR,{})]});return e.options.InnerWrap?F.jsx(e.options.InnerWrap,{children:i}):i}function sR(){const e=Ut(),t=ot(e.stores.firstId,s=>s),n=ot(e.stores.loadedAt,s=>s),i=t?F.jsx(p3,{matchId:t}):null;return F.jsx(Kd.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?i:F.jsx(wg,{getResetKey:()=>n,errorComponent:xg,onCatch:void 0,children:i})})}function y3(){const e=Ut();return ot(e.stores.matchRouteDeps,t=>t),ie.useCallback(t=>{const{pending:n,caseSensitive:i,fuzzy:s,includeSearch:u,...c}=t;return e.matchRoute(c,{pending:n,caseSensitive:i,fuzzy:s,includeSearch:u})},[e])}var oR=e=>({createMutableStore:w2,createReadonlyStore:w2,batch:i3}),uR=e=>new cR(e),cR=class extends Q9{constructor(e){super(e,oR)}};function lR({router:e,children:t,...n}){iS(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=F.jsx(n3.Provider,{value:e,children:t});return e.options.Wrap?F.jsx(e.options.Wrap,{children:i}):i}function fR({router:e,...t}){return F.jsx(lR,{router:e,...t,children:F.jsx(aR,{})})}function M2(e,t){if(t)for(const[n,i]of Object.entries(t))n!==\"suppressHydrationWarning\"&&i!==void 0&&i!==!1&&e.setAttribute(n,typeof i==\"boolean\"?\"\":String(i))}function m3(e){const{attrs:t,children:n,nonce:i,preventScriptHoist:s}=e;switch(e.tag){case\"title\":return F.jsx(\"title\",{...t,suppressHydrationWarning:!0,children:n});case\"meta\":return F.jsx(\"meta\",{...t,suppressHydrationWarning:!0});case\"link\":return F.jsx(\"link\",{...t,precedence:t?.precedence??(t?.rel===\"stylesheet\"?\"default\":void 0),nonce:i,suppressHydrationWarning:!0});case\"style\":return e.inlineCss,F.jsx(\"style\",{...t,dangerouslySetInnerHTML:{__html:n},nonce:i});case\"script\":return F.jsx(dR,{attrs:t,preventScriptHoist:s,children:n});default:return null}}function dR({attrs:e,children:t,preventScriptHoist:n}){Ut();const i=Sg(),s=typeof e?.type==\"string\"&&e.type!==\"\"&&e.type!==\"text/javascript\"&&e.type!==\"module\";if(ie.useEffect(()=>{if(!s){if(e?.src){const u=(()=>{try{const f=document.baseURI||window.location.href;return new URL(e.src,f).href}catch{return e.src}})();for(const f of document.querySelectorAll(\"script[src]\"))if(f.src===u)return;const c=document.createElement(\"script\");return M2(c,e),document.head.appendChild(c),()=>c.remove()}if(typeof t==\"string\"){const u=typeof e?.type==\"string\"?e.type:\"text/javascript\",c=typeof e?.nonce==\"string\"?e.nonce:void 0;for(const d of document.querySelectorAll(\"script:not([src])\")){if(!(d instanceof HTMLScriptElement))continue;const p=d.getAttribute(\"type\")??\"text/javascript\",y=d.getAttribute(\"nonce\")??void 0;if(d.textContent===t&&p===u&&y===c)return}const f=document.createElement(\"script\");return f.textContent=t,M2(f,e),document.head.appendChild(f),()=>f.remove()}}},[e,t,s]),s&&typeof t==\"string\")return F.jsx(\"script\",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!i){if(e?.src)return F.jsx(\"script\",{...e,suppressHydrationWarning:!0});if(typeof t==\"string\")return F.jsx(\"script\",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var pR=e=>{const t=Ut(),n=t.options.ssr?.nonce,i=ot(t.stores.matches,m=>m.map(b=>b.meta).filter(b=>b!==void 0),Xt),s=ie.useMemo(()=>{const m=[],b={};let v;for(let x=i.length-1;x>=0;x--){const S=i[x];for(let E=S.length-1;E>=0;E--){const A=S[E];if(A)if(A.title)v||(v={tag:\"title\",children:A.title});else if(\"script:ld+json\"in A)try{const R=JSON.stringify(A[\"script:ld+json\"]);m.push({tag:\"script\",attrs:{type:\"application/ld+json\"},children:p9(R)})}catch{}else{const R=A.name??A.property;if(R){if(b[R])continue;b[R]=!0}m.push({tag:\"meta\",attrs:{...A,nonce:n}})}}}return v&&m.push(v),n&&m.push({tag:\"meta\",attrs:{property:\"csp-nonce\",content:n}}),m.reverse(),m},[i,n]),u=ot(t.stores.matches,m=>m.flatMap(b=>b.links??[]).filter(b=>b!==void 0).map(b=>({tag:\"link\",attrs:{...b,nonce:n}})),Xt),c=ot(t.stores.matches,m=>{const b=t.ssr?.manifest,v=[];return b&&(m.forEach(x=>{b.routes[x.routeId]?.css?.forEach(S=>{const E=p_(S);v.push({tag:\"link\",attrs:{rel:\"stylesheet\",...E,crossOrigin:bS(e,\"stylesheet\")??E.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),b.inlineStyle&&v.push({tag:\"style\",attrs:{...b.inlineStyle.attrs,nonce:n},children:b.inlineStyle.children,inlineCss:!0})),v},Xt),f=ot(t.stores.matches,m=>{const b=[],v=t.ssr?.manifest;return v&&m.forEach(x=>{v.routes[x.routeId]?.preloads?.forEach(S=>{b.push({tag:\"link\",attrs:{...f_(v,S,e),nonce:n}})})}),b},Xt),d=ot(t.stores.matches,m=>m.flatMap(b=>b.styles??[]).filter(b=>b!==void 0).map(({children:b,...v})=>({tag:\"style\",attrs:{...v,nonce:n},children:b})),Xt),p=ot(t.stores.matches,m=>m.flatMap(b=>b.headScripts??[]).filter(b=>b!==void 0).map(({children:b,...v})=>({tag:\"script\",attrs:{...v,nonce:n},children:b})),Xt),y=[];return Hf(y,s),y.push(...f),Hf(y,u),y.push(...c),Hf(y,d),Hf(y,p),y};function hR(e){const t=pR(e.assetCrossOrigin),n=Ut().options.ssr?.nonce;return F.jsx(F.Fragment,{children:t.map(i=>ie.createElement(m3,{...i,key:`tsr-meta-${JSON.stringify(i)}`,nonce:n}))})}var yR=()=>{const e=Ut(),t=e.options.ssr?.nonce,n=u=>{const c=[],f=e.ssr?.manifest;if(!f)return[];for(const d of u){const p=f.routes[d.routeId]?.scripts;if(p)for(const y of p)c.push({tag:\"script\",attrs:{...y.attrs,nonce:t},children:y.children,...typeof y.attrs?.src==\"string\"?{preventScriptHoist:!0}:{}})}return c},i=u=>u.map(c=>c.scripts).flat(1).filter(Boolean).map(({children:c,...f})=>({tag:\"script\",attrs:{...f,suppressHydrationWarning:!0,nonce:t},children:c})),s=ot(e.stores.matches,n,Xt);return mR(e,ot(e.stores.matches,i,Xt),s)};function mR(e,t,n){const i=[...t,...n];return F.jsx(F.Fragment,{children:i.map((s,u)=>ie.createElement(m3,{...s,key:`tsr-scripts-${s.tag}-${u}`}))})}var rc=(e,t)=>{const n={type:\"request\",...t||e},i=s=>rc({},Object.assign(n,{validator:s,inputValidator:s}));return{options:n,middleware:s=>rc({},Object.assign(n,{middleware:s})),validator:i,inputValidator:i,client:s=>rc({},Object.assign(n,{client:s})),server:s=>rc({},Object.assign(n,{server:s}))}};function g3(e,t){for(let n=0,i=t.length;n({getOptions:async()=>{const t=await e();if(t.serializationAdapters){const n=new Set;g3(n,t.serializationAdapters),t.serializationAdapters=Array.from(n)}return t},createMiddleware:rc});const _2=gR(()=>({defaultSsr:!1}));var Uo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bR=class extends Uo{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<\"u\"&&window.addEventListener){const t=()=>e();return window.addEventListener(\"visibilitychange\",t,!1),()=>{window.removeEventListener(\"visibilitychange\",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t==\"boolean\"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==\"boolean\"?this.#e:globalThis.document?.visibilityState!==\"hidden\"}},Eg=new bR,vR={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},wR=class{#e=vR;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},fi=new wR;function xR(e){setTimeout(e,0)}var SR=typeof window>\"u\"||\"Deno\"in globalThis;function wt(){}function ER(e,t){return typeof e==\"function\"?e(t):e}function qy(e){return typeof e==\"number\"&&e>=0&&e!==1/0}function b3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ra(e,t){return typeof e==\"function\"?e(t):e}function $n(e,t){return typeof e==\"function\"?e(t):e}function P2(e,t){const{type:n=\"all\",exact:i,fetchStatus:s,predicate:u,queryKey:c,stale:f}=e;if(c){if(i){if(t.queryHash!==Ag(c,t.options))return!1}else if(!pc(t.queryKey,c))return!1}if(n!==\"all\"){const d=t.isActive();if(n===\"active\"&&!d||n===\"inactive\"&&d)return!1}return!(typeof f==\"boolean\"&&t.isStale()!==f||s&&s!==t.state.fetchStatus||u&&!u(t))}function C2(e,t){const{exact:n,status:i,predicate:s,mutationKey:u}=e;if(u){if(!t.options.mutationKey)return!1;if(n){if(Ja(t.options.mutationKey)!==Ja(u))return!1}else if(!pc(t.options.mutationKey,u))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function Ag(e,t){return(t?.queryKeyHashFn||Ja)(e)}function Ja(e){return JSON.stringify(e,(t,n)=>Fy(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function pc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e==\"object\"&&typeof t==\"object\"?Object.keys(t).every(n=>pc(e[n],t[n])):!1}var AR=Object.prototype.hasOwnProperty;function v3(e,t,n=0){if(e===t)return e;if(n>500)return t;const i=z2(e)&&z2(t);if(!i&&!(Fy(e)&&Fy(t)))return t;const u=(i?e:Object.keys(e)).length,c=i?t:Object.keys(t),f=c.length,d=i?new Array(f):{};let p=0;for(let y=0;y{fi.setTimeout(t,e)})}function Gy(e,t,n){return typeof n.structuralSharing==\"function\"?n.structuralSharing(e,t):n.structuralSharing!==!1?v3(e,t):t}function MR(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function _R(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Tg=Symbol();function w3(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Tg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Mg(e,t){return typeof e==\"function\"?e(...t):!!e}function PR(e,t,n){let i=!1,s;return Object.defineProperty(e,\"signal\",{enumerable:!0,get:()=>(s??=t(),i||(i=!0,s.aborted?n():s.addEventListener(\"abort\",n,{once:!0})),s)}),e}var hc=(()=>{let e=()=>SR;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ky(){let e,t;const n=new Promise((s,u)=>{e=s,t=u});n.status=\"pending\",n.catch(()=>{});function i(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{i({status:\"fulfilled\",value:s}),e(s)},n.reject=s=>{i({status:\"rejected\",reason:s}),t(s)},n}function CR(e){let t;if(e.then(n=>(t=n,n),wt)?.catch(wt),t!==void 0)return{data:t}}function x3(e){return e}function zR(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function RR(e,t,n){const i=()=>{const s=e.promise?.then(t).catch(u=>n(u)?Promise.reject(new Error(\"redacted\")):Promise.reject(u));return s?.catch(wt),s};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status===\"pending\"&&{promise:i()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function OR(e){return e.state.isPaused}function S3(e){return e.state.status===\"success\"}function IR(e){return!0}function kR(e,t={}){const n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??OR,i=e.getMutationCache().getAll().flatMap(d=>n(d)?[zR(d)]:[]),s=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??S3,u=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??IR,c=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??x3,f=e.getQueryCache().getAll().flatMap(d=>s(d)?[RR(d,c,u)]:[]);return{mutations:i,queries:f}}function $R(e,t,n){if(typeof t!=\"object\"||t===null)return;const i=e.getMutationCache(),s=e.getQueryCache(),u=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??x3,c=t.mutations||[],f=t.queries||[];c.forEach(({state:d,...p})=>{i.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...p},d)}),f.forEach(({queryKey:d,state:p,queryHash:y,meta:m,promise:b,dehydratedAt:v,queryType:x})=>{const S=b?CR(b):void 0,E=p.data===void 0?S?.data:p.data,A=E===void 0?E:u(E);let R=s.get(y);const _=R?.state.status===\"pending\",C=R?.state.fetchStatus===\"fetching\";if(R){const P=S&&v!==void 0&&v>R.state.dataUpdatedAt;if(p.dataUpdatedAt>R.state.dataUpdatedAt||P){const{fetchStatus:I,...z}=p;R.setState({...z,data:A,...p.status===\"pending\"&&A!==void 0&&{status:\"success\",...!C&&{fetchStatus:\"idle\"}}})}}else R=s.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:d,queryHash:y,meta:m,_type:x},{...p,data:A,fetchStatus:\"idle\",status:p.status===\"pending\"&&A!==void 0?\"success\":p.status});b&&!S&&!_&&!C&&(v===void 0||v>R.state.dataUpdatedAt)&&R.fetch(void 0,{initialPromise:Promise.resolve(b).then(u)}).catch(wt)})}var BR=xR;function NR(){let e=[],t=0,n=f=>{f()},i=f=>{f()},s=BR;const u=f=>{t?e.push(f):s(()=>{n(f)})},c=()=>{const f=e;e=[],f.length&&s(()=>{i(()=>{f.forEach(d=>{n(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||c()}return d},batchCalls:f=>(...d)=>{u(()=>{f(...d)})},schedule:u,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{s=f}}}var xt=NR(),LR=class extends Uo{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<\"u\"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener(\"online\",t,!1),window.addEventListener(\"offline\",n,!1),()=>{window.removeEventListener(\"online\",t),window.removeEventListener(\"offline\",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Td=new LR;function jR(e){return Math.min(1e3*2**e,3e4)}function E3(e){return(e??\"online\")===\"online\"?Td.isOnline():!0}var Vy=class extends Error{constructor(e){super(\"CancelledError\"),this.revert=e?.revert,this.silent=e?.silent}};function A3(e){let t=!1,n=0,i;const s=Ky(),u=()=>s.status!==\"pending\",c=S=>{if(!u()){const E=new Vy(S);b(E),e.onCancel?.(E)}},f=()=>{t=!0},d=()=>{t=!1},p=()=>Eg.isFocused()&&(e.networkMode===\"always\"||Td.isOnline())&&e.canRun(),y=()=>E3(e.networkMode)&&e.canRun(),m=S=>{u()||(i?.(),s.resolve(S))},b=S=>{u()||(i?.(),s.reject(S))},v=()=>new Promise(S=>{i=E=>{(u()||p())&&S(E)},e.onPause?.()}).then(()=>{i=void 0,u()||e.onContinue?.()}),x=()=>{if(u())return;let S;const E=n===0?e.initialPromise:void 0;try{S=E??e.fn()}catch(A){S=Promise.reject(A)}Promise.resolve(S).then(m).catch(A=>{if(u())return;const R=e.retry??(hc.isServer()?0:3),_=e.retryDelay??jR,C=typeof _==\"function\"?_(n,A):_,P=R===!0||typeof R==\"number\"&&np()?void 0:v()).then(()=>{t?b(A):x()})})};return{promise:s,status:()=>s.status,cancel:c,continue:()=>(i?.(),s),cancelRetry:f,continueRetry:d,canStart:y,start:()=>(y()?x():v().then(x),s)}}var T3=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qy(this.gcTime)&&(this.#e=fi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hc.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(fi.clearTimeout(this.#e),this.#e=void 0)}};function UR(e){return{onFetch:(t,n)=>{const i=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,u=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const p=async()=>{let y=!1;const m=x=>{PR(x,()=>t.signal,()=>y=!0)},b=w3(t.options,t.fetchOptions),v=async(x,S,E)=>{if(y)return Promise.reject(t.signal.reason);if(S==null&&x.pages.length)return Promise.resolve(x);const R=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?\"backward\":\"forward\",meta:t.options.meta};return m(I),I})(),_=await b(R),{maxPages:C}=t.options,P=E?_R:MR;return{pages:P(x.pages,_,C),pageParams:P(x.pageParams,S,C)}};if(s&&u.length){const x=s===\"backward\",S=x?M3:Qy,E={pages:u,pageParams:c},A=S(i,E);f=await v(E,A,x)}else{const x=e??u.length;do{const S=d===0?c[0]??i.initialPageParam:Qy(i,f);if(d>0&&S==null)break;f=await v(f,S),d++}while(dt.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=p}}}function Qy(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function M3(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function DR(e,t){return t?Qy(e,t)!=null:!1}function HR(e,t){return!t||!e.getPreviousPageParam?!1:M3(e,t)!=null}var qR=class extends T3{#e;#t;#n;#r;#a;#i;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#r=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=I2(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=I2(this.options);t.data!==void 0&&(this.setState(O2(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===\"idle\"&&this.#r.remove(this)}setData(e,t){const n=Gy(this.state.data,e,this.options);return this.#u({data:n,type:\"success\",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#u({type:\"setState\",state:e})}cancel(e){const t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(wt).catch(wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>$n(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Tg||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ra(e.options.staleTime,this)===\"static\"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===\"static\"?!1:this.state.isInvalidated?!0:!b3(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:\"observerAdded\",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#s||this.#l()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#r.notify({type:\"observerRemoved\",query:this,observer:e}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus===\"paused\"&&this.state.status===\"pending\"}invalidate(){this.state.isInvalidated||this.#u({type:\"invalidate\"})}async fetch(e,t){if(this.state.fetchStatus!==\"idle\"&&this.#i?.status()!==\"rejected\"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,i=d=>{Object.defineProperty(d,\"signal\",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},s=()=>{const d=w3(this.options,t),y=(()=>{const m={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(m),m})();return this.#s=!1,this.options.persister?this.options.persister(d,y,this):d(y)},c=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:s};return i(d),d})();(this.#e===\"infinite\"?UR(this.options.pages):this.options.behavior)?.onFetch(c,this),this.#n=this.state,(this.state.fetchStatus===\"idle\"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#u({type:\"fetch\",meta:c.fetchOptions?.meta}),this.#i=A3({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:d=>{d instanceof Vy&&d.revert&&this.setState({...this.#n,fetchStatus:\"idle\"}),n.abort()},onFail:(d,p)=>{this.#u({type:\"failed\",failureCount:d,error:p})},onPause:()=>{this.#u({type:\"pause\"})},onContinue:()=>{this.#u({type:\"continue\"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const d=await this.#i.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#r.config.onSuccess?.(d,this),this.#r.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Vy){if(d.silent)return this.#i.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#u({type:\"error\",error:d}),this.#r.config.onError?.(d,this),this.#r.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#u(e){const t=n=>{switch(e.type){case\"failed\":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case\"pause\":return{...n,fetchStatus:\"paused\"};case\"continue\":return{...n,fetchStatus:\"fetching\"};case\"fetch\":return{...n,..._3(n.data,this.options),fetchMeta:e.meta??null};case\"success\":const i={...n,...O2(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:\"idle\",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?i:void 0,i;case\"error\":const s=e.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:\"idle\",status:\"error\",isInvalidated:!0};case\"invalidate\":return{...n,isInvalidated:!0};case\"setState\":return{...n,...e.state}}};this.state=t(this.state),xt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:\"updated\",action:e})})}};function _3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:E3(t.networkMode)?\"fetching\":\"paused\",...e===void 0&&{error:null,status:\"pending\"}}}function O2(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:\"success\"}}function I2(e){const t=typeof e.initialData==\"function\"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt==\"function\"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?\"success\":\"pending\",fetchStatus:\"idle\"}}var P3=class extends Uo{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Ky(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#a;#i;#o;#s;#l;#u;#h;#f;#d;#c;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),k2(this.#t,this.options)?this.#p():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Zy(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Zy(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#x(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=\"boolean\"&&typeof this.options.enabled!=\"function\"&&typeof $n(this.options.enabled,this.#t)!=\"boolean\")throw new Error(\"Expected enabled to be a boolean or a callback that returns a boolean\");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Ad(this.options,t)&&this.#e.getQueryCache().notify({type:\"observerOptionsUpdated\",query:this.#t,observer:this});const i=this.hasListeners();i&&$2(this.#t,n,this.options,t)&&this.#p(),this.updateResult(),i&&(this.#t!==n||$n(this.options.enabled,this.#t)!==$n(t.enabled,this.#t)||ra(this.options.staleTime,this.#t)!==ra(t.staleTime,this.#t))&&this.#m();const s=this.#g();i&&(this.#t!==n||$n(this.options.enabled,this.#t)!==$n(t.enabled,this.#t)||s!==this.#c)&&this.#b(s)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return GR(this,n)&&(this.#r=n,this.#i=this.options,this.#a=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,i)=>(this.trackProp(i),t?.(i),i===\"promise\"&&(this.trackProp(\"data\"),!this.options.experimental_prefetchInRender&&this.#o.status===\"pending\"&&this.#o.reject(new Error(\"experimental_prefetchInRender feature flag is not enabled\"))),Reflect.get(n,i))})}trackProp(e){this.#y.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#p(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(wt)),t}#m(){this.#w();const e=ra(this.options.staleTime,this.#t);if(hc.isServer()||this.#r.isStale||!qy(e))return;const n=b3(this.#r.dataUpdatedAt,e)+1;this.#f=fi.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#g(){return(typeof this.options.refetchInterval==\"function\"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#x(),this.#c=e,!(hc.isServer()||$n(this.options.enabled,this.#t)===!1||!qy(this.#c)||this.#c===0)&&(this.#d=fi.setInterval(()=>{(this.options.refetchIntervalInBackground||Eg.isFocused())&&this.#p()},this.#c))}#v(){this.#m(),this.#b(this.#g())}#w(){this.#f!==void 0&&(fi.clearTimeout(this.#f),this.#f=void 0)}#x(){this.#d!==void 0&&(fi.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const n=this.#t,i=this.options,s=this.#r,u=this.#a,c=this.#i,d=e!==n?e.state:this.#n,{state:p}=e;let y={...p},m=!1,b;if(t._optimisticResults){const k=this.hasListeners(),L=!k&&k2(e,t),D=k&&$2(e,n,t,i);(L||D)&&(y={...y,..._3(p.data,e.options)}),t._optimisticResults===\"isRestoring\"&&(y.fetchStatus=\"idle\")}let{error:v,errorUpdatedAt:x,status:S}=y;b=y.data;let E=!1;if(t.placeholderData!==void 0&&b===void 0&&S===\"pending\"){let k;s?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(k=s.data,E=!0):k=typeof t.placeholderData==\"function\"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,k!==void 0&&(S=\"success\",b=Gy(s?.data,k,t),m=!0)}if(t.select&&b!==void 0&&!E)if(s&&b===u?.data&&t.select===this.#l)b=this.#u;else try{this.#l=t.select,b=t.select(b),b=Gy(s?.data,b,t),this.#u=b,this.#s=null}catch(k){this.#s=k}this.#s&&(v=this.#s,b=this.#u,x=Date.now(),S=\"error\");const A=y.fetchStatus===\"fetching\",R=S===\"pending\",_=S===\"error\",C=R&&A,P=b!==void 0,z={status:S,fetchStatus:y.fetchStatus,isPending:R,isSuccess:S===\"success\",isError:_,isInitialLoading:C,isLoading:C,data:b,dataUpdatedAt:y.dataUpdatedAt,error:v,errorUpdatedAt:x,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:y.dataUpdateCount>d.dataUpdateCount||y.errorUpdateCount>d.errorUpdateCount,isFetching:A,isRefetching:A&&!R,isLoadingError:_&&!P,isPaused:y.fetchStatus===\"paused\",isPlaceholderData:m,isRefetchError:_&&P,isStale:_g(e,t),refetch:this.refetch,promise:this.#o,isEnabled:$n(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const k=z.data!==void 0,L=z.status===\"error\"&&!k,D=te=>{L?te.reject(z.error):k&&te.resolve(z.data)},Q=()=>{const te=this.#o=z.promise=Ky();D(te)},Y=this.#o;switch(Y.status){case\"pending\":e.queryHash===n.queryHash&&D(Y);break;case\"fulfilled\":(L||z.data!==Y.value)&&Q();break;case\"rejected\":(!L||z.error!==Y.reason)&&Q();break}}return z}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#i=this.options,this.#a.data!==void 0&&(this.#h=this.#t),Ad(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i==\"function\"?i():i;if(s===\"all\"||!s&&!this.#y.size)return!0;const u=new Set(s??this.#y);return this.options.throwOnError&&u.add(\"error\"),Object.keys(this.#r).some(c=>{const f=c;return this.#r[f]!==e[f]&&u.has(f)})};this.#E({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#E(e){xt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:\"observerResultsUpdated\"})})}};function FR(e,t){return $n(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===\"error\"&&$n(t.retryOnMount,e)===!1)}function k2(e,t){return FR(e,t)||e.state.data!==void 0&&Zy(e,t,t.refetchOnMount)}function Zy(e,t,n){if($n(t.enabled,e)!==!1&&ra(t.staleTime,e)!==\"static\"){const i=typeof n==\"function\"?n(e):n;return i===\"always\"||i!==!1&&_g(e,t)}return!1}function $2(e,t,n,i){return(e!==t||$n(i.enabled,e)===!1)&&(!n.suspense||e.state.status!==\"error\")&&_g(e,n)}function _g(e,t){return $n(t.enabled,e)!==!1&&e.isStaleByTime(ra(t.staleTime,e))}function GR(e,t){return!Ad(e.getCurrentResult(),t)}var KR=class extends P3{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=\"infinite\",super.setOptions(e)}getOptimisticResult(e){return e._type=\"infinite\",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:\"forward\"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:\"backward\"}}})}createResult(e,t){const{state:n}=e,i=super.createResult(e,t),{isFetching:s,isRefetching:u,isError:c,isRefetchError:f}=i,d=n.fetchMeta?.fetchMore?.direction,p=c&&d===\"forward\",y=s&&d===\"forward\",m=c&&d===\"backward\",b=s&&d===\"backward\";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:DR(t,n.data),hasPreviousPage:HR(t,n.data),isFetchNextPageError:p,isFetchingNextPage:y,isFetchPreviousPageError:m,isFetchingPreviousPage:b,isRefetchError:f&&!p&&!m,isRefetching:u&&!y&&!b}}},VR=class extends T3{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||C3(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:\"observerAdded\",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:\"observerRemoved\",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===\"pending\"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#a({type:\"continue\"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=A3({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error(\"No mutationFn found\")),onFail:(u,c)=>{this.#a({type:\"failed\",failureCount:u,error:c})},onPause:()=>{this.#a({type:\"pause\"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status===\"pending\",s=!this.#r.canStart();try{if(i)t();else{this.#a({type:\"pending\",variables:e,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#a({type:\"pending\",context:c,variables:e,isPaused:s})}const u=await this.#r.start();return await this.#n.config.onSuccess?.(u,e,this.state.context,this,n),await this.options.onSuccess?.(u,e,this.state.context,n),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(u,null,e,this.state.context,n),this.#a({type:\"success\",data:u}),u}catch(u){try{await this.#n.config.onError?.(u,e,this.state.context,this,n)}catch(c){Promise.reject(c)}try{await this.options.onError?.(u,e,this.state.context,n)}catch(c){Promise.reject(c)}try{await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,n)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,u,e,this.state.context,n)}catch(c){Promise.reject(c)}throw this.#a({type:\"error\",error:u}),u}finally{this.#n.runNext(this)}}#a(e){const t=n=>{switch(e.type){case\"failed\":return{...n,failureCount:e.failureCount,failureReason:e.error};case\"pause\":return{...n,isPaused:!0};case\"continue\":return{...n,isPaused:!1};case\"pending\":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:\"pending\",variables:e.variables,submittedAt:Date.now()};case\"success\":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:\"success\",isPaused:!1};case\"error\":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:\"error\"}}};this.state=t(this.state),xt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:\"updated\",action:e})})}};function C3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:\"idle\",variables:void 0,submittedAt:0}}var QR=class extends Uo{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const i=new VR({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){this.#e.add(e);const t=Gf(e);if(typeof t==\"string\"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:\"added\",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Gf(e);if(typeof t==\"string\"){const n=this.#t.get(t);if(n)if(n.length>1){const i=n.indexOf(e);i!==-1&&n.splice(i,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:\"removed\",mutation:e})}canRun(e){const t=Gf(e);if(typeof t==\"string\"){const i=this.#t.get(t)?.find(s=>s.state.status===\"pending\");return!i||i===e}else return!0}runNext(e){const t=Gf(e);return typeof t==\"string\"?this.#t.get(t)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){xt.batch(()=>{this.#e.forEach(e=>{this.notify({type:\"removed\",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>C2(t,n))}findAll(e={}){return this.getAll().filter(t=>C2(e,t))}notify(e){xt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return xt.batch(()=>Promise.all(e.map(t=>t.continue().catch(wt))))}};function Gf(e){return e.options.scope?.id}var ZR=class extends Uo{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),Ad(this.options,t)||this.#e.getMutationCache().notify({type:\"observerOptionsUpdated\",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&Ja(t.mutationKey)!==Ja(this.options.mutationKey)?this.reset():this.#n?.state.status===\"pending\"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#a(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#a(){const e=this.#n?.state??C3();this.#t={...e,isPending:e.status===\"pending\",isSuccess:e.status===\"success\",isError:e.status===\"error\",isIdle:e.status===\"idle\",mutate:this.mutate,reset:this.reset}}#i(e){xt.batch(()=>{if(this.#r&&this.hasListeners()){const t=this.#t.variables,n=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===\"success\"){try{this.#r.onSuccess?.(e.data,t,n,i)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(e.data,null,t,n,i)}catch(s){Promise.reject(s)}}else if(e?.type===\"error\"){try{this.#r.onError?.(e.error,t,n,i)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(void 0,e.error,t,n,i)}catch(s){Promise.reject(s)}}}this.listeners.forEach(t=>{t(this.#t)})})}},YR=class extends Uo{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const i=t.queryKey,s=t.queryHash??Ag(i,t);let u=this.get(s);return u||(u=new qR({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(u)),u}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:\"added\",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:\"removed\",query:e}))}clear(){xt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>P2(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>P2(e,n)):t}notify(e){xt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},XR=class{#e;#t;#n;#r;#a;#i;#o;#s;constructor(e={}){this.#e=e.queryCache||new YR,this.#t=e.mutationCache||new QR,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=Eg.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Td.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:\"fetching\"}).length}isMutating(e){return this.#t.findAll({...e,status:\"pending\"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ra(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),u=this.#e.get(i.queryHash)?.state.data,c=ER(t,u);if(c!==void 0)return this.#e.build(this,i).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return xt.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;xt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return xt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:\"active\",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=xt.batch(()=>this.#e.findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(wt).catch(wt)}invalidateQueries(e,t={}){return xt.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType===\"none\"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??\"active\"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=xt.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let u=s.fetch(void 0,n);return n.throwOnError||(u=u.catch(wt)),s.state.fetchStatus===\"paused\"?Promise.resolve():u}));return Promise.all(i).then(wt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(ra(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(wt).catch(wt)}fetchInfiniteQuery(e){return e._type=\"infinite\",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(wt).catch(wt)}ensureInfiniteQueryData(e){return e._type=\"infinite\",this.ensureQueryData(e)}resumePausedMutations(){return Td.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Ja(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(i=>{pc(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Ja(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(i=>{pc(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ag(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==\"always\"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=\"offlineFirst\"),t.queryFn===Tg&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},z3=ie.createContext(void 0),bt=e=>{const t=ie.useContext(z3);if(!t)throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");return t},JR=({client:e,children:t})=>(ie.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),F.jsx(z3.Provider,{value:e,children:t})),R3=ie.createContext(!1),WR=()=>ie.useContext(R3),eO=R3.Provider;function tO(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var nO=ie.createContext(tO()),rO=()=>ie.useContext(nO),iO=(e,t,n)=>{const i=n?.state.error&&typeof e.throwOnError==\"function\"?Mg(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(t.isReset()||(e.retryOnMount=!1))},aO=e=>{ie.useEffect(()=>{e.clearReset()},[e])},sO=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||Mg(n,[e.error,i])),CF=(e,t)=>t.state.data===void 0,oO=e=>{if(e.suspense){const n=s=>s===\"static\"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i==\"function\"?(...s)=>n(i(...s)):n(i),typeof e.gcTime==\"number\"&&(e.gcTime=Math.max(e.gcTime,1e3))}},uO=(e,t)=>e.isLoading&&e.isFetching&&!t,cO=(e,t)=>e?.suspense&&t.isPending,B2=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function O3(e,t,n){const i=WR(),s=rO(),u=bt(),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const f=u.getQueryCache().get(c.queryHash),d=e.subscribed!==!1;c._optimisticResults=i?\"isRestoring\":d?\"optimistic\":void 0,oO(c),iO(c,s,f),aO(s);const p=!u.getQueryCache().get(c.queryHash),[y]=ie.useState(()=>new t(u,c)),m=y.getOptimisticResult(c),b=!i&&d;if(ie.useSyncExternalStore(ie.useCallback(v=>{const x=b?y.subscribe(xt.batchCalls(v)):wt;return y.updateResult(),x},[y,b]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),ie.useEffect(()=>{y.setOptions(c)},[c,y]),cO(c,m))throw B2(c,y,s);if(sO({result:m,errorResetBoundary:s,throwOnError:c.throwOnError,query:f,suspense:c.suspense}))throw m.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(c,m),c.experimental_prefetchInRender&&!hc.isServer()&&uO(m,i)&&(p?B2(c,y,s):f?.promise)?.catch(wt).finally(()=>{y.updateResult()}),c.notifyOnChangeProps?m:y.trackResult(m)}function tl(e,t){return O3(e,P3)}function Tt(e,t){const n=bt(),[i]=ie.useState(()=>new ZR(n,e));ie.useEffect(()=>{i.setOptions(e)},[i,e]);const s=ie.useSyncExternalStore(ie.useCallback(c=>i.subscribe(xt.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=ie.useCallback((c,f)=>{i.mutate(c,f).catch(wt)},[i]);if(s.error&&Mg(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}function lO(e,t){return O3(e,KR)}function Yy(){}function fO(e,{interval:t=1e3,onError:n=Yy}={}){if(typeof e!=\"function\")throw new Error(\"argument is not function.\");let i=0,s=null,u=!1,c=!1;return async(...f)=>{if(s=f,!c){for(c=!0;u;)await new Promise(d=>fi.setTimeout(d,t));for(;Date.now()fi.setTimeout(d,i-Date.now()));c=!1,u=!0;try{await e(...s)}catch(d){try{n(d)}catch{}}i=Date.now()+t,u=!1}}}var dO=({storage:e,key:t=\"REACT_QUERY_OFFLINE_CACHE\",throttleTime:n=1e3,serialize:i=JSON.stringify,deserialize:s=JSON.parse,retry:u})=>{if(e){const c=async f=>{try{const d=await i(f);await e.setItem(t,d);return}catch(d){return d}};return{persistClient:fO(async f=>{let d=f,p=await c(d),y=0;for(;p&&d;)y++,d=await u?.({persistedClient:d,error:p,errorCount:y}),d&&(p=await c(d))},{interval:n}),restoreClient:async()=>{const f=await e.getItem(t);if(f)return await s(f)},removeClient:()=>e.removeItem(t)}}return{persistClient:Yy,restoreClient:()=>Promise.resolve(void 0),removeClient:Yy}};const pO=\"1.3.0\";let rr=class Xy extends Error{constructor(t,n={}){const i=n.cause instanceof Xy?n.cause.details:n.cause?.message?n.cause.message:n.details,s=n.cause instanceof Xy&&n.cause.docsPath||n.docsPath,u=[t||\"An error occurred.\",\"\",...n.metaMessages?[...n.metaMessages,\"\"]:[],...s?[`Docs: https://abitype.dev${s}`]:[],...i?[`Details: ${i}`]:[],`Version: abitype@${pO}`].join(`\n`);super(u),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=i,this.docsPath=s,this.metaMessages=n.metaMessages,this.shortMessage=t}};function Vd(e,t){return e.exec(t)?.groups}const I3=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,k3=/^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)?$/,$3=/^\\(.+?\\).*?$/,N2=/^tuple(?(\\[(\\d*)\\])*)$/;function Jy(e){let t=e.type;if(N2.test(e.type)&&\"components\"in e){t=\"(\";const n=e.components.length;for(let s=0;s[a-zA-Z$_][a-zA-Z0-9$_]*) \\{(?.*?)\\}$/;function N3(e){return B3.test(e)}function hO(e){return Vd(B3,e)}const L2=new Set([\"memory\",\"indexed\",\"storage\",\"calldata\"]),yO=new Set([\"calldata\",\"memory\",\"storage\"]);let mO=class extends rr{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\"})}},gO=class extends rr{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 bO extends rr{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\"})}}let vO=class extends rr{constructor({param:t}){super(\"Invalid ABI parameter.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}},wO=class extends rr{constructor({param:t,name:n}){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\"})}},xO=class extends rr{constructor({param:t,type:n,modifier:i}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`Modifier \"${i}\" not allowed${n?` in \"${n}\" type`:\"\"}.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidModifierError\"})}},SO=class extends rr{constructor({param:t,type:n,modifier:i}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`Modifier \"${i}\" not allowed${n?` in \"${n}\" type`:\"\"}.`,`Data location can only be specified for array, struct, or mapping types, but \"${i}\" was given.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidFunctionModifierError\"})}},EO=class extends rr{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\"})}},AO=class extends rr{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSignatureError\"})}},TO=class extends rr{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\"})}},MO=class extends rr{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\"})}},_O=class extends rr{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 PO(e,t,n){let i=\"\";if(n)for(const s of Object.entries(n)){if(!s)continue;let u=\"\";for(const c of s[1])u+=`[${c.type}${c.name?`:${c.name}`:\"\"}]`;i+=`(${s[0]}{${u}})`}return t?`${t}:${e}${i}`:`${e}${i}`}const ay=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}]]),CO=/^(?[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\spayable)?)(?(?:\\[\\d*?\\])+?)?(?:\\s(?calldata|indexed|memory|storage{1}))?(?:\\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,zO=/^\\((?.+?)\\)(?(?:\\[\\d*?\\])+?)?(?:\\s(?calldata|indexed|memory|storage{1}))?(?:\\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,RO=/^u?int$/;function Md(e,t){const n=PO(e,t?.type,t?.structs);if(ay.has(n))return ay.get(n);const i=$3.test(e),s=Vd(i?zO:CO,e);if(!s)throw new vO({param:e});if(s.name&&IO(s.name))throw new wO({param:e,name:s.name});const u=s.name?{name:s.name}:{},c=s.modifier===\"indexed\"?{indexed:!0}:{},f=t?.structs??{};let d,p={};if(i){d=\"tuple\";const m=Ji(s.type),b=[],v=m.length;for(let x=0;x[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\\[\\d*?\\])+?)?$/;function j3(e=[],t={},n=new Set){const i=[],s=e.length;for(let u=0;u{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:n.cause?.message?n.cause.message:n.details})(),s=n.cause instanceof ai&&n.cause.docsPath||n.docsPath,u=n.docsOrigin??ai.prototype.docsOrigin,c=`${u}${s??\"\"}`,f=!!(n.version??ai.prototype.showVersion),d=n.version??ai.prototype.version,p=[t||\"An error occurred.\",...n.metaMessages?[\"\",...n.metaMessages]:[],...i||s||f?[\"\",i?`Details: ${i}`:void 0,s?`See: ${c}`:void 0,f?`Version: ${d}`:void 0]:[]].filter(y=>typeof y==\"string\").join(`\n`);super(p,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=i,this.docs=c,this.docsOrigin=u,this.docsPath=s,this.shortMessage=t,this.showVersion=f,this.version=d}walk(t){return U3(this,t)}};Object.defineProperty(he,\"defaultStaticOptions\",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:\"https://oxlib.sh\",showVersion:!1,version:`ox@${LO()}`}});he.setStaticOptions(he.defaultStaticOptions);function U3(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?U3(e.cause,t):t?null:e}const to=typeof globalThis==\"object\"&&\"crypto\"in globalThis?globalThis.crypto:void 0;function jO(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===\"Uint8Array\"}function yc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(\"positive integer expected, got \"+e)}function Wa(e,...t){if(!jO(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 UO(e){if(typeof e!=\"function\"||typeof e.create!=\"function\")throw new Error(\"Hash should be wrapped by utils.createHasher\");yc(e.outputLen),yc(e.blockLen)}function To(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 D3(e,t){Wa(e);const n=t.outputLen;if(e.length>>t}const HO=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function qO(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function FO(e){for(let t=0;te:FO;function GO(e){if(typeof e!=\"string\")throw new Error(\"string expected\");return new Uint8Array(new TextEncoder().encode(e))}function Qd(e){return typeof e==\"string\"&&(e=GO(e)),Wa(e),e}function KO(...e){let t=0;for(let i=0;ie().update(Qd(i)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function VO(e=32){if(to&&typeof to.getRandomValues==\"function\")return to.getRandomValues(new Uint8Array(e));if(to&&typeof to.randomBytes==\"function\")return Uint8Array.from(to.randomBytes(e));throw new Error(\"crypto.getRandomValues must be defined\")}class H3 extends Pg{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,UO(t);const i=Qd(n);if(this.iHash=t.create(),typeof this.iHash.update!=\"function\")throw new Error(\"Expected instance of class which extends utils.Hash\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,u=new Uint8Array(s);u.set(i.length>s?t.create().update(i).digest():i);for(let c=0;cnew H3(e,t).update(n).digest();q3.create=(e,t)=>new H3(e,t);function QO(e,t,n,i){if(typeof e.setBigUint64==\"function\")return e.setBigUint64(t,n,i);const s=BigInt(32),u=BigInt(4294967295),c=Number(n>>s&u),f=Number(n&u),d=i?4:0,p=i?0:4;e.setUint32(t+d,c,i),e.setUint32(t+p,f,i)}function ZO(e,t,n){return e&t^~e&n}function YO(e,t,n){return e&t^e&n^t&n}class F3 extends Pg{constructor(t,n,i,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=i,this.isLE=s,this.buffer=new Uint8Array(t),this.view=sy(this.buffer)}update(t){To(this),t=Qd(t),Wa(t);const{view:n,buffer:i,blockLen:s}=this,u=t.length;for(let c=0;cs-c&&(this.process(i,0),c=0);for(let m=c;my.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let m=0;m >D2&Kf)}:{h:Number(e>>D2&Kf)|0,l:Number(e&Kf)|0}}function G3(e,t=!1){const n=e.length;let i=new Uint32Array(n),s=new Uint32Array(n);for(let u=0;ue>>>n,q2=(e,t,n)=>e<<32-n|t>>>n,no=(e,t,n)=>e>>>n|t<<32-n,ro=(e,t,n)=>e<<32-n|t>>>n,Vf=(e,t,n)=>e<<64-n|t>>>n-32,Qf=(e,t,n)=>e>>>n-32|t<<64-n,JO=(e,t,n)=>e<>>32-n,WO=(e,t,n)=>t<>>32-n,eI=(e,t,n)=>t<>>64-n,tI=(e,t,n)=>e<>>64-n;function Wr(e,t,n,i){const s=(t>>>0)+(i>>>0);return{h:e+n+(s/2**32|0)|0,l:s|0}}const nI=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),rI=(e,t,n,i)=>t+n+i+(e/2**32|0)|0,iI=(e,t,n,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(i>>>0),aI=(e,t,n,i,s)=>t+n+i+s+(e/2**32|0)|0,sI=(e,t,n,i,s)=>(e>>>0)+(t>>>0)+(n>>>0)+(i>>>0)+(s>>>0),oI=(e,t,n,i,s,u)=>t+n+i+s+u+(e/2**32|0)|0,uI=BigInt(0),Xu=BigInt(1),cI=BigInt(2),lI=BigInt(7),fI=BigInt(256),dI=BigInt(113),K3=[],V3=[],Q3=[];for(let e=0,t=Xu,n=1,i=0;e<24;e++){[n,i]=[i,(2*n+3*i)%5],K3.push(2*(5*i+n)),V3.push((e+1)*(e+2)/2%64);let s=uI;for(let u=0;u<7;u++)t=(t<>lI)*dI)%fI,t&cI&&(s^=Xu<<(Xu<n>32?eI(e,t,n):JO(e,t,n),G2=(e,t,n)=>n>32?tI(e,t,n):WO(e,t,n);function yI(e,t=24){const n=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let c=0;c<10;c++)n[c]=e[c]^e[c+10]^e[c+20]^e[c+30]^e[c+40];for(let c=0;c<10;c+=2){const f=(c+8)%10,d=(c+2)%10,p=n[d],y=n[d+1],m=F2(p,y,1)^n[f],b=G2(p,y,1)^n[f+1];for(let v=0;v<50;v+=10)e[c+v]^=m,e[c+v+1]^=b}let s=e[2],u=e[3];for(let c=0;c<24;c++){const f=V3[c],d=F2(s,u,f),p=G2(s,u,f),y=K3[c];s=e[y],u=e[y+1],e[y]=d,e[y+1]=p}for(let c=0;c<50;c+=10){for(let f=0;f<10;f++)n[f]=e[c+f];for(let f=0;f<10;f++)e[c+f]^=~n[(f+2)%10]&n[(f+4)%10]}e[0]^=pI[i],e[1]^=hI[i]}ua(n)}class Cg extends Pg{constructor(t,n,i,s=!1,u=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=i,this.enableXOF=s,this.rounds=u,yc(i),!(0=i&&this.keccak();const c=Math.min(i-this.posOut,u-s);t.set(n.subarray(this.posOut,this.posOut+c),s),this.posOut+=c,s+=c}return t}xofInto(t){if(!this.enableXOF)throw new Error(\"XOF is not possible for this instance\");return this.writeInto(t)}xof(t){return yc(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(D3(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,ua(this.state)}_cloneInto(t){const{blockLen:n,suffix:i,outputLen:s,rounds:u,enableXOF:c}=this;return t||(t=new Cg(n,i,s,c,u)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=u,t.suffix=i,t.outputLen=s,t.enableXOF=c,t.destroyed=this.destroyed,t}}const mI=(e,t,n)=>Zd(()=>new Cg(t,e,n)),zg=mI(1,136,256/8),gI=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]),Vi=new Uint32Array(64);class bI extends F3{constructor(t=32){super(64,t,8,!1),this.A=Ki[0]|0,this.B=Ki[1]|0,this.C=Ki[2]|0,this.D=Ki[3]|0,this.E=Ki[4]|0,this.F=Ki[5]|0,this.G=Ki[6]|0,this.H=Ki[7]|0}get(){const{A:t,B:n,C:i,D:s,E:u,F:c,G:f,H:d}=this;return[t,n,i,s,u,c,f,d]}set(t,n,i,s,u,c,f,d){this.A=t|0,this.B=n|0,this.C=i|0,this.D=s|0,this.E=u|0,this.F=c|0,this.G=f|0,this.H=d|0}process(t,n){for(let m=0;m<16;m++,n+=4)Vi[m]=t.getUint32(n,!1);for(let m=16;m<64;m++){const b=Vi[m-15],v=Vi[m-2],x=Sr(b,7)^Sr(b,18)^b>>>3,S=Sr(v,17)^Sr(v,19)^v>>>10;Vi[m]=S+Vi[m-7]+x+Vi[m-16]|0}let{A:i,B:s,C:u,D:c,E:f,F:d,G:p,H:y}=this;for(let m=0;m<64;m++){const b=Sr(f,6)^Sr(f,11)^Sr(f,25),v=y+b+ZO(f,d,p)+gI[m]+Vi[m]|0,S=(Sr(i,2)^Sr(i,13)^Sr(i,22))+YO(i,s,u)|0;y=p,p=d,d=f,f=c+v|0,c=u,u=s,s=i,i=v+S|0}i=i+this.A|0,s=s+this.B|0,u=u+this.C|0,c=c+this.D|0,f=f+this.E|0,d=d+this.F|0,p=p+this.G|0,y=y+this.H|0,this.set(i,s,u,c,f,d,p,y)}roundClean(){ua(Vi)}destroy(){this.set(0,0,0,0,0,0,0,0),ua(this.buffer)}}const Y3=G3([\"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\",\"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(e=>BigInt(e))),vI=Y3[0],wI=Y3[1],Qi=new Uint32Array(80),Zi=new Uint32Array(80);class X3 extends F3{constructor(t=64){super(128,t,16,!1),this.Ah=Kt[0]|0,this.Al=Kt[1]|0,this.Bh=Kt[2]|0,this.Bl=Kt[3]|0,this.Ch=Kt[4]|0,this.Cl=Kt[5]|0,this.Dh=Kt[6]|0,this.Dl=Kt[7]|0,this.Eh=Kt[8]|0,this.El=Kt[9]|0,this.Fh=Kt[10]|0,this.Fl=Kt[11]|0,this.Gh=Kt[12]|0,this.Gl=Kt[13]|0,this.Hh=Kt[14]|0,this.Hl=Kt[15]|0}get(){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0,v=m|0,x=b|0,{h:m,l:b}=Wr(p|0,y|0,L|0,D|0),p=f|0,y=d|0,f=u|0,d=c|0,u=i|0,c=s|0;const J=nI(D,Y,ue);i=rI(J,L,Q,te),s=J|0}({h:i,l:s}=Wr(this.Ah|0,this.Al|0,i|0,s|0)),{h:u,l:c}=Wr(this.Bh|0,this.Bl|0,u|0,c|0),{h:f,l:d}=Wr(this.Ch|0,this.Cl|0,f|0,d|0),{h:p,l:y}=Wr(this.Dh|0,this.Dl|0,p|0,y|0),{h:m,l:b}=Wr(this.Eh|0,this.El|0,m|0,b|0),{h:v,l:x}=Wr(this.Fh|0,this.Fl|0,v|0,x|0),{h:S,l:E}=Wr(this.Gh|0,this.Gl|0,S|0,E|0),{h:A,l:R}=Wr(this.Hh|0,this.Hl|0,A|0,R|0),this.set(i,s,u,c,f,d,p,y,m,b,v,x,S,E,A,R)}roundClean(){ua(Qi,Zi)}destroy(){ua(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class xI extends X3{constructor(){super(48),this.Ah=Gt[0]|0,this.Al=Gt[1]|0,this.Bh=Gt[2]|0,this.Bl=Gt[3]|0,this.Ch=Gt[4]|0,this.Cl=Gt[5]|0,this.Dh=Gt[6]|0,this.Dl=Gt[7]|0,this.Eh=Gt[8]|0,this.El=Gt[9]|0,this.Fh=Gt[10]|0,this.Fl=Gt[11]|0,this.Gh=Gt[12]|0,this.Gl=Gt[13]|0,this.Hh=Gt[14]|0,this.Hl=Gt[15]|0}}const Rg=Zd(()=>new bI),SI=Zd(()=>new X3),EI=Zd(()=>new xI),J3=Rg;const Og=BigInt(0),em=BigInt(1);function nl(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name===\"Uint8Array\"}function Ig(e){if(!nl(e))throw new Error(\"Uint8Array expected\")}function mc(e,t){if(typeof t!=\"boolean\")throw new Error(e+\" boolean expected, got \"+t)}function Zf(e){const t=e.toString(16);return t.length&1?\"0\"+t:t}function W3(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);return e===\"\"?Og:BigInt(\"0x\"+e)}const e8=typeof Uint8Array.from([]).toHex==\"function\"&&typeof Uint8Array.fromHex==\"function\",AI=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function gc(e){if(Ig(e),e8)return e.toHex();let t=\"\";for(let n=0;n=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 _d(e){if(typeof e!=\"string\")throw new Error(\"hex string expected, got \"+typeof e);if(e8)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 i=new Uint8Array(n);for(let s=0,u=0;stypeof e==\"bigint\"&&Og<=e;function kg(e,t,n){return oy(e)&&oy(t)&&oy(n)&&t<=e&&eOg;e>>=em,t+=1);return t}const Yd=e=>(em<new Uint8Array(e),V2=e=>Uint8Array.from(e);function MI(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 i=uy(e),s=uy(e),u=0;const c=()=>{i.fill(1),s.fill(0),u=0},f=(...m)=>n(s,i,...m),d=(m=uy(0))=>{s=f(V2([0]),m),i=f(),m.length!==0&&(s=f(V2([1]),m),i=f())},p=()=>{if(u++>=1e3)throw new Error(\"drbg: tried 1000 values\");let m=0;const b=[];for(;m{c(),d(m);let v;for(;!(v=b(p()));)d();return c(),v}}const _I={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\"||nl(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 Xd(e,t,n={}){const i=(s,u,c)=>{const f=_I[u];if(typeof f!=\"function\")throw new Error(\"invalid validator function\");const d=e[s];if(!(c&&d===void 0)&&!f(d,e))throw new Error(\"param \"+String(s)+\" is invalid. Expected \"+u+\", got \"+d)};for(const[s,u]of Object.entries(t))i(s,u,!1);for(const[s,u]of Object.entries(n))i(s,u,!0);return e}function Q2(e){const t=new WeakMap;return(n,...i)=>{const s=t.get(n);if(s!==void 0)return s;const u=e(n,...i);return t.set(n,u),u}}function Do(e,t){if(po(e)>t)throw new YI({givenSize:po(e),maxSize:t})}const ti={zero:48,nine:57,A:65,F:70,a:97,f:102};function Z2(e){if(e>=ti.zero&&e<=ti.nine)return e-ti.zero;if(e>=ti.A&&e<=ti.F)return e-(ti.A-10);if(e>=ti.a&&e<=ti.f)return e-(ti.a-10)}function i8(e,t={}){const{dir:n,size:i=32}=t;if(i===0)return e;if(e.length>i)throw new XI({size:e.length,targetSize:i,type:\"Bytes\"});const s=new Uint8Array(i);for(let u=0;ut)throw new $I({givenSize:Ue(e),maxSize:t})}function PI(e,t){if(typeof t==\"number\"&&t>0&&t>Ue(e)-1)throw new d8({offset:t,position:\"start\",size:Ue(e)})}function CI(e,t,n){if(typeof t==\"number\"&&typeof n==\"number\"&&Ue(e)!==n-t)throw new d8({offset:n,position:\"end\",size:Ue(e)})}function s8(e,t={}){const{dir:n,size:i=32}=t;if(i===0)return e;const s=e.replace(\"0x\",\"\");if(s.length>i*2)throw new BI({size:Math.ceil(s.length/2),targetSize:i,type:\"Hex\"});return`0x${s[n===\"right\"?\"padEnd\":\"padStart\"](i*2,\"0\")}`}function zI(e,t={}){const{dir:n=\"left\"}=t;let i=e.replace(\"0x\",\"\"),s=0;for(let u=0;u{const s=i;return typeof s==\"string\"&&s.endsWith(tm)?BigInt(s.slice(0,-tm.length)):typeof t==\"function\"?t(n,s):s})}function ps(e,t,n){return JSON.stringify(e,(i,s)=>typeof t==\"function\"?t(i,s):typeof s==\"bigint\"?s.toString()+tm:s,n)}const OI=new TextEncoder,II=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function o8(e,t={}){const{strict:n=!1}=t;if(!e)throw new Y2(e);if(typeof e!=\"string\")throw new Y2(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new X2(e);if(!e.startsWith(\"0x\"))throw new X2(e)}function Je(...e){return`0x${e.reduce((t,n)=>t+n.replace(\"0x\",\"\"),\"\")}`}function il(e){return e instanceof Uint8Array?Mt(e):Array.isArray(e)?Mt(new Uint8Array(e)):e}function u8(e,t={}){const n=`0x${Number(e)}`;return typeof t.size==\"number\"?(Jd(n,t.size),lr(n,t.size)):n}function Mt(e,t={}){let n=\"\";for(let s=0;su||s>1n;return i<=c?i:i-u-1n}function Mo(e,t={}){const{signed:n,size:i}=t;return Number(!n&&!i?e:_e(e,t))}function l8(e,t={}){const{size:n}=t;let i=mn(e);return n&&(Do(i,n),i=y8(i)),new TextDecoder().decode(i)}function kn(e,t={}){const{strict:n=!1}=t;try{return o8(e,{strict:n}),!0}catch{return!1}}let f8=class extends he{constructor({max:t,min:n,signed:i,size:s,value:u}){super(`Number \\`${u}\\` is not in safe${s?` ${s*8}-bit`:\"\"}${i?\" signed\":\" unsigned\"} integer range ${t?`(\\`${n}\\` to \\`${t}\\`)`:`(above \\`${n}\\`)`}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.IntegerOutOfRangeError\"})}};class Y2 extends he{constructor(t){super(`Value \\`${typeof t==\"object\"?ps(t):t}\\` of type \\`${typeof t}\\` 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\"})}}let X2=class extends he{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 kI extends he{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\"})}}let $I=class extends he{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\"})}},d8=class extends he{constructor({offset:t,position:n,size:i}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \\`${t}\\` is out-of-bounds (size: \\`${i}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SliceOffsetOutOfBoundsError\"})}},BI=class extends he{constructor({size:t,targetSize:n,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (\\`${t}\\`) exceeds padding size (\\`${n}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeExceedsPaddingSizeError\"})}};const NI=new TextDecoder,LI=new TextEncoder;function jI(e){if(!(e instanceof Uint8Array)){if(!e)throw new Yf(e);if(typeof e!=\"object\")throw new Yf(e);if(!(\"BYTES_PER_ELEMENT\"in e))throw new Yf(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!==\"Uint8Array\")throw new Yf(e)}}function p8(...e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);for(let i=0,s=0;i1||i[0]>1)throw new ZI(i);return!!i[0]}function di(e,t={}){const{size:n}=t;typeof n<\"u\"&&Do(e,n);const i=Mt(e,t);return Mo(i,t)}function QI(e,t={}){const{size:n}=t;let i=e;return typeof n<\"u\"&&(Do(i,n),i=y8(i)),NI.decode(i)}function h8(e){return a8(e,{dir:\"left\"})}function y8(e){return a8(e,{dir:\"right\"})}function rm(e){try{return jI(e),!0}catch{return!1}}let ZI=class extends he{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 Yf extends he{constructor(t){super(`Value \\`${typeof t==\"object\"?ps(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 YI=class extends he{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\"})}},XI=class extends he{constructor({size:t,targetSize:n,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (\\`${t}\\`) exceeds padding size (\\`${n}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeExceedsPaddingSizeError\"})}};function er(e,t={}){const{as:n=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,i=zg(Bg(e));return n===\"Bytes\"?i:Mt(i)}function J2(e,t={}){const{as:n=typeof e==\"string\"?\"Hex\":\"Bytes\"}=t,i=J3(Bg(e));return n===\"Bytes\"?i:Mt(i)}function bc(e){return e.length===66&&kn(e,{strict:!0})}let JI=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)&&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 i=this.keys().next().value;i&&this.delete(i)}return this}};const WI={checksum:new JI(8192)},cy=WI.checksum;function m8(e,t={}){const{compressed:n}=t,{prefix:i,x:s,y:u}=e;if(n===!1||typeof s==\"bigint\"&&typeof u==\"bigint\"){if(i!==4)throw new W2({prefix:i,cause:new a7});return}if(n===!0||typeof s==\"bigint\"&&typeof u>\"u\"){if(i!==3&&i!==2)throw new W2({prefix:i,cause:new i7});return}throw new r7({publicKey:e})}function e7(e){const t=(()=>{if(kn(e))return Ng(e);if(rm(e))return t7(e);const{prefix:n,x:i,y:s}=e;return typeof i==\"bigint\"&&typeof s==\"bigint\"?{prefix:n??4,x:i,y:s}:{prefix:n,x:i}})();return m8(t),t}function t7(e){return Ng(Mt(e))}function Ng(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new s7({publicKey:e});if(e.length===130){const i=BigInt(Ee(e,0,32)),s=BigInt(Ee(e,32,64));return{prefix:4,x:i,y:s}}if(e.length===132){const i=Number(Ee(e,0,1)),s=BigInt(Ee(e,1,33)),u=BigInt(Ee(e,33,65));return{prefix:i,x:s,y:u}}const t=Number(Ee(e,0,1)),n=BigInt(Ee(e,1,33));return{prefix:t,x:n}}function n7(e,t={}){return mn(Lg(e,t))}function Lg(e,t={}){m8(e);const{prefix:n,x:i,y:s}=e,{includePrefix:u=!0}=t;return Je(u?se(n,{size:1}):\"0x\",se(i,{size:32}),typeof s==\"bigint\"?se(s,{size:32}):\"0x\")}class r7 extends he{constructor({publicKey:t}){super(`Value \\`${ps(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 W2=class extends he{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 i7 extends he{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 a7 extends he{constructor(){super(\"Prefix must be 4 for uncompressed public keys.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidUncompressedPrefixError\"})}}let s7=class extends he{constructor({publicKey:t}){super(`Value \\`${t}\\` is an invalid public key size.`,{metaMessages:[\"Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).\",`Received ${Ue(il(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"PublicKey.InvalidSerializedSizeError\"})}};const o7=/^0x[a-fA-F0-9]{40}$/;function fr(e,t={}){const{strict:n=!0}=t;if(!o7.test(e))throw new e5({address:e,cause:new u7});if(n){if(e.toLowerCase()===e)return;if(sl(e)!==e)throw new e5({address:e,cause:new c7})}}function sl(e){if(cy.has(e))return cy.get(e);fr(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=er(al(t),{as:\"Bytes\"}),i=t.split(\"\");for(let u=0;u<40;u+=2)n[u>>1]>>4>=8&&i[u]&&(i[u]=i[u].toUpperCase()),(n[u>>1]&15)>=8&&i[u+1]&&(i[u+1]=i[u+1].toUpperCase());const s=`0x${i.join(\"\")}`;return cy.set(e,s),s}function im(e,t={}){const{checksum:n=!1}=t;return fr(e),n?sl(e):e}function ia(e,t={}){const n=er(`0x${Lg(e).slice(4)}`).substring(26);return im(`0x${n}`,t)}function wn(e,t){return fr(e,{strict:!1}),fr(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()}function dr(e,t={}){const{strict:n=!0}=t??{};try{return fr(e,{strict:n}),!0}catch{return!1}}let e5=class extends he{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 u7 extends he{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 c7 extends he{constructor(){super(\"Address does not match its checksum counterpart.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidChecksumError\"})}}function am(e){let t=!0,n=\"\",i=0,s=\"\",u=!1;for(let c=0;csm(Object.values(e)[u],s)):/^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(i)?n===\"number\"||n===\"bigint\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i)?n===\"string\"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\[[0-9]{0,}\\])+$/.test(i)?Array.isArray(e)&&e.every(s=>sm(s,{...t,type:i.replace(/(\\[[0-9]{0,}\\])$/,\"\")})):!1}}function g8(e,t,n){for(const i in e){const s=e[i],u=t[i];if(s.type===\"tuple\"&&u.type===\"tuple\"&&\"components\"in s&&\"components\"in u)return g8(s.components,u.components,n[i]);const c=[s.type,u.type];if(c.includes(\"address\")&&c.includes(\"bytes20\")?!0:c.includes(\"address\")&&c.includes(\"string\")?dr(n[i],{strict:!1}):c.includes(\"address\")&&c.includes(\"bytes\")?dr(n[i],{strict:!1}):!1)return c}}function jg(e,t,n){const{args:i=[],prepare:s=!0}={},u=kn(t,{strict:!1}),c=e.filter(p=>u?p.type===\"function\"||p.type===\"error\"?b8(p)===Ee(t,0,4):p.type===\"event\"?ic(p)===t:!1:\"name\"in p&&p.name===t);if(c.length===0)throw new t5({name:t});if(c.length===1)return{...c[0],...s?{hash:ic(c[0])}:{}};let f;for(const p of c){if(!(\"inputs\"in p))continue;if(!i||i.length===0){if(!p.inputs||p.inputs.length===0)return{...p,...s?{hash:ic(p)}:{}};continue}if(!p.inputs||p.inputs.length===0||p.inputs.length!==i.length)continue;if(i.every((m,b)=>{const v=\"inputs\"in p&&p.inputs[b];return v?sm(m,v):!1})){if(f&&\"inputs\"in f&&f.inputs){const m=g8(p.inputs,f.inputs,i);if(m)throw new f7({abiItem:p,type:m[0]},{abiItem:f,type:m[1]})}f=p}}const d=(()=>{if(f)return f;const[p,...y]=c;return{...p,overloads:y}})();if(!d)throw new t5({name:t});return{...d,...s?{hash:ic(d)}:{}}}function b8(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,i]=e;return jg(n,i)}return e[0]})();return Ee(ic(t),0,4)}function l7(...e){const t=(()=>{if(Array.isArray(e[0])){const[i,s]=e;return jg(i,s)}return e[0]})(),n=typeof t==\"string\"?t:Wy(t);return am(n)}function ic(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,i]=e;return jg(n,i)}return e[0]})();return typeof t!=\"string\"&&\"hash\"in t&&t.hash?t.hash:er(ga(l7(t)))}class f7 extends he{constructor(t,n){super(\"Found ambiguous types in overloaded ABI Items.\",{metaMessages:[`\\`${t.type}\\` in \\`${am(Wy(t.abiItem))}\\`, and`,`\\`${n.type}\\` in \\`${am(Wy(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 t5 extends he{constructor({name:t,data:n,type:i=\"item\"}){const s=t?` with name \"${t}\"`:n?` with data \"${n}\"`:\"\";super(`ABI ${i}${s} not found.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.NotFoundError\"})}}const d7=/^(.*)\\[([0-9]*)\\]$/,p7=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,v8=/^(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)?$/,n5=2n**256n-1n;function vo(e,t,n){const{checksumAddress:i,staticPosition:s}=n,u=Hg(t.type);if(u){const[c,f]=u;return y7(e,{...t,type:f},{checksumAddress:i,length:c,staticPosition:s})}if(t.type===\"tuple\")return v7(e,t,{checksumAddress:i,staticPosition:s});if(t.type===\"address\")return h7(e,{checksum:i});if(t.type===\"bool\")return m7(e);if(t.type.startsWith(\"bytes\"))return g7(e,t,{staticPosition:s});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return b7(e,t);if(t.type===\"string\")return w7(e,{staticPosition:s});throw new Fg(t.type)}const r5=32,om=32;function h7(e,t={}){const{checksum:n=!1}=t,i=e.readBytes(32);return[(u=>n?sl(u):u)(Mt(GI(i,-20))),32]}function y7(e,t,n){const{checksumAddress:i,length:s,staticPosition:u}=n;if(s===null){const d=di(e.readBytes(om)),p=u+d,y=p+r5;e.setPosition(p);const m=di(e.readBytes(r5)),b=_o(t);let v=0;const x=[];for(let S=0;S48?KI(s,{signed:n}):di(s,{signed:n}),32]}function v7(e,t,n){const{checksumAddress:i,staticPosition:s}=n,u=t.components.length===0||t.components.some(({name:d})=>!d),c=u?[]:{};let f=0;if(_o(t)){const d=di(e.readBytes(om)),p=s+d;for(let y=0;y0?Je(p,d):p}}if(c)return{dynamic:!0,encoded:d}}return{dynamic:!1,encoded:Je(...f.map(({encoded:d})=>d))}}function A7(e,{type:t}){const[,n]=t.split(\"bytes\"),i=Ue(e);if(!n){let s=e;return i%32!==0&&(s=es(s,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:Je(lr(se(i,{size:32})),s)}}if(i!==Number.parseInt(n,10))throw new x8({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:es(e)}}function T7(e){if(typeof e!=\"boolean\")throw new he(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\`true\\` or \\`false\\`.`);return{dynamic:!1,encoded:lr(u8(e))}}function M7(e,{signed:t,size:n}){if(typeof n==\"number\"){const i=2n**(BigInt(n)-(t?1n:0n))-1n,s=t?-i-1n:0n;if(e>i||ec))}}function Hg(e){const t=e.match(/^(.*)\\[(\\d+)?\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function _o(e){const{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components?.some(_o);const n=Hg(e.type);return!!(n&&_o({...e,type:n[1]}))}const C7={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 R7({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new z7({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new i5({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 i5({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 qg(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(C7);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}let i5=class extends he{constructor({offset:t}){super(`Offset \\`${t}\\` cannot be negative.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.NegativeOffsetError\"})}},z7=class extends he{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\"})}},R7=class extends he{constructor({count:t,limit:n}){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 O7(e,t,n={}){const{as:i=\"Array\",checksumAddress:s=!1}=n,u=typeof t==\"string\"?mn(t):t,c=qg(u);if(po(u)===0&&e.length>0)throw new $7;if(po(u)&&po(u)<32)throw new k7({data:typeof t==\"string\"?t:Mt(t),parameters:e,size:po(u)});let f=0;const d=i===\"Array\"?[]:{};for(let p=0;pbc(u)?u:nm(u))})}return t}function j7(e){if(!e||e.length===0)return[];const t=[];for(const{address:n,storageKeys:i}of e){for(let s=0;s=gn?n:t+n}function Xn(e,t,n){let i=e;for(;t-- >gn;)i*=i,i%=n;return i}function cm(e,t){if(e===gn)throw new Error(\"invert: expected non-zero number\");if(t<=gn)throw new Error(\"invert: expected positive modulus, got \"+t);let n=hn(e,t),i=t,s=gn,u=Wt;for(;n!==gn;){const f=i/n,d=i%n,p=s-u*f;i=n,n=d,s=u,u=p}if(i!==Wt)throw new Error(\"invert: does not exist\");return hn(s,t)}function M8(e,t){const n=(e.ORDER+Wt)/E8,i=e.pow(t,n);if(!e.eql(e.sqr(i),t))throw new Error(\"Cannot find square root\");return i}function H7(e,t){const n=(e.ORDER-A8)/T8,i=e.mul(t,Fa),s=e.pow(i,n),u=e.mul(t,s),c=e.mul(e.mul(u,Fa),s),f=e.mul(u,e.sub(c,e.ONE));if(!e.eql(e.sqr(f),t))throw new Error(\"Cannot find square root\");return f}function q7(e){if(e1e3)throw new Error(\"Cannot find square root: probably non-prime P\");if(n===1)return M8;let u=s.pow(i,t);const c=(t+Wt)/Fa;return function(d,p){if(d.is0(p))return p;if(a5(d,p)!==1)throw new Error(\"Cannot find square root\");let y=n,m=d.mul(d.ONE,u),b=d.pow(p,t),v=d.pow(p,c);for(;!d.eql(b,d.ONE);){if(d.is0(b))return d.ZERO;let x=1,S=d.sqr(b);for(;!d.eql(S,d.ONE);)if(x++,S=d.sqr(S),x===y)throw new Error(\"Cannot find square root\");const E=Wt<(i[s]=\"function\",i),t);return Xd(e,n)}function V7(e,t,n){if(ngn;)n&Wt&&(i=e.mul(i,s)),s=e.sqr(s),n>>=Wt;return i}function _8(e,t,n=!1){const i=new Array(t.length).fill(n?e.ZERO:void 0),s=t.reduce((c,f,d)=>e.is0(f)?c:(i[d]=c,e.mul(c,f)),e.ONE),u=e.inv(s);return t.reduceRight((c,f,d)=>e.is0(f)?c:(i[d]=e.mul(c,i[d]),e.mul(c,f)),u),i}function a5(e,t){const n=(e.ORDER-Wt)/Fa,i=e.pow(t,n),s=e.eql(i,e.ONE),u=e.eql(i,e.ZERO),c=e.eql(i,e.neg(e.ONE));if(!s&&!u&&!c)throw new Error(\"invalid Legendre symbol result\");return s?1:u?0:-1}function P8(e,t){t!==void 0&&yc(t);const n=t!==void 0?t:e.toString(2).length,i=Math.ceil(n/8);return{nBitLength:n,nByteLength:i}}function Ho(e,t,n=!1,i={}){if(e<=gn)throw new Error(\"invalid field: expected ORDER > 0, got \"+e);const{nBitLength:s,nByteLength:u}=P8(e,t);if(u>2048)throw new Error(\"invalid field: expected ORDER of <= 2048 bytes\");let c;const f=Object.freeze({ORDER:e,isLE:n,BITS:s,BYTES:u,MASK:Yd(s),ZERO:gn,ONE:Wt,create:d=>hn(d,e),isValid:d=>{if(typeof d!=\"bigint\")throw new Error(\"invalid field element: expected bigint, got \"+typeof d);return gn<=d&&dd===gn,isOdd:d=>(d&Wt)===Wt,neg:d=>hn(-d,e),eql:(d,p)=>d===p,sqr:d=>hn(d*d,e),add:(d,p)=>hn(d+p,e),sub:(d,p)=>hn(d-p,e),mul:(d,p)=>hn(d*p,e),pow:(d,p)=>V7(f,d,p),div:(d,p)=>hn(d*cm(p,e),e),sqrN:d=>d*d,addN:(d,p)=>d+p,subN:(d,p)=>d-p,mulN:(d,p)=>d*p,inv:d=>cm(d,e),sqrt:i.sqrt||(d=>(c||(c=F7(e)),c(f,d))),toBytes:d=>n?n8(d,u):rl(d,u),fromBytes:d=>{if(d.length!==u)throw new Error(\"Field.fromBytes: expected \"+u+\" bytes, got \"+d.length);return n?t8(d):Za(d)},invertBatch:d=>_8(f,d),cmov:(d,p,y)=>y?p:d});return Object.freeze(f)}function C8(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 z8(e){const t=C8(e);return t+Math.ceil(t/2)}function Q7(e,t,n=!1){const i=e.length,s=C8(t),u=z8(t);if(i<16||i1024)throw new Error(\"expected \"+u+\"-1024 bytes of input, got \"+i);const c=n?t8(e):Za(e),f=hn(c,t-Wt)+Wt;return n?n8(f,s):rl(f,s)}const s5=BigInt(0),lm=BigInt(1);function ly(e,t){const n=t.negate();return e?n:t}function R8(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error(\"invalid window size, expected [1..\"+t+\"], got W=\"+e)}function fy(e,t){R8(e,t);const n=Math.ceil(t/e)+1,i=2**(e-1),s=2**e,u=Yd(e),c=BigInt(e);return{windows:n,windowSize:i,mask:u,maxNumber:s,shiftBy:c}}function o5(e,t,n){const{windowSize:i,mask:s,maxNumber:u,shiftBy:c}=n;let f=Number(e&s),d=e>>c;f>i&&(f-=u,d+=lm);const p=t*i,y=p+Math.abs(f)-1,m=f===0,b=f<0,v=t%2!==0;return{nextN:d,offset:y,isZero:m,isNeg:b,isNegF:v,offsetF:p}}function Z7(e,t){if(!Array.isArray(e))throw new Error(\"array expected\");e.forEach((n,i)=>{if(!(n instanceof t))throw new Error(\"invalid point at index \"+i)})}function Y7(e,t){if(!Array.isArray(e))throw new Error(\"array of scalars expected\");e.forEach((n,i)=>{if(!t.isValid(n))throw new Error(\"invalid scalar at index \"+i)})}const dy=new WeakMap,O8=new WeakMap;function py(e){return O8.get(e)||1}function X7(e,t){return{constTimeNegate:ly,hasPrecomputes(n){return py(n)!==1},unsafeLadder(n,i,s=e.ZERO){let u=n;for(;i>s5;)i&lm&&(s=s.add(u)),u=u.double(),i>>=lm;return s},precomputeWindow(n,i){const{windows:s,windowSize:u}=fy(i,t),c=[];let f=n,d=f;for(let p=0;p12?d=f-3:f>4?d=f-2:f>0&&(d=2);const p=Yd(d),y=new Array(Number(p)+1).fill(c),m=Math.floor((t.BITS-1)/d)*d;let b=c;for(let v=m;v>=0;v-=d){y.fill(c);for(let S=0;S>BigInt(v)&p);y[A]=y[A].add(n[S])}let x=c;for(let S=y.length-1,E=c;S>0;S--)E=E.add(y[S]),x=x.add(E);if(b=b.add(x),v!==0)for(let S=0;S{const{Err:n}=oi;if(e<0||e>256)throw new n(\"tlv.encode: wrong tag\");if(t.length&1)throw new n(\"tlv.encode: unpadded data\");const i=t.length/2,s=Zf(i);if(s.length/2&128)throw new n(\"tlv.encode: long form length too big\");const u=i>127?Zf(s.length/2|128):\"\";return Zf(e)+u+s+t},decode(e,t){const{Err:n}=oi;let i=0;if(e<0||e>256)throw new n(\"tlv.encode: wrong tag\");if(t.length<2||t[i++]!==e)throw new n(\"tlv.decode: wrong tlv\");const s=t[i++],u=!!(s&128);let c=0;if(!u)c=s;else{const d=s&127;if(!d)throw new n(\"tlv.decode(long): indefinite length not supported\");if(d>4)throw new n(\"tlv.decode(long): byte length is too big\");const p=t.subarray(i,i+d);if(p.length!==d)throw new n(\"tlv.decode: length bytes not complete\");if(p[0]===0)throw new n(\"tlv.decode(long): zero leftmost byte\");for(const y of p)c=c<<8|y;if(i+=d,c<128)throw new n(\"tlv.decode(long): not minimal encoding\")}const f=t.subarray(i,i+c);if(f.length!==c)throw new n(\"tlv.decode: wrong value length\");return{v:f,l:t.subarray(i+c)}}},_int:{encode(e){const{Err:t}=oi;if(e{const I=C.toAffine();return Pd(Uint8Array.from([4]),n.toBytes(I.x),n.toBytes(I.y))}),u=t.fromBytes||(_=>{const C=_.subarray(1),P=n.fromBytes(C.subarray(0,n.BYTES)),I=n.fromBytes(C.subarray(n.BYTES,2*n.BYTES));return{x:P,y:I}});function c(_){const{a:C,b:P}=t,I=n.sqr(_),z=n.mul(I,_);return n.add(n.add(z,n.mul(_,C)),P)}function f(_,C){const P=n.sqr(C),I=c(_);return n.eql(P,I)}if(!f(t.Gx,t.Gy))throw new Error(\"bad curve params: generator point\");const d=n.mul(n.pow(t.a,yy),tk),p=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(d,p)))throw new Error(\"bad curve params: a or b\");function y(_){return kg(_,Ct,t.n)}function m(_){const{allowedPrivateKeyLengths:C,nByteLength:P,wrapPrivateKey:I,n:z}=t;if(C&&typeof _!=\"bigint\"){if(nl(_)&&(_=gc(_)),typeof _!=\"string\"||!C.includes(_.length))throw new Error(\"invalid private key\");_=_.padStart(P*2,\"0\")}let k;try{k=typeof _==\"bigint\"?_:Za(Jn(\"private key\",_,P))}catch{throw new Error(\"invalid private key, expected hex or \"+P+\" bytes, got \"+typeof _)}return I&&(k=hn(k,z)),bo(\"private key\",k,Ct,z),k}function b(_){if(!(_ instanceof S))throw new Error(\"ProjectivePoint expected\")}const v=Q2((_,C)=>{const{px:P,py:I,pz:z}=_;if(n.eql(z,n.ONE))return{x:P,y:I};const k=_.is0();C==null&&(C=k?n.ONE:n.inv(z));const L=n.mul(P,C),D=n.mul(I,C),Q=n.mul(z,C);if(k)return{x:n.ZERO,y:n.ZERO};if(!n.eql(Q,n.ONE))throw new Error(\"invZ was invalid\");return{x:L,y:D}}),x=Q2(_=>{if(_.is0()){if(t.allowInfinityPoint&&!n.is0(_.py))return;throw new Error(\"bad point: ZERO\")}const{x:C,y:P}=_.toAffine();if(!n.isValid(C)||!n.isValid(P))throw new Error(\"bad point: x or y not FE\");if(!f(C,P))throw new Error(\"bad point: equation left != right\");if(!_.isTorsionFree())throw new Error(\"bad point: not in prime-order subgroup\");return!0});class S{constructor(C,P,I){if(C==null||!n.isValid(C))throw new Error(\"x required\");if(P==null||!n.isValid(P)||n.is0(P))throw new Error(\"y required\");if(I==null||!n.isValid(I))throw new Error(\"z required\");this.px=C,this.py=P,this.pz=I,Object.freeze(this)}static fromAffine(C){const{x:P,y:I}=C||{};if(!C||!n.isValid(P)||!n.isValid(I))throw new Error(\"invalid affine point\");if(C instanceof S)throw new Error(\"projective point not allowed\");const z=k=>n.eql(k,n.ZERO);return z(P)&&z(I)?S.ZERO:new S(P,I,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(C){const P=_8(n,C.map(I=>I.pz));return C.map((I,z)=>I.toAffine(P[z])).map(S.fromAffine)}static fromHex(C){const P=S.fromAffine(u(Jn(\"pointHex\",C)));return P.assertValidity(),P}static fromPrivateKey(C){return S.BASE.multiply(m(C))}static msm(C,P){return J7(S,i,C,P)}_setWindowSize(C){R.setWindowSize(this,C)}assertValidity(){x(this)}hasEvenY(){const{y:C}=this.toAffine();if(n.isOdd)return!n.isOdd(C);throw new Error(\"Field doesn't support isOdd\")}equals(C){b(C);const{px:P,py:I,pz:z}=this,{px:k,py:L,pz:D}=C,Q=n.eql(n.mul(P,D),n.mul(k,z)),Y=n.eql(n.mul(I,D),n.mul(L,z));return Q&&Y}negate(){return new S(this.px,n.neg(this.py),this.pz)}double(){const{a:C,b:P}=t,I=n.mul(P,yy),{px:z,py:k,pz:L}=this;let D=n.ZERO,Q=n.ZERO,Y=n.ZERO,te=n.mul(z,z),ue=n.mul(k,k),J=n.mul(L,L),N=n.mul(z,k);return N=n.add(N,N),Y=n.mul(z,L),Y=n.add(Y,Y),D=n.mul(C,Y),Q=n.mul(I,J),Q=n.add(D,Q),D=n.sub(ue,Q),Q=n.add(ue,Q),Q=n.mul(D,Q),D=n.mul(N,D),Y=n.mul(I,Y),J=n.mul(C,J),N=n.sub(te,J),N=n.mul(C,N),N=n.add(N,Y),Y=n.add(te,te),te=n.add(Y,te),te=n.add(te,J),te=n.mul(te,N),Q=n.add(Q,te),J=n.mul(k,L),J=n.add(J,J),te=n.mul(J,N),D=n.sub(D,te),Y=n.mul(J,ue),Y=n.add(Y,Y),Y=n.add(Y,Y),new S(D,Q,Y)}add(C){b(C);const{px:P,py:I,pz:z}=this,{px:k,py:L,pz:D}=C;let Q=n.ZERO,Y=n.ZERO,te=n.ZERO;const ue=t.a,J=n.mul(t.b,yy);let N=n.mul(P,k),G=n.mul(I,L),re=n.mul(z,D),ce=n.add(P,I),le=n.add(k,L);ce=n.mul(ce,le),le=n.add(N,G),ce=n.sub(ce,le),le=n.add(P,z);let $=n.add(k,D);return le=n.mul(le,$),$=n.add(N,re),le=n.sub(le,$),$=n.add(I,z),Q=n.add(L,D),$=n.mul($,Q),Q=n.add(G,re),$=n.sub($,Q),te=n.mul(ue,le),Q=n.mul(J,re),te=n.add(Q,te),Q=n.sub(G,te),te=n.add(G,te),Y=n.mul(Q,te),G=n.add(N,N),G=n.add(G,N),re=n.mul(ue,re),le=n.mul(J,le),G=n.add(G,re),re=n.sub(N,re),re=n.mul(ue,re),le=n.add(le,re),N=n.mul(G,le),Y=n.add(Y,N),N=n.mul($,le),Q=n.mul(ce,Q),Q=n.sub(Q,N),N=n.mul(ce,G),te=n.mul($,te),te=n.add(te,N),new S(Q,Y,te)}subtract(C){return this.add(C.negate())}is0(){return this.equals(S.ZERO)}wNAF(C){return R.wNAFCached(this,C,S.normalizeZ)}multiplyUnsafe(C){const{endo:P,n:I}=t;bo(\"scalar\",C,ui,I);const z=S.ZERO;if(C===ui)return z;if(this.is0()||C===Ct)return this;if(!P||R.hasPrecomputes(this))return R.wNAFCachedUnsafe(this,C,S.normalizeZ);let{k1neg:k,k1:L,k2neg:D,k2:Q}=P.splitScalar(C),Y=z,te=z,ue=this;for(;L>ui||Q>ui;)L&Ct&&(Y=Y.add(ue)),Q&Ct&&(te=te.add(ue)),ue=ue.double(),L>>=Ct,Q>>=Ct;return k&&(Y=Y.negate()),D&&(te=te.negate()),te=new S(n.mul(te.px,P.beta),te.py,te.pz),Y.add(te)}multiply(C){const{endo:P,n:I}=t;bo(\"scalar\",C,Ct,I);let z,k;if(P){const{k1neg:L,k1:D,k2neg:Q,k2:Y}=P.splitScalar(C);let{p:te,f:ue}=this.wNAF(D),{p:J,f:N}=this.wNAF(Y);te=R.constTimeNegate(L,te),J=R.constTimeNegate(Q,J),J=new S(n.mul(J.px,P.beta),J.py,J.pz),z=te.add(J),k=ue.add(N)}else{const{p:L,f:D}=this.wNAF(C);z=L,k=D}return S.normalizeZ([z,k])[0]}multiplyAndAddUnsafe(C,P,I){const z=S.BASE,k=(D,Q)=>Q===ui||Q===Ct||!D.equals(z)?D.multiplyUnsafe(Q):D.multiply(Q),L=k(this,P).add(k(C,I));return L.is0()?void 0:L}toAffine(C){return v(this,C)}isTorsionFree(){const{h:C,isTorsionFree:P}=t;if(C===Ct)return!0;if(P)return P(S,this);throw new Error(\"isTorsionFree() has not been declared for the elliptic curve\")}clearCofactor(){const{h:C,clearCofactor:P}=t;return C===Ct?this:P?P(S,this):this.multiplyUnsafe(t.h)}toRawBytes(C=!0){return mc(\"isCompressed\",C),this.assertValidity(),s(S,this,C)}toHex(C=!0){return mc(\"isCompressed\",C),gc(this.toRawBytes(C))}}S.BASE=new S(t.Gx,t.Gy,n.ONE),S.ZERO=new S(n.ZERO,n.ONE,n.ZERO);const{endo:E,nBitLength:A}=t,R=X7(S,E?Math.ceil(A/2):A);return{CURVE:t,ProjectivePoint:S,normPrivateKeyToScalar:m,weierstrassEquation:c,isWithinCurveOrder:y}}function rk(e){const t=I8(e);return Xd(t,{hash:\"hash\",hmac:\"function\",randomBytes:\"function\"},{bits2int:\"function\",bits2int_modN:\"function\",lowS:\"boolean\"}),Object.freeze({lowS:!0,...t})}function ik(e){const t=rk(e),{Fp:n,n:i,nByteLength:s,nBitLength:u}=t,c=n.BYTES+1,f=2*n.BYTES+1;function d(J){return hn(J,i)}function p(J){return cm(J,i)}const{ProjectivePoint:y,normPrivateKeyToScalar:m,weierstrassEquation:b,isWithinCurveOrder:v}=nk({...t,toBytes(J,N,G){const re=N.toAffine(),ce=n.toBytes(re.x),le=Pd;return mc(\"isCompressed\",G),G?le(Uint8Array.from([N.hasEvenY()?2:3]),ce):le(Uint8Array.from([4]),ce,n.toBytes(re.y))},fromBytes(J){const N=J.length,G=J[0],re=J.subarray(1);if(N===c&&(G===2||G===3)){const ce=Za(re);if(!kg(ce,Ct,n.ORDER))throw new Error(\"Point is not on curve\");const le=b(ce);let $;try{$=n.sqrt(le)}catch(ae){const fe=ae instanceof Error?\": \"+ae.message:\"\";throw new Error(\"Point is not on curve\"+fe)}const Z=($&Ct)===Ct;return(G&1)===1!==Z&&($=n.neg($)),{x:ce,y:$}}else if(N===f&&G===4){const ce=n.fromBytes(re.subarray(0,n.BYTES)),le=n.fromBytes(re.subarray(n.BYTES,2*n.BYTES));return{x:ce,y:le}}else{const ce=c,le=f;throw new Error(\"invalid Point, expected length of \"+ce+\", or uncompressed \"+le+\", got \"+N)}}});function x(J){const N=i>>Ct;return J>N}function S(J){return x(J)?d(-J):J}const E=(J,N,G)=>Za(J.slice(N,G));class A{constructor(N,G,re){bo(\"r\",N,Ct,i),bo(\"s\",G,Ct,i),this.r=N,this.s=G,re!=null&&(this.recovery=re),Object.freeze(this)}static fromCompact(N){const G=s;return N=Jn(\"compactSignature\",N,G*2),new A(E(N,0,G),E(N,G,2*G))}static fromDER(N){const{r:G,s:re}=oi.toSig(Jn(\"DER\",N));return new A(G,re)}assertValidity(){}addRecoveryBit(N){return new A(this.r,this.s,N)}recoverPublicKey(N){const{r:G,s:re,recovery:ce}=this,le=z(Jn(\"msgHash\",N));if(ce==null||![0,1,2,3].includes(ce))throw new Error(\"recovery id invalid\");const $=ce===2||ce===3?G+t.n:G;if($>=n.ORDER)throw new Error(\"recovery id 2 or 3 invalid\");const Z=(ce&1)===0?\"02\":\"03\",oe=y.fromHex(Z+hy($,n.BYTES)),ae=p($),fe=d(-le*ae),we=d(re*ae),Ae=y.BASE.multiplyAndAddUnsafe(oe,fe,we);if(!Ae)throw new Error(\"point at infinify\");return Ae.assertValidity(),Ae}hasHighS(){return x(this.s)}normalizeS(){return this.hasHighS()?new A(this.r,d(-this.s),this.recovery):this}toDERRawBytes(){return _d(this.toDERHex())}toDERHex(){return oi.hexFromSig(this)}toCompactRawBytes(){return _d(this.toCompactHex())}toCompactHex(){const N=s;return hy(this.r,N)+hy(this.s,N)}}const R={isValidPrivateKey(J){try{return m(J),!0}catch{return!1}},normPrivateKeyToScalar:m,randomPrivateKey:()=>{const J=z8(t.n);return Q7(t.randomBytes(J),t.n)},precompute(J=8,N=y.BASE){return N._setWindowSize(J),N.multiply(BigInt(3)),N}};function _(J,N=!0){return y.fromPrivateKey(J).toRawBytes(N)}function C(J){if(typeof J==\"bigint\")return!1;if(J instanceof y)return!0;const G=Jn(\"key\",J).length,re=n.BYTES,ce=re+1,le=2*re+1;if(!(t.allowedPrivateKeyLengths||s===ce))return G===ce||G===le}function P(J,N,G=!0){if(C(J)===!0)throw new Error(\"first arg must be private key\");if(C(N)===!1)throw new Error(\"second arg must be public key\");return y.fromHex(N).multiply(m(J)).toRawBytes(G)}const I=t.bits2int||function(J){if(J.length>8192)throw new Error(\"input is too large\");const N=Za(J),G=J.length*8-u;return G>0?N>>BigInt(G):N},z=t.bits2int_modN||function(J){return d(I(J))},k=Yd(u);function L(J){return bo(\"num < 2^\"+u,J,ui,k),rl(J,s)}function D(J,N,G=Q){if([\"recovered\",\"canonical\"].some(Oe=>Oe in G))throw new Error(\"sign() legacy options not supported\");const{hash:re,randomBytes:ce}=t;let{lowS:le,prehash:$,extraEntropy:Z}=G;le==null&&(le=!0),J=Jn(\"msgHash\",J),u5(G),$&&(J=Jn(\"prehashed msgHash\",re(J)));const oe=z(J),ae=m(N),fe=[L(ae),L(oe)];if(Z!=null&&Z!==!1){const Oe=Z===!0?ce(n.BYTES):Z;fe.push(Jn(\"extraEntropy\",Oe))}const we=Pd(...fe),Ae=oe;function Ze(Oe){const Dt=I(Oe);if(!v(Dt))return;const En=p(Dt),sn=y.BASE.multiply(Dt).toAffine(),An=d(sn.x);if(An===ui)return;const Ht=d(En*d(Ae+An*ae));if(Ht===ui)return;let Un=(sn.x===An?0:2)|Number(sn.y&Ct),Or=Ht;return le&&x(Ht)&&(Or=S(Ht),Un^=1),new A(An,Or,Un)}return{seed:we,k2sig:Ze}}const Q={lowS:t.lowS,prehash:!1},Y={lowS:t.lowS,prehash:!1};function te(J,N,G=Q){const{seed:re,k2sig:ce}=D(J,N,G),le=t;return MI(le.hash.outputLen,le.nByteLength,le.hmac)(re,ce)}y.BASE._setWindowSize(8);function ue(J,N,G,re=Y){const ce=J;N=Jn(\"msgHash\",N),G=Jn(\"publicKey\",G);const{lowS:le,prehash:$,format:Z}=re;if(u5(re),\"strict\"in re)throw new Error(\"options.strict was renamed to lowS\");if(Z!==void 0&&Z!==\"compact\"&&Z!==\"der\")throw new Error(\"format must be compact or der\");const oe=typeof ce==\"string\"||nl(ce),ae=!oe&&!Z&&typeof ce==\"object\"&&ce!==null&&typeof ce.r==\"bigint\"&&typeof ce.s==\"bigint\";if(!oe&&!ae)throw new Error(\"invalid signature, expected Uint8Array, hex string or Signature instance\");let fe,we;try{if(ae&&(fe=new A(ce.r,ce.s)),oe){try{Z!==\"compact\"&&(fe=A.fromDER(ce))}catch(Un){if(!(Un instanceof oi.Err))throw Un}!fe&&Z!==\"der\"&&(fe=A.fromCompact(ce))}we=y.fromHex(G)}catch{return!1}if(!fe||le&&fe.hasHighS())return!1;$&&(N=t.hash(N));const{r:Ae,s:Ze}=fe,Oe=z(N),Dt=p(Ze),En=d(Oe*Dt),sn=d(Ae*Dt),An=y.BASE.multiplyAndAddUnsafe(we,En,sn)?.toAffine();return An?d(An.x)===Ae:!1}return{CURVE:t,getPublicKey:_,getSharedSecret:P,sign:te,verify:ue,ProjectivePoint:y,Signature:A,utils:R}}function ak(e){return{hash:e,hmac:(t,...n)=>q3(e,t,KO(...n)),randomBytes:VO}}function Wd(e,t){const n=i=>ik({...e,...ak(i)});return{...n(t),create:n}}const k8=BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),c5=BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),sk=BigInt(0),ok=BigInt(1),fm=BigInt(2),l5=(e,t)=>(e+t/fm)/t;function uk(e){const t=k8,n=BigInt(3),i=BigInt(6),s=BigInt(11),u=BigInt(22),c=BigInt(23),f=BigInt(44),d=BigInt(88),p=e*e*e%t,y=p*p*e%t,m=Xn(y,n,t)*y%t,b=Xn(m,n,t)*y%t,v=Xn(b,fm,t)*p%t,x=Xn(v,s,t)*v%t,S=Xn(x,u,t)*x%t,E=Xn(S,f,t)*S%t,A=Xn(E,d,t)*E%t,R=Xn(A,f,t)*S%t,_=Xn(R,n,t)*y%t,C=Xn(_,c,t)*x%t,P=Xn(C,i,t)*p%t,I=Xn(P,fm,t);if(!dm.eql(dm.sqr(I),e))throw new Error(\"Cannot find square root\");return I}const dm=Ho(k8,void 0,void 0,{sqrt:uk}),ep=Wd({a:sk,b:BigInt(7),Fp:dm,n:c5,Gx:BigInt(\"55066263022277343669578718895168534326250603453777594175500187360389116729240\"),Gy:BigInt(\"32670510020758816978083085130507043184471273380659243275938904335757337482424\"),h:BigInt(1),lowS:!0,endo:{beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),splitScalar:e=>{const t=c5,n=BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),i=-ok*BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\"),s=BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),u=n,c=BigInt(\"0x100000000000000000000000000000000\"),f=l5(u*e,t),d=l5(-i*e,t);let p=hn(e-f*n-d*s,t),y=hn(-f*i-d*u,t);const m=p>c,b=y>c;if(m&&(p=t-p),b&&(y=t-y),p>c||y>c)throw new Error(\"splitScalar: Endomorphism failed, k=\"+e);return{k1neg:m,k1:p,k2neg:b,k2:y}}}},Rg),ck=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:ep},Symbol.toStringTag,{value:\"Module\"}));function $8(e){return ia(B8(e))}function B8(e){const{payload:t,signature:n}=e,{r:i,s,yParity:u}=n,f=new ep.Signature(BigInt(i),BigInt(s)).addRecoveryBit(u).recoverPublicKey(il(t).substring(2));return e7(f)}function lk(e){const{hash:t,payload:n}=e;return e.address?wn(e.address,$8({payload:n,signature:e.signature})):ep.verify(e.signature,Bg(n),n7(e.publicKey),...t?[{prehash:!0,lowS:!0}]:[])}al(\"ox.secp256k1.fromSeed.v1\");function Gg(e){return fk(e,\"Hex\")}function fk(e,t){const n=t,i=(()=>{if(typeof e==\"string\"){if(e.length>3&&e.length%2!==0)throw new kI(e);return mn(e)}return e})(),s=qg(i,{recursiveReadLimit:Number.POSITIVE_INFINITY});return N8(s,n)}function N8(e,t=\"Hex\"){if(e.bytes.length===0)return t===\"Hex\"?Mt(e.bytes):e.bytes;const n=e.readByte();if(n<128&&e.decrementPosition(1),n<192){const s=f5(e,n,128),u=e.readBytes(s);return t===\"Hex\"?Mt(u):u}const i=f5(e,n,192);return dk(e,i,t)}function f5(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 he(\"Invalid RLP prefix\")}function dk(e,t,n){const i=e.position,s=[];for(;e.position-iL8(t))):yk(e)}function hk(e){const t=e.reduce((s,u)=>s+u.length,0),n=j8(t);return{length:t<=55?1+t:1+n+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+n),n===1?s.pushUint8(t):n===2?s.pushUint16(t):n===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:u}of e)u(s)}}}function yk(e){const t=typeof e==\"string\"?mn(e):e,n=j8(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+n),n===1?s.pushUint8(t.length):n===2?s.pushUint16(t.length):n===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function j8(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=16777215)return 3;if(e<=4294967295)return 4;throw new he(\"Length is too large.\")}function ul(e,t={}){const{recovered:n}=t;if(typeof e.r>\"u\")throw new my({signature:e});if(typeof e.s>\"u\")throw new my({signature:e});if(n&&typeof e.yParity>\"u\")throw new my({signature:e});if(e.r<0n||e.r>n5)throw new Sk({value:e.r});if(e.s<0n||e.s>n5)throw new Ek({value:e.s});if(typeof e.yParity==\"number\"&&e.yParity!==0&&e.yParity!==1)throw new np({value:e.yParity})}function mk(e){return Kg(Mt(e))}function Kg(e){if(e.length!==130&&e.length!==132)throw new xk({signature:e});const t=BigInt(Ee(e,0,32)),n=BigInt(Ee(e,32,64)),i=(()=>{const s=+`0x${e.slice(130)}`;if(!Number.isNaN(s))try{return Qg(s)}catch{throw new np({value:s})}})();return typeof i>\"u\"?{r:t,s:n}:{r:t,s:n,yParity:i}}function U8(e){if(!(typeof e.r>\"u\")&&!(typeof e.s>\"u\"))return tp(e)}function tp(e){const t=typeof e==\"string\"?Kg(e):e instanceof Uint8Array?mk(e):typeof e.r==\"string\"?Vg(e):e.v?gk(e):{r:e.r,s:e.s,...typeof e.yParity<\"u\"?{yParity:e.yParity}:{}};return ul(t),t}function gk(e){return{r:e.r,s:e.s,yParity:Qg(e.v)}}function Vg(e){const t=(()=>{const n=e.v?Number(e.v):void 0;let i=e.yParity?Number(e.yParity):void 0;if(typeof n==\"number\"&&typeof i!=\"number\"&&(i=Qg(n)),typeof i!=\"number\")throw new np({value:e.yParity});return i})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function bk(e){const[t,n,i]=e;return tp({r:n===\"0x\"?0n:BigInt(n),s:i===\"0x\"?0n:BigInt(i),yParity:t===\"0x\"?0:Number(t)})}function vk(e){ul(e);const t=e.r,n=e.s;return Je(se(t,{size:32}),se(n,{size:32}),typeof e.yParity==\"number\"?se(Zg(e.yParity),{size:1}):\"0x\")}function D8(e){const{r:t,s:n,yParity:i}=e;return{r:se(t,{size:32}),s:se(n,{size:32}),yParity:i===0?\"0x0\":\"0x1\"}}function wk(e){const{r:t,s:n,yParity:i}=e;return[i?\"0x01\":\"0x\",t===0n?\"0x\":nm(se(t)),n===0n?\"0x\":nm(se(n))]}function Qg(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 Ak({value:e})}function Zg(e){if(e===0)return 27;if(e===1)return 28;throw new np({value:e})}class xk extends he{constructor({signature:t}){super(`Value \\`${t}\\` is an invalid signature size.`,{metaMessages:[\"Expected: 64 bytes or 65 bytes.\",`Received ${Ue(il(t))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSerializedSizeError\"})}}let my=class extends he{constructor({signature:t}){super(`Signature \\`${ps(t)}\\` is missing either an \\`r\\`, \\`s\\`, or \\`yParity\\` property.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.MissingPropertiesError\"})}};class Sk extends he{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 Ek extends he{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\"})}}let np=class extends he{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 Ak extends he{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\"})}}function Tk(e,t={}){return typeof e.chainId==\"string\"?H8(e):{...e,...t.signature}}function H8(e){const{address:t,chainId:n,nonce:i}=e,s=U8(e);return{address:t,chainId:Number(n),nonce:BigInt(i),...s}}function Mk(e){return e.map(H8)}function _k(e){const{address:t,chainId:n,nonce:i,...s}=e;return{address:t,chainId:se(n),nonce:se(i),...D8(s)}}function Pk(e){return e.map(_k)}const Ck=new TextEncoder;Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[t,e.charCodeAt(0)]);const Xf={...Object.fromEntries(Array.from(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63};function zk(e){const t=e.replace(/=+$/,\"\"),n=t.length,i=new Uint8Array(n+3);Ck.encodeInto(t+\"===\",i);for(let u=0,c=0;u>16,i[c+1]=f>>8&255,i[c+2]=f&255}const s=(n>>2)*3+(n%4&&n%4-1);return new Uint8Array(i.buffer,0,s)}const q8={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"},F8={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"};function Rk(e,t={}){if(!e)return null;const n=U8(e),i={...e,...n};return i.blockNumber=e.blockNumber?BigInt(e.blockNumber):null,\"blockTimestamp\"in e&&(i.blockTimestamp=e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0),i.data=e.input,i.gas=BigInt(e.gas??0n),i.nonce=BigInt(e.nonce??0n),i.transactionIndex=e.transactionIndex?Number(e.transactionIndex):null,i.value=BigInt(e.value??0n),e.authorizationList&&(i.authorizationList=Mk(e.authorizationList)),e.chainId&&(i.chainId=Number(e.chainId)),e.gasPrice&&(i.gasPrice=BigInt(e.gasPrice)),e.maxFeePerBlobGas&&(i.maxFeePerBlobGas=BigInt(e.maxFeePerBlobGas)),e.maxFeePerGas&&(i.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(i.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.type&&(i.type=F8[e.type]??e.type),n&&(i.v=Zg(n.yParity)),i}function Ok(e){return{address:e.address,amount:se(e.amount),index:se(e.index),validatorIndex:se(e.validatorIndex)}}function Ik(e){return{...typeof e.baseFeePerGas==\"bigint\"&&{baseFeePerGas:se(e.baseFeePerGas)},...typeof e.blobBaseFee==\"bigint\"&&{blobBaseFee:se(e.blobBaseFee)},...typeof e.feeRecipient==\"string\"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit==\"bigint\"&&{gasLimit:se(e.gasLimit)},...typeof e.number==\"bigint\"&&{number:se(e.number)},...typeof e.prevRandao==\"bigint\"&&{prevRandao:se(e.prevRandao)},...typeof e.time==\"bigint\"&&{time:se(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(Ok)}}}function kk(e){const t=mn(im(e.from)),n=HI(rm(e.salt)?e.salt:mn(e.salt),32),i=\"bytecodeHash\"in e?rm(e.bytecodeHash)?e.bytecodeHash:mn(e.bytecodeHash):er(e.bytecode,{as:\"Bytes\"});return im(Ee(er(p8(mn(\"0xff\"),t,n,i),{as:\"Hex\"}),12))}const G8=Ho(BigInt(\"0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff\")),$k=G8.create(BigInt(\"-3\")),Bk=BigInt(\"0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b\"),Nk=Wd({a:$k,b:Bk,Fp:G8,n:BigInt(\"0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551\"),Gx:BigInt(\"0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296\"),Gy:BigInt(\"0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5\"),h:BigInt(1),lowS:!1},Rg),K8=Ho(BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff\")),Lk=K8.create(BigInt(\"-3\")),jk=BigInt(\"0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef\");Wd({a:Lk,b:jk,Fp:K8,n:BigInt(\"0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973\"),Gx:BigInt(\"0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7\"),Gy:BigInt(\"0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f\"),h:BigInt(1),lowS:!1},EI);const V8=Ho(BigInt(\"0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\")),Uk=V8.create(BigInt(\"-3\")),Dk=BigInt(\"0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00\");Wd({a:Uk,b:Dk,Fp:V8,n:BigInt(\"0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409\"),Gx:BigInt(\"0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66\"),Gy:BigInt(\"0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650\"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},SI);const Hk=Nk;function Q8(e){const{hash:t,payload:n,publicKey:i,signature:s}=e;return Hk.verify(s,n instanceof Uint8Array?n:mn(n),Lg(i).substring(2),{lowS:!0,...t?{prehash:!0}:{}})}al(\"ox.p256.fromSeed.v1\");var gy={exports:{}},d5;function qk(){return d5||(d5=1,(function(e){var t=Object.prototype.hasOwnProperty,n=\"~\";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function s(d,p,y){this.fn=d,this.context=p,this.once=y||!1}function u(d,p,y,m,b){if(typeof y!=\"function\")throw new TypeError(\"The listener must be a function\");var v=new s(y,m||d,b),x=n?n+p:p;return d._events[x]?d._events[x].fn?d._events[x]=[d._events[x],v]:d._events[x].push(v):(d._events[x]=v,d._eventsCount++),d}function c(d,p){--d._eventsCount===0?d._events=new i:delete d._events[p]}function f(){this._events=new i,this._eventsCount=0}f.prototype.eventNames=function(){var p=[],y,m;if(this._eventsCount===0)return p;for(m in y=this._events)t.call(y,m)&&p.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(y)):p},f.prototype.listeners=function(p){var y=n?n+p:p,m=this._events[y];if(!m)return[];if(m.fn)return[m.fn];for(var b=0,v=m.length,x=new Array(v);btypeof c>\"u\"?u:void 0).filter(Boolean);super(`Invalid serialized transaction of type \"${i}\" was provided.`,{metaMessages:[`Serialized Transaction: \"${n}\"`,s.length>0?`Missing Attributes: ${s.join(\", \")}`:\"\"].filter(Boolean)}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionEnvelope.InvalidSerializedError\"})}},Xk=class extends he{constructor({maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\\`maxPriorityFeePerGas\\`${t?` = ${pm(t)} gwei`:\"\"}) cannot be higher than the fee cap (\\`maxFeePerGas\\`${n?` = ${pm(n)} gwei`:\"\"}).`].join(`\n`)),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TransactionEnvelope.TipAboveFeeCapError\"})}};function Jk(e){const{challenge:t,metadata:n,origin:i,publicKey:s,rpId:u,signature:c}=e,{authenticatorData:f,clientDataJSON:d,userVerificationRequired:p}=n,y=mn(f);if(y.length<37)return!1;if(u!==void 0){const S=y.slice(0,32),E=J2(ga(u),{as:\"Bytes\"});if(!DI(S,E))return!1}const m=y[32];if((m&1)!==1||p&&(m&4)!==4||(m&8)!==8&&(m&16)===16)return!1;const b=JSON.parse(d);if(b.type!==\"webauthn.get\"||!b.challenge||Mt(zk(b.challenge))!==t||i!==void 0&&!(Array.isArray(i)?i:[i]).includes(b.origin))return!1;const v=J2(al(d),{as:\"Bytes\"}),x=p8(y,v);return Q8({hash:!0,payload:x,publicKey:s,signature:c})}function Wk(e){return Jk(e)}const Z8=new XR({defaultOptions:{queries:{gcTime:1e3*60*60*24,retry:!1,refetchOnWindowFocus:!1}}}),e$=dO({key:\"tempo-admin\",storage:typeof window>\"u\"?void 0:window.localStorage,serialize:ps,deserialize:RI}),t$={buster:\"route-subsidy-direction\",dehydrateOptions:{shouldDehydrateQuery:e=>e.queryKey[0]!==\"config\"&&e.queryKey[0]!==\"organizations\"&&S3(e)},maxAge:1e3*60*60*24,persister:e$};var n$=[\"added\",\"removed\",\"updated\"];function h5(e){return n$.includes(e)}async function r$({queryClient:e,persister:t,maxAge:n=1e3*60*60*24,buster:i=\"\",hydrateOptions:s}){try{const u=await t.restoreClient();if(u)if(u.timestamp){const c=Date.now()-u.timestamp>n,f=u.buster!==i;if(c||f)return t.removeClient();$R(e,u.clientState,s)}else return t.removeClient()}catch(u){throw await t.removeClient(),u}}async function y5({queryClient:e,persister:t,buster:n=\"\",dehydrateOptions:i}){const s={buster:n,timestamp:Date.now(),clientState:kR(e,i)};await t.persistClient(s)}function i$(e){const t=e.queryClient.getQueryCache().subscribe(i=>{h5(i.type)&&y5(e)}),n=e.queryClient.getMutationCache().subscribe(i=>{h5(i.type)&&y5(e)});return()=>{t(),n()}}var a$=({children:e,persistOptions:t,onSuccess:n,onError:i,...s})=>{const[u,c]=ie.useState(!0),f=ie.useRef({persistOptions:t,onSuccess:n,onError:i}),d=ie.useRef(!1);return ie.useEffect(()=>{f.current={persistOptions:t,onSuccess:n,onError:i}}),ie.useEffect(()=>{const p={...f.current.persistOptions,queryClient:s.client};return d.current||(d.current=!0,r$(p).then(()=>f.current.onSuccess?.()).catch(()=>f.current.onError?.()).finally(()=>{c(!1)})),u?void 0:i$(p)},[s.client,u]),F.jsx(JR,{...s,children:F.jsx(eO,{value:u,children:e})})};const Y8=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==\"\"&&i.indexOf(t)===n).join(\" \").trim();const s$=e=>e.replace(/([a-z0-9])([A-Z])/g,\"$1-$2\").toLowerCase();const o$=e=>e.replace(/^([A-Z])|[\\s-_]+(\\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase());const m5=e=>{const t=o$(e);return t.charAt(0).toUpperCase()+t.slice(1)};var by={xmlns:\"http://www.w3.org/2000/svg\",width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\"};const u$=e=>{for(const t in e)if(t.startsWith(\"aria-\")||t===\"role\"||t===\"title\")return!0;return!1},c$=ie.createContext({}),l$=()=>ie.useContext(c$),f$=ie.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:i,className:s=\"\",children:u,iconNode:c,...f},d)=>{const{size:p=24,strokeWidth:y=2,absoluteStrokeWidth:m=!1,color:b=\"currentColor\",className:v=\"\"}=l$()??{},x=i??m?Number(n??y)*24/Number(t??p):n??y;return ie.createElement(\"svg\",{ref:d,...by,width:t??p??by.width,height:t??p??by.height,stroke:e??b,strokeWidth:x,className:Y8(\"lucide\",v,s),...!u&&!u$(f)&&{\"aria-hidden\":\"true\"},...f},[...c.map(([S,E])=>ie.createElement(S,E)),...Array.isArray(u)?u:[u]])});const Rr=(e,t)=>{const n=ie.forwardRef(({className:i,...s},u)=>ie.createElement(f$,{ref:u,iconNode:t,className:Y8(`lucide-${s$(m5(e))}`,`lucide-${e}`,i),...s}));return n.displayName=m5(e),n};const d$=[[\"path\",{d:\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\",key:\"3c2336\"}],[\"path\",{d:\"m9 12 2 2 4-4\",key:\"dzmm74\"}]],p$=Rr(\"badge-check\",d$);const h$=[[\"path\",{d:\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\",key:\"3c2336\"}],[\"path\",{d:\"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8\",key:\"1h4pet\"}],[\"path\",{d:\"M12 18V6\",key:\"zqpxq5\"}]],y$=Rr(\"badge-dollar-sign\",h$);const m$=[[\"path\",{d:\"M10 12h4\",key:\"a56b0p\"}],[\"path\",{d:\"M10 8h4\",key:\"1sr2af\"}],[\"path\",{d:\"M14 21v-3a2 2 0 0 0-4 0v3\",key:\"1rgiei\"}],[\"path\",{d:\"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2\",key:\"secmi2\"}],[\"path\",{d:\"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16\",key:\"16ra0t\"}]],g$=Rr(\"building-2\",m$);const b$=[[\"path\",{d:\"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z\",key:\"1s6t7t\"}],[\"circle\",{cx:\"16.5\",cy:\"7.5\",r:\".5\",fill:\"currentColor\",key:\"w0ekpg\"}]],v$=Rr(\"key-round\",b$);const w$=[[\"path\",{d:\"M10 18v-7\",key:\"wt116b\"}],[\"path\",{d:\"M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z\",key:\"yxxwt6\"}],[\"path\",{d:\"M14 18v-7\",key:\"vav6t3\"}],[\"path\",{d:\"M18 18v-7\",key:\"aexdmj\"}],[\"path\",{d:\"M3 22h18\",key:\"8prr45\"}],[\"path\",{d:\"M6 18v-7\",key:\"1ivflk\"}]],x$=Rr(\"landmark\",w$);const S$=[[\"path\",{d:\"m16 17 5-5-5-5\",key:\"1bji2h\"}],[\"path\",{d:\"M21 12H9\",key:\"dn1m92\"}],[\"path\",{d:\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\",key:\"1uf3rs\"}]],X8=Rr(\"log-out\",S$);const E$=[[\"path\",{d:\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\",key:\"kfwtm\"}]],A$=Rr(\"moon\",E$);const T$=[[\"circle\",{cx:\"12\",cy:\"12\",r:\"4\",key:\"4exip2\"}],[\"path\",{d:\"M12 2v2\",key:\"tus03m\"}],[\"path\",{d:\"M12 20v2\",key:\"1lh1kg\"}],[\"path\",{d:\"m4.93 4.93 1.41 1.41\",key:\"149t6j\"}],[\"path\",{d:\"m17.66 17.66 1.41 1.41\",key:\"ptbguv\"}],[\"path\",{d:\"M2 12h2\",key:\"1t8f8n\"}],[\"path\",{d:\"M20 12h2\",key:\"1q8mjw\"}],[\"path\",{d:\"m6.34 17.66-1.41 1.41\",key:\"1m8zz5\"}],[\"path\",{d:\"m19.07 4.93-1.41 1.41\",key:\"1shlcs\"}]],M$=Rr(\"sun\",T$);const _$=[[\"path\",{d:\"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z\",key:\"qn84l0\"}],[\"path\",{d:\"M13 5v2\",key:\"dyzc3o\"}],[\"path\",{d:\"M13 17v2\",key:\"1ont0d\"}],[\"path\",{d:\"M13 11v2\",key:\"1wjjxi\"}]],P$=Rr(\"ticket\",_$);const C$=[[\"path\",{d:\"m10.586 5.414-5.172 5.172\",key:\"4mc350\"}],[\"path\",{d:\"m18.586 13.414-5.172 5.172\",key:\"8c96vv\"}],[\"path\",{d:\"M6 12h12\",key:\"8npq4p\"}],[\"circle\",{cx:\"12\",cy:\"20\",r:\"2\",key:\"144qzu\"}],[\"circle\",{cx:\"12\",cy:\"4\",r:\"2\",key:\"muu5ef\"}],[\"circle\",{cx:\"20\",cy:\"12\",r:\"2\",key:\"1xzzfp\"}],[\"circle\",{cx:\"4\",cy:\"12\",r:\"2\",key:\"1hvhnz\"}]],z$=Rr(\"waypoints\",C$);function Po(...e){return e.filter(Boolean).join(\" \")}function J8(e,t){return{...e,...t,className:Po(e.className,t.className)}}let g5=!1;function wo(e){const{children:t,className:n,disabled:i,icon:s,loading:u=!1,render:c,size:f=\"medium\",variant:d=\"secondary\",...p}=e,y=F.jsxs(F.Fragment,{children:[F.jsx(\"span\",{\"aria-hidden\":\"true\",className:Po(\"pointer-events-none absolute inset-0 rounded-[inherit] border border-transparent\",wo.chromeClassName[d]),\"data-button-chrome\":!0}),F.jsxs(\"span\",{className:\"relative inline-flex items-center justify-center gap-[inherit]\",children:[u?F.jsx(R$,{}):s?F.jsx(\"span\",{className:\"shrink-0\",children:s}):null,t]})]}),m={className:Po(\"group relative inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-button border border-transparent font-normal focus-visible:outline focus-visible:outline-[2px] focus-visible:outline-offset-[2px] focus-visible:outline-focus data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[loading]:pointer-events-none\",wo.sizeClassName[f],wo.variantClassName[d],n),\"data-disabled\":i?\"\":void 0,\"data-loading\":u?\"\":void 0,...p};return c&&ie.isValidElement(c)?ie.cloneElement(c,J8(c.props,m),y):F.jsx(\"button\",{...m,disabled:i||u,children:y})}(e=>{e.variantClassName={negative:\"text-on-negative\",primary:\"text-on-accent\",secondary:\"text-foreground\"},e.chromeClassName={negative:\"bg-negative group-hover:bg-negative-hover group-active:bg-negative-active group-hover:group-active:bg-negative-active\",primary:\"bg-accent group-hover:bg-accent-hover group-active:bg-accent-active group-hover:group-active:bg-accent-active\",secondary:\"bg-secondary group-hover:bg-secondary-hover group-active:bg-secondary-active group-hover:group-active:bg-secondary-active\"},e.sizeClassName={large:\"h-[44px] gap-[8px] px-[22px] button-16\",medium:\"h-[40px] gap-[8px] px-[16px] button-14\",small:\"h-[32px] gap-[6px] px-[12px] button-12\"};function t(i){const s=ie.useContext(t.Context),{children:u,className:c,plain:f=!1,ref:d,size:p=\"sm\",title:y,variant:m,...b}=i,v=f?\"plain\":m??s?.variant??\"default\";return f&&O$(),F.jsx(\"button\",{\"aria-label\":b[\"aria-label\"]??y,className:Po(\"inline-flex shrink-0 cursor-pointer items-center justify-center rounded-button text-foreground-secondary focus-visible:outline focus-visible:outline-[2px] focus-visible:outline-offset-[2px] focus-visible:outline-focus\",t.variantClassName[v],t.sizeClassName[p],c),ref:d,type:\"button\",...b,children:u})}e.Icon=t,(i=>{i.Context=ie.createContext(void 0),i.variantClassName={default:\"bg-secondary hover:bg-secondary-hover hover:text-foreground-secondary-hover active:bg-secondary-active\",plain:\"hover:bg-surface-hover hover:text-foreground-secondary-hover active:bg-surface-active active:text-foreground\",surface:\"border border-border bg-surface hover:bg-secondary-hover hover:text-foreground active:bg-secondary-active active:text-foreground\"},i.sizeClassName={lg:\"h-[32px] w-[32px] [&>svg]:h-[16px] [&>svg]:w-[16px]\",md:\"h-[32px] w-[32px] [&>svg]:h-[14px] [&>svg]:w-[14px]\",sm:\"h-[24px] w-[24px] [&>svg]:h-[12px] [&>svg]:w-[12px]\",xs:\"h-[20px] w-[20px] [&>svg]:h-[10px] [&>svg]:w-[10px]\"}})(t=e.Icon||(e.Icon={}));function n(i){const{children:s,className:u,disabled:c,prefix:f,render:d,size:p=\"medium\",suffix:y,...m}=i,b=F.jsxs(F.Fragment,{children:[f&&F.jsx(\"span\",{className:\"shrink-0\",children:f}),s,y&&F.jsx(\"span\",{className:\"shrink-0\",children:y})]}),v={className:Po(\"inline-flex shrink-0 cursor-pointer items-center justify-center gap-[4px] whitespace-nowrap rounded-button font-normal text-foreground-secondary hover:bg-surface-hover hover:text-foreground-secondary-hover active:bg-surface-active active:text-foreground [&:hover:active]:bg-surface-active [&:hover:active]:text-foreground focus-visible:outline focus-visible:outline-[2px] focus-visible:outline-offset-[2px] focus-visible:outline-focus data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",n.sizeClassName[p],u),\"data-disabled\":c?\"\":void 0,...m};return d&&ie.isValidElement(d)?ie.cloneElement(d,J8(d.props,v),b):F.jsx(\"button\",{...v,disabled:c,children:b})}e.Text=n,(i=>{i.sizeClassName={large:\"px-[6px] py-[3px] label-14\",medium:\"px-[6px] py-[3px] label-13\",small:\"px-[5px] py-[2px] label-12\"}})(n=e.Text||(e.Text={}))})(wo||(wo={}));function R$(){return F.jsx(\"svg\",{className:\"h-[16px] w-[16px] animate-rgn-spin\",viewBox:\"0 0 16 16\",fill:\"none\",\"aria-hidden\":!0,children:Array.from({length:12},(e,t)=>F.jsx(\"line\",{x1:\"8\",y1:\"1.5\",x2:\"8\",y2:\"4\",stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",opacity:.15+t/12*.85,transform:`rotate(${t*30} 8 8)`},t))})}function O$(){g5||(g5=!0,console.warn('Button.Icon: plain is deprecated. Use variant=\"plain\" instead.'))}const I$=\"0.1.1\";function k$(){return I$}let Co=class si extends Error{static setStaticOptions(t){si.prototype.docsOrigin=t.docsOrigin,si.prototype.showVersion=t.showVersion,si.prototype.version=t.version}constructor(t,n={}){const i=(()=>{if(n.cause instanceof si){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:n.cause?.message?n.cause.message:n.details})(),s=n.cause instanceof si&&n.cause.docsPath||n.docsPath,u=n.docsOrigin??si.prototype.docsOrigin,c=`${u}${s??\"\"}`,f=!!(n.version??si.prototype.showVersion),d=n.version??si.prototype.version,p=[t||\"An error occurred.\",...n.metaMessages?[\"\",...n.metaMessages]:[],...i||s||f?[\"\",i?`Details: ${i}`:void 0,s?`See: ${c}`:void 0,f?`Version: ${d}`:void 0]:[]].filter(y=>typeof y==\"string\").join(`\n`);super(p,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=i,this.docs=c,this.docsOrigin=u,this.docsPath=s,this.shortMessage=t,this.showVersion=f,this.version=d}walk(t){return W8(this,t)}};Object.defineProperty(Co,\"defaultStaticOptions\",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:\"https://oxlib.sh\",showVersion:!1,version:`ox@${k$()}`}});Co.setStaticOptions(Co.defaultStaticOptions);function W8(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause?W8(e.cause,t):t?null:e}const ni={zero:48,nine:57,A:65,F:70,a:97,f:102};function b5(e){if(e>=ni.zero&&e<=ni.nine)return e-ni.zero;if(e>=ni.A&&e<=ni.F)return e-(ni.A-10);if(e>=ni.a&&e<=ni.f)return e-(ni.a-10)}function eE(e,t){if(v5(e)>t)throw new L$({givenSize:v5(e),maxSize:t})}function $$(e,t={}){const{dir:n,size:i=32}=t;if(i===0)return e;const s=e.replace(\"0x\",\"\");if(s.length>i*2)throw new j$({size:Math.ceil(s.length/2),targetSize:i,type:\"Hex\"});return`0x${s[n===\"right\"?\"padEnd\":\"padStart\"](i*2,\"0\")}`}const B$=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function N$(e,t={}){let n=\"\";for(let s=0;s{e.lcValues={dark:\"68% 0.21\",light:\"66% 0.22\"},e.angleBands=[[25,65],[115,155],[205,245],[295,335]],e.hueDelta=[28,72];function t(n){const[i,s]=e.angleBands[(n[2]??0)%e.angleBands.length]??e.angleBands[0],u=Math.round((((n[0]??0)<<8)+(n[1]??0))/65535*359),c=x5(n[4]??0,e.hueDelta[0],e.hueDelta[1]),f=(n[5]??0)%2===0?1:-1,d=(u+f*c+360)%360;return{angle:x5(n[3]??0,i,s),gradient:{from:u,to:d}}}e.getParts=t})(ts||(ts={}));function w5(e){return`light-dark(\n oklch(${ts.lcValues.light} ${e}),\n oklch(${ts.lcValues.dark} ${e})\n )`}function x5(e,t,n){return t+Math.round(e/255*(n-t))}const hm=[{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\"}],dG=[{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\"}]}],nE=[{name:\"isValidSignature\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],outputs:[{name:\"\",type:\"bytes4\"}]}],S5=[{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\"}];function ca(e,{includeName:t=!1}={}){if(e.type!==\"function\"&&e.type!==\"event\"&&e.type!==\"error\")throw new rB(e.type);return`${e.name}(${rp(e.inputs,{includeName:t})})`}function rp(e,{includeName:t=!1}={}){return e?e.map(n=>F$(n,{includeName:t})).join(t?\", \":\",\"):\"\"}function F$(e,{includeName:t}){return e.type.startsWith(\"tuple\")?`(${rp(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:\"\")}function Se(e,{strict:t=!0}={}){return!e||typeof e!=\"string\"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith(\"0x\")}function mt(e){return Se(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const rE=\"2.56.3\";let vy={getDocsUrl:({docsBaseUrl:e,docsPath:t=\"\",docsSlug:n})=>t?`${e??\"https://viem.sh\"}${t}${n?`#${n}`:\"\"}`:void 0,version:`viem@${rE}`},ne=class ym extends Error{constructor(t,n={}){const i=n.cause instanceof ym?n.cause.details:n.cause?.message?n.cause.message:n.details,s=n.cause instanceof ym&&n.cause.docsPath||n.docsPath,u=vy.getDocsUrl?.({...n,docsPath:s}),c=[t||\"An error occurred.\",\"\",...n.metaMessages?[...n.metaMessages,\"\"]:[],...u?[`Docs: ${u}`]:[],...i?[`Details: ${i}`]:[],...vy.version?[`Version: ${vy.version}`]:[]].join(`\n`);super(c,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=i,this.docsPath=s,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=rE}walk(t){return iE(this,t)}};function iE(e,t){return t?.(e)?e:e&&typeof e==\"object\"&&\"cause\"in e&&e.cause!==void 0?iE(e.cause,t):t?null:e}class G$ extends ne{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(`\n`),{docsPath:t,name:\"AbiConstructorNotFoundError\"})}}class E5 extends ne{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(`\n`),{docsPath:t,name:\"AbiConstructorParamsNotFoundError\"})}}class aE extends ne{constructor({data:t,params:n,size:i}){super([`Data size of ${i} bytes is too small for given parameters.`].join(`\n`),{metaMessages:[`Params: (${rp(n,{includeName:!0})})`,`Data: ${t} (${i} 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=i}}class Yg extends ne{constructor({cause:t}={}){super('Cannot decode zero data (\"0x\") with ABI parameters.',{name:\"AbiDecodingZeroDataError\",cause:t})}}class K$ extends ne{constructor({expectedLength:t,givenLength:n,type:i}){super([`ABI encoding array length mismatch for type ${i}.`,`Expected length: ${t}`,`Given length: ${n}`].join(`\n`),{name:\"AbiEncodingArrayLengthMismatchError\"})}}class V$ extends ne{constructor({expectedSize:t,value:n}){super(`Size of bytes \"${n}\" (bytes${mt(n)}) does not match expected size (bytes${t}).`,{name:\"AbiEncodingBytesSizeMismatchError\"})}}class Q$ extends ne{constructor({expectedLength:t,givenLength:n}){super([\"ABI encoding params/values length mismatch.\",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(`\n`),{name:\"AbiEncodingLengthMismatchError\"})}}class pG extends ne{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(`\n`),{docsPath:n,name:\"AbiErrorInputsNotFoundError\"})}}class hG extends ne{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(`\n`),{docsPath:n,name:\"AbiErrorNotFoundError\"})}}class sE extends ne{constructor(t,{docsPath:n,cause:i}){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(`\n`),{docsPath:n,name:\"AbiErrorSignatureNotFoundError\",cause:i}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class Z$ extends ne{constructor({docsPath:t}){super(\"Cannot extract event signature from empty topics.\",{docsPath:t,name:\"AbiEventSignatureEmptyTopicsError\"})}}class Y$ extends ne{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(`\n`),{docsPath:n,name:\"AbiEventSignatureNotFoundError\"})}}class Cd extends ne{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(`\n`),{docsPath:n,name:\"AbiFunctionNotFoundError\"})}}class X$ extends ne{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(`\n`),{docsPath:n,name:\"AbiFunctionOutputsNotFoundError\"})}}class yG extends ne{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(`\n`),{docsPath:n,name:\"AbiFunctionSignatureNotFoundError\"})}}class J$ extends ne{constructor(t,n){super(\"Found ambiguous types in overloaded ABI items.\",{metaMessages:[`\\`${t.type}\\` in \\`${ca(t.abiItem)}\\`, and`,`\\`${n.type}\\` in \\`${ca(n.abiItem)}\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"],name:\"AbiItemAmbiguityError\"})}}class A5 extends ne{constructor({abiItem:t,data:n,params:i,size:s}){super([`Data size of ${s} bytes is too small for non-indexed event parameters.`].join(`\n`),{metaMessages:[`Params: (${rp(i,{includeName:!0})})`,`Data: ${n} (${s} bytes)`],name:\"DecodeLogDataMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=n,this.params=i,this.size=s}}class W$ extends ne{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` \"${n.name}\"`:\"\"} on event \"${ca(t,{includeName:!0})}\".`].join(`\n`),{name:\"DecodeLogTopicsMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class eB extends ne{constructor(t,{docsPath:n}){super([`Type \"${t}\" is not a valid encoding type.`,\"Please provide a valid ABI type.\"].join(`\n`),{docsPath:n,name:\"InvalidAbiEncodingType\"})}}class tB extends ne{constructor(t,{docsPath:n}){super([`Type \"${t}\" is not a valid decoding type.`,\"Please provide a valid ABI type.\"].join(`\n`),{docsPath:n,name:\"InvalidAbiDecodingType\"})}}class nB extends ne{constructor(t){super([`Value \"${t}\" is not a valid array.`].join(`\n`),{name:\"InvalidArrayError\"})}}class rB extends ne{constructor(t){super([`\"${t}\" is not a valid definition type.`,'Valid types: \"function\", \"event\", \"error\"'].join(`\n`),{name:\"InvalidDefinitionTypeError\"})}}class nn extends ne{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 oE extends ne{constructor({offset:t,position:n,size:i}){super(`Slice ${n===\"start\"?\"starting\":\"ending\"} at offset \"${t}\" is out-of-bounds (size: ${i}).`,{name:\"SliceOffsetOutOfBoundsError\"})}}class uE extends ne{constructor({size:t,targetSize:n,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:\"SizeExceedsPaddingSizeError\"})}}class T5 extends ne{constructor({size:t,targetSize:n,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} is expected to be ${n} ${i} long, but is ${t} ${i} long.`,{name:\"InvalidBytesLengthError\"})}}function qo(e,{dir:t,size:n=32}={}){return typeof e==\"string\"?Mr(e,{dir:t,size:n}):iB(e,{dir:t,size:n})}function Mr(e,{dir:t,size:n=32}={}){if(n===null)return e;const i=e.replace(\"0x\",\"\");if(i.length>n*2)throw new uE({size:Math.ceil(i.length/2),targetSize:n,type:\"hex\"});return`0x${i[t===\"right\"?\"padEnd\":\"padStart\"](n*2,\"0\")}`}function iB(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new uE({size:e.length,targetSize:n,type:\"bytes\"});const i=new Uint8Array(n);for(let s=0;st)throw new fB({givenSize:mt(e),maxSize:t})}function ke(e,t={}){const{signed:n}=t;t.size&&mr(e,{size:t.size});const i=BigInt(e);if(!n)return i;const s=Math.ceil((e.length-2)/2),u=(1n<t.toString(16).padStart(2,\"0\"));function aa(e,t={}){return typeof e==\"number\"||typeof e==\"bigint\"?de(e,t):typeof e==\"string\"?lE(e,t):typeof e==\"boolean\"?cE(e,t):Rt(e,t)}function cE(e,t={}){const n=`0x${Number(e)}`;return typeof t.size==\"number\"?(mr(n,{size:t.size}),qo(n,{size:t.size})):n}function Rt(e,t={}){let n=\"\";for(let s=0;su||s=ri.zero&&e<=ri.nine)return e-ri.zero;if(e>=ri.A&&e<=ri.F)return e-(ri.A-10);if(e>=ri.a&&e<=ri.f)return e-(ri.a-10)}function pr(e,t={}){let n=e;t.size&&(mr(n,{size:t.size}),n=qo(n,{dir:\"right\",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);const s=i.length/2,u=new Uint8Array(s);for(let c=0,f=0;cthis.maxSize){const i=super.keys().next().value;i!==void 0&&super.delete(i)}return this}}const bB=/^0x[a-fA-F0-9]{40}$/,wy=new cl(8192);function Ot(e,t){const{strict:n=!0}=t??{},i=`${e}.${n}`;if(wy.has(i))return wy.get(i);const s=bB.test(e)?e.toLowerCase()===e?!0:n?ap(e)===e:!0:!1;return wy.set(i,s),s}const xy=new cl(8192);function ap(e,t){if(xy.has(`${e}.${t}`))return xy.get(`${e}.${t}`);const n=e.substring(2).toLowerCase(),i=hs(fE(n),\"bytes\"),s=n.split(\"\");for(let c=0;c<40;c+=2)i[c>>1]>>4>=8&&s[c]&&(s[c]=s[c].toUpperCase()),(i[c>>1]&15)>=8&&s[c+1]&&(s[c+1]=s[c+1].toUpperCase());const u=`0x${s.join(\"\")}`;return xy.set(`${e}.${t}`,u),u}function Ga(e,t){if(!Ot(e,{strict:!1}))throw new nn({address:e});return ap(e,t)}class _5 extends ne{constructor({offset:t}){super(`Offset \\`${t}\\` cannot be negative.`,{name:\"NegativeOffsetError\"})}}class dE extends ne{constructor({length:t,position:n}){super(`Position \\`${n}\\` is out of bounds (\\`0 < position < ${t}\\`).`,{name:\"PositionOutOfBoundsError\"})}}class vB extends ne{constructor({count:t,limit:n}){super(`Recursive read limit of \\`${n}\\` exceeded (recursive read count: \\`${t}\\`).`,{name:\"RecursiveReadLimitExceededError\"})}}const wB={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 vB({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new dE({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new _5({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 _5({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 sp(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(wB);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function vc(e,t,n,{strict:i}={}){return Se(e,{strict:!1})?mE(e,t,n,{strict:i}):yE(e,t,n,{strict:i})}function pE(e,t){if(typeof t==\"number\"&&t>0&&t>mt(e)-1)throw new oE({offset:t,position:\"start\",size:mt(e)})}function hE(e,t,n){if(typeof t==\"number\"&&typeof n==\"number\"&&mt(e)!==n-t)throw new oE({offset:n,position:\"end\",size:mt(e)})}function yE(e,t,n,{strict:i}={}){pE(e,t);const s=e.slice(t,n);return i&&hE(s,t,n),s}function mE(e,t,n,{strict:i}={}){pE(e,t);const s=`0x${e.replace(\"0x\",\"\").slice((t??0)*2,(n??e.length)*2)}`;return i&&hE(s,t,n),s}function xB(e,t={}){typeof t.size<\"u\"&&mr(e,{size:t.size});const n=Rt(e);return ke(n,t)}function SB(e,t={}){let n=e;if(typeof t.size<\"u\"&&(mr(n,{size:t.size}),n=_r(n)),n.length>1||n[0]>1)throw new aB(n);return!!n[0]}function pi(e,t={}){typeof t.size<\"u\"&&mr(e,{size:t.size});const n=Rt(e);return ft(n,t)}function EB(e,t={}){let n=e;return typeof t.size<\"u\"&&(mr(n,{size:t.size}),n=_r(n,{dir:\"right\"})),new TextDecoder().decode(n)}function P5(e){return typeof e[0]==\"string\"?Vt(e):AB(e)}function AB(e){let t=0;for(const s of e)t+=s.length;const n=new Uint8Array(t);let i=0;for(const s of e)n.set(s,i),i+=s.length;return n}function Vt(e){return`0x${e.reduce((t,n)=>t+n.replace(\"0x\",\"\"),\"\")}`}const TB=/^(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)?$/;function gE(e,t){if(e.length!==t.length)throw new Q$({expectedLength:e.length,givenLength:t.length});const n=MB({params:e,values:t});return Wg(n)}function MB({params:e,values:t}){const n=[];for(let i=0;ic))}}function CB(e,{param:t}){const[,n]=t.type.split(\"bytes\"),i=mt(e);if(!n){let s=e;return i%32!==0&&(s=Mr(s,{dir:\"right\",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Vt([Mr(de(i,{size:32})),s])}}if(i!==Number.parseInt(n,10))throw new V$({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:Mr(e,{dir:\"right\"})}}function zB(e){if(typeof e!=\"boolean\")throw new ne(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\`true\\` or \\`false\\`.`);return{dynamic:!1,encoded:Mr(cE(e))}}function RB(e,{signed:t,size:n=256}){if(typeof n==\"number\"){const i=2n**(BigInt(n)-(t?1n:0n))-1n,s=t?-i-1n:0n;if(e>i||es))}}function op(e){const t=e.match(/^(.*)\\[(\\d+)?\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function mm(e){const{type:t}=e;if(t===\"string\"||t===\"bytes\"||t.endsWith(\"[]\"))return!0;if(t===\"tuple\")return e.components.some(mm);const n=op(t);return n?mm({...e,type:n[1]}):!1}function up(e,t){const n=typeof t==\"string\"?pr(t):t,i=sp(n);if(mt(n)===0&&e.length>0)throw new Yg;if(mt(t)&&mt(t)<32)throw new aE({data:typeof t==\"string\"?t:Rt(t),params:e,size:mt(t)});let s=0;const u=[];for(let c=0;c48?xB(s,{signed:n}):pi(s,{signed:n}),32]}function jB(e,t,{staticPosition:n}){const i=t.components.length===0||t.components.some(({name:c})=>!c),s=i?[]:{};let u=0;if(wc(t)){const c=pi(e.readBytes(gm)),f=n+c;for(let d=0;dhs(ip(e));function HB(e){return DB(e)}const qB=\"1.2.3\";class rn extends Error{constructor(t,n={}){const i=n.cause instanceof rn?n.cause.details:n.cause?.message?n.cause.message:n.details,s=n.cause instanceof rn&&n.cause.docsPath||n.docsPath,u=[t||\"An error occurred.\",\"\",...n.metaMessages?[...n.metaMessages,\"\"]:[],...s?[`Docs: https://abitype.dev${s}`]:[],...i?[`Details: ${i}`]:[],`Version: abitype@${qB}`].join(`\n`);super(u),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=i,this.docsPath=s,this.metaMessages=n.metaMessages,this.shortMessage=t}}function bi(e,t){return e.exec(t)?.groups}const bE=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,vE=/^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)?$/,wE=/^\\(.+?\\).*?$/,z5=/^tuple(?(\\[(\\d*)\\])*)$/;function bm(e){let t=e.type;if(z5.test(e.type)&&\"components\"in e){t=\"(\";const n=e.components.length;for(let s=0;s[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?.*?)\\)$/;function GB(e){return xE.test(e)}function KB(e){return bi(xE,e)}const SE=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?.*?)\\)$/;function VB(e){return SE.test(e)}function QB(e){return bi(SE,e)}const EE=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?.*?)\\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\\s?\\((?.*?)\\))?$/;function ZB(e){return EE.test(e)}function YB(e){return bi(EE,e)}const AE=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \\{(?.*?)\\}$/;function TE(e){return AE.test(e)}function XB(e){return bi(AE,e)}const ME=/^constructor\\((?.*?)\\)(?:\\s(?payable{1}))?$/;function JB(e){return ME.test(e)}function WB(e){return bi(ME,e)}const _E=/^fallback\\(\\) external(?:\\s(?payable{1}))?$/;function eN(e){return _E.test(e)}function tN(e){return bi(_E,e)}const nN=/^receive\\(\\) external payable$/;function rN(e){return nN.test(e)}const iN=new Set([\"indexed\"]),vm=new Set([\"calldata\",\"memory\",\"storage\"]);class aN extends rn{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 sN extends rn{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 oN extends rn{constructor({param:t}){super(\"Invalid ABI parameter.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}}class uN extends rn{constructor({param:t,name:n}){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 cN extends rn{constructor({param:t,type:n,modifier:i}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`Modifier \"${i}\" not allowed${n?` in \"${n}\" type`:\"\"}.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidModifierError\"})}}class lN extends rn{constructor({param:t,type:n,modifier:i}){super(\"Invalid ABI parameter.\",{details:t,metaMessages:[`Modifier \"${i}\" not allowed${n?` in \"${n}\" type`:\"\"}.`,`Data location can only be specified for array, struct, or mapping types, but \"${i}\" was given.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidFunctionModifierError\"})}}class fN extends rn{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 Fo extends rn{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSignatureError\"})}}class dN extends rn{constructor({signature:t}){super(\"Unknown signature.\",{details:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSignatureError\"})}}class pN extends rn{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 hN extends rn{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 yN extends rn{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 mN(e,t,n){let i=\"\";if(n)for(const s of Object.entries(n)){if(!s)continue;let u=\"\";for(const c of s[1])u+=`[${c.type}${c.name?`:${c.name}`:\"\"}]`;i+=`(${s[0]}{${u}})`}return t?`${t}:${e}${i}`:`${e}${i}`}const Sy=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 gN(e,t={}){if(ZB(e))return bN(e,t);if(VB(e))return vN(e,t);if(GB(e))return wN(e,t);if(JB(e))return xN(e,t);if(eN(e))return SN(e);if(rN(e))return{type:\"receive\",stateMutability:\"payable\"};throw new dN({signature:e})}function bN(e,t={}){const n=YB(e);if(!n)throw new Fo({signature:e,type:\"function\"});const i=cr(n.parameters),s=[],u=i.length;for(let f=0;f[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\spayable)?)(?(?:\\[\\d*?\\])+?)?(?:\\s(?calldata|indexed|memory|storage{1}))?(?:\\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,AN=/^\\((?.+?)\\)(?(?:\\[\\d*?\\])+?)?(?:\\s(?calldata|indexed|memory|storage{1}))?(?:\\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,TN=/^u?int$/;function ns(e,t){const n=mN(e,t?.type,t?.structs);if(Sy.has(n))return Sy.get(n);const i=wE.test(e),s=bi(i?AN:EN,e);if(!s)throw new oN({param:e});if(s.name&&_N(s.name))throw new uN({param:e,name:s.name});const u=s.name?{name:s.name}:{},c=s.modifier===\"indexed\"?{indexed:!0}:{},f=t?.structs??{};let d,p={};if(i){d=\"tuple\";const m=cr(s.type),b=[],v=m.length;for(let x=0;x[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\\[\\d*?\\])+?)?$/;function CE(e=[],t={},n=new Set){const i=[],s=e.length;for(let u=0;u{const t=typeof e==\"string\"?e:FB(e);return RN(t)};function RE(e){return HB(ON(e))}const eb=RE,tb=e=>vc(RE(e),0,4);function nb(e){const{abi:t,args:n=[],name:i}=e,s=Se(i,{strict:!1}),u=t.filter(f=>s?f.type===\"function\"?tb(f)===i:f.type===\"event\"?eb(f)===i:!1:\"name\"in f&&f.name===i);if(u.length===0)return;if(u.length===1)return u[0];let c;for(const f of u){if(!(\"inputs\"in f))continue;if(!n||n.length===0){if(!f.inputs||f.inputs.length===0)return f;continue}if(!f.inputs||f.inputs.length===0||f.inputs.length!==n.length)continue;if(n.every((p,y)=>{const m=\"inputs\"in f&&f.inputs[y];return m?wm(p,m):!1})){if(c&&\"inputs\"in c&&c.inputs){const p=OE(f.inputs,c.inputs,n);if(p)throw new J$({abiItem:f,type:p[0]},{abiItem:c,type:p[1]})}c=f}}return c||u[0]}function wm(e,t){const n=typeof e,i=t.type;switch(i){case\"address\":return Ot(e,{strict:!1});case\"bool\":return n===\"boolean\";case\"function\":return n===\"string\";case\"string\":return n===\"string\";default:return i===\"tuple\"&&\"components\"in t?Object.values(t.components).every((s,u)=>n===\"object\"&&wm(Object.values(e)[u],s)):/^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(i)?n===\"number\"||n===\"bigint\":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i)?n===\"string\"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\[[0-9]{0,}\\])+$/.test(i)?Array.isArray(e)&&e.every(s=>wm(s,{...t,type:i.replace(/(\\[[0-9]{0,}\\])$/,\"\")})):!1}}function OE(e,t,n){for(const i in e){const s=e[i],u=t[i];if(s.type===\"tuple\"&&u.type===\"tuple\"&&\"components\"in s&&\"components\"in u)return OE(s.components,u.components,n[i]);const c=[s.type,u.type];if(c.includes(\"address\")&&c.includes(\"bytes20\")?!0:c.includes(\"address\")&&c.includes(\"string\")?Ot(n[i],{strict:!1}):c.includes(\"address\")&&c.includes(\"bytes\")?Ot(n[i],{strict:!1}):!1)return c}}const Ey=\"/docs/contract/decodeFunctionResult\";function IE(e){const{abi:t,args:n,functionName:i,data:s}=e;let u=t[0];if(i){const f=nb({abi:t,args:n,name:i});if(!f)throw new Cd(i,{docsPath:Ey});u=f}if(u.type!==\"function\")throw new Cd(void 0,{docsPath:Ey});if(!u.outputs)throw new X$(u.name,{docsPath:Ey});const c=up(u.outputs,s);if(c&&c.length>1)return c;if(c&&c.length===1)return c[0]}const R5=\"/docs/contract/encodeFunctionData\";function IN(e){const{abi:t,args:n,functionName:i}=e;let s=t[0];if(i){const u=nb({abi:t,args:n,name:i});if(!u)throw new Cd(i,{docsPath:R5});s=u}if(s.type!==\"function\")throw new Cd(void 0,{docsPath:R5});return{abi:[s],functionName:tb(ca(s))}}function Go(e){const{args:t}=e,{abi:n,functionName:i}=e.abi.length===1&&e.functionName?.startsWith(\"0x\")?e:IN(e),s=n[0],u=i,c=\"inputs\"in s&&s.inputs?gE(s.inputs,t??[]):void 0;return Vt([u,c??\"0x\"])}class xm extends ne{constructor({blockNumber:t,chain:n,contract:i}){super(`Chain \"${n.name}\" does not support contract \"${i.name}\".`,{metaMessages:[\"This could be due to any of the following:\",...t&&i.blockCreated&&i.blockCreated>t?[`- The contract \"${i.name}\" was not deployed until block ${i.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract \"${i.name}\" configured.`]],name:\"ChainDoesNotSupportContract\"})}}class kN extends ne{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 $N extends ne{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(`\n`),{name:\"ChainNotFoundError\"})}}class kE extends ne{constructor(){super(\"No chain was provided to the Client.\",{name:\"ClientChainNotConfiguredError\"})}}class cp extends ne{constructor({chainId:t}){super(typeof t==\"number\"?`Chain ID \"${t}\" is invalid.`:\"Chain ID is invalid.\",{name:\"InvalidChainIdError\"})}}function BN({blockNumber:e,chain:t,contract:n}){const i=t?.contracts?.[n];if(!i)throw new xm({chain:t,contract:{name:n}});if(e&&i.blockCreated&&i.blockCreated>e)throw new xm({blockNumber:e,chain:t,contract:{name:n,blockCreated:i.blockCreated}});return i.address}function ut(e){return typeof e==\"string\"?{address:e,type:\"json-rpc\"}:e}const NN={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.\"},LN={inputs:[{name:\"message\",type:\"string\"}],name:\"Error\",type:\"error\"},jN={inputs:[{name:\"reason\",type:\"uint256\"}],name:\"Panic\",type:\"error\"};function UN(e){const{abi:t,data:n,cause:i}=e,s=vc(n,0,4);if(s===\"0x\")throw new Yg({cause:i});const c=[...t||[],LN,jN].find(f=>f.type===\"error\"&&s===tb(ca(f)));if(!c)throw new sE(s,{docsPath:\"/docs/contract/decodeErrorResult\",cause:i});return{abiItem:c,args:\"inputs\"in c&&c.inputs&&c.inputs.length>0?up(c.inputs,vc(n,4)):void 0,errorName:c.name}}const sa=(e,t,n)=>JSON.stringify(e,(i,s)=>typeof s==\"bigint\"?s.toString():s,n);function $E({abiItem:e,args:t,includeFunctionName:n=!0,includeName:i=!1}){if(\"name\"in e&&\"inputs\"in e&&e.inputs)return`${n?e.name:\"\"}(${e.inputs.map((s,u)=>`${i&&s.name?`${s.name}: `:\"\"}${typeof t[u]==\"object\"?sa(t[u]):t[u]}`).join(\", \")})`}const zd={wei:0,gwei:9,szabo:12,finney:15,ether:18};function BE(e,t=0){if(!Number.isInteger(t)||t<0)throw new NE({decimals:t});let n=e.toString();const i=n.startsWith(\"-\");i&&(n=n.slice(1)),n=n.padStart(t,\"0\");let[s,u]=[n.slice(0,n.length-t),n.slice(n.length-t)];return u=u.replace(/(0+)$/,\"\"),`${i?\"-\":\"\"}${s||\"0\"}${u?`.${u}`:\"\"}`}function DN(e,t=\"wei\"){return BE(e,zd.ether-zd[t])}function HN(e,t=\"wei\"){return BE(e,zd.gwei-zd[t])}function mG(e,t=0){if(!Number.isInteger(t)||t<0)throw new NE({decimals:t});if(!/^-?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)$/.test(e))throw new FN({value:e});let[n=\"\",i=\"0\"]=e.split(\".\");const s=n.startsWith(\"-\");if(s&&(n=n.slice(1)),n===\"\"&&(n=\"0\"),i=i.replace(/(0+)$/,\"\"),t===0)i.length>0&&Number.parseInt(i[0],10)>=5&&(n=`${BigInt(n)+1n}`),i=\"\";else if(i.length>t){const u=i.slice(0,t);if(Number.parseInt(i.slice(t,t+1),10)>=5){const f=qN(u);f.length>t?(i=f.slice(1),n=`${BigInt(n)+1n}`):i=f}else i=u}else i=i.padEnd(t,\"0\");return BigInt(`${s?\"-\":\"\"}${n}${i}`)}function qN(e){const t=e.split(\"\");let n=t.length-1;for(;n>=0;){const i=Number.parseInt(t[n],10)+1;if(i<10)return t[n]=String(i),t.join(\"\");t[n]=\"0\",n--}return`1${t.join(\"\")}`}class FN extends Error{constructor({value:t}){super(`Value \\`${t}\\` is not a valid decimal number.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Value.InvalidDecimalNumberError\"})}}class NE 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 rb(e,t=\"wei\"){return DN(e,t)}function vn(e,t=\"wei\"){return HN(e,t)}class GN extends ne{constructor({address:t}){super(`State for account \"${t}\" is set multiple times.`,{name:\"AccountStateConflictError\"})}}class KN extends ne{constructor(){super(\"state and stateDiff are set on the same account.\",{name:\"StateAssignmentConflictError\"})}}function O5(e){return e.reduce((t,{slot:n,value:i})=>`${t} ${n}: ${i}\n`,\"\")}function VN(e){return e.reduce((t,{address:n,...i})=>{let s=`${t} ${n}:\n`;return i.nonce&&(s+=` nonce: ${i.nonce}\n`),i.balance&&(s+=` balance: ${i.balance}\n`),i.code&&(s+=` code: ${i.code}\n`),i.state&&(s+=` state:\n`,s+=O5(i.state)),i.stateDiff&&(s+=` stateDiff:\n`,s+=O5(i.stateDiff)),s},` State Override:\n`).slice(0,-1)}function ll(e){const t=Object.entries(e).map(([i,s])=>s===void 0||s===!1?null:[i,s]).filter(Boolean),n=t.reduce((i,[s])=>Math.max(i,s.length),0);return t.map(([i,s])=>` ${`${i}:`.padEnd(n+1)} ${s}`).join(`\n`)}class LE extends ne{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 jE extends ne{constructor({v:t}){super(`Invalid \\`v\\` value \"${t}\". Expected 27 or 28.`,{name:\"InvalidLegacyVError\"})}}class QN extends ne{constructor({yParity:t}){super(`Invalid \\`yParity\\` value \"${t}\". Expected 0 or 1.`,{name:\"InvalidYParityError\"})}}class ZN extends ne{constructor({transaction:t}){super(\"Cannot infer a transaction type from provided transaction.\",{metaMessages:[\"Provided Transaction:\",\"{\",ll(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 YN extends ne{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 fl extends ne{constructor({attributes:t,serializedTransaction:n,type:i}){const s=Object.entries(t).map(([u,c])=>typeof c>\"u\"?u:void 0).filter(Boolean);super(`Invalid serialized transaction of type \"${i}\" was provided.`,{metaMessages:[`Serialized Transaction: \"${n}\"`,s.length>0?`Missing Attributes: ${s.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=i}}class XN extends ne{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 JN extends ne{constructor(t,{account:n,docsPath:i,chain:s,data:u,gas:c,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:y,to:m,value:b}){const v=ll({chain:s&&`${s?.name} (id: ${s?.id})`,from:n?.address,to:m,value:typeof b<\"u\"&&`${rb(b)} ${s?.nativeCurrency?.symbol||\"ETH\"}`,data:u,gas:c,gasPrice:typeof f<\"u\"&&`${vn(f)} gwei`,maxFeePerGas:typeof d<\"u\"&&`${vn(d)} gwei`,maxPriorityFeePerGas:typeof p<\"u\"&&`${vn(p)} gwei`,nonce:y});super(t.shortMessage,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Request Arguments:\",v].filter(Boolean),name:\"TransactionExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class WN extends ne{constructor({blockHash:t,blockNumber:n,blockTag:i,hash:s,index:u}){let c=\"Transaction\";i&&u!==void 0&&(c=`Transaction at block time \"${i}\" at index \"${u}\"`),t&&u!==void 0&&(c=`Transaction at block hash \"${t}\" at index \"${u}\"`),n&&u!==void 0&&(c=`Transaction at block number \"${n}\" at index \"${u}\"`),s&&(c=`Transaction with hash \"${s}\"`),super(`${c} could not be found.`,{name:\"TransactionNotFoundError\"})}}const eL=e=>e;function la(e){if(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 Ko(e){return typeof e==\"object\"&&e!==null&&\"name\"in e&&e.name===\"AbortError\"}const ib=e=>{try{const t=new URL(e);return!t.username&&!t.password?e:(t.username=\"\",t.password=\"\",t.toString())}catch{return e}};class UE extends ne{constructor(t,{account:n,docsPath:i,chain:s,data:u,gas:c,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:y,to:m,value:b,stateOverride:v}){const x=n?ut(n):void 0;let S=ll({from:x?.address,to:m,value:typeof b<\"u\"&&`${rb(b)} ${s?.nativeCurrency?.symbol||\"ETH\"}`,data:u,gas:c,gasPrice:typeof f<\"u\"&&`${vn(f)} gwei`,maxFeePerGas:typeof d<\"u\"&&`${vn(d)} gwei`,maxPriorityFeePerGas:typeof p<\"u\"&&`${vn(p)} gwei`,nonce:y});v&&(S+=`\n${VN(v)}`),super(t.shortMessage,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Raw Call Arguments:\",S].filter(Boolean),name:\"CallExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class DE extends ne{constructor(t,{abi:n,args:i,contractAddress:s,docsPath:u,functionName:c,sender:f}){const d=nb({abi:n,args:i,name:c}),p=d?$E({abiItem:d,args:i,includeFunctionName:!1,includeName:!1}):void 0,y=d?ca(d,{includeName:!0}):void 0,m=ll({address:s&&eL(s),function:y,args:p&&p!==\"()\"&&`${[...Array(c?.length??0).keys()].map(()=>\" \").join(\"\")}${p}`,sender:f});super(t.shortMessage||`An unknown error occurred while executing the contract function \"${c}\".`,{cause:t,docsPath:u,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],m&&\"Contract Call:\",m].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=i,this.cause=t,this.contractAddress=s,this.functionName=c,this.sender=f}}class tL extends ne{constructor({abi:t,data:n,functionName:i,message:s,cause:u}){let c,f,d,p;if(n&&n!==\"0x\")try{f=UN({abi:t,data:n,cause:u});const{abiItem:m,errorName:b,args:v}=f;if(b===\"Error\")p=v[0];else if(b===\"Panic\"){const[x]=v;p=NN[x]}else{const x=m?ca(m,{includeName:!0}):void 0,S=m&&v?$E({abiItem:m,args:v,includeFunctionName:!1,includeName:!1}):void 0;d=[x?`Error: ${x}`:\"\",S&&S!==\"()\"?` ${[...Array(b?.length??0).keys()].map(()=>\" \").join(\"\")}${S}`:\"\"]}}catch(m){c=m}else s&&(p=s);let y;c instanceof sE&&(y=c.signature,d=[`Unable to decode signature \"${y}\" 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=${y}.`]),super(p&&p!==\"execution reverted\"||y?[`The contract function \"${i}\" reverted with the following ${y?\"signature\":\"reason\"}:`,p||y].join(`\n`):`The contract function \"${i}\" reverted.`,{cause:c??u,metaMessages:d,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=f,this.raw=n,this.reason=p,this.signature=y}}class nL extends ne{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 rL extends ne{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 HE extends ne{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}}function nt(e,t,n){const i=e[t.name];if(typeof i==\"function\")return i;const s=e[n];return typeof s==\"function\"?s:u=>t(e,u)}class sc extends ne{constructor({body:t,cause:n,details:i,headers:s,status:u,url:c}){super(\"HTTP request failed.\",{cause:n,details:i,metaMessages:[u&&`Status: ${u}`,`URL: ${ib(c)}`,t&&`Request body: ${sa(t)}`].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=s,this.status=u,this.url=c}}class dd extends ne{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 ab extends ne{constructor({body:t,error:n,url:i}){super(\"RPC Request failed.\",{cause:n,details:n.message,metaMessages:[`URL: ${ib(i)}`,`Request body: ${sa(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=i}}class I5 extends ne{constructor({body:t,url:n}){super(\"The request took too long to respond.\",{details:\"The request timed out.\",metaMessages:[`URL: ${ib(n)}`,`Request body: ${sa(t)}`],name:\"TimeoutError\"}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=n}}const iL=-1;class xn extends ne{constructor(t,{code:n,docsPath:i,metaMessages:s,name:u,shortMessage:c}){super(c,{cause:t,docsPath:i,metaMessages:s||t?.metaMessages,name:u||\"RpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=u||t.name,this.code=t instanceof ab?t.code:n??iL}}class Sn extends xn{constructor(t,n){super(t,n),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}}class xc extends xn{constructor(t){super(t,{code:xc.code,name:\"ParseRpcError\",shortMessage:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"})}}Object.defineProperty(xc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Sc extends xn{constructor(t){super(t,{code:Sc.code,name:\"InvalidRequestRpcError\",shortMessage:\"JSON is not a valid request object.\"})}}Object.defineProperty(Sc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Ec extends xn{constructor(t,{method:n}={}){super(t,{code:Ec.code,name:\"MethodNotFoundRpcError\",shortMessage:`The method${n?` \"${n}\"`:\"\"} does not exist / is not available.`})}}Object.defineProperty(Ec,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Ac extends xn{constructor(t){super(t,{code:Ac.code,name:\"InvalidParamsRpcError\",shortMessage:[\"Invalid parameters were provided to the RPC method.\",\"Double check you have provided the correct parameters.\"].join(`\n`)})}}Object.defineProperty(Ac,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class rs extends xn{constructor(t){super(t,{code:rs.code,name:\"InternalRpcError\",shortMessage:\"An internal error was received.\"})}}Object.defineProperty(rs,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class zo extends xn{constructor(t){super(t,{code:zo.code,name:\"InvalidInputRpcError\",shortMessage:[\"Missing or invalid parameters.\",\"Double check you have provided the correct parameters.\"].join(`\n`)})}}Object.defineProperty(zo,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Tc extends xn{constructor(t){super(t,{code:Tc.code,name:\"ResourceNotFoundRpcError\",shortMessage:\"Requested resource not found.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ResourceNotFoundRpcError\"})}}Object.defineProperty(Tc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class oa extends xn{constructor(t){super(t,{code:oa.code,name:\"ResourceUnavailableRpcError\",shortMessage:\"Requested resource not available.\"})}}Object.defineProperty(oa,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class Mc extends xn{constructor(t){super(t,{code:Mc.code,name:\"TransactionRejectedRpcError\",shortMessage:\"Transaction creation failed.\"})}}Object.defineProperty(Mc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Ka extends xn{constructor(t,{method:n}={}){super(t,{code:Ka.code,name:\"MethodNotSupportedRpcError\",shortMessage:`Method${n?` \"${n}\"`:\"\"} is not supported.`})}}Object.defineProperty(Ka,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Ro extends xn{constructor(t){super(t,{code:Ro.code,name:\"LimitExceededRpcError\",shortMessage:\"Request exceeds defined limit.\"})}}Object.defineProperty(Ro,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class _c extends xn{constructor(t){super(t,{code:_c.code,name:\"JsonRpcVersionUnsupportedError\",shortMessage:\"Version of JSON-RPC protocol is not supported.\"})}}Object.defineProperty(_c,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Yt extends Sn{constructor(t){super(t,{code:Yt.code,name:\"UserRejectedRequestError\",shortMessage:\"User rejected the request.\"})}}Object.defineProperty(Yt,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Pc extends Sn{constructor(t){super(t,{code:Pc.code,name:\"UnauthorizedProviderError\",shortMessage:\"The requested method and/or account has not been authorized by the user.\"})}}Object.defineProperty(Pc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Cc extends Sn{constructor(t,{method:n}={}){super(t,{code:Cc.code,name:\"UnsupportedProviderMethodError\",shortMessage:`The Provider does not support the requested method${n?` \" ${n}\"`:\"\"}.`})}}Object.defineProperty(Cc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});class zc extends Sn{constructor(t){super(t,{code:zc.code,name:\"ProviderDisconnectedError\",shortMessage:\"The Provider is disconnected from all chains.\"})}}Object.defineProperty(zc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Rc extends Sn{constructor(t){super(t,{code:Rc.code,name:\"ChainDisconnectedError\",shortMessage:\"The Provider is not connected to the requested chain.\"})}}Object.defineProperty(Rc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901});class is extends Sn{constructor(t){super(t,{code:is.code,name:\"SwitchChainError\",shortMessage:\"An error occurred when attempting to switch chain.\"})}}Object.defineProperty(is,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4902});class Oc extends Sn{constructor(t){super(t,{code:Oc.code,name:\"UnsupportedNonOptionalCapabilityError\",shortMessage:\"This Wallet does not support a capability that was not marked as optional.\"})}}Object.defineProperty(Oc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5700});class Ic extends Sn{constructor(t){super(t,{code:Ic.code,name:\"UnsupportedChainIdError\",shortMessage:\"This Wallet does not support the requested chain ID.\"})}}Object.defineProperty(Ic,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5710});class kc extends Sn{constructor(t){super(t,{code:kc.code,name:\"DuplicateIdError\",shortMessage:\"There is already a bundle submitted with this ID.\"})}}Object.defineProperty(kc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5720});class $c extends Sn{constructor(t){super(t,{code:$c.code,name:\"UnknownBundleIdError\",shortMessage:\"This bundle id is unknown / has not been submitted\"})}}Object.defineProperty($c,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5730});class Bc extends Sn{constructor(t){super(t,{code:Bc.code,name:\"BundleTooLargeError\",shortMessage:\"The call bundle is too large for the Wallet to process.\"})}}Object.defineProperty(Bc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Nc extends Sn{constructor(t){super(t,{code:Nc.code,name:\"AtomicReadyWalletRejectedUpgradeError\",shortMessage:\"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade.\"})}}Object.defineProperty(Nc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Lc extends Sn{constructor(t){super(t,{code:Lc.code,name:\"AtomicityNotSupportedError\",shortMessage:\"The wallet does not support atomic execution but the request requires it.\"})}}Object.defineProperty(Lc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5760});class jc extends Sn{constructor(t){super(t,{code:jc.code,name:\"WalletConnectSessionSettlementError\",shortMessage:\"WalletConnect session settlement failed.\"})}}Object.defineProperty(jc,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class aL extends xn{constructor(t){super(t,{name:\"UnknownRpcError\",shortMessage:\"An unknown RPC error occurred.\"})}}const sL=3;function qE(e,{abi:t,address:n,args:i,docsPath:s,functionName:u,sender:c}){const f=e instanceof HE?e:e instanceof ne?e.walk(x=>\"data\"in x)||e.walk():{},{code:d,data:p,details:y,message:m,shortMessage:b}=f,v=e instanceof Yg?new nL({functionName:u,cause:e}):[sL,rs.code].includes(d)&&(p||y||m||b)||d===zo.code&&y===\"execution reverted\"&&p?new tL({abi:t,data:typeof p==\"object\"?p.data:p,functionName:u,message:f instanceof ab?y:b??m,cause:e}):e;return new DE(v,{abi:t,args:i,contractAddress:n,docsPath:s,functionName:u,sender:c})}const oL=\"modulepreload\",uL=function(e,t){return new URL(e,t).href},k5={},an=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let p=function(y){return Promise.all(y.map(m=>Promise.resolve(m).then(b=>({status:\"fulfilled\",value:b}),b=>({status:\"rejected\",reason:b}))))};const c=document.getElementsByTagName(\"link\"),f=document.querySelector(\"meta[property=csp-nonce]\"),d=f?.nonce||f?.getAttribute(\"nonce\");s=p(n.map(y=>{if(y=uL(y,i),y in k5)return;k5[y]=!0;const m=y.endsWith(\".css\"),b=m?'[rel=\"stylesheet\"]':\"\";if(i)for(let x=c.length-1;x>=0;x--){const S=c[x];if(S.href===y&&(!m||S.rel===\"stylesheet\"))return}else if(document.querySelector(`link[href=\"${y}\"]${b}`))return;const v=document.createElement(\"link\");if(v.rel=m?\"stylesheet\":oL,m||(v.as=\"script\"),v.crossOrigin=\"\",v.href=y,d&&v.setAttribute(\"nonce\",d),document.head.appendChild(v),m)return new Promise((x,S)=>{v.addEventListener(\"load\",x),v.addEventListener(\"error\",()=>S(new Error(`Unable to preload CSS for ${y}`)))})}))}function u(c){const f=new Event(\"vite:preloadError\",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return s.then(c=>{for(const f of c||[])f.status===\"rejected\"&&u(f.reason);return t().catch(u)})},cL=\"0x82ad56cb\",lL=\"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe\",fL=\"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe\",dL=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",FE=\"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033\",Ay=\"/docs/contract/encodeDeployData\";function sb(e){const{abi:t,args:n,bytecode:i}=e;if(!n||n.length===0)return i;const s=t.find(c=>\"type\"in c&&c.type===\"constructor\");if(!s)throw new G$({docsPath:Ay});if(!(\"inputs\"in s))throw new E5({docsPath:Ay});if(!s.inputs||s.inputs.length===0)throw new E5({docsPath:Ay});const u=gE(s.inputs,n);return Vt([i,u])}function tr(e,t){if(!Ot(e,{strict:!1}))throw new nn({address:e});if(!Ot(t,{strict:!1}))throw new nn({address:t});return e.toLowerCase()===t.toLowerCase()}function lp(e){const{blockHash:t,blockNumber:n,blockTag:i,requireCanonical:s}=e;if(s!==void 0&&!t)throw new ne(\"`requireCanonical` can only be provided when `blockHash` is set.\");return t?s?{blockHash:t,requireCanonical:s}:{blockHash:t}:typeof n==\"bigint\"?de(n):i??\"latest\"}class ho extends ne{constructor({cause:t,message:n}={}){const i=n?.replace(\"execution reverted: \",\"\")?.replace(\"execution reverted\",\"\");super(`Execution reverted ${i?`with reason: ${i}`:\"for an unknown reason\"}.`,{cause:t,name:\"ExecutionRevertedError\"})}}Object.defineProperty(ho,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(ho,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class as extends ne{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\\`maxFeePerGas\\`${n?` = ${vn(n)} gwei`:\"\"}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:\"FeeCapTooHighError\"})}}Object.defineProperty(as,\"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 Sm extends ne{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\\`maxFeePerGas\\`${n?` = ${vn(n)}`:\"\"} gwei) cannot be lower than the block base fee.`,{cause:t,name:\"FeeCapTooLowError\"})}}Object.defineProperty(Sm,\"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 Em extends ne{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(Em,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Am extends ne{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(`\n`),{cause:t,name:\"NonceTooLowError\"})}}Object.defineProperty(Am,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Tm extends ne{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:\"\"}exceeds the maximum allowed nonce.`,{cause:t,name:\"NonceMaxValueError\"})}}Object.defineProperty(Tm,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Mm extends ne{constructor({cause:t}={}){super([\"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.\"].join(`\n`),{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(Mm,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class _m extends ne{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(_m,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Pm extends ne{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(Pm,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Cm extends ne{constructor({cause:t}){super(\"The transaction type is not supported for this chain.\",{cause:t,name:\"TransactionTypeNotSupportedError\"})}}Object.defineProperty(Cm,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Uc extends ne{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:i}={}){super([`The provided tip (\\`maxPriorityFeePerGas\\`${n?` = ${vn(n)} gwei`:\"\"}) cannot be higher than the fee cap (\\`maxFeePerGas\\`${i?` = ${vn(i)} gwei`:\"\"}).`].join(`\n`),{cause:t,name:\"TipAboveFeeCapError\"})}}Object.defineProperty(Uc,\"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 fp extends ne{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:\"UnknownNodeError\"})}}function ob(e,t){const n=(e.details||\"\").toLowerCase(),i=e instanceof ne?e.walk(s=>s?.code===ho.code):e;return i instanceof ne?new ho({cause:e,message:i.details}):ho.nodeMessage.test(n)?new ho({cause:e,message:e.details}):as.nodeMessage.test(n)?new as({cause:e,maxFeePerGas:t?.maxFeePerGas}):Sm.nodeMessage.test(n)?new Sm({cause:e,maxFeePerGas:t?.maxFeePerGas}):Em.nodeMessage.test(n)?new Em({cause:e,nonce:t?.nonce}):Am.nodeMessage.test(n)?new Am({cause:e,nonce:t?.nonce}):Tm.nodeMessage.test(n)?new Tm({cause:e,nonce:t?.nonce}):Mm.nodeMessage.test(n)?new Mm({cause:e}):_m.nodeMessage.test(n)?new _m({cause:e,gas:t?.gas}):Pm.nodeMessage.test(n)?new Pm({cause:e,gas:t?.gas}):Cm.nodeMessage.test(n)?new Cm({cause:e}):Uc.nodeMessage.test(n)?new Uc({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new fp({cause:e})}function pL(e,{docsPath:t,...n}){const i=(()=>{const s=ob(e,n);return s instanceof fp?e:s})();return new UE(i,{docsPath:t,...n})}function dp(e,{format:t}){if(!t)return{};const n={};function i(u){const c=Object.keys(u);for(const f of c)f in e&&(n[f]=e[f]),u[f]&&typeof u[f]==\"object\"&&!Array.isArray(u[f])&&i(u[f])}const s=t(e||{});return i(s),n}function pp(e,t){return({exclude:n,format:i})=>({exclude:n,format:(s,u)=>{const c=t(s,u);if(n)for(const f of n)delete c[f];return{...c,...i(s,u)}},type:e})}const hL={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"};function Vo(e,t){const n={};return typeof e.authorizationList<\"u\"&&(n.authorizationList=mL(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(i=>Rt(i)):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=de(e.gas)),typeof e.gasPrice<\"u\"&&(n.gasPrice=de(e.gasPrice)),typeof e.maxFeePerBlobGas<\"u\"&&(n.maxFeePerBlobGas=de(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<\"u\"&&(n.maxFeePerGas=de(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<\"u\"&&(n.maxPriorityFeePerGas=de(e.maxPriorityFeePerGas)),typeof e.nonce<\"u\"&&(n.nonce=de(e.nonce)),typeof e.to<\"u\"&&(n.to=e.to),typeof e.type<\"u\"&&(n.type=hL[e.type]),typeof e.value<\"u\"&&(n.value=de(e.value)),n}const yL=pp(\"transactionRequest\",Vo);function mL(e){return e.map(t=>({address:t.address,r:t.r?de(BigInt(t.r)):t.r,s:t.s?de(BigInt(t.s)):t.s,chainId:de(t.chainId),nonce:de(t.nonce),...typeof t.yParity<\"u\"?{yParity:de(t.yParity)}:{},...typeof t.v<\"u\"&&typeof t.yParity>\"u\"?{v:de(t.v)}:{}}))}function gL(){let e=()=>{},t=()=>{};return{promise:new Promise((i,s)=>{e=i,t=s}),resolve:e,reject:t}}const Ty=new Map;function GE({fn:e,id:t,shouldSplitBatch:n,wait:i=0,sort:s}){const u=async()=>{const y=d();c();const m=y.map(({args:b})=>b);m.length!==0&&e(m).then(b=>{s&&Array.isArray(b)&&b.sort(s);for(let v=0;v{for(let v=0;vTy.delete(t),f=()=>d().map(({args:y})=>y),d=()=>Ty.get(t)||[],p=y=>Ty.set(t,[...d(),y]);return{flush:c,async schedule(y){const{promise:m,resolve:b,reject:v}=gL();return n?.([...f(),y])&&u(),d().length>0?(p({args:y,resolve:b,reject:v}),m):(p({args:y,resolve:b,reject:v}),setTimeout(u,i),m)}}}function $5(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:i})=>{if(n.length!==66)throw new T5({size:n.length,targetSize:66,type:\"hex\"});if(i.length!==66)throw new T5({size:i.length,targetSize:66,type:\"hex\"});return t[n]=i,t},{})}function bL(e){const{balance:t,nonce:n,state:i,stateDiff:s,code:u}=e,c={};if(u!==void 0&&(c.code=u),t!==void 0&&(c.balance=de(t)),n!==void 0&&(c.nonce=de(n)),i!==void 0&&(c.state=$5(i)),s!==void 0){if(c.state)throw new KN;c.stateDiff=$5(s)}return c}function KE(e){if(!e)return;const t={};for(const{address:n,...i}of e){if(!Ot(n,{strict:!1}))throw new nn({address:n});if(t[n])throw new GN({address:n});t[n]=bL(i)}return t}const Oo=2n**256n-1n;function dl(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:i,to:s}=e,u=t?ut(t):void 0;if(u&&!Ot(u.address))throw new nn({address:u.address});if(s&&!Ot(s))throw new nn({address:s});if(n&&n>Oo)throw new as({maxFeePerGas:n});if(i&&n&&i>n)throw new Uc({maxFeePerGas:n,maxPriorityFeePerGas:i})}async function VE(e,t){const{account:n=e.account,authorizationList:i,batch:s=!!e.batch?.multicall,blockHash:u,blockNumber:c,blockTag:f=e.experimental_blockTag??\"latest\",requireCanonical:d,accessList:p,blobs:y,blockOverrides:m,code:b,data:v,factory:x,factoryData:S,gas:E,gasPrice:A,maxFeePerBlobGas:R,maxFeePerGas:_,maxPriorityFeePerGas:C,nonce:P,requestOptions:I,to:z,value:k,stateOverride:L,...D}=t,Q=n?ut(n):void 0;if(b&&(x||S))throw new ne(\"Cannot provide both `code` & `factory`/`factoryData` as parameters.\");if(b&&z)throw new ne(\"Cannot provide both `code` & `to` as parameters.\");const Y=b&&v,te=x&&S&&z&&v,ue=Y||te,J=Y?ZE({code:b,data:v}):te?AL({data:v,factory:x,factoryData:S,to:z}):v;try{dl(t);const N=lp({blockHash:u,blockNumber:c,blockTag:f,requireCanonical:d}),G=m?Ik(m):void 0,re=KE(L),ce=e.chain?.formatters?.transactionRequest?.format,$=(ce||Vo)({...dp(D,{format:ce}),accessList:p,account:Q,authorizationList:i,blobs:y,data:J,gas:E,gasPrice:A,maxFeePerBlobGas:R,maxFeePerGas:_,maxPriorityFeePerGas:C,nonce:P,to:ue?void 0:z,value:k},\"call\");if(s&&vL({request:$})&&!G&&u===void 0)try{const{deployless:ae=!1}=typeof e.batch?.multicall==\"object\"?e.batch.multicall:{},fe=QE(e,{blockNumber:c,deployless:ae});if(!fe||!EL(re,fe))return await SL(e,{...$,blockHash:u,blockNumber:c,blockTag:f,multicallAddress:fe,requestOptions:I,requireCanonical:d,rpcStateOverride:re})}catch(ae){if(!(ae instanceof kE)&&!(ae instanceof xm))throw ae}const Z=(()=>{const ae=[$,N];return re&&G?[...ae,re,G]:re?[...ae,re]:G?[...ae,{},G]:ae})(),oe=await e.request({method:\"eth_call\",params:Z},I);return oe===\"0x\"?{data:void 0}:{data:oe}}catch(N){if(I?.signal?.aborted)throw la(I.signal);if(Ko(N))throw N;const G=TL(N),{offchainLookup:re,offchainLookupSignature:ce}=await an(async()=>{const{offchainLookup:le,offchainLookupSignature:$}=await import(\"./ccip-7CCU6ll4.js\");return{offchainLookup:le,offchainLookupSignature:$}},[],import.meta.url);if(e.ccipRead!==!1&&G?.slice(0,10)===ce&&z)return{data:await re(e,{data:G,requestOptions:I,to:z})};throw ue&&G?.slice(0,10)===\"0x101bb98d\"?new rL({factory:x}):pL(N,{...t,account:Q,chain:e.chain})}}function vL({request:e}){const{data:t,to:n,...i}=e;return!(!t||t.startsWith(cL)||!n||Object.values(i).filter(s=>typeof s<\"u\").length>0)}let wL=0;const B5=new WeakMap;function xL(e){if(!e)return\"default\";const t=B5.get(e);if(t!==void 0)return t;const n=wL++;return B5.set(e,n),n}async function SL(e,t){const{batchSize:n=1024,deployless:i=!1,wait:s=0}=typeof e.batch?.multicall==\"object\"?e.batch.multicall:{},{blockHash:u,blockNumber:c,blockTag:f=e.experimental_blockTag??\"latest\",requireCanonical:d,data:p,multicallAddress:y,requestOptions:m,rpcStateOverride:b,to:v}=t,x=y!==void 0?y:QE(e,{blockNumber:c,deployless:i}),S=lp({blockHash:u,blockNumber:c,blockTag:f,requireCanonical:d}),E=typeof S==\"string\"?S:JSON.stringify(S),A=b?`.${JSON.stringify(b)}`:\"\",{schedule:R}=GE({id:`${e.uid}.${E}.${xL(m)}${A}`,wait:s,shouldSplitBatch(P){return P.reduce((z,{data:k})=>z+(k.length-2),0)>n*2},fn:async P=>{const I=P.map(D=>({allowFailure:!0,callData:D.data,target:D.to})),z=Go({abi:hm,args:[I],functionName:\"aggregate3\"}),k={...x===null?{data:ZE({code:FE,data:z})}:{to:x,data:z}},L=await e.request({method:\"eth_call\",params:b?[k,S,b]:[k,S]},m);return IE({abi:hm,args:[I],functionName:\"aggregate3\",data:L||\"0x\"})}}),[{returnData:_,success:C}]=await R({data:p,to:v});if(!C)throw new HE({data:_});return _===\"0x\"?{data:void 0}:{data:_}}function QE(e,t){const{blockNumber:n,deployless:i}=t;if(i)return null;if(e.chain)return BN({blockNumber:n,chain:e.chain,contract:\"multicall3\"});throw new kE}function EL(e,t){return e?Object.keys(e).some(n=>tr(n,t)):!1}function ZE(e){const{code:t,data:n}=e;return sb({abi:zE([\"constructor(bytes, bytes)\"]),bytecode:lL,args:[t,n]})}function AL(e){const{data:t,factory:n,factoryData:i,to:s}=e;return sb({abi:zE([\"constructor(address, bytes, address, bytes)\"]),bytecode:fL,args:[s,t,n,i]})}function TL(e){if(!(e instanceof ne))return;const t=e.walk();return typeof t?.data==\"object\"?t.data?.data:t.data}async function Cr(e,t){const{abi:n,address:i,args:s,functionName:u,...c}=t,f=Go({abi:n,args:s,functionName:u});try{const{data:d}=await nt(e,VE,\"call\")({...c,data:f,to:i});return IE({abi:n,args:s,functionName:u,data:d||\"0x\"})}catch(d){throw qE(d,{abi:n,address:i,args:s,docsPath:\"/docs/contract/readContract\",functionName:u})}}function ML(e){const t=hs(`0x${e.substring(4)}`).substring(26);return ap(`0x${t}`)}async function _L({hash:e,signature:t}){const n=Se(e)?e:aa(e),{secp256k1:i}=await an(async()=>{const{secp256k1:c}=await Promise.resolve().then(()=>ck);return{secp256k1:c}},void 0,import.meta.url);return`0x${(()=>{if(typeof t==\"object\"&&\"r\"in t&&\"s\"in t){const{r:p,s:y,v:m,yParity:b}=t,v=Number(b??m),x=N5(v);return new i.Signature(ke(p),ke(y)).addRecoveryBit(x)}const c=Se(t)?t:aa(t);if(mt(c)!==65)throw new Error(\"invalid signature length\");const f=ft(`0x${c.slice(130)}`),d=N5(f);return i.Signature.fromCompact(c.substring(2,130)).addRecoveryBit(d)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function N5(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 zm({hash:e,signature:t}){return ML(await _L({hash:e,signature:t}))}function fa(e,t=\"hex\"){const n=YE(e),i=sp(new Uint8Array(n.length));return n.encode(i),t===\"hex\"?Rt(i.bytes):i.bytes}function YE(e){return Array.isArray(e)?PL(e.map(t=>YE(t))):CL(e)}function PL(e){const t=e.reduce((s,u)=>s+u.length,0),n=XE(t);return{length:t<=55?1+t:1+n+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+n),n===1?s.pushUint8(t):n===2?s.pushUint16(t):n===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:u}of e)u(s)}}}function CL(e){const t=typeof e==\"string\"?pr(e):e,n=XE(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+n),n===1?s.pushUint8(t.length):n===2?s.pushUint16(t.length):n===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function XE(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 ne(\"Length is too large.\")}function zL(e){const{chainId:t,nonce:n,to:i}=e,s=e.contractAddress??e.address,u=hs(Vt([\"0x05\",fa([t?de(t):\"0x\",s,n?de(n):\"0x\"])]));return i===\"bytes\"?pr(u):u}async function ub(e){const{authorization:t,signature:n}=e;return zm({hash:zL(t),signature:n??t})}class RL extends ne{constructor(t,{account:n,docsPath:i,chain:s,data:u,gas:c,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:y,to:m,value:b}){const v=ll({from:n?.address,to:m,value:typeof b<\"u\"&&`${rb(b)} ${s?.nativeCurrency?.symbol||\"ETH\"}`,data:u,gas:c,gasPrice:typeof f<\"u\"&&`${vn(f)} gwei`,maxFeePerGas:typeof d<\"u\"&&`${vn(d)} gwei`,maxPriorityFeePerGas:typeof p<\"u\"&&`${vn(p)} gwei`,nonce:y});super(t.shortMessage,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages,\" \"]:[],\"Estimate Gas Arguments:\",v].filter(Boolean),name:\"EstimateGasExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function OL(e,{docsPath:t,...n}){const i=(()=>{const s=ob(e,n);return s instanceof fp?e:s})();return new RL(i,{docsPath:t,...n})}class JE extends ne{constructor(){super(\"`baseFeeMultiplier` must be greater than 1.\",{name:\"BaseFeeScalarError\"})}}class cb extends ne{constructor(){super(\"Chain does not support EIP-1559 fees.\",{name:\"Eip1559FeesNotSupportedError\"})}}class IL extends ne{constructor({maxPriorityFeePerGas:t}){super(`\\`maxFeePerGas\\` cannot be less than the \\`maxPriorityFeePerGas\\` (${vn(t)} gwei).`,{name:\"MaxFeePerGasTooLowError\"})}}class kL extends ne{constructor({blockHash:t,blockNumber:n}){let i=\"Block\";t&&(i=`Block at hash \"${t}\"`),n&&(i=`Block at number \"${n}\"`),super(`${i} could not be found.`,{name:\"BlockNotFoundError\"})}}const WE={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"};function Qo(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?ft(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?ft(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?WE[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=$L(e.authorizationList)),n.yParity=(()=>{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 e4=pp(\"transaction\",Qo);function $L(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 t4(e,t){const n=(e.transactions??[]).map(i=>typeof i==\"string\"?i:Qo(i));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 BL=pp(\"block\",t4);async function Dc(e,{blockHash:t,blockNumber:n,blockTag:i=e.experimental_blockTag??\"latest\",includeTransactions:s}={}){const u=s??!1,c=n!==void 0?de(n):void 0;let f=null;if(t?f=await e.request({method:\"eth_getBlockByHash\",params:[t,u]},{dedupe:!0}):f=await e.request({method:\"eth_getBlockByNumber\",params:[c||i,u]},{dedupe:!!c}),!f)throw new kL({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||t4)(f,\"getBlock\")}async function n4(e){const t=await e.request({method:\"eth_gasPrice\"});return BigInt(t)}async function NL(e,t){const{block:n,chain:i=e.chain,request:s}=t||{};try{const u=i?.fees?.maxPriorityFeePerGas??i?.fees?.defaultPriorityFee;if(typeof u==\"function\"){const f=n||await nt(e,Dc,\"getBlock\")({}),d=await u({block:f,client:e,request:s});if(d===null)throw new Error;return d}if(typeof u<\"u\")return u;const c=await e.request({method:\"eth_maxPriorityFeePerGas\"});return ke(c)}catch{const[u,c]=await Promise.all([n?Promise.resolve(n):nt(e,Dc,\"getBlock\")({}),nt(e,n4,\"getGasPrice\")({})]);if(typeof u.baseFeePerGas!=\"bigint\")throw new cb;const f=c-u.baseFeePerGas;return f<0n?0n:f}}async function L5(e,t){const{block:n,chain:i=e.chain,request:s,type:u=\"eip1559\"}=t||{},c=await(async()=>typeof i?.fees?.baseFeeMultiplier==\"function\"?i.fees.baseFeeMultiplier({block:n,client:e,request:s}):i?.fees?.baseFeeMultiplier??1.2)();if(c<1)throw new JE;const d=10**(c.toString().split(\".\")[1]?.length??0),p=b=>b*BigInt(Math.round(c*d))/BigInt(d),y=n||await nt(e,Dc,\"getBlock\")({});if(typeof i?.fees?.estimateFeesPerGas==\"function\"){const b=await i.fees.estimateFeesPerGas({block:n,client:e,multiply:p,request:s,type:u});if(b!==null)return b}if(u===\"eip1559\"){if(typeof y.baseFeePerGas!=\"bigint\")throw new cb;const b=typeof s?.maxPriorityFeePerGas==\"bigint\"?s.maxPriorityFeePerGas:await NL(e,{block:y,chain:i,request:s}),v=p(y.baseFeePerGas);return{maxFeePerGas:s?.maxFeePerGas??v+b,maxPriorityFeePerGas:b}}return{gasPrice:s?.gasPrice??p(await nt(e,n4,\"getGasPrice\")({}))}}async function LL(e,{address:t,blockHash:n,blockNumber:i,blockTag:s=\"latest\",requireCanonical:u}){const c=lp({blockHash:n,blockNumber:i,blockTag:s,requireCanonical:u}),f=await e.request({method:\"eth_getTransactionCount\",params:[t,c]},{dedupe:typeof i==\"bigint\"||n!==void 0});return ft(f)}function lb(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]==\"string\"?\"hex\":\"bytes\"),i=typeof e.blobs[0]==\"string\"?e.blobs.map(u=>pr(u)):e.blobs,s=[];for(const u of i)s.push(Uint8Array.from(t.blobToKzgCommitment(u)));return n===\"bytes\"?s:s.map(u=>Rt(u))}function fb(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]==\"string\"?\"hex\":\"bytes\"),i=typeof e.blobs[0]==\"string\"?e.blobs.map(c=>pr(c)):e.blobs,s=typeof e.commitments[0]==\"string\"?e.commitments.map(c=>pr(c)):e.commitments,u=[];for(let c=0;cRt(c))}function jL(e,t){return J3(Se(e,{strict:!1})?ip(e):e)}function UL(e){const{commitment:t,version:n=1}=e,i=e.to??(typeof t==\"string\"?\"hex\":\"bytes\"),s=jL(t);return s.set([n],0),i===\"bytes\"?s:Rt(s)}function r4(e){const{commitments:t,version:n}=e,i=e.to??(typeof t[0]==\"string\"?\"hex\":\"bytes\"),s=[];for(const u of t)s.push(UL({commitment:u,to:i,version:n}));return s}const j5=6,i4=32,db=4096,a4=i4*db,U5=a4*j5-1-1*db*j5,s4=1;class DL extends ne{constructor({maxSize:t,size:n}){super(\"Blob size is too large.\",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:\"BlobSizeTooLargeError\"})}}class o4 extends ne{constructor(){super(\"Blob data must not be empty.\",{name:\"EmptyBlobError\"})}}class HL extends ne{constructor({hash:t,size:n}){super(`Versioned hash \"${t}\" size is invalid.`,{metaMessages:[\"Expected: 32\",`Received: ${n}`],name:\"InvalidVersionedHashSizeError\"})}}class qL extends ne{constructor({hash:t,version:n}){super(`Versioned hash \"${t}\" version is invalid.`,{metaMessages:[`Expected: ${s4}`,`Received: ${n}`],name:\"InvalidVersionedHashVersionError\"})}}function FL(e){const t=e.to??(typeof e.data==\"string\"?\"hex\":\"bytes\"),n=typeof e.data==\"string\"?pr(e.data):e.data,i=mt(n);if(!i)throw new o4;if(i>U5)throw new DL({maxSize:U5,size:i});const s=[];let u=!0,c=0;for(;u;){const f=sp(new Uint8Array(a4));let d=0;for(;df.bytes):s.map(f=>Rt(f.bytes))}function pb(e){const{data:t,kzg:n,to:i}=e,s=e.blobs??FL({data:t,to:i}),u=e.commitments??lb({blobs:s,kzg:n,to:i}),c=e.proofs??fb({blobs:s,commitments:u,kzg:n,to:i}),f=[];for(let d=0;d{const s=ob(e,n);return s instanceof fp?e:s})();return new JN(i,{docsPath:t,...n})}async function yb(e){const t=await e.request({method:\"eth_chainId\"},{dedupe:!0});return ft(t)}async function GL(e,t){const{account:n=e.account,accessList:i,authorizationList:s,chain:u=e.chain,blobVersionedHashes:c,blobs:f,data:d,gas:p,gasPrice:y,maxFeePerBlobGas:m,maxFeePerGas:b,maxPriorityFeePerGas:v,nonce:x,nonceManager:S,to:E,type:A,value:R,..._}=t,C=await(async()=>{if(!n||!S||typeof x<\"u\")return x;const k=ut(n),L=u?u.id:await nt(e,yb,\"getChainId\")({});return await S.consume({address:k.address,chainId:L,client:e})})();dl(t);const P=u?.formatters?.transactionRequest?.format,z=(P||Vo)({...dp(_,{format:P}),account:n?ut(n):void 0,accessList:i,authorizationList:s,blobs:f,blobVersionedHashes:c,data:d,gas:p,gasPrice:y,maxFeePerBlobGas:m,maxFeePerGas:b,maxPriorityFeePerGas:v,nonce:C,to:E,type:A,value:R},\"fillTransaction\");try{const k=await e.request({method:\"eth_fillTransaction\",params:[z]}),D=(u?.formatters?.transaction?.format||Qo)(k.tx);delete D.blockHash,delete D.blockNumber,delete D.r,delete D.s,delete D.transactionIndex,delete D.v,delete D.yParity,D.data=D.input;const Q=typeof D.feePayerSignature<\"u\"&&D.feePayerSignature!==null;if(Q&&typeof C<\"u\"&&D.nonce!==C)throw new LE({filledNonce:D.nonce,requestedNonce:C});if(!Q){D.gas&&(D.gas=t.gas??D.gas),D.gasPrice&&(D.gasPrice=t.gasPrice??D.gasPrice),D.maxFeePerBlobGas&&(D.maxFeePerBlobGas=t.maxFeePerBlobGas??D.maxFeePerBlobGas),D.maxFeePerGas&&(D.maxFeePerGas=t.maxFeePerGas??D.maxFeePerGas),D.maxPriorityFeePerGas&&(D.maxPriorityFeePerGas=t.maxPriorityFeePerGas??D.maxPriorityFeePerGas),typeof D.nonce<\"u\"&&(D.nonce=t.nonce??D.nonce);const Y=await(async()=>{if(typeof u?.fees?.baseFeeMultiplier==\"function\"){const N=await nt(e,Dc,\"getBlock\")({});return u.fees.baseFeeMultiplier({block:N,client:e,request:t})}return u?.fees?.baseFeeMultiplier??1.2})();if(Y<1)throw new JE;const ue=10**(Y.toString().split(\".\")[1]?.length??0),J=N=>N*BigInt(Math.round(Y*ue))/BigInt(ue);D.maxFeePerGas&&!t.maxFeePerGas&&(D.maxFeePerGas=J(D.maxFeePerGas)),D.gasPrice&&!t.gasPrice&&(D.gasPrice=J(D.gasPrice))}return{raw:k.raw,transaction:{from:z.from,...D},...k.capabilities?{capabilities:k.capabilities}:{}}}catch(k){throw u4(k,{...t,chain:e.chain})}}const c4=[\"blobVersionedHashes\",\"chainId\",\"fees\",\"gas\",\"nonce\",\"type\"],D5=new Map,My=new cl(128);async function l4(e,t){let n=t;n.account??=e.account,n.parameters??=c4;const{account:i,chain:s=e.chain,nonceManager:u,parameters:c}=n,f=(()=>{if(typeof s?.prepareTransactionRequest==\"function\")return{fn:s.prepareTransactionRequest,runAt:[\"beforeFillTransaction\"]};if(Array.isArray(s?.prepareTransactionRequest))return{fn:s.prepareTransactionRequest[0],runAt:s.prepareTransactionRequest[1].runAt}})();let d;async function p(){return d||(typeof n.chainId<\"u\"?n.chainId:s?s.id:(d=await nt(e,yb,\"getChainId\")({}),d))}let y=i&&ut(i),m=n.nonce;if(f?.fn&&f.runAt?.includes(\"beforeFillTransaction\")){n=await f.fn({...n,chain:s},{client:e,phase:\"beforeFillTransaction\"}),m??=n.nonce;const C=n.account??n.from;y=C?ut(C):void 0}if(c.includes(\"nonce\")&&typeof m>\"u\"&&y&&u){const C=await p();m=await u.consume({address:y.address,chainId:C,client:e})}const v=((c.includes(\"blobVersionedHashes\")||c.includes(\"sidecars\"))&&n.kzg&&n.blobs?!1:c.length>0&&\"feePayer\"in n&&n.feePayer&&!(\"feePayerSignature\"in n&&n.feePayerSignature)?!0:My.get(e.uid)===!1||![\"fees\",\"gas\"].some(P=>c.includes(P))?!1:!!(c.includes(\"chainId\")&&typeof n.chainId!=\"number\"||c.includes(\"nonce\")&&typeof m!=\"number\"||c.includes(\"fees\")&&typeof n.gasPrice!=\"bigint\"&&(typeof n.maxFeePerGas!=\"bigint\"||typeof n.maxPriorityFeePerGas!=\"bigint\")||c.includes(\"gas\")&&typeof n.gas!=\"bigint\"))?await nt(e,GL,\"fillTransaction\")({...n,nonce:m}).then(C=>{const{chainId:P,from:I,gas:z,gasPrice:k,nonce:L,maxFeePerBlobGas:D,maxFeePerGas:Q,maxPriorityFeePerGas:Y,type:te,...ue}=C.transaction,J=\"feeToken\"in ue?ue.feeToken:void 0,N=\"feePayerSignature\"in ue&&ue.feePayerSignature!==null&&typeof ue.feePayerSignature<\"u\",G=typeof J<\"u\"&&J!==null&&(!(\"feeToken\"in n)||N);return My.set(e.uid,!0),{...n,...I?{from:I}:{},...te&&!n.type?{type:te}:{},...typeof P<\"u\"?{chainId:P}:{},...typeof z<\"u\"?{gas:z}:{},...typeof k<\"u\"?{gasPrice:k}:{},...typeof L<\"u\"?{nonce:L}:{},...typeof D<\"u\"&&n.type!==\"legacy\"&&n.type!==\"eip2930\"?{maxFeePerBlobGas:D}:{},...typeof Q<\"u\"&&n.type!==\"legacy\"&&n.type!==\"eip2930\"?{maxFeePerGas:Q}:{},...typeof Y<\"u\"&&n.type!==\"legacy\"&&n.type!==\"eip2930\"?{maxPriorityFeePerGas:Y}:{},...\"nonceKey\"in ue&&typeof ue.nonceKey<\"u\"?{nonceKey:ue.nonceKey}:{},...\"keyAuthorization\"in ue&&typeof ue.keyAuthorization<\"u\"&&ue.keyAuthorization!==null&&!(\"keyAuthorization\"in n)?{keyAuthorization:ue.keyAuthorization}:{},...\"feePayerSignature\"in ue&&typeof ue.feePayerSignature<\"u\"&&ue.feePayerSignature!==null?{feePayerSignature:ue.feePayerSignature}:{},...G?{feeToken:J}:{},...C.capabilities?{_capabilities:C.capabilities}:{}}}).catch(C=>{const P=C;if(P.name!==\"TransactionExecutionError\")return n;if(P.walk?.(L=>L instanceof LE)||P.walk?.(L=>L.name===\"ExecutionRevertedError\"))throw C;return P.walk?.(L=>{const D=L;return D.name===\"MethodNotFoundRpcError\"||D.name===\"MethodNotSupportedRpcError\"||D.message?.includes(\"eth_fillTransaction is not available\")})&&My.set(e.uid,!1),n}):n;m??=v.nonce,n={...v,...y?{from:y?.address}:{},...typeof m<\"u\"?{nonce:m}:{}};const{blobs:x,gas:S,kzg:E,type:A}=n;f?.fn&&f.runAt?.includes(\"beforeFillParameters\")&&(n=await f.fn({...n,chain:s},{client:e,phase:\"beforeFillParameters\"}));let R;async function _(){return R||(R=await nt(e,Dc,\"getBlock\")({blockTag:\"latest\"}),R)}if(c.includes(\"nonce\")&&typeof m>\"u\"&&y&&!u&&(n.nonce=await nt(e,LL,\"getTransactionCount\")({address:y.address,blockTag:\"pending\"})),(c.includes(\"blobVersionedHashes\")||c.includes(\"sidecars\"))&&x&&E){const C=lb({blobs:x,kzg:E});if(c.includes(\"blobVersionedHashes\")){const P=r4({commitments:C,to:\"hex\"});n.blobVersionedHashes=P}if(c.includes(\"sidecars\")){const P=fb({blobs:x,commitments:C,kzg:E}),I=pb({blobs:x,commitments:C,proofs:P,to:\"hex\"});n.sidecars=I}}if(c.includes(\"chainId\")&&(n.chainId=await p()),(c.includes(\"fees\")||c.includes(\"type\"))&&typeof A>\"u\")try{n.type=hb(n)}catch{let C=D5.get(e.uid);typeof C>\"u\"&&(C=typeof(await _())?.baseFeePerGas==\"bigint\",D5.set(e.uid,C)),n.type=C?\"eip1559\":\"legacy\"}if(c.includes(\"fees\"))if(n.type!==\"legacy\"&&n.type!==\"eip2930\"){if(typeof n.maxFeePerGas>\"u\"||typeof n.maxPriorityFeePerGas>\"u\"){const C=await _(),{maxFeePerGas:P,maxPriorityFeePerGas:I}=await L5(e,{block:C,chain:s,request:n});if(typeof n.maxPriorityFeePerGas>\"u\"&&n.maxFeePerGas&&n.maxFeePerGas\"u\"){const C=await _(),{gasPrice:P}=await L5(e,{block:C,chain:s,request:n,type:\"legacy\"});n.gasPrice=P}}return c.includes(\"gas\")&&typeof S>\"u\"&&(n.gas=await nt(e,KL,\"estimateGas\")({...n,account:y,prepare:y?.type===\"local\"?[]:[\"blobVersionedHashes\"]})),f?.fn&&f.runAt?.includes(\"afterFillParameters\")&&(n=await f.fn({...n,chain:s},{client:e,phase:\"afterFillParameters\"})),dl(n),delete n.parameters,n}async function KL(e,t){const{account:n=e.account,prepare:i=!0}=t,s=n?ut(n):void 0,u=(()=>{if(Array.isArray(i))return i;if(s?.type!==\"local\")return[\"blobVersionedHashes\"]})();try{const c=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await ub({authorization:t.authorizationList[0]}).catch(()=>{throw new ne(\"`to` is required. Could not infer from `authorizationList`\")})})(),{accessList:f,authorizationList:d,blobs:p,blobVersionedHashes:y,blockNumber:m,blockTag:b,data:v,gas:x,gasPrice:S,maxFeePerBlobGas:E,maxFeePerGas:A,maxPriorityFeePerGas:R,nonce:_,value:C,stateOverride:P,...I}=i?await l4(e,{...t,parameters:u,to:c}):t;if(x&&t.gas!==x)return x;const k=(typeof m==\"bigint\"?de(m):void 0)||b,L=KE(P);dl(t);const D=e.chain?.formatters?.transactionRequest?.format,Y=(D||Vo)({...dp(I,{format:D}),account:s,accessList:f,authorizationList:d,blobs:p,blobVersionedHashes:y,data:v,gasPrice:S,maxFeePerBlobGas:E,maxFeePerGas:A,maxPriorityFeePerGas:R,nonce:_,to:c,value:C},\"estimateGas\");return BigInt(await e.request({method:\"eth_estimateGas\",params:L?[Y,k??e.experimental_blockTag??\"latest\",L]:k?[Y,k]:[Y]}))}catch(c){throw OL(c,{...t,account:s,chain:e.chain})}}function f4(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 VL={\"0x0\":\"reverted\",\"0x1\":\"success\"};function d4(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(i=>f4(i)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?ft(e.transactionIndex):null,status:e.status?VL[e.status]:null,type:e.type?WE[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const p4=pp(\"transactionReceipt\",d4);async function h4(e,{address:t,blockHash:n,blockNumber:i,blockTag:s=\"latest\",requireCanonical:u}){const c=lp({blockHash:n,blockNumber:i,blockTag:s,requireCanonical:u}),f=await e.request({method:\"eth_getCode\",params:[t,c]},{dedupe:typeof i==\"bigint\"||n!==void 0});if(f!==\"0x\")return f}const H5=\"/docs/contract/decodeEventLog\";function q5(e){const{abi:t,data:n,strict:i,topics:s}=e,u=i??!0,[c,...f]=s;if(!c)throw new Z$({docsPath:H5});const d=t.find(A=>A.type===\"event\"&&c===eb(ca(A)));if(!(d&&\"name\"in d)||d.type!==\"event\")throw new Y$(c,{docsPath:H5});const{name:p,inputs:y}=d,m=y?.some(A=>!(\"name\"in A&&A.name)),b=m?[]:{},v=y.map((A,R)=>[A,R]).filter(([A])=>\"indexed\"in A&&A.indexed),x=[];for(let A=0;A!(\"indexed\"in A&&A.indexed)),E=u?S:[...x.map(([A])=>A),...S];if(E.length>0){if(n&&n!==\"0x\")try{const A=up(E,n);if(A){let R=0;if(!u)for(const[_,C]of x)b[m?C:_.name||C]=A[R++];if(m)for(let _=0;_0?b:void 0}}function QL({param:e,value:t}){return e.type===\"string\"||e.type===\"bytes\"||e.type===\"tuple\"||e.type.match(/^(.*)\\[(\\d+)?\\]$/)?t:(up([e],t)||[])[0]}function pl(e){const{abi:t,args:n,logs:i,strict:s=!0}=e,u=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),c=t.filter(f=>f.type===\"event\").map(f=>({abi:f,selector:eb(f)}));return i.map(f=>{const d=typeof f.blockNumber==\"string\"?f4(f):f,p=c.filter(b=>d.topics[0]===b.selector);if(p.length===0)return null;let y,m;for(const b of p)try{y=q5({...d,abi:[b.abi],strict:!0}),m=b;break}catch{}if(!y&&!s){m=p[0];try{y=q5({data:d.data,topics:d.topics,abi:[m.abi],strict:!1})}catch{const b=m.abi.inputs?.some(v=>!(\"name\"in v&&v.name));return{...d,args:b?[]:{},eventName:m.abi.name}}}return!y||!m||u&&!u.includes(y.eventName)||!ZL({args:y.args,inputs:m.abi.inputs,matchArgs:n})?null:{...y,...d}}).filter(Boolean)}function ZL(e){const{args:t,inputs:n,matchArgs:i}=e;if(!i)return!0;if(!t)return!1;function s(u,c,f){try{return u.type===\"address\"?tr(c,f):u.type===\"string\"||u.type===\"bytes\"?hs(ip(c))===f:c===f}catch{return!1}}return Array.isArray(t)&&Array.isArray(i)?i.every((u,c)=>{if(u==null)return!0;const f=n[c];return f?(Array.isArray(u)?u:[u]).some(p=>s(f,p,t[c])):!1}):typeof t==\"object\"&&!Array.isArray(t)&&typeof i==\"object\"&&!Array.isArray(i)?Object.entries(i).every(([u,c])=>{if(c==null)return!0;const f=n.find(p=>p.name===u);return f?(Array.isArray(c)?c:[c]).some(p=>s(f,p,t[u])):!1}):!1}function y4(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:i}=n,s=n.address;if(!Ot(s))throw new nn({address:s});if(i<0)throw new cp({chainId:i})}hp(e)}function m4(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new o4;for(const n of t){const i=mt(n),s=ft(vc(n,0,1));if(i!==32)throw new HL({hash:n,size:i});if(s!==s4)throw new qL({hash:n,version:s})}}hp(e)}function hp(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:i,to:s}=e;if(t<=0)throw new cp({chainId:t});if(s&&!Ot(s))throw new nn({address:s});if(i&&i>Oo)throw new as({maxFeePerGas:i});if(n&&i&&n>i)throw new Uc({maxFeePerGas:i,maxPriorityFeePerGas:n})}function g4(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:i,maxFeePerGas:s,to:u}=e;if(t<=0)throw new cp({chainId:t});if(u&&!Ot(u))throw new nn({address:u});if(n||s)throw new ne(\"`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.\");if(i&&i>Oo)throw new as({maxFeePerGas:i})}function b4(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:i,maxFeePerGas:s,to:u}=e;if(u&&!Ot(u))throw new nn({address:u});if(typeof t<\"u\"&&t<=0)throw new cp({chainId:t});if(n||s)throw new ne(\"`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.\");if(i&&i>Oo)throw new as({maxFeePerGas:i})}function yp(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n\"u\"||typeof v>\"u\")){const _=typeof e.blobs[0]==\"string\"?e.blobs:e.blobs.map(I=>Rt(I)),C=e.kzg,P=lb({blobs:_,kzg:C});if(typeof b>\"u\"&&(b=r4({commitments:P})),typeof v>\"u\"){const I=fb({blobs:_,commitments:P,kzg:C});v=pb({blobs:_,commitments:P,proofs:I})}}const x=yp(y),S=[de(n),s?de(s):\"0x\",p?de(p):\"0x\",d?de(d):\"0x\",i?de(i):\"0x\",u??\"0x\",c?de(c):\"0x\",m??\"0x\",x,f?de(f):\"0x\",b??[],...hl(e,t)],E=[],A=[],R=[];if(v)for(let _=0;_{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 v=27n+(t.v===27n?0n:1n);if(t.v!==v)throw new jE({v:t.v});return v})(),m=_r(t.r),b=_r(t.s);p=[...p,de(y),m===\"0x00\"?\"0x\":m,b===\"0x00\"?\"0x\":b]}else n>0&&(p=[...p,de(n),\"0x\",\"0x\"]);return fa(p)}function hl(e,t){const n=t??e,{v:i,yParity:s}=n;if(typeof n.r>\"u\")return[];if(typeof n.s>\"u\")return[];if(typeof i>\"u\"&&typeof s>\"u\")return[];const u=_r(n.r),c=_r(n.s);return[typeof s==\"number\"?s?de(1):\"0x\":i===0n?\"0x\":i===1n?de(1):i===27n?\"0x\":de(1),u===\"0x00\"?\"0x\":u,c===\"0x00\"?\"0x\":c]}function tj(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:i,nonce:s,...u}=n,c=n.address;t.push([i?aa(i):\"0x\",c,s?aa(s):\"0x\",...hl({},u)])}return t}async function nj({address:e,authorization:t,signature:n}){return tr(Ga(e),await ub({authorization:t,signature:n}))}const Jf=new cl(8192);function rj(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(Jf.get(n))return Jf.get(n);const i=e().finally(()=>Jf.delete(n));return Jf.set(n,i),i}async function ij(e,{signal:t}={}){return new Promise((n,i)=>{if(t?.aborted){i(la(t));return}const s=()=>t?.removeEventListener(\"abort\",c),u=setTimeout(()=>{s(),n()},e),c=()=>{clearTimeout(u),s(),i(la(t))};t?.addEventListener(\"abort\",c,{once:!0})})}function v4(e,{delay:t=100,retryCount:n=2,shouldRetry:i=()=>!0,signal:s}={}){return new Promise((u,c)=>{const f=async({count:d=0}={})=>{if(s?.aborted){c(la(s));return}const p=async({error:y})=>{const m=typeof t==\"function\"?t({count:d,error:y}):t;if(m)try{await ij(m,{signal:s})}catch(b){c(b);return}return f({count:d+1})};try{const y=await e();u(y)}catch(y){if(s?.aborted){c(la(s));return}if(Ko(y)){c(y);return}if(d{const{dedupe:s=!1,methods:u,retryDelay:c=150,retryCount:f=3,signal:d,uid:p}={...t,...i},{method:y}=n;if(u?.exclude?.includes(y))throw new Ka(new Error(\"method not supported\"),{method:y});if(u?.include&&!u.include.includes(y))throw new Ka(new Error(\"method not supported\"),{method:y});if(d?.aborted)throw la(d);const m=s?oj(`${p}.${sa(n)}`):void 0;return rj(()=>v4(async()=>{try{return await e(n,d?{signal:d}:void 0)}catch(b){if(d?.aborted)throw la(d);if(Ko(b))throw b;const v=b;switch(v.code){case xc.code:throw new xc(v);case Sc.code:throw new Sc(v);case Ec.code:throw new Ec(v,{method:n.method});case Ac.code:throw new Ac(v);case rs.code:throw new rs(v);case zo.code:throw new zo(v);case Tc.code:throw new Tc(v);case oa.code:throw new oa(v);case Mc.code:throw new Mc(v);case Ka.code:throw new Ka(v,{method:n.method});case Ro.code:throw new Ro(v);case _c.code:throw new _c(v);case Yt.code:throw new Yt(v);case Pc.code:throw new Pc(v);case Cc.code:throw new Cc(v);case zc.code:throw new zc(v);case Rc.code:throw new Rc(v);case is.code:throw new is(v);case Oc.code:throw new Oc(v);case Ic.code:throw new Ic(v);case kc.code:throw new kc(v);case $c.code:throw new $c(v);case Bc.code:throw new Bc(v);case Nc.code:throw new Nc(v);case Lc.code:throw new Lc(v);case 5e3:throw new Yt(v);case jc.code:throw new jc(v);default:throw b instanceof ne?b:new aL(v)}}},{delay:({count:b,error:v})=>{if(v&&v instanceof sc){const x=v?.headers?.get(\"Retry-After\");if(x?.match(/\\d/))return Number.parseInt(x,10)*1e3}return~~(1<sj(b)}),{enabled:s,id:m})}}function sj(e){return Ko(e)?!1:\"code\"in e&&typeof e.code==\"number\"?e.code===-1||e.code===Ro.code||e.code===rs.code||e.code===429:e instanceof sc&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function oj(e,t=0){let n=3735928559^t,i=1103547991^t;for(let s=0;s>>16,2246822507),n^=Math.imul(i^i>>>16,3266489909),i=Math.imul(i^i>>>16,2246822507),i^=Math.imul(n^n>>>16,3266489909),(4294967296*(2097151&i)+(n>>>0)).toString(36)}function uj({chain:e,currentChainId:t}){if(!e)throw new $N;if(t!==e.id)throw new kN({chain:e,currentChainId:t})}function yl(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(i){return s=>{const u=typeof s==\"function\"?s(i):s,c={...i,...u};return Object.assign(c,{extend:n(c)})}}return Object.assign(t,{extend:n(t)})}function cj(){return{}}const F5=1024;function w4(e,t=\"hex\"){const n=(()=>{if(typeof e==\"string\"){if(e.length>3&&e.length%2!==0)throw new oB(e);return pr(e)}return e})(),i=sp(n,{recursiveReadLimit:Number.POSITIVE_INFINITY}),s=x4(i,t);if(i.position=F5)throw new uB({limit:F5});if(e.bytes.length===0)return t===\"hex\"?Rt(e.bytes):e.bytes;const i=e.readByte();if(i<128&&e.decrementPosition(1),i<192){const u=G5(e,i,128),c=e.readBytes(u);return t===\"hex\"?Rt(c):c}const s=G5(e,i,192);return lj(e,s,t,n+1)}function G5(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 ne(\"Invalid RLP prefix\")}function lj(e,t,n,i){const s=e.position,u=[];for(;e.position-s{(async()=>{let c;const f=new AbortController;try{n>0&&(c=setTimeout(()=>{i?f.abort():u(t)},n)),s(await e({signal:f?.signal||null}))}catch(d){if(f?.signal.aborted&&Ko(d)){u(t);return}u(d)}finally{clearTimeout(c)}})()})}function dj(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const K5=dj(),pj=10485760;function hj(e,t={}){const{url:n,headers:i}=mj(e);return{async request(s){const{body:u,fetchFn:c=t.fetchFn??fetch,maxResponseBodySize:f=t.maxResponseBodySize??pj,onRequest:d=t.onRequest,onResponse:p=t.onResponse,timeout:y=t.timeout??1e4}=s,m={...t.fetchOptions??{},...s.fetchOptions??{}},{headers:b,method:v,signal:x}=m;try{const S=await S4(async({signal:R})=>{const _={...m,body:Array.isArray(u)?sa(u.map(z=>({jsonrpc:\"2.0\",id:z.id??K5.take(),...z}))):sa({jsonrpc:\"2.0\",id:u.id??K5.take(),...u}),headers:{...i,\"Content-Type\":\"application/json\",...b},method:v||\"POST\",signal:x||(y>0?R:null)},C=new Request(n,_),P=await d?.(C,_)??{..._,url:n};return await c(P.url??n,P)},{errorInstance:new I5({body:u,url:n}),timeout:y,signal:!0});p&&await p(S);let E;const A=await yj(S,{maxResponseBodySize:f});if(S.headers.get(\"Content-Type\")?.startsWith(\"application/json\"))E=JSON.parse(A);else{E=A;try{E=JSON.parse(E||\"{}\")}catch(R){if(S.ok)throw R;E={error:E}}}if(!S.ok){if(typeof E.error?.code==\"number\"&&typeof E.error?.message==\"string\")return E;throw new sc({body:u,details:sa(E.error)||S.statusText,headers:S.headers,status:S.status,url:n})}return E}catch(S){throw x?.aborted?la(x):Ko(S)||S instanceof sc||S instanceof dd||S instanceof I5?S:new sc({body:u,cause:S,url:n})}}}}async function yj(e,{maxResponseBodySize:t}){if(t===!1)return e.text();const n=e.headers.get(\"Content-Length\");if(n){const f=Number(n);if(f>t)throw new dd({maxSize:t,size:f})}if(!e.body){const f=await e.text(),d=new TextEncoder().encode(f).length;if(d>t)throw new dd({maxSize:t,size:d});return f}const i=e.body.getReader(),s=new TextDecoder;let u=\"\",c=0;try{for(;;){const{done:f,value:d}=await i.read();if(f)break;if(c+=d.byteLength,c>t)throw await i.cancel(),new dd({maxSize:t,size:c});u+=s.decode(d,{stream:!0})}return u+=s.decode(),u}finally{i.releaseLock()}}function mj(e){try{const t=new URL(e),n=(()=>{if(t.username){const i=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username=\"\",t.password=\"\",{url:t.toString(),headers:{Authorization:`Basic ${btoa(i)}`}}}})();return{url:t.toString(),...n}}catch{return{url:e}}}const gj=\"0x8010801080108010801080108010801080108010801080108010801080108010\",bj=w8(\"(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data\");function E4(e){if(typeof e==\"string\"){if(Ee(e,-32)!==gj)throw new xj(e)}else ul(e.authorization)}function vj(e){E4(e);const t=Mo(Ee(e,-64,-32)),n=Ee(e,-t-64,-64),i=Ee(e,0,-t-64),[s,u,c]=O7(bj,n);return{authorization:Tk({address:s.delegation,chainId:Number(s.chainId),nonce:s.nonce,yParity:s.yParity,r:s.r,s:s.s}),signature:i,...c&&c!==\"0x\"?{data:c,to:u}:{}}}function wj(e){try{return E4(e),!0}catch{return!1}}let xj=class extends he{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\"})}};function Sj(e){const t=mE(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\"&&ft(t)>=192)return\"legacy\";throw new YN({serializedType:t})}function Ej(e){const t=Sj(e);return t===\"eip1559\"?Mj(e):t===\"eip2930\"?_j(e):t===\"eip4844\"?Tj(e):t===\"eip7702\"?Aj(e):Pj(e)}function Aj(e){const t=mp(e),[n,i,s,u,c,f,d,p,y,m,b,v,x]=t;if(t.length!==10&&t.length!==13)throw new fl({attributes:{chainId:n,nonce:i,maxPriorityFeePerGas:s,maxFeePerGas:u,gas:c,to:f,value:d,data:p,accessList:y,authorizationList:m,...t.length>9?{v:b,r:v,s:x}:{}},serializedTransaction:e,type:\"eip7702\"});const S={chainId:ft(n),type:\"eip7702\"};return Se(f)&&f!==\"0x\"&&(S.to=f),Se(c)&&c!==\"0x\"&&(S.gas=ke(c)),Se(p)&&p!==\"0x\"&&(S.data=p),Se(i)&&(S.nonce=i===\"0x\"?0:ft(i)),Se(d)&&d!==\"0x\"&&(S.value=ke(d)),Se(u)&&u!==\"0x\"&&(S.maxFeePerGas=ke(u)),Se(s)&&s!==\"0x\"&&(S.maxPriorityFeePerGas=ke(s)),y.length!==0&&y!==\"0x\"&&(S.accessList=gp(y)),m.length!==0&&m!==\"0x\"&&(S.authorizationList=Cj(m)),y4(S),{...t.length===13?ml(t):void 0,...S}}function Tj(e){const t=mp(e),n=t.length===4,i=n?t[0]:t,s=n?t.slice(1):[],[u,c,f,d,p,y,m,b,v,x,S,E,A,R]=i,[_,C,P]=s;if(!(i.length===11||i.length===14))throw new fl({attributes:{chainId:u,nonce:c,maxPriorityFeePerGas:f,maxFeePerGas:d,gas:p,to:y,value:m,data:b,accessList:v,...i.length>9?{v:E,r:A,s:R}:{}},serializedTransaction:e,type:\"eip4844\"});const I={blobVersionedHashes:S,chainId:ft(u),to:y,type:\"eip4844\"};return Se(p)&&p!==\"0x\"&&(I.gas=ke(p)),Se(b)&&b!==\"0x\"&&(I.data=b),Se(c)&&(I.nonce=c===\"0x\"?0:ft(c)),Se(m)&&m!==\"0x\"&&(I.value=ke(m)),Se(x)&&x!==\"0x\"&&(I.maxFeePerBlobGas=ke(x)),Se(d)&&d!==\"0x\"&&(I.maxFeePerGas=ke(d)),Se(f)&&f!==\"0x\"&&(I.maxPriorityFeePerGas=ke(f)),v.length!==0&&v!==\"0x\"&&(I.accessList=gp(v)),_&&C&&P&&(I.sidecars=pb({blobs:_,commitments:C,proofs:P})),m4(I),{...i.length===14?ml(i):void 0,...I}}function Mj(e){const t=mp(e),[n,i,s,u,c,f,d,p,y,m,b,v]=t;if(!(t.length===9||t.length===12))throw new fl({attributes:{chainId:n,nonce:i,maxPriorityFeePerGas:s,maxFeePerGas:u,gas:c,to:f,value:d,data:p,accessList:y,...t.length>9?{v:m,r:b,s:v}:{}},serializedTransaction:e,type:\"eip1559\"});const x={chainId:ft(n),type:\"eip1559\"};return Se(f)&&f!==\"0x\"&&(x.to=f),Se(c)&&c!==\"0x\"&&(x.gas=ke(c)),Se(p)&&p!==\"0x\"&&(x.data=p),Se(i)&&(x.nonce=i===\"0x\"?0:ft(i)),Se(d)&&d!==\"0x\"&&(x.value=ke(d)),Se(u)&&u!==\"0x\"&&(x.maxFeePerGas=ke(u)),Se(s)&&s!==\"0x\"&&(x.maxPriorityFeePerGas=ke(s)),y.length!==0&&y!==\"0x\"&&(x.accessList=gp(y)),hp(x),{...t.length===12?ml(t):void 0,...x}}function _j(e){const t=mp(e),[n,i,s,u,c,f,d,p,y,m,b]=t;if(!(t.length===8||t.length===11))throw new fl({attributes:{chainId:n,nonce:i,gasPrice:s,gas:u,to:c,value:f,data:d,accessList:p,...t.length>8?{v:y,r:m,s:b}:{}},serializedTransaction:e,type:\"eip2930\"});const v={chainId:ft(n),type:\"eip2930\"};return Se(c)&&c!==\"0x\"&&(v.to=c),Se(u)&&u!==\"0x\"&&(v.gas=ke(u)),Se(d)&&d!==\"0x\"&&(v.data=d),Se(i)&&(v.nonce=i===\"0x\"?0:ft(i)),Se(f)&&f!==\"0x\"&&(v.value=ke(f)),Se(s)&&s!==\"0x\"&&(v.gasPrice=ke(s)),p.length!==0&&p!==\"0x\"&&(v.accessList=gp(p)),g4(v),{...t.length===11?ml(t):void 0,...v}}function Pj(e){const t=w4(e,\"hex\"),[n,i,s,u,c,f,d,p,y]=t;if(!(t.length===6||t.length===9))throw new fl({attributes:{nonce:n,gasPrice:i,gas:s,to:u,value:c,data:f,...t.length>6?{v:d,r:p,s:y}:{}},serializedTransaction:e,type:\"legacy\"});const m={type:\"legacy\"};if(Se(u)&&u!==\"0x\"&&(m.to=u),Se(s)&&s!==\"0x\"&&(m.gas=ke(s)),Se(f)&&f!==\"0x\"&&(m.data=f),Se(n)&&(m.nonce=n===\"0x\"?0:ft(n)),Se(c)&&c!==\"0x\"&&(m.value=ke(c)),Se(i)&&i!==\"0x\"&&(m.gasPrice=ke(i)),b4(m),t.length===6)return m;const b=Se(d)&&d!==\"0x\"?ke(d):0n;if(y===\"0x\"&&p===\"0x\")return b>0&&(m.chainId=Number(b)),m;const v=b,x=Number((v-35n)/2n);if(x>0)m.chainId=x;else if(v!==27n&&v!==28n)throw new jE({v});return m.v=v,m.s=y,m.r=p,m.yParity=v%2n===0n?1:0,m}function mp(e){return w4(`0x${e.slice(4)}`,\"hex\")}function gp(e){const t=[];for(let n=0;nfj(u)?u:_r(u))})}return t}function Cj(e){const t=[];for(let n=0;n{if(s===0||s===1)return s;if(i&&(i===27n||i===28n||i>=35n))return i%2n===0n?1:0;throw new Error(\"Invalid `v` or `yParity` value\")})(),c=`0x${new ep.Signature(ke(e),ke(t)).toCompactHex()}${u===0?\"1b\":\"1c\"}`;return n===\"hex\"?c:pr(c)}async function Bj(e,t){const{address:n,chain:i=e.chain,hash:s,erc6492VerifierAddress:u=t.universalSignatureVerifierAddress??i?.contracts?.erc6492Verifier?.address,multicallAddress:c=t.multicallAddress??i?.contracts?.multicall3?.address,mode:f=\"auto\"}=t;if(i?.verifyHash)return await i.verifyHash(e,t);const d=(()=>{const p=t.signature;return Se(p)?p:typeof p==\"object\"&&\"r\"in p&&\"s\"in p?$j(p):Rt(p)})();try{if(f===\"eoa\")try{if(tr(Ga(n),await zm({hash:s,signature:d})))return!0}catch{}return wj(d)?await Nj(e,{...t,multicallAddress:c,signature:d}):await Lj(e,{...t,verifierAddress:u,signature:d})}catch(p){if(f!==\"eoa\")try{if(tr(Ga(n),await zm({hash:s,signature:d})))return!0}catch{}if(p instanceof ss)return!1;throw p}}async function Nj(e,t){const{address:n,blockHash:i,blockNumber:s,blockTag:u,hash:c,multicallAddress:f,requireCanonical:d}=t,{authorization:p,data:y,signature:m,to:b}=vj(t.signature);if(await h4(e,{address:n,blockHash:i,blockNumber:s,blockTag:u,requireCanonical:d})===Vt([\"0xef0100\",p.address]))return await jj(e,{...t,signature:m});const x={address:p.address,chainId:Number(p.chainId),nonce:Number(p.nonce),r:de(p.r,{size:32}),s:de(p.s,{size:32}),yParity:p.yParity};if(!await nj({address:n,authorization:x}))throw new ss;const E=await nt(e,Cr,\"readContract\")({...f?{address:f}:{code:FE},authorizationList:[x],abi:hm,blockHash:i,blockNumber:s,blockTag:\"pending\",functionName:\"aggregate3\",requireCanonical:d,args:[[...y?[{allowFailure:!0,target:b??n,callData:y}]:[],{allowFailure:!0,target:n,callData:Go({abi:nE,functionName:\"isValidSignature\",args:[c,m]})}]]});if(E[E.length-1]?.returnData?.startsWith(\"0x1626ba7e\"))return!0;throw new ss}async function Lj(e,t){const{address:n,factory:i,factoryData:s,hash:u,signature:c,verifierAddress:f,...d}=t,p=await(async()=>!i&&!s||Ij(c)?c:Oj({data:s,signature:c,to:i}))(),y=f?{to:f,data:Go({abi:S5,functionName:\"isValidSig\",args:[n,u,p]}),...d}:{data:sb({abi:S5,args:[n,u,p],bytecode:dL}),...d},{data:m}=await nt(e,VE,\"call\")(y).catch(b=>{throw b instanceof UE?new ss:b});if(dB(m??\"0x0\"))return!0;throw new ss}async function jj(e,t){const{address:n,blockHash:i,blockNumber:s,blockTag:u,hash:c,requireCanonical:f,signature:d}=t;if((await nt(e,Cr,\"readContract\")({address:n,abi:nE,args:[c,d],blockHash:i,blockNumber:s,blockTag:u,functionName:\"isValidSignature\",requireCanonical:f}).catch(y=>{throw y instanceof DE?new ss:y})).startsWith(\"0x1626ba7e\"))return!0;throw new ss}let ss=class extends Error{};class T4 extends ne{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(`\n`),{docsPath:t,docsSlug:\"account\",name:\"AccountNotFoundError\"})}}class _y extends ne{constructor({docsPath:t,metaMessages:n,type:i}){super(`Account type \"${i}\" is not supported.`,{docsPath:t,metaMessages:n,name:\"AccountTypeNotSupportedError\"})}}async function Uj(e,{serializedTransaction:t}){return e.request({method:\"eth_sendRawTransaction\",params:[t]},{retryCount:0})}const Py=new cl(128);async function M4(e,t){const{account:n=e.account,assertChainId:i=!0,chain:s=e.chain,accessList:u,authorizationList:c,blobs:f,data:d,dataSuffix:p=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,gas:y,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:S,type:E,value:A,...R}=t;if(typeof n>\"u\")throw new T4({docsPath:\"/docs/actions/wallet/sendTransaction\"});const _=n?ut(n):null;let C;try{dl(t);const P=await(async()=>{if(t.to)return t.to;if(t.to!==null&&c&&c.length>0)return await ub({authorization:c[0]}).catch(()=>{throw new ne(\"`to` is required. Could not infer from `authorizationList`.\")})})();if(_?.type===\"json-rpc\"||_===null){let I;s!==null&&(I=await nt(e,yb,\"getChainId\")({}),i&&uj({currentChainId:I,chain:s}));const z=e.chain?.formatters?.transactionRequest?.format,L=(z||Vo)({...dp(R,{format:z}),accessList:u,account:_,authorizationList:c,blobs:f,chainId:I,data:p?P5([d??\"0x\",p]):d,gas:y,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:S,to:P,type:E,value:A},\"sendTransaction\"),D=Py.get(e.uid),Q=D?\"wallet_sendTransaction\":\"eth_sendTransaction\";try{return await e.request({method:Q,params:[L]},{retryCount:0})}catch(Y){if(D===!1)throw Y;const te=Y;if(te.name===\"InvalidInputRpcError\"||te.name===\"InvalidParamsRpcError\"||te.name===\"MethodNotFoundRpcError\"||te.name===\"MethodNotSupportedRpcError\")return await e.request({method:\"wallet_sendTransaction\",params:[L]},{retryCount:0}).then(ue=>(Py.set(e.uid,!0),ue)).catch(ue=>{const J=ue;throw J.name===\"MethodNotFoundRpcError\"||J.name===\"MethodNotSupportedRpcError\"?(Py.set(e.uid,!1),te):J});throw te}}if(_?.type===\"local\"){const I=(()=>{if(!_.nonceManager||typeof S<\"u\")return _.nonceManager;const Y=_.nonceManager;return{consume(te){return C={address:te.address,chainId:te.chainId},Y.consume(te)},get(te){return Y.get(te)},increment(te){return Y.increment(te)},reset(te){return Y.reset(te)}}})(),z=await nt(e,l4,\"prepareTransactionRequest\")({account:_,accessList:u,authorizationList:c,blobs:f,chain:s,data:p?P5([d??\"0x\",p]):d,gas:y,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:S,nonceManager:I,parameters:[...c4,\"sidecars\"],type:E,value:A,...R,to:P}),k=s?.serializers?.transaction,L=await _.signTransaction(z,{serializer:k}),D=(s??e.chain)?.serializers?.transactionEnvelope,Q=D?await D({serializedTransaction:L,transaction:z}):L;return await nt(e,Uj,\"sendRawTransaction\")({serializedTransaction:Q})}throw _?.type===\"smart\"?new _y({metaMessages:[\"Consider using the `sendUserOperation` Action instead.\"],docsPath:\"/docs/actions/bundler/sendUserOperation\",type:\"smart\"}):new _y({docsPath:\"/docs/actions/wallet/sendTransaction\",type:_?.type})}catch(P){throw P instanceof _y?P:(C&&_?.nonceManager?.reset(C),u4(P,{...t,account:_,chain:t.chain||void 0}))}}async function os(e,t){return os.internal(e,M4,\"sendTransaction\",t)}(function(e){async function t(n,i,s,u){const{abi:c,account:f=n.account,address:d,args:p,functionName:y,...m}=u;if(typeof f>\"u\")throw new T4({docsPath:\"/docs/contract/writeContract\"});const b=f?ut(f):null,v=Go({abi:c,args:p,functionName:y});try{return await nt(n,i,s)({data:v,to:d,account:b,...m})}catch(x){throw qE(x,{abi:c,address:d,args:p,docsPath:\"/docs/contract/writeContract\",functionName:y,sender:b?.address})}}e.internal=t})(os||(os={}));const pd=\"3.6.5\",Dj=()=>`@wagmi/core@${pd}`;var _4=function(e,t,n,i){if(n===\"a\"&&!i)throw new TypeError(\"Private accessor was defined without a getter\");if(typeof t==\"function\"?e!==t||!i:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return n===\"m\"?i:n===\"a\"?i.call(e):i?i.value:t.get(e)},Rd,P4;let C4=class Om extends Error{get docsBaseUrl(){return\"https://wagmi.sh/core\"}get version(){return Dj()}constructor(t,n={}){super(),Rd.add(this),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:\"WagmiCoreError\"});const i=n.cause instanceof Om?n.cause.details:n.cause?.message?n.cause.message:n.details,s=n.cause instanceof Om&&n.cause.docsPath||n.docsPath;this.message=[t||\"An error occurred.\",\"\",...n.metaMessages?[...n.metaMessages,\"\"]:[],...s?[`Docs: ${this.docsBaseUrl}${s}.html${n.docsSlug?`#${n.docsSlug}`:\"\"}`]:[],...i?[`Details: ${i}`]:[],`Version: ${this.version}`].join(`\n`),n.cause&&(this.cause=n.cause),this.details=i,this.docsPath=s,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return _4(this,Rd,\"m\",P4).call(this,this,t)}};Rd=new WeakSet,P4=function e(t,n){return n?.(t)?t:t.cause?_4(this,Rd,\"m\",e).call(this,t.cause,n):t};class Im extends C4{constructor(){super(\"Chain not configured.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ChainNotConfiguredError\"})}}const km=256;let Wf=km,ed;function z4(e=11){if(!ed||Wf+e>km*2){ed=\"\",Wf=0;for(let t=0;t{const z=I(P);for(const L in _)delete z[L];const k={...P,...z};for(const L in z){const D=P[L],Q=z[L];V5(D)&&V5(Q)&&(k[L]={...D,...Q})}return Object.assign(k,{extend:C(k)})}}return Object.assign(_,{extend:C(_)})}function V5(e){if(typeof e!=\"object\"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function qj({key:e,methods:t,name:n,request:i,retryCount:s=3,retryDelay:u=150,timeout:c,type:f},d){const p=z4();return{config:{key:e,methods:t,name:n,request:i,retryCount:s,retryDelay:u,timeout:c,type:f},request:aj(i,{methods:t,retryCount:s,retryDelay:u,uid:p}),value:d}}class Fj extends ne{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 Gj=0;const Q5=new WeakMap;function Kj(e){if(!e)return\"default\";const t=Q5.get(e);if(t!==void 0)return t;const n=Gj++;return Q5.set(e,n),n}function Z5(e,t={}){const{batch:n,fetchFn:i,fetchOptions:s,key:u=\"http\",maxResponseBodySize:c,methods:f,name:d=\"HTTP JSON-RPC\",onFetchRequest:p,onFetchResponse:y,retryDelay:m,raw:b}=t;return({chain:v,retryCount:x,timeout:S})=>{const{batchSize:E=1e3,wait:A=0}=typeof n==\"object\"?n:{},R=t.retryCount??x,_=S??t.timeout??1e4,C=v?.rpcUrls.default.http[0];if(!C)throw new Fj;const P=hj(C,{fetchFn:i,fetchOptions:s,maxResponseBodySize:c,onRequest:p,onResponse:y,timeout:_});return qj({key:u,methods:f,name:d,async request({method:I,params:z},k){const L={method:I,params:z},D=k?.signal?{signal:k.signal}:void 0,{schedule:Q}=GE({id:`${C}.${Kj(k?.signal)}`,wait:A,shouldSplitBatch(J){return J.length>E},fn:J=>P.request({body:J,fetchOptions:D}),sort:(J,N)=>J.id-N.id}),Y=async J=>n?Q(J):[await P.request({body:J,fetchOptions:D})],[{error:te,result:ue}]=await Y(L);if(b)return{error:te,result:ue};if(te)throw new ab({body:L,error:te,url:C});return ue},retryCount:R,retryDelay:m,timeout:_,type:\"http\"},{fetchOptions:s,url:C})}}let Cy=!1;async function Vj(e,t={}){if(Cy)return[];Cy=!0,e.setState(p=>({...p,status:p.current?\"reconnecting\":\"connecting\"}));const n=[];if(t.connectors?.length)for(const p of t.connectors){let y;typeof p==\"function\"?y=e._internal.connectors.setup(p):y=p,n.push(y)}else n.push(...e.connectors);let i;try{i=await e.storage?.getItem(\"recentConnectorId\")}catch{}const s={};for(const[,p]of e.state.connections)s[p.connector.id]=1;i&&(s[i]=0);const u=Object.keys(s).length>0?[...n].sort((p,y)=>(s[p.id]??10)-(s[y.id]??10)):n;let c=!1;const f=[],d=[];for(const p of u){const y=await p.getProvider().catch(()=>{});if(!y||d.some(v=>v===y)||!await p.isAuthorized())continue;const b=await p.connect({isReconnecting:!0}).catch(()=>null);b&&(p.emitter.off(\"connect\",e._internal.events.connect),p.emitter.on(\"change\",e._internal.events.change),p.emitter.on(\"disconnect\",e._internal.events.disconnect),e.setState(v=>{const x=new Map(c?v.connections:new Map).set(p.uid,{accounts:b.accounts,chainId:b.chainId,connector:p});return{...v,current:c?v.current:p.uid,connections:x}}),f.push({accounts:b.accounts,chainId:b.chainId,connector:p}),d.push(y),c=!0)}return(e.state.status===\"reconnecting\"||e.state.status===\"connecting\")&&(c?e.setState(p=>({...p,status:\"connected\"})):e.setState(p=>({...p,connections:new Map,current:null,status:\"disconnected\"}))),Cy=!1,f}class io extends C4{constructor(){super(\"Provider not found.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ProviderNotFoundError\"})}}mb.type=\"injected\";function mb(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function i(){const d=e.target;if(typeof d==\"function\"){const p=d();if(p)return p}return typeof d==\"object\"?d:typeof d==\"string\"?{...Qj[d]??{id:d,name:`${d[0].toUpperCase()}${d.slice(1)}`,provider:`is${d[0].toUpperCase()}${d.slice(1)}`}}:{id:\"injected\",name:\"Injected\",provider(p){return p?.ethereum}}}let s,u,c,f;return d=>({get icon(){return i().icon},get id(){return i().id},get name(){return i().name},type:mb.type,async setup(){const p=await this.getProvider();p?.on&&e.target&&(c||(c=this.onConnect.bind(this),p.on(\"connect\",c)),s||(s=this.onAccountsChanged.bind(this),p.on(\"accountsChanged\",s)))},async connect({chainId:p,isReconnecting:y,withCapabilities:m}={}){const b=await this.getProvider();if(!b)throw new io;let v=[];if(y)v=await this.getAccounts().catch(()=>[]);else if(t)try{v=(await b.request({method:\"wallet_requestPermissions\",params:[{eth_accounts:{}}]}))[0]?.caveats?.[0]?.value?.map(S=>Ga(S)),v.length>0&&(v=await this.getAccounts())}catch(x){const S=x;if(S.code===Yt.code)throw new Yt(S);if(S.code===oa.code)throw S}try{!v?.length&&!y&&(v=(await b.request({method:\"eth_requestAccounts\"})).map(E=>Ga(E))),c&&(b.removeListener(\"connect\",c),c=void 0),s||(s=this.onAccountsChanged.bind(this),b.on(\"accountsChanged\",s)),u||(u=this.onChainChanged.bind(this),b.on(\"chainChanged\",u)),f||(f=this.onDisconnect.bind(this),b.on(\"disconnect\",f));let x=await this.getChainId();return p&&x!==p&&(x=(await this.switchChain({chainId:p}).catch(E=>{if(E.code===Yt.code)throw E;return{id:x}}))?.id??x),t&&await d.storage?.removeItem(`${this.id}.disconnected`),e.target||await d.storage?.setItem(\"injected.connected\",!0),{accounts:m?v.map(S=>({address:S,capabilities:{}})):v,chainId:x}}catch(x){const S=x;throw S.code===Yt.code?new Yt(S):S.code===oa.code?new oa(S):S}},async disconnect(){const p=await this.getProvider();if(!p)throw new io;u&&(p.removeListener(\"chainChanged\",u),u=void 0),f&&(p.removeListener(\"disconnect\",f),f=void 0),c||(c=this.onConnect.bind(this),p.on(\"connect\",c));try{await S4(()=>p.request({method:\"wallet_revokePermissions\",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await d.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await d.storage?.removeItem(\"injected.connected\")},async getAccounts(){const p=await this.getProvider();if(!p)throw new io;return(await p.request({method:\"eth_accounts\"})).map(m=>Ga(m))},async getChainId(){const p=await this.getProvider();if(!p)throw new io;const y=await p.request({method:\"eth_chainId\"});return Number(y)},async getProvider(){if(typeof window>\"u\")return;let p;const y=i();return typeof y.provider==\"function\"?p=y.provider(window):typeof y.provider==\"string\"?p=hd(window,y.provider):p=y.provider,p&&!p.removeListener&&(\"off\"in p&&typeof p.off==\"function\"?p.removeListener=p.off:p.removeListener=()=>{}),p},async isAuthorized(){try{if(t&&await d.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await d.storage?.getItem(\"injected.connected\"))return!1;if(!await this.getProvider()){if(n!==void 0&&n!==!1){const b=async()=>(typeof window<\"u\"&&window.removeEventListener(\"ethereum#initialized\",b),!!await this.getProvider()),v=typeof n==\"number\"?n:1e3;if(await Promise.race([...typeof window<\"u\"?[new Promise(S=>window.addEventListener(\"ethereum#initialized\",()=>S(b()),{once:!0}))]:[],new Promise(S=>setTimeout(()=>S(b()),v))]))return!0}throw new io}return!!(await v4(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:p,chainId:y}){const m=await this.getProvider();if(!m)throw new io;const b=d.chains.find(x=>x.id===y);if(!b)throw new is(new Im);const v=new Promise(x=>{const S=(E=>{\"chainId\"in E&&E.chainId===y&&(d.emitter.off(\"change\",S),x())});d.emitter.on(\"change\",S)});try{return await Promise.all([m.request({method:\"wallet_switchEthereumChain\",params:[{chainId:de(y)}]}).then(async()=>{await this.getChainId()===y&&d.emitter.emit(\"change\",{chainId:y})}),v]),b}catch(x){const S=x;if(S.code===4902||S?.data?.originalError?.code===4902)try{const{default:E,...A}=b.blockExplorers??{};let R;p?.blockExplorerUrls?R=p.blockExplorerUrls:E&&(R=[E.url,...Object.values(A).map(P=>P.url)]);let _;p?.rpcUrls?.length?_=p.rpcUrls:_=[b.rpcUrls.default?.http[0]??\"\"];const C={blockExplorerUrls:R,chainId:de(y),chainName:p?.chainName??b.name,iconUrls:p?.iconUrls,nativeCurrency:p?.nativeCurrency??b.nativeCurrency,rpcUrls:_};return await Promise.all([m.request({method:\"wallet_addEthereumChain\",params:[C]}).then(async()=>{if(await this.getChainId()===y)d.emitter.emit(\"change\",{chainId:y});else throw new Yt(new Error(\"User rejected switch after adding network.\"))}),v]),b}catch(E){throw new Yt(E)}throw S.code===Yt.code?new Yt(S):new is(S)}},async onAccountsChanged(p){if(p.length===0)this.onDisconnect();else if(d.emitter.listenerCount(\"connect\")){const y=(await this.getChainId()).toString();this.onConnect({chainId:y}),t&&await d.storage?.removeItem(`${this.id}.disconnected`)}else d.emitter.emit(\"change\",{accounts:p.map(y=>Ga(y))})},onChainChanged(p){const y=Number(p);d.emitter.emit(\"change\",{chainId:y})},async onConnect(p){const y=await this.getAccounts();if(y.length===0)return;const m=Number(p.chainId);d.emitter.emit(\"connect\",{accounts:y,chainId:m});const b=await this.getProvider();b&&(c&&(b.removeListener(\"connect\",c),c=void 0),s||(s=this.onAccountsChanged.bind(this),b.on(\"accountsChanged\",s)),u||(u=this.onChainChanged.bind(this),b.on(\"chainChanged\",u)),f||(f=this.onDisconnect.bind(this),b.on(\"disconnect\",f)))},async onDisconnect(p){const y=await this.getProvider();p&&p.code===1013&&y&&(await this.getAccounts()).length||(d.emitter.emit(\"disconnect\"),y&&(u&&(y.removeListener(\"chainChanged\",u),u=void 0),f&&(y.removeListener(\"disconnect\",f),f=void 0),c||(c=this.onConnect.bind(this),y.on(\"connect\",c))))}})}const Qj={coinbaseWallet:{id:\"coinbaseWallet\",name:\"Coinbase Wallet\",provider(e){return e?.coinbaseWalletExtension?e.coinbaseWalletExtension:hd(e,\"isCoinbaseWallet\")}},metaMask:{id:\"metaMask\",name:\"MetaMask\",provider(e){return hd(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;const n=[\"isApexWallet\",\"isAvalanche\",\"isBitKeep\",\"isBlockWallet\",\"isKuCoinWallet\",\"isMathWallet\",\"isOkxWallet\",\"isOKExWallet\",\"isOneInchIOSWallet\",\"isOneInchAndroidWallet\",\"isOpera\",\"isPhantom\",\"isPortal\",\"isRabby\",\"isTokenPocket\",\"isTokenary\",\"isUniswapWallet\",\"isZerion\"];for(const i of n)if(t[i])return!1;return!0})}},phantom:{id:\"phantom\",name:\"Phantom\",provider(e){return e?.phantom?.ethereum?e.phantom?.ethereum:hd(e,\"isPhantom\")}}};function hd(e,t){function n(s){return typeof t==\"function\"?t(s):typeof t==\"string\"?s[t]:!0}const i=e.ethereum;if(i?.providers)return i.providers.find(s=>n(s));if(i&&n(i))return i}function Zj(e){if(typeof window>\"u\")return;const t=n=>e(n.detail);return window.addEventListener(\"eip6963:announceProvider\",t),window.dispatchEvent(new CustomEvent(\"eip6963:requestProvider\")),()=>window.removeEventListener(\"eip6963:announceProvider\",t)}function Yj(){const e=new Set;let t=[];const n=()=>Zj(s=>{t.some(({info:u})=>u.uuid===s.info.uuid)||(t=[...t,s],e.forEach(u=>u(t,{added:[s]})))});let i=n();return{_listeners(){return e},clear(){e.forEach(s=>s([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),i?.()},findProvider({rdns:s}){return t.find(u=>u.info.rdns===s)},getProviders(){return t},reset(){this.clear(),i?.(),i=n()},subscribe(s,{emitImmediately:u}={}){return e.add(s),u&&s(t,{added:t}),()=>e.delete(s)}}}const Xj=e=>(t,n,i)=>{const s=i.subscribe;return i.subscribe=(c,f,d)=>{let p=c;if(f){const y=d?.equalityFn||Object.is;let m=c(i.getState());p=b=>{const v=c(b);if(!y(m,v)){const x=m;f(m=v,x)}},d?.fireImmediately&&f(m,m)}return s(p)},e(t,n,i)},Jj=Xj;function Wj(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var u;const c=d=>d===null?null:JSON.parse(d,void 0),f=(u=n.getItem(s))!=null?u:null;return f instanceof Promise?f.then(c):c(f)},setItem:(s,u)=>n.setItem(s,JSON.stringify(u,void 0)),removeItem:s=>n.removeItem(s)}}const $m=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(i){return $m(i)(n)},catch(i){return this}}}catch(n){return{then(i){return this},catch(i){return $m(i)(n)}}}},eU=(e,t)=>(n,i,s)=>{let u={storage:Wj(()=>localStorage),partialize:S=>S,version:0,merge:(S,E)=>({...E,...S}),...t},c=!1;const f=new Set,d=new Set;let p=u.storage;if(!p)return e((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),n(...S)},i,s);const y=()=>{const S=u.partialize({...i()});return p.setItem(u.name,{state:S,version:u.version})},m=s.setState;s.setState=(S,E)=>{m(S,E),y()};const b=e((...S)=>{n(...S),y()},i,s);s.getInitialState=()=>b;let v;const x=()=>{var S,E;if(!p)return;c=!1,f.forEach(R=>{var _;return R((_=i())!=null?_:b)});const A=((E=u.onRehydrateStorage)==null?void 0:E.call(u,(S=i())!=null?S:b))||void 0;return $m(p.getItem.bind(p))(u.name).then(R=>{if(R)if(typeof R.version==\"number\"&&R.version!==u.version){if(u.migrate)return[!0,u.migrate(R.state,R.version)];console.error(\"State loaded from storage couldn't be migrated since no migrate function was provided\")}else return[!1,R.state];return[!1,void 0]}).then(R=>{var _;const[C,P]=R;if(v=u.merge(P,(_=i())!=null?_:b),n(v,!0),C)return y()}).then(()=>{A?.(v,void 0),v=i(),c=!0,d.forEach(R=>R(v))}).catch(R=>{A?.(void 0,R)})};return s.persist={setOptions:S=>{u={...u,...S},S.storage&&(p=S.storage)},clearStorage:()=>{p?.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>x(),hasHydrated:()=>c,onHydrate:S=>(f.add(S),()=>{f.delete(S)}),onFinishHydration:S=>(d.add(S),()=>{d.delete(S)})},u.skipHydration||x(),v||b},tU=eU,Y5=e=>{let t;const n=new Set,i=(p,y)=>{const m=typeof p==\"function\"?p(t):p;if(!Object.is(m,t)){const b=t;t=y??(typeof m!=\"object\"||m===null)?m:Object.assign({},t,m),n.forEach(v=>v(t,b))}},s=()=>t,f={setState:i,getState:s,getInitialState:()=>d,subscribe:p=>(n.add(p),()=>n.delete(p))},d=t=e(i,s,f);return f},zy=e=>e?Y5(e):Y5;class nU{constructor(t){Object.defineProperty(this,\"uid\",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,\"_emitter\",{enumerable:!0,configurable:!0,writable:!0,value:new Gk})}on(t,n){this._emitter.on(t,n)}once(t,n){this._emitter.once(t,n)}off(t,n){this._emitter.off(t,n)}emit(t,...n){const i=n[0];this._emitter.emit(t,{uid:this.uid,...i})}listenerCount(t){return this._emitter.listenerCount(t)}}function rU(e){return new nU(e)}function iU(e,t){return JSON.parse(e,(n,i)=>{let s=i;return s?.__type===\"bigint\"&&(s=BigInt(s.value)),s?.__type===\"Map\"&&(s=new Map(s.value)),t?.(n,s)??s})}function X5(e,t){return e.slice(0,t).join(\".\")||\".\"}function J5(e,t){const{length:n}=e;for(let i=0;i{let c=u;return typeof c==\"bigint\"&&(c={__type:\"bigint\",value:u.toString()}),c instanceof Map&&(c={__type:\"Map\",value:Array.from(u.entries())}),t?.(s,c)??c},i),n??void 0)}function oU(e){const{deserialize:t=iU,key:n=\"wagmi\",serialize:i=sU,storage:s=R4}=e;function u(c){return c instanceof Promise?c.then(f=>f).catch(()=>null):c}return{...s,key:n,async getItem(c,f){const d=s.getItem(`${n}.${c}`),p=await u(d);return p?t(p)??null:f??null},async setItem(c,f){const d=`${n}.${c}`;f===null?await u(s.removeItem(d)):await u(s.setItem(d,i(f)))},async removeItem(c){await u(s.removeItem(`${n}.${c}`))}}}const R4={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function uU(){const e=typeof window<\"u\"&&window.localStorage?window.localStorage:R4;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch{}}}}const Bm=256;let td=Bm,nd;function cU(e=11){if(!nd||td+e>Bm*2){nd=\"\",td=0;for(let t=0;tu.chains),d=zy(()=>{const P=[],I=new Set;for(const z of u.connectors??[]){const k=p(z);if(P.push(k),!s&&k.rdns){const L=typeof k.rdns==\"string\"?[k.rdns]:k.rdns;for(const D of L)I.add(D)}}if(!s&&c){const z=c.getProviders();for(const k of z)I.has(k.info.rdns)||P.push(p(y(k)))}return P});function p(P){const I=rU(cU());let z;const k={...P({emitter:I,chains:f.getState(),get providers(){if(!c||!z)return[];const L=typeof z==\"string\"?[z]:z,D=c.getProviders();return L.flatMap(Q=>D.filter(Y=>Y.info.rdns===Q))},storage:n,transports:u.transports}),emitter:I,uid:I.uid};return z=k.rdns,I.on(\"connect\",_),k.setup?.(),k}function y(P){const{info:I}=P,z=P.provider;return mb({target:{...I,id:I.rdns,provider:z}})}const m=new Map;function b(P={}){const I=P.chainId??E.getState().chainId,z=f.getState().find(L=>L.id===I);if(P.chainId&&!z)throw new Im;{const L=m.get(E.getState().chainId);if(L&&!z)return L;if(!z)throw new Im}{const L=m.get(I);if(L)return L}let k;if(u.client)k=u.client({chain:z});else{const L=z.id,D=f.getState().map(te=>te.id),Q={},Y=Object.entries(u);for(const[te,ue]of Y)if(!(te===\"chains\"||te===\"client\"||te===\"connectors\"||te===\"transports\"))if(typeof ue==\"object\")if(L in ue)Q[te]=ue[L];else{if(D.some(N=>N in ue))continue;Q[te]=ue}else Q[te]=ue;k=Hj({...Q,chain:z,batch:Q.batch??{multicall:!0},transport:te=>u.transports[L]({...te,connectors:d})})}return m.set(I,k),k}function v(){return{chainId:f.getState()[0].id,connections:new Map,current:null,status:\"disconnected\"}}let x;const S=\"0.0.0-canary-\";pd.startsWith(S)?x=Number.parseInt(pd.replace(S,\"\"),10):x=Number.parseInt(pd.split(\".\")[0]??\"0\",10);const E=zy(Jj(n?tU(v,{migrate(P,I){if(I===x)return P;const z=v(),k=A(P,z.chainId);return{...z,chainId:k}},name:\"store\",partialize(P){return{connections:{__type:\"Map\",value:Array.from(P.connections.entries()).map(([I,z])=>{const{id:k,name:L,type:D,uid:Q}=z.connector;return[I,{...z,connector:{id:k,name:L,type:D,uid:Q}}]})},chainId:P.chainId,current:P.current}},merge(P,I){typeof P==\"object\"&&P&&\"status\"in P&&delete P.status;const z=A(P,I.chainId);return{...I,...P,chainId:z}},skipHydration:s,storage:n,version:x}):v));E.setState(v());function A(P,I){return P&&typeof P==\"object\"&&\"chainId\"in P&&typeof P.chainId==\"number\"&&f.getState().some(z=>z.id===P.chainId)?P.chainId:I}i&&E.subscribe(({connections:P,current:I})=>I?P.get(I)?.chainId:void 0,P=>{if(f.getState().some(z=>z.id===P))return E.setState(z=>({...z,chainId:P??z.chainId}))}),c?.subscribe(P=>{const I=new Set,z=new Set;for(const L of d.getState())if(I.add(L.id),L.rdns){const D=typeof L.rdns==\"string\"?[L.rdns]:L.rdns;for(const Q of D)z.add(Q)}const k=[];for(const L of P){if(z.has(L.info.rdns))continue;const D=p(y(L));I.has(D.id)||k.push(D)}n&&!E.persist.hasHydrated()||d.setState(L=>[...L,...k],!0)});function R(P){E.setState(I=>{const z=I.connections.get(P.uid);return z?{...I,connections:new Map(I.connections).set(P.uid,{accounts:P.accounts??z.accounts,chainId:P.chainId??z.chainId,connector:z.connector})}:I})}function _(P){E.getState().status===\"connecting\"||E.getState().status===\"reconnecting\"||E.setState(I=>{const z=d.getState().find(k=>k.uid===P.uid);return z?(z.emitter.listenerCount(\"connect\")&&z.emitter.off(\"connect\",R),z.emitter.listenerCount(\"change\")||z.emitter.on(\"change\",R),z.emitter.listenerCount(\"disconnect\")||z.emitter.on(\"disconnect\",C),{...I,connections:new Map(I.connections).set(P.uid,{accounts:P.accounts,chainId:P.chainId,connector:z}),current:P.uid,status:\"connected\"}):I})}function C(P){E.setState(I=>{const z=I.connections.get(P.uid);if(z){const L=z.connector;L.emitter.listenerCount(\"change\")&&z.connector.emitter.off(\"change\",R),L.emitter.listenerCount(\"disconnect\")&&z.connector.emitter.off(\"disconnect\",C),L.emitter.listenerCount(\"connect\")||z.connector.emitter.on(\"connect\",_)}if(I.connections.delete(P.uid),I.connections.size===0)return{...I,connections:new Map,current:null,status:\"disconnected\"};const k=I.connections.values().next().value;return{...I,connections:new Map(I.connections),current:k.connector.uid}})}return{get chains(){return f.getState()},get connectors(){return d.getState()},storage:n,getClient:b,get state(){return E.getState()},setState(P){let I;typeof P==\"function\"?I=P(E.getState()):I=P;const z=v();typeof I!=\"object\"&&(I=z),Object.keys(z).some(L=>!(L in I))&&(I=z),E.setState(I,!0)},subscribe(P,I,z){return E.subscribe(P,I,z?{...z,fireImmediately:z.emitImmediately}:void 0)},_internal:{mipd:c,async revalidate(){const P=E.getState(),I=P.connections;let z=P.current;for(const[,k]of I){const L=k.connector;L.isAuthorized&&await L.isAuthorized()||(I.delete(L.uid),z===L.uid&&(z=null))}E.setState(k=>({...k,connections:I,current:z}))},store:E,ssr:!!s,syncConnectedChain:i,transports:u.transports,chains:{setState(P){const I=typeof P==\"function\"?P(f.getState()):P;if(I.length!==0)return f.setState(I,!0)},subscribe(P){return f.subscribe(P)}},connectors:{providerDetailToConnector:y,setup:p,setState(P){return d.setState(typeof P==\"function\"?P(d.getState()):P,!0)},subscribe(P){return d.subscribe(P)}},events:{change:R,connect:_,disconnect:C}}}}function fU(e,t){const{initialState:n,reconnectOnMount:i}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(s=>s.id===n.chainId)?n.chainId:e.chains[0].id,connections:i?n.connections:new Map,status:i?\"reconnecting\":\"disconnected\"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(s=>{const u=new Set;for(const d of s??[])if(d.rdns){const p=Array.isArray(d.rdns)?d.rdns:[d.rdns];for(const y of p)u.add(y)}const c=[],f=e._internal.mipd?.getProviders()??[];for(const d of f){if(u.has(d.info.rdns))continue;const p=e._internal.connectors.providerDetailToConnector(d),y=e._internal.connectors.setup(p);c.push(y)}return[...s,...c]})),i?Vj(e):e.storage&&e.setState(s=>({...s,connections:new Map}))}}}function dU(e){const{children:t,config:n,initialState:i,reconnectOnMount:s=!0}=e,{onMount:u}=fU(n,{initialState:i,reconnectOnMount:s});n._internal.ssr||u();const c=ie.useRef(!0);return ie.useEffect(()=>{if(c.current&&n._internal.ssr)return u(),()=>{c.current=!1}},[]),t}const pU=ie.createContext(void 0);function hU(e){const{children:t,config:n}=e,i={value:n};return ie.createElement(dU,e,ie.createElement(pU.Provider,i,t))}const yU=\"\"+new URL(\"styles-CV_vovhO.css\",import.meta.url).href;function mU(e){return F.jsx(\"svg\",{\"aria-label\":\"Tempo\",className:e.className,fill:\"none\",height:\"14\",role:\"img\",viewBox:\"0 0 13 14\",width:\"13\",children:F.jsx(\"path\",{d:\"M4.594 14H.944L4.327 3.173H0L.944 0H13l-.944 3.173H7.96z\",fill:\"currentColor\"})})}function gU(e){return F.jsxs(\"svg\",{\"aria-label\":\"Tempo\",className:e.className,fill:\"none\",height:\"24\",role:\"img\",viewBox:\"0 0 107 24\",width:\"107\",children:[F.jsx(\"title\",{children:\"Tempo\"}),F.jsx(\"path\",{d:\"M7.903 23.516h-6.28L7.445 5.593H0L1.624.34h20.739l-1.624 5.253h-7.046zM31.273 23.516H16.385L23.859.34h14.827l-1.409 4.419h-8.608l-1.562 4.975h8.332l-1.41 4.357h-8.362l-1.562 5.006h8.546zM38.011 23.516h-4.993L40.523.34h8.333l-.276 12.484L56.698.34h9.129l-7.475 23.176h-6.25l5.055-15.852-10.384 15.852h-3.707l.153-15.914zM72.856 4.635l-2.42 7.478h.674q2.297 0 3.829-1.081Q76.47 9.919 76.93 7.88q.398-1.761-.429-2.503-.826-.742-2.757-.742zm-6.066 18.88h-6.28L67.985.34h7.628q2.634 0 4.534.865 1.93.835 2.818 2.41.919 1.546.612 3.616-.398 2.72-2.082 4.79-1.686 2.07-4.381 3.213-2.665 1.113-5.974 1.113h-2.052zM98.546 22.033q-3.124 1.854-6.648 1.854h-.06q-3.126 0-5.27-1.39-2.114-1.422-3.033-3.833-.888-2.41-.428-5.284a16.3 16.3 0 0 1 2.665-6.674q2.082-3.06 5.207-4.883T97.658 0h.06q3.248 0 5.362 1.39 2.144 1.392 2.971 3.801.858 2.38.368 5.346-.582 3.492-2.665 6.582a16.3 16.3 0 0 1-5.208 4.914m-8.67-3.987q.828 1.576 2.88 1.576h.061q1.686 0 3.125-1.267 1.47-1.297 2.481-3.46 1.042-2.164 1.532-4.821.46-2.595-.368-4.172-.826-1.607-2.849-1.607h-.06q-1.563 0-3.034 1.298-1.44 1.298-2.511 3.492a18.8 18.8 0 0 0-1.563 4.759q-.49 2.595.307 4.202\",fill:\"currentColor\"})]})}var bU=/^[\\w!#$%&'*.^`|~+-]+$/,vU=(e,t,n={})=>{if(!bU.test(e))throw new Error(\"Invalid cookie name\");let i=`${e}=${t}`;if(e.startsWith(\"__Secure-\")&&!n.secure)throw new Error(\"__Secure- Cookie must have Secure attributes\");if(e.startsWith(\"__Host-\")){if(!n.secure)throw new Error(\"__Host- Cookie must have Secure attributes\");if(n.path!==\"/\")throw new Error('__Host- Cookie must have Path attributes with \"/\"');if(n.domain)throw new Error(\"__Host- Cookie must not have Domain attributes\")}for(const s of[\"domain\",\"path\",\"sameSite\",\"priority\"])if(n[s]&&/[;\\r\\n]/.test(n[s]))throw new Error(`${s} must not contain \";\", \"\\\\r\", or \"\\\\n\"`);if(n&&typeof n.maxAge==\"number\"&&n.maxAge>=0){if(n.maxAge>3456e4)throw new Error(\"Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.\");i+=`; Max-Age=${n.maxAge|0}`}if(n.domain&&n.prefix!==\"host\"&&(i+=`; Domain=${n.domain}`),n.path&&(i+=`; Path=${n.path}`),n.expires){if(n.expires.getTime()-Date.now()>3456e7)throw new Error(\"Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.\");i+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(i+=\"; HttpOnly\"),n.secure&&(i+=\"; Secure\"),n.sameSite&&(i+=`; SameSite=${n.sameSite.charAt(0).toUpperCase()+n.sameSite.slice(1)}`),n.priority&&(i+=`; Priority=${n.priority.charAt(0).toUpperCase()+n.priority.slice(1)}`),n.partitioned){if(!n.secure)throw new Error(\"Partitioned Cookie must have Secure attributes\");i+=\"; Partitioned\"}return i},wU=(e,t,n)=>(t=encodeURIComponent(t),vU(e,t,n)),xU=(e,t)=>(e=e.replace(/\\/+$/,\"\"),e=e+\"/\",t=t.replace(/^\\/+/,\"\"),e+t),Nm=(e,t)=>{for(const[n,i]of Object.entries(t)){const s=new RegExp(\"/:\"+n+\"(?:{[^/]+})?\\\\??(?=/|$)\");e=e.replace(s,i?`/${i}`:\"\")}return e},SU=e=>{const t=new URLSearchParams;for(const[n,i]of Object.entries(e))if(i!==void 0)if(Array.isArray(i))for(const s of i)t.append(n,s);else t.set(n,i);return t},EU=(e,t)=>{switch(t){case\"ws\":return e.replace(/^http/,\"ws\");case\"http\":return e.replace(/^ws/,\"http\")}},O4=e=>/^https?:\\/\\/[^\\/]+?\\/index(?=\\?|$)/.test(e)?e.replace(/\\/index(?=\\?|$)/,\"/\"):e.replace(/\\/index(?=\\?|$)/,\"\");function rd(e){return typeof e==\"object\"&&e!==null&&!Array.isArray(e)}function I4(e,t){if(!rd(e)&&!rd(t))return t;const n={...e};for(const i in t){const s=t[i];rd(n[i])&&rd(s)?n[i]=I4(n[i],s):n[i]=s}return n}var k4=(e,t)=>new Proxy(()=>{},{get(i,s){if(!(typeof s!=\"string\"||s===\"then\"))return k4(e,[...t,s])},apply(i,s,u){return e({path:t,args:u})}}),AU=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t,n){this.url=e,this.method=t,this.buildSearchParams=n.buildSearchParams}fetch=async(e,t)=>{if(e){if(e.query&&(this.queryParams=this.buildSearchParams(e.query)),e.form){const f=new FormData;for(const[d,p]of Object.entries(e.form))if(p!==void 0)if(Array.isArray(p))for(const y of p)f.append(d,y);else f.append(d,p);this.rBody=f}e.json&&(this.rBody=JSON.stringify(e.json),this.cType=\"application/json\"),e.param&&(this.pathParams=e.param)}let n=this.method.toUpperCase();const i={...e?.header,...typeof t?.headers==\"function\"?await t.headers():t?.headers};if(e?.cookie){const f=[];for(const[d,p]of Object.entries(e.cookie))f.push(wU(d,p,{path:\"/\"}));i.Cookie=f.join(\",\")}this.cType&&(i[\"Content-Type\"]=this.cType);const s=new Headers(i??void 0);let u=this.url;u=O4(u),u=Nm(u,this.pathParams),this.queryParams&&(u=u+\"?\"+this.queryParams.toString()),n=this.method.toUpperCase();const c=!(n===\"GET\"||n===\"HEAD\");return(t?.fetch||fetch)(u,{body:c?this.rBody:void 0,method:n,headers:s,...t?.init})}},TU=(e,t)=>k4(function n(i){const s=t?.buildSearchParams??SU,u=[...i.path],c=u.slice(-3).reverse();if(c[0]===\"toString\")return c[1]===\"name\"?c[2]||\"\":n.toString();if(c[0]===\"valueOf\")return c[1]===\"name\"?c[2]||\"\":n;let f=\"\";if(/^\\$/.test(c[0])){const m=u.pop();m&&(f=m.replace(/^\\$/,\"\"))}const d=u.join(\"/\"),p=xU(e,d);if(f===\"url\"||f===\"path\"){let m=p;return i.args[0]&&(i.args[0].param&&(m=Nm(p,i.args[0].param)),i.args[0].query&&(m=m+\"?\"+s(i.args[0].query).toString())),m=O4(m),f===\"url\"?new URL(m):m.slice(e.replace(/\\/+$/,\"\").length).replace(/^\\/?/,\"/\")}if(f===\"ws\"){const m=EU(i.args[0]&&i.args[0].param?Nm(p,i.args[0].param):p,\"ws\"),b=new URL(m),v=i.args[0]?.query;return v&&Object.entries(v).forEach(([S,E])=>{Array.isArray(E)?E.forEach(A=>b.searchParams.append(S,A)):b.searchParams.set(S,E)}),((...S)=>t?.webSocket!==void 0&&typeof t.webSocket==\"function\"?t.webSocket(...S):new WebSocket(...S))(b.toString())}const y=new AU(p,f,{buildSearchParams:s});if(f){t??={};const m={...i.args[1]},b=t.headers,v=m.headers;b&&v&&(m.headers=async()=>({...typeof b==\"function\"?await b():b,...typeof v==\"function\"?await v():v}));const x=I4(t,m);return y.fetch(i.args[0],x)}return y},[]);function MU(){if(typeof document>\"u\")return\"/\";const e=document.querySelector(\"base\");return e?e.href:`${location.origin}/`}const ve=TU(MU()),_U=[\"config\"];function PU(){return typeof window>\"u\"?void 0:window.__TEMPO_API_CONFIG__}async function CU(){const e=PU();if(e)return e;const t=await ve[\"config.json\"].$get();return t.ok?t.json():{auth:{identity:null},rewards:{signerAddress:null}}}function zU(){return{queryKey:_U,queryFn:CU,staleTime:1/0}}function $4(){return tl(zU())}const gb=\"tempo-api-admin.theme\",Lm={dark:\"#0c0c0c\",light:\"#fafafa\"},RU=`try {\n const backgrounds = { dark: '${Lm.dark}', light: '${Lm.light}' }\n const stored = localStorage.getItem('${gb}')\n const pinned = stored === 'dark' || stored === 'light' ? stored : null\n if (pinned) document.documentElement.dataset.theme = pinned\n for (const scheme of ['light', 'dark']) {\n const meta = document.createElement('meta')\n meta.name = 'theme-color'\n meta.media = '(prefers-color-scheme: ' + scheme + ')'\n meta.content = backgrounds[pinned ?? scheme]\n document.head.append(meta)\n }\n} catch {}`;function OU(){const e=localStorage.getItem(gb);return e===\"dark\"||e===\"light\"?e:matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}function IU(e){localStorage.setItem(gb,e),document.documentElement.dataset.theme=e;for(const t of document.querySelectorAll('meta[name=\"theme-color\"]'))t.setAttribute(\"content\",Lm[e]);for(const t of jm)t()}function kU(){return ie.useSyncExternalStore($U,OU,()=>\"dark\")}const jm=new Set;function $U(e){const t=matchMedia(\"(prefers-color-scheme: dark)\");return jm.add(e),t.addEventListener(\"change\",e),()=>{jm.delete(e),t.removeEventListener(\"change\",e)}}function B4(){const e=kU(),t=e===\"dark\"?\"Light mode\":\"Dark mode\";return F.jsx(\"button\",{\"aria-label\":t,className:\"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-button text-foreground-secondary hover:bg-surface-hover hover:text-foreground\",onClick:()=>IU(e===\"dark\"?\"light\":\"dark\"),title:t,type:\"button\",children:e===\"dark\"?F.jsx(M$,{className:\"size-[18px]\"}):F.jsx(A$,{className:\"size-[18px]\"})})}function vG(){const{data:e}=$4(),t=e?.auth.identity;return t?F.jsxs(\"div\",{className:\"flex items-center gap-2\",children:[F.jsx(ts,{address:N4(t.email),className:\"size-9 shrink-0\",size:36}),F.jsx(B4,{}),e.auth.logoutUrl?F.jsx(\"a\",{\"aria-label\":\"Sign out\",className:\"text-foreground-secondary hover:text-foreground\",href:e.auth.logoutUrl,children:F.jsx(X8,{className:\"size-[18px]\"})}):null]}):null}function N4(e){return er(al(e),{as:\"Hex\"}).slice(0,42)}const BU={gasPriceOracle:{address:\"0x420000000000000000000000000000000000000F\"},l1Block:{address:\"0x4200000000000000000000000000000000000015\"},l2CrossDomainMessenger:{address:\"0x4200000000000000000000000000000000000007\"},l2Erc721Bridge:{address:\"0x4200000000000000000000000000000000000014\"},l2StandardBridge:{address:\"0x4200000000000000000000000000000000000010\"},l2ToL1MessagePasser:{address:\"0x4200000000000000000000000000000000000016\"}},NU={block:BL({format(e){return{transactions:e.transactions?.map(n=>{if(typeof n==\"string\")return n;const i=Qo(n);return i.typeHex===\"0x7e\"&&(i.isSystemTx=n.isSystemTx,i.mint=n.mint?ke(n.mint):void 0,i.sourceHash=n.sourceHash,i.type=\"deposit\"),i}),stateRoot:e.stateRoot}}}),transaction:e4({format(e){const t={};return e.type===\"0x7e\"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?ke(e.mint):void 0,t.sourceHash=e.sourceHash,t.type=\"deposit\"),t}}),transactionReceipt:p4({format(e){return{...e.depositNonce?{depositNonce:ke(e.depositNonce)}:{},...e.depositReceiptVersion?{depositReceiptVersion:ft(e.depositReceiptVersion)}:{},l1GasPrice:e.l1GasPrice?ke(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?ke(e.l1GasUsed):null,l1Fee:e.l1Fee?ke(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function LU(e,t){return DU(e)?UU(e):Rm(e,t)}const jU={transaction:LU};function UU(e){HU(e);const{sourceHash:t,data:n,from:i,gas:s,isSystemTx:u,mint:c,to:f,value:d}=e,p=[t,i,f??\"0x\",c?aa(c):\"0x\",d?aa(d):\"0x\",s?aa(s):\"0x\",u?\"0x1\":\"0x\",n??\"0x\"];return Vt([\"0x7e\",fa(p)])}function DU(e){return e.type===\"deposit\"||typeof e.sourceHash<\"u\"}function HU(e){const{from:t,to:n}=e;if(t&&!Ot(t))throw new nn({address:t});if(n&&!Ot(n))throw new nn({address:n})}const W5={blockTime:2e3,contracts:BU,formatters:NU,serializers:jU},Wu=1,Ya=yl({...W5,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:{...W5.contracts,disputeGameFactory:{[Wu]:{address:\"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e\"}},l2OutputOracle:{[Wu]:{address:\"0x56315b90c40730925ec5485cf004d835058518A0\"}},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:5022},portal:{[Wu]:{address:\"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e\",blockCreated:17482143}},l1StandardBridge:{[Wu]:{address:\"0x3154Cf16ccdb4C6d922629664174b904d80F2C35\",blockCreated:17482143}}},sourceId:Wu});({...Ya});const So=yl({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}}}),Hc=2,Od=2049,qU=48,hr=8,FU=255,GU=2n**64n-1n,KU=\"0x05\",Io=`0x${\"00\".repeat(32)}`,VU=\"tempo:multisig:account\",QU=\"0x8a196A227C48Ae8A3E36EebD4E106675CC0f6E64\",ZU=\"0x4b5ff53c5328a10a6ec5224adf16de5e204a47057c98af037ee30b7de660a8a6\",YU=\"tempo:multisig:signature\";function bp(e){const{owners:t,salt:n,threshold:i,version:s=0n}=e;if(typeof n<\"u\"&&Ue(n)!==32)throw new jt({reason:\"salt must be 32 bytes\"});if(bb(s),t.length===0)throw new jt({reason:\"owners cannot be empty\"});if(t.length>qU)throw new jt({reason:\"too many owners\"});if(!Number.isInteger(Number(i)))throw new jt({reason:\"threshold must be an integer\"});if(Number(i)<1)throw new jt({reason:\"threshold cannot be zero\"});if(Number(i)>FU)throw new jt({reason:\"threshold exceeds max threshold\"});let u=0;const c=[];let f;for(const p of t){if(!dr(p.owner)||_e(p.owner)===0n)throw new jt({reason:\"owner cannot be zero\"});if(!Number.isInteger(Number(p.weight)))throw new jt({reason:\"owner weight must be an integer\"});if(Number(p.weight)<1)throw new jt({reason:\"owner weight cannot be zero\"});const y=_e(p.owner);if(typeof f<\"u\"&&f>=y)throw new jt({reason:\"owners must be strictly ascending\"});f=y;const m=Number(p.weight);u+=m,c.push(m)}if(u>255)throw new jt({reason:\"total owner weight exceeds u8 max\"});if(Number(i)>u)throw new jt({reason:\"threshold exceeds total owner weight\"});const d=c.sort((p,y)=>y-p).slice(0,hr).reduce((p,y)=>p+y,0);if(Number(i)>d)throw new jt({reason:`threshold exceeds weight reachable by ${hr} owner signatures`})}function en(e){const t=e.version??0n;bb(t);const i={owners:[...e.owners].sort((s,u)=>_e(s.owner)<_e(u.owner)?-1:1),salt:e.salt?lr(e.salt,32):Io,threshold:e.threshold,version:BigInt(t)};return bp(i),i}function L4(e){return en({...e,version:_e(e.version)})}function XU(e){const[t,n,i,s]=e;return{owners:s.map(u=>{const[c,f]=u;return{owner:c,weight:!f||f===\"0x\"?0:Mo(f)}}),salt:t&&t!==\"0x\"?lr(t,32):Io,threshold:i===\"0x\"?0:Mo(i),version:n===\"0x\"?0n:_e(n)}}function Zo(e){if(bp(e),BigInt(e.version??0)!==0n)throw new jt({reason:\"account address requires version zero\"});const t=er(Je(ga(VU),lr(e.salt??Io,32),se(e.threshold,{size:1}),se(e.owners.length,{size:1}),...e.owners.flatMap(i=>[i.owner,se(i.weight,{size:1})]))),n=kk({bytecodeHash:ZU,from:QU,salt:t});if(_e(n)===0n)throw new jt({reason:\"derived account cannot be zero\"});if(e.owners.some(i=>wn(i.owner,n)))throw new jt({reason:\"derived account cannot be an owner\"});return n}function ba(e){const{account:t,config:n,payload:i}=e;return bb(n.version),er(Je(ga(YU),il(i),t,se(n.version??0n,{size:8})))}function j4(e){bp(e);const t=e.owners.map(s=>[s.owner,se(s.weight)]),n=e.salt?lr(e.salt,32):Io,i=BigInt(e.version??0);return[n,i===0n?\"0x\":se(i),se(e.threshold),t]}class jt extends he{constructor({reason:t}){super(`Invalid native multisig config: ${t}.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"MultisigConfig.InvalidConfigError\"})}}function bb(e){if(typeof e!=\"bigint\"&&typeof e!=\"number\"||typeof e==\"number\"&&!Number.isSafeInteger(e)||BigInt(e)<0n||BigInt(e)>GU)throw new jt({reason:\"version must be an unsigned 64-bit integer\"})}const Um=\"0x01\",Dm=\"0x02\",Hm=\"0x03\",yd=\"0x04\",Id=\"0x05\",ja=\"0x7777777777777777777777777777777777777777777777777777777777777777\";function gl(e){const t=bl(e);if(t===\"secp256k1\"){ul(e.signature);return}if(t===\"p256\"){const n=e,i=[];if(typeof n.signature?.r!=\"bigint\"&&i.push(\"signature.r\"),typeof n.signature?.s!=\"bigint\"&&i.push(\"signature.s\"),typeof n.prehash!=\"boolean\"&&i.push(\"prehash\"),n.publicKey?(typeof n.publicKey.x!=\"bigint\"&&i.push(\"publicKey.x\"),typeof n.publicKey.y!=\"bigint\"&&i.push(\"publicKey.y\")):i.push(\"publicKey\"),i.length>0)throw new Gm({envelope:e,missing:i,type:\"p256\"});return}if(t===\"webAuthn\"){const n=e,i=[];if(typeof n.signature?.r!=\"bigint\"&&i.push(\"signature.r\"),typeof n.signature?.s!=\"bigint\"&&i.push(\"signature.s\"),n.metadata?(n.metadata.authenticatorData||i.push(\"metadata.authenticatorData\"),n.metadata.clientDataJSON||i.push(\"metadata.clientDataJSON\")):i.push(\"metadata\"),n.publicKey?(typeof n.publicKey.x!=\"bigint\"&&i.push(\"publicKey.x\"),typeof n.publicKey.y!=\"bigint\"&&i.push(\"publicKey.y\")):i.push(\"publicKey\"),i.length>0)throw new Gm({envelope:e,missing:i,type:\"webAuthn\"});return}if(t===\"keychain\"){gl(e.inner);return}if(t===\"multisig\"){vb(e,1);return}}function vb(e,t){const n=[];if(e.account||n.push(\"account\"),e.config||n.push(\"config\"),Array.isArray(e.signatures)||n.push(\"signatures\"),n.length>0)throw new Gm({envelope:e,missing:n,type:\"multisig\"});if(t>Hc)throw new ii({reason:`multisig nesting depth exceeds ${Hc}`});if(!dr(e.account))throw new ii({reason:\"multisig account is invalid\"});if(_e(e.account)===0n)throw new ii({reason:\"multisig account cannot be zero\"});if(bp(e.config),e.config.owners.some(i=>wn(i.owner,e.account)))throw new ii({reason:\"multisig account cannot be an owner\"});if(e.config.version===0n&&!wn(Zo(e.config),e.account))throw new ii({reason:\"initial multisig config does not derive account\"});if(e.signatures.length===0)throw new ii({reason:\"multisig signatures cannot be empty\"});if(e.signatures.length>hr)throw new ii({reason:`multisig signatures exceed ${hr}`});for(const i of e.signatures){const s=bl(i);if(s===\"keychain\")throw new ii({reason:\"keychain owner approvals are not allowed\"});if(s===\"multisig\")vb(i,t+1);else if(gl(i),Ue(gt(i))>Od)throw new ii({reason:`multisig owner signature exceeds ${Od} bytes`})}}function vi(e){const{signature:t,root:n}=e;return t.type===\"keychain\"?n?t.userAddress:vi({...e,signature:t.inner}):t.type===\"multisig\"?t.account:ia(U4(e))}function U4(e){const{payload:t,signature:n}=e;switch(n.type){case\"secp256k1\":return B8({payload:t,signature:n.signature});case\"p256\":case\"webAuthn\":return n.publicKey;case\"keychain\":return U4({payload:t,signature:n.inner});case\"multisig\":throw new ko({envelope:n})}}function zr(e){return qm(e,0)}function qm(e,t){const n=e.endsWith(ja.slice(2))?Ee(e,0,-Ue(ja)):e;if(Ue(n)===65){const f=Kg(n);return ul(f),{signature:f,type:\"secp256k1\"}}const s=Ee(n,0,1),u=Ee(n,1),c=Ue(u);if(s===Um){if(c!==129)throw new Zt({reason:`Invalid P256 signature envelope size: expected 129 bytes, got ${c} bytes`,serialized:n});return{publicKey:{prefix:4,x:_e(Ee(u,64,96)),y:_e(Ee(u,96,128))},prehash:Mo(Ee(u,128,129))!==0,signature:{r:_e(Ee(u,0,32)),s:_e(Ee(u,32,64))},type:\"p256\"}}if(s===Dm){if(c<128)throw new Zt({reason:`Invalid WebAuthn signature envelope size: expected at least 128 bytes, got ${c} bytes`,serialized:n});const f=c-128,d=Ee(u,0,f);let p,y;for(let m=37;mHc)throw new Zt({reason:`multisig nesting depth exceeds ${Hc}`,serialized:n});const d=Gg(u);if(!Array.isArray(d)||d.length!==3)throw new Zt({reason:\"invalid multisig wire shape: expected exactly three fields\",serialized:n});const[p,y,m]=d;if(!dr(p))throw new Zt({reason:\"invalid multisig account\",serialized:n});if(!Array.isArray(y))throw new Zt({reason:\"invalid multisig config\",serialized:n});const[b,v,x,S]=y;if(y.length!==4||Array.isArray(b)||Ue(b)!==32||Array.isArray(v)||Ue(v)>8||v!==\"0x\"&&Ee(v,0,1)===\"0x00\"||Array.isArray(x)||Ue(x)>1||!Array.isArray(S)||S.some(A=>!Array.isArray(A)||A.length!==2||A.some(Array.isArray)||!dr(A[0])||Ue(A[1])>1))throw new Zt({reason:\"invalid multisig config\",serialized:n});if(!Array.isArray(m)||m.some(Array.isArray))throw new Zt({reason:\"invalid multisig signatures list\",serialized:n});if(m.length===0)throw new Zt({reason:\"multisig signatures cannot be empty\",serialized:n});if(m.length>hr)throw new Zt({reason:`multisig signatures exceed ${hr}`,serialized:n});for(const A of m)if(Ue(A)>Od&&Ee(A,0,1)!==KU)throw new Zt({reason:`multisig owner signature exceeds ${Od} bytes`,serialized:n});const E={account:p,config:XU(y),signatures:m.map(A=>qm(A,f)),type:\"multisig\"};return vb(E,f),E}throw new Zt({reason:`Unknown signature type identifier: ${s}. Expected ${Um} (P256), ${Dm} (WebAuthn), ${Hm} (Keychain V1), ${yd} (Keychain V2), or ${Id} (Multisig)`,serialized:n})}function rt(e,t){if(typeof e==\"string\")return zr(e);if(typeof e==\"object\"&&e!==null&&\"r\"in e&&\"s\"in e&&\"yParity\"in e)return{signature:e,type:\"secp256k1\"};const n=bl(e);if(n===\"multisig\"){const i=e,s=en(i.config),c={account:i.account??Zo(s),config:s,signatures:i.signatures.map(f=>rt(f)),type:n};return gl(c),c}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 i=e.inner;return i.type===\"p256\"||i.type===\"webAuthn\"?{keyId:ia(i.publicKey)}:(i.type===\"secp256k1\"&&t?.payload,{})})()}:{},type:n}}function vp(e){if(typeof e==\"string\"){const t=Je(Id,e),n=zr(t);if(n.type!==\"multisig\"||!c8(gt(n),t))throw new Zt({reason:\"invalid multisig RPC signature\",serialized:e});return n}if(e.type===\"secp256k1\")return{signature:Vg(e),type:\"secp256k1\"};if(e.type===\"p256\")return{prehash:e.preHash,publicKey:{prefix:4,x:_e(e.pubKeyX),y:_e(e.pubKeyY)},signature:{r:_e(e.r),s:_e(e.s)},type:\"p256\"};if(e.type===\"webAuthn\"){const t=e.webauthnData,n=Ue(t);let i,s;for(let u=37;ugt(s))]),t.magic?ja:\"0x\")}throw new ko({envelope:e})}function wb(e){const{account:t,config:n,payload:i,signatures:s}=e,u=ba({account:t,config:en(n),payload:i});return s.map(c=>({key:_e(vi({payload:u,signature:c})),signature:c})).sort((c,f)=>c.keyf.key?1:0).map(c=>c.signature)}function xb(e){const t=bl(e);if(t===\"secp256k1\")return{...D8(e.signature),type:\"secp256k1\"};if(t===\"p256\"){const n=e;return{preHash:n.prehash,pubKeyX:se(n.publicKey.x,{size:32}),pubKeyY:se(n.publicKey.y,{size:32}),r:se(n.signature.r,{size:32}),s:se(n.signature.s,{size:32}),type:\"p256\"}}if(t===\"webAuthn\"){const n=e,i=Je(n.metadata.authenticatorData,ga(n.metadata.clientDataJSON));return{pubKeyX:se(n.publicKey.x,{size:32}),pubKeyY:se(n.publicKey.y,{size:32}),r:se(n.signature.r,{size:32}),s:se(n.signature.s,{size:32}),type:\"webAuthn\",webauthnData:i}}if(t===\"keychain\"){const n=e;return{type:\"keychain\",userAddress:n.userAddress,signature:xb(n.inner),...n.keyId?{keyId:n.keyId}:{},...n.version?{version:n.version}:{}}}if(t===\"multisig\")return Ee(gt(e),1);throw new ko({envelope:e})}function Fm(e,t){const{payload:n}=t,i=(()=>{if(t.address)return t.address;if(t.publicKey)return ia(t.publicKey)})();if(!i)return!1;const s=rt(e);if(s.type===\"secp256k1\")return i?lk({address:i,payload:n,signature:s.signature}):!1;if(s.type===\"p256\"){const u=ia(s.publicKey);return wn(u,i)?Q8({hash:s.prehash,publicKey:s.publicKey,payload:n,signature:s.signature}):!1}if(s.type===\"webAuthn\"){const u=ia(s.publicKey);return wn(u,i)?Wk({challenge:il(n),metadata:s.metadata,publicKey:s.publicKey,signature:s.signature}):!1}throw new JU(`Unable to verify signature envelope of type \"${s.type}\".`)}class ko extends he{constructor({envelope:t}){super(`Unable to coerce value (\\`${ps(t)}\\`) to a valid signature envelope.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureEnvelope.CoercionError\"})}}class Gm extends he{constructor({envelope:t,missing:n,type:i}){super(`Signature envelope of type \"${i}\" is missing required properties: ${n.map(s=>`\\`${s}\\``).join(\", \")}.\n\nProvided: ${ps(t)}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureEnvelope.MissingPropertiesError\"})}}class Zt extends he{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 ii extends he{constructor({reason:t}){super(`Invalid native multisig owner approval: ${t}.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureEnvelope.InvalidMultisigApprovalError\"})}}class JU extends he{constructor(){super(...arguments),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureEnvelope.VerificationError\"})}}function Jt(e){return e.startsWith(\"tempo\")?WU(e).address:e}function WU(e){if(!e.startsWith(\"tempox\"))throw new eD({address:e});const t=e.slice(6);return o8(t,{strict:!0}),{address:sl(t)}}class eD extends he{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 tD(e,t={}){if(typeof e.chainId==\"string\")return D4(e);const n={...e,address:Jt(e.address)};return t.signature?{...n,signature:t.signature}:n}function D4(e){const{address:t,chainId:n,nonce:i}=e,s=vp(e.signature);return{address:t,chainId:Number(n),nonce:BigInt(i),signature:s}}function nD(e){return e.map(t=>D4(t))}function rD(e){const[t,n,i,s]=e,u={address:n,chainId:t===\"0x\"?0:Number(t),nonce:i===\"0x\"?0n:BigInt(i)};return s&&(u.signature=zr(s)),tD(u)}function iD(e){const t=[];for(const n of e)t.push(rD(n));return t}function aD(e){const{address:t,chainId:n,nonce:i,signature:s}=e;return{address:t,chainId:se(n),nonce:se(i),signature:xb(s)}}function sD(e){return e.map(t=>aD(t))}function oD(e){const{address:t,chainId:n,nonce:i}=e,s=e.signature?gt(e.signature):void 0;return[n?se(n):\"0x\",t,i?se(i):\"0x\",...s?[s]:[]]}function uD(e){if(!e||e.length===0)return[];const t=[];for(const n of e)t.push(oD(n));return t}const Km=\"0x20c0\";function wG(e){const t=Jt(e);if(!t.toLowerCase().startsWith(Km))throw new Error(\"invalid tip20 address.\");return _e(Ee(t,Km.length))}function wp(e){if(typeof e==\"string\"){const n=Jt(e);return fr(n),n}const t=se(e,{size:18});return Je(Km,t)}function xp(e,t={}){if(\"keyId\"in e)return H4(e);const n=e;n.witness!==void 0&&vl(n.witness),n.signature&&$o(n.signature);const i={...n,address:Jt(n.address),...n.limits?{limits:n.limits.map(s=>({...s,token:Jt(s.token)}))}:{},...n.scopes?{scopes:n.scopes.map(s=>({...s,address:Jt(s.address),selector:Ab(s.selector),...s.recipients?{recipients:s.recipients.map(u=>Jt(u))}:{}}))}:{}};if(t.signature){const s=rt(t.signature);return $o(s),{...i,signature:s}}return i}function H4(e){const{allowedCalls:t,chainId:n,keyId:i,expiry:s,limits:u,keyType:c}=e,f=e.witness??void 0,d=e.isAdmin??void 0,p=e.account??void 0,y=vp(e.signature);$o(y),f!==void 0&&vl(f);const m=t?t.flatMap(v=>!v.selectorRules||v.selectorRules.length===0?[{address:v.target}]:v.selectorRules.map(x=>({address:v.target,selector:fD(x.selector),...x.recipients&&x.recipients.length>0?{recipients:x.recipients}:{}}))):void 0,b=p!==void 0?{account:p,isAdmin:d??!1}:{};return{address:i,chainId:n===\"0x\"?0n:_e(n),...s!=null?{expiry:Number(s)}:{},limits:u?.map(v=>({token:v.token,limit:BigInt(v.limit),...v.period&&kd(v.period)>0?{period:kd(v.period)}:{}})),...m?{scopes:m}:{},signature:y,type:c,...f!==void 0?{witness:f}:{},...b}}function q4(e){const[t,n]=e,[i,s,u,...c]=t,f=(()=>{switch(s){case\"0x\":case\"0x00\":return\"secp256k1\";case\"0x01\":return\"p256\";case\"0x02\":return\"webAuthn\";default:throw new Error(`Invalid key type: ${s}`)}})(),[d,p,y,m,b,v]=c,x=id(d)?void 0:kd(d)||void 0,S=Array.isArray(p)&&p.length>0?p.map(I=>{const[z,k,L]=I;return{token:z,limit:lD(k),...L!==void 0?{period:kd(L)}:{}}}):void 0,E=Array.isArray(y)?y.flatMap(I=>{const[z,k]=I;return!Array.isArray(k)||k.length===0?[{address:z}]:k.map(L=>{const[D,Q]=L;return{address:z,selector:D,...Array.isArray(Q)&&Q.length>0?{recipients:Q}:{}}})}):void 0,A=id(m)?void 0:m;A!==void 0&&vl(A);const R=(()=>{if(!id(b)){if(b!==\"0x01\")throw new pD(b);return!0}})(),_=id(v)?void 0:v,C=_!==void 0?{account:_,isAdmin:R??!1}:{},P={address:u,chainId:i===\"0x\"?0n:_e(i),type:f,...x!==void 0?{expiry:x}:{},...S!==void 0?{limits:S}:{},...E!==void 0?{scopes:E}:{},...A!==void 0?{witness:A}:{},...C};if(n){const I=zr(n);$o(I),P.signature=I}return xp(P)}function Sp(e){return cD(e)}function Sb(e){const t=Gg(e);return q4(t)}function cD(e){const[t]=Eb(e),n=ol(t);return er(n)}function Vm(e){const t=Eb(e);return ol(t)}function F4(e){const{address:t,scopes:n,chainId:i,expiry:s,limits:u,type:c,signature:f,witness:d,isAdmin:p,account:y}=e;$o(f),d!==void 0&&vl(d);const m=(()=>{if(!n)return;const b=new Map;for(const v of n){const x=v.address;b.has(x)||b.set(x,[]),v.selector&&b.get(x).push({selector:Ab(v.selector),...v.recipients&&v.recipients.length>0?{recipients:v.recipients}:{}})}return[...b.entries()].map(([v,x])=>({target:v,...x.length>0?{selectorRules:x}:{}}))})();return{chainId:i===0n?\"0x\":se(i),expiry:typeof s==\"number\"?se(s):null,keyId:Jt(t),keyType:c,limits:u?.map(({token:b,limit:v,period:x})=>({token:b,limit:se(v),...x?{period:Qm(x)}:{}})),signature:xb(f),...m?{allowedCalls:m}:{},...d!==void 0?{witness:d}:{},...p?{isAdmin:!0}:{},...y!==void 0?{account:y}:{}}}function Eb(e){const{address:t,chainId:n,scopes:i,expiry:s,limits:u,witness:c,isAdmin:f,account:d}=e;c!==void 0&&vl(c);const p=(()=>{if(e.signature)return $o(e.signature),gt(e.signature)})(),y=(()=>{switch(e.type){case\"secp256k1\":return\"0x\";case\"p256\":return\"0x01\";case\"webAuthn\":return\"0x02\";default:throw new Error(`Invalid key type: ${e.type}`)}})(),m=u?.map(R=>{const _=[R.token,ex(R.limit)];return R.period&&R.period>0&&_.push(Qm(R.period)),_}),b=(()=>{if(!i)return;const R=new Map;for(const _ of i){const C=_.address;R.has(C)||R.set(C,[]),_.selector&&R.get(C).push([Ab(_.selector),_.recipients??[]])}return[...R.entries()].map(([_,C])=>[_,C.map(([P,I])=>[P,I])])})(),v=c!==void 0||f||d!==void 0,x=[{value:s!=null&&s!==0?Qm(s):void 0,placeholder:\"0x\"},{value:m,placeholder:v?\"0x\":[]},{value:b,placeholder:\"0x\"},{value:c,placeholder:\"0x\"},{value:f?\"0x01\":void 0,placeholder:\"0x\"},{value:d,placeholder:\"0x\"}];let S=-1;for(let R=x.length-1;R>=0;R--)if(x[R].value!==void 0){S=R;break}const E=x.slice(0,S+1).map(({value:R,placeholder:_})=>R??_);return[[ex(n),y,t,...E],...p?[p]:[]]}function ex(e){return e===0n?\"0x\":se(e)}function Qm(e){return e===0?\"0x\":se(e)}function lD(e){return e===\"0x\"?0n:BigInt(e)}function kd(e){return e===\"0x\"?0:Mo(e)}function fD(e){return typeof e==\"string\"?e:Array.isArray(e)?Mt(new Uint8Array(e)):e}function Ab(e){if(e)return e.startsWith(\"0x\")?e:b8(e)}function vl(e){if(Ue(e)!==32)throw new dD(e)}function $o(e){if(e.type===\"keychain\")throw new hD(e.type)}function id(e){return e===void 0||e===\"0x\"}class dD extends Error{constructor(t){super(`Witness \\`${t}\\` must be exactly 32 bytes (got ${Ue(t)} bytes).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"KeyAuthorization.InvalidWitnessSizeError\"})}}class pD 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 hD 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\"})}}const G4=\"0x78\",yD=\"0x76\",tx=\"tempo\";function Tb(e){const{calls:t,chainId:n,maxFeePerGas:i,maxPriorityFeePerGas:s,validBefore:u,validAfter:c}=e;if(!t||t.length===0)throw new vD;if(typeof u==\"number\"&&typeof c==\"number\"&&u<=c)throw new wD({validBefore:u,validAfter:c});if(t)for(const f of t)f.to&&fr(f.to,{strict:!1});if(n<=0)throw new Zk({chainId:n});if(i&&BigInt(i)>2n**256n-1n)throw new Qk({feeCap:i});if(s&&i&&s>i)throw new Xk({maxFeePerGas:i,maxPriorityFeePerGas:s})}function Ep(e){const t=Gg(Ee(e,1)),[n,i,s,u,c,f,d,p,y,m,b,v,x,S,E]=t,A=Array.isArray(S)?S:void 0,R=A?E:S;if(!(t.length===13||t.length===14||t.length===15))throw new Yk({attributes:{authorizationList:x,chainId:n,maxPriorityFeePerGas:i,maxFeePerGas:s,gas:u,calls:c,accessList:f,keyAuthorization:A,nonceKey:d,nonce:p,validBefore:y,validAfter:m,feeToken:b,feePayerSignatureOrSender:v,...t.length>12?{signature:R}:{}},serialized:e,type:tx});let _={chainId:Number(n),type:tx};if(kn(u)&&u!==\"0x\"&&(_.gas=BigInt(u)),kn(p)&&(_.nonce=p===\"0x\"?0n:BigInt(p)),kn(s)&&s!==\"0x\"&&(_.maxFeePerGas=BigInt(s)),kn(i)&&i!==\"0x\"&&(_.maxPriorityFeePerGas=BigInt(i)),kn(d)&&(_.nonceKey=d===\"0x\"?0n:BigInt(d)),kn(y)&&y!==\"0x\"&&(_.validBefore=Number(y)),kn(m)&&m!==\"0x\"&&(_.validAfter=Number(m)),kn(b)&&b!==\"0x\"&&(_.feeToken=b),c&&c!==\"0x\"){const P=c;_.calls=P.map(I=>{const[z,k,L]=I,D={};return z&&z!==\"0x\"&&(D.to=z),k&&k!==\"0x\"&&(D.value=BigInt(k)),L&&L!==\"0x\"&&(D.data=L),D})}f?.length!==0&&f!==\"0x\"&&(_.accessList=L7(f)),x?.length!==0&&x!==\"0x\"&&(_.authorizationList=iD(x)),v!==\"0x\"&&v!==void 0&&(v===\"0x00\"||dr(v)?(_.feePayerSignature=null,dr(v)&&(_.from=v)):_.feePayerSignature=bk(v)),A&&(_.keyAuthorization=q4(A));const C=R?zr(R):void 0;if(C&&(_={..._,signature:C}),!_.from&&C)try{_.from=vi({payload:Bo($d(_)),signature:C,root:!0})}catch{}return Tb(_),_}function $d(e,t={}){const{feePayerSignature:n,signature:i}=t,s=typeof e==\"string\"?Ep(e):e;return s.from&&(s.from=Jt(s.from)),s.calls&&(s.calls=s.calls.map(u=>({...u,...u.to?{to:Jt(u.to)}:{}}))),Tb(s),{...s,...i?{signature:rt(i)}:{},...n?{feePayerSignature:tp(n)}:{},type:\"tempo\"}}function ci(e,t={}){const{accessList:n,authorizationList:i,calls:s,chainId:u,feeToken:c,gas:f,keyAuthorization:d,nonce:p,nonceKey:y,maxFeePerGas:m,maxPriorityFeePerGas:b,validBefore:v,validAfter:x}=e;Tb(e);const S=j7(n),E=t.signature||e.signature,A=uD(i),R=s.map(I=>[I.to?Jt(I.to):\"0x\",I.value?se(I.value):\"0x\",I.data??\"0x\"]);let _=!1;const C=(()=>{if(t.sender)return t.sender;if(t.format===\"feePayer\"&&E){const z=rt(E);if(z.type===\"keychain\")return z.userAddress;if(z.type===\"p256\"||z.type===\"webAuthn\")return ia(z.publicKey);if(z.type===\"secp256k1\")return $8({payload:Bo($d(e)),signature:z.signature})}const I=typeof t.feePayerSignature<\"u\"?t.feePayerSignature:e.feePayerSignature;return I===null?(_=!0,\"0x00\"):I?wk(I):\"0x\"})(),P=[se(u),b?se(b):\"0x\",m?se(m):\"0x\",f?se(f):\"0x\",R,S,y?se(y):\"0x\",p?se(p):\"0x\",typeof v==\"number\"?se(v):\"0x\",typeof x==\"number\"?se(x):\"0x\",!_&&(typeof c==\"bigint\"||typeof c==\"string\")?wp(c):\"0x\",C,A,...d?[Eb(d)]:[],...E?[gt(rt(E))]:[]];return Je(t.format===\"feePayer\"?G4:yD,ol(P))}function mD(e){return ci({...e,signature:void 0,...e.feePayerSignature!==void 0?{feePayerSignature:null}:{}})}function Bo(e,t={}){const n=gD(e,{presign:!0});return t.from?er(Je(\"0x04\",n,Jt(t.from))):n}function gD(e,t={}){const n=t.presign?mD(e):ci(e);return er(n)}function bD(e,t){const n=Jt(t.sender),i=ci({...e,signature:void 0},{sender:n,format:\"feePayer\"});return er(i)}class vD extends he{constructor(){super(\"Calls list cannot be empty.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"TxEnvelopeTempo.CallsEmptyError\"})}}class wD extends he{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 xD(e){const{account:t,config:n}=e,i=Bo(Ep(e.transaction));return ba({account:t,config:n,payload:i})}async function SD(e){const{account:t,approvals:n,hash:i}=e;if(!dr(t)||_e(t)===0n)throw new Ar({reason:\"account is invalid\"});if(!bc(i))throw new Ar({reason:\"hash is invalid\"});const s=en(e.config);if(s.version===0n&&!wn(Zo(s),t))throw new Ar({reason:\"initial config does not derive the root multisig account\"});return V4({approvals:n,config:s,hash:i},[t.toLowerCase()])}function ED(e,t){const n=Sb(e);if(n.signature)throw new me({reason:\"keyAuthorization must not contain a signature\"});if(Vm(n).toLowerCase()!==e.toLowerCase())throw new me({reason:\"keyAuthorization is not canonically serialized\"});const i=en(t.config),s=wb({account:t.account,config:i,payload:Sp(n),signatures:t.approvals.map(u=>zr(u))});return Vm(xp(n,{signature:rt({account:t.account,config:i,signatures:s})}))}function AD(e){try{const t=en(e.config);if(typeof t.threshold!=\"number\"||t.owners.some(i=>typeof i.weight!=\"number\"))throw new me({reason:\"config threshold and owner weights must be numbers\"});const n={...e,config:t};if(MD(n,t),n.type===\"transaction\")_D(n);else if(n.type===\"keyAuthorization\")PD(n,t);else throw new me({reason:\"unknown operation type\"});return n}catch(t){throw t instanceof me?t:new me({cause:t})}}function K4(e){try{const t=e.config?.version;if(typeof t!=\"string\"||!kn(t))throw new me({reason:\"config.version must be a hexadecimal quantity\"});const n=_e(t);if(se(n)!==t)throw new me({reason:\"config.version must use canonical quantity encoding\"});return AD({...e,config:L4(e.config)})}catch(t){throw t instanceof me?t:new me({cause:t})}}async function V4(e,t){const n=new Map(e.config.owners.map(p=>[p.owner.toLowerCase(),{address:p.owner,weight:Number(p.weight)}])),i=new Map;for(const p of e.approvals){const y=rt(p);if(y.type===\"keychain\")throw new Ar({reason:\"keychain signatures cannot approve a multisig operation\"});const m=y.type===\"multisig\"?y.account:vi({payload:e.hash,signature:y}),b=n.get(m.toLowerCase());if(!b)throw new Ar({reason:`signature is from non-owner ${m}`});const v=m.toLowerCase(),x=i.get(v);x?x.signatures.push(y):i.set(v,{address:b.address,signatures:[y],weight:b.weight})}const s=[],u=[];for(const p of i.values()){const y=p.signatures.filter(v=>v.type===\"multisig\");if(y.length>0){if(y.length!==p.signatures.length)throw new Ar({reason:`owner ${p.address} has conflicting signature types`});if(t.length>=Hc||t.includes(p.address.toLowerCase()))throw new Ar({reason:`nested multisig owner ${p.address} is invalid`});const v=en(y[0].config);if(y.some(S=>!Mb(S.config,v)))throw new Ar({reason:`nested multisig owner ${p.address} has conflicting config witnesses`});if(v.version===0n&&!wn(Zo(v),p.address))throw new Ar({reason:`initial config does not derive nested multisig owner ${p.address}`});const x=await V4({account:p.address,approvals:y.flatMap(S=>S.signatures.map(E=>gt(E))),config:v,hash:ba({account:p.address,config:v,payload:e.hash})},[...t,p.address.toLowerCase()]);u.push({address:p.address,signature:gt(rt({account:p.address,config:v,signatures:x.approvals.map(S=>rt(S))}))}),x.weight>=x.threshold&&s.push({address:p.address,signature:gt(rt({account:p.address,config:v,signatures:x.selectedApprovals.map(S=>rt(S))})),weight:p.weight});continue}const b=p.signatures.map(v=>{if(!Fm(v,{address:p.address,payload:e.hash}))throw new Ar({reason:`signature from owner ${p.address} is invalid`});return gt(v)}).sort(TD)[0];s.push({address:p.address,signature:b,weight:p.weight}),u.push({address:p.address,signature:b})}const c=s.sort((p,y)=>y.weight-p.weight||Ry(p,y)),f=[];let d=0;for(const p of c.slice(0,hr)){if(d>=Number(e.config.threshold))break;f.push(p),d+=p.weight}return f.sort(Ry),{approvals:u.sort(Ry).map(p=>p.signature),selectedApprovals:f.map(p=>p.signature),signatureCount:f.length,threshold:Number(e.config.threshold),weight:d}}function Ry(e,t){const n=_e(e.address),i=_e(t.address);return ni?1:0}function TD(e,t){const n=e.toLowerCase(),i=t.toLowerCase();return ni?1:0}function MD(e,t){if(!dr(e.account))throw new me({reason:\"account is invalid\"});if(_e(e.account)===0n)throw new me({reason:\"account cannot be zero\"});if(!bc(e.hash))throw new me({reason:\"hash is invalid\"});if(lo(e.createdAt,\"createdAt\"),lo(e.updatedAt,\"updatedAt\"),e.updatedAt255)throw new me({reason:\"weight exceeds u8 max\"});if(e.signatureCount>hr)throw new me({reason:\"too many selected signatures\"});if(!Array.isArray(e.approvals))throw new me({reason:\"approvals must be an array\"});if(e.approvals.length>t.owners.length)throw new me({reason:\"too many retained approvals\"});if(e.signatureCount>e.approvals.length)throw new me({reason:\"signatureCount exceeds retained approvals\"});if(e.signatureCount===0!=(e.weight===0))throw new me({reason:\"signatureCount and weight must both be zero or nonzero\"});const n=new Map(t.owners.map(u=>[u.owner.toLowerCase(),Number(u.weight)])),i=[],s=new Set;for(const u of e.approvals){if(typeof u!=\"string\"||!kn(u,{strict:!0}))throw new me({reason:\"approval is invalid\"});const c=CD(e.account,u,t),d=vi({payload:e.hash,signature:c}).toLowerCase(),p=n.get(d);if(p===void 0)throw new me({reason:\"approval is from a non-owner\"});if(s.has(d))throw new me({reason:e.type===\"keyAuthorization\"?\"key authorization contains duplicate owner approvals\":\"duplicate owner approval\"});s.add(d),i.push(p)}if(!RD(i,e.signatureCount,e.weight))throw new me({reason:\"weight is not reachable by signatureCount retained owner approvals\"});if(t.version===0n&&!wn(Zo(t),e.account))throw new me({reason:\"initial config does not derive the operation account\"})}function _D(e){if(\"keyAuthorization\"in e&&e.keyAuthorization!==void 0)throw new me({reason:\"transaction operations cannot contain keyAuthorization\"});const t=e.expiresAt,n=e.submissionId,i=e.transactionHash;if(e.status===\"pending\"){if(t!==void 0||n!==void 0||i!==void 0)throw new me({reason:\"pending transactions cannot contain submission fields\"})}else if(e.status===\"submitting\"){if(lo(t,\"expiresAt\"),!bc(n??\"\"))throw new me({reason:\"submissionId is invalid\"});if(n.toLowerCase()===e.hash.toLowerCase())throw new me({reason:\"submissionId must differ from the operation hash\"});if(i!==void 0)throw new me({reason:\"submitting transactions cannot contain transactionHash\"})}else if(e.status===\"success\"){if(!bc(i??\"\"))throw new me({reason:\"transactionHash is invalid\"});if(t!==void 0||n!==void 0)throw new me({reason:\"successful transactions cannot contain submission fields\"})}else throw new me({reason:\"invalid transaction status\"});if(e.status!==\"pending\"&&(e.weight=e.threshold)throw new me({reason:\"pending key authorizations cannot have quorum\"});if(typeof e.keyAuthorization!=\"string\")throw new me({reason:\"keyAuthorization is invalid\"});const i=Sb(e.keyAuthorization);if(!i.account||i.account.toLowerCase()!==e.account.toLowerCase())throw new me({reason:\"key authorization account does not match the operation account\"});const s=i.signature;if(e.status===\"pending\"&&s)throw new me({reason:\"pending key authorizations must be unsigned\"});if(e.status===\"success\"){if(s?.type!==\"multisig\")throw new me({reason:\"successful key authorizations require a multisig signature\"});if(s.account.toLowerCase()!==e.account.toLowerCase())throw new me({reason:\"key authorization signature account does not match\"});if(s.signatures.length!==e.signatureCount)throw new me({reason:\"key authorization signatureCount does not match its signature\"});if(zD(e,s.signatures,i),!Mb(s.config,t))throw new me({reason:\"key authorization config does not match\"})}if(Z4(e,Sp(i)),Vm(i).toLowerCase()!==e.keyAuthorization.toLowerCase())throw new me({reason:\"keyAuthorization is not canonically serialized\"})}function CD(e,t,n){const i=zr(t);if(gl({account:e,config:n,signatures:[i],type:\"multisig\"}),gt(i).toLowerCase()!==t.toLowerCase())throw new me({reason:\"approval is not canonical\"});return i}function zD(e,t,n){const i=e.approvals.map(c=>zr(c));for(const c of t){const f=i.findIndex(d=>Q4(d,c));if(f===-1)throw new me({reason:\"key authorization signature is not a retained approval\"});i.splice(f,1)}const s=ba({account:e.account,config:e.config,payload:Sp(n)}),u=t.map(c=>vi({payload:s,signature:c}));for(let c=1;cd)throw new me({reason:\"key authorization approvals are not canonically ordered\"})}}function Q4(e,t){if(e.type!==\"multisig\"||t.type!==\"multisig\")return gt(e).toLowerCase()===gt(t).toLowerCase();if(e.account.toLowerCase()!==t.account.toLowerCase()||!Mb(e.config,t.config))return!1;let n=0;for(const i of t.signatures){for(;nnew Set);i[0].add(0);for(const s of e)for(let u=t;u>0;u--)for(const c of i[u-1])i[u].add(c+s);return i[t].has(n)}function Z4(e,t){if(ba({account:e.account,config:e.config,payload:t}).toLowerCase()!==e.hash.toLowerCase())throw new me({reason:\"hash does not match the operation payload\"})}function lo(e,t){if(typeof e!=\"number\"||!Number.isSafeInteger(e)||e<0)throw new me({reason:`${t} must be a nonnegative safe integer`})}function Mb(e,t){const n=en(e),i=en(t);return c8(n.salt??Io,i.salt??Io)&&n.threshold===i.threshold&&n.version===i.version&&n.owners.length===i.owners.length&&n.owners.every((s,u)=>{const c=i.owners[u];return wn(s.owner,c.owner)&&s.weight===c.weight})}class Ar extends he{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 me extends he{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 OD(e){const{account:t,approvals:n,config:i}=e;return nx(n),{account:t,approvals:n.map(s=>s.type===\"primitive\"?{...s,...typeof s.keyData<\"u\"?{keyData:ix(s.keyData)}:{}}:(nx(s.spec.approvals),{spec:{account:s.spec.account,approvals:s.spec.approvals.map(u=>({...u,...typeof u.keyData<\"u\"?{keyData:ix(u.keyData)}:{}})),config:rx(s.spec.config)},type:\"multisig\"})),config:rx(i)}}function nx(e){if(e.length>hr)throw new ID({reason:`approval count exceeds ${hr}`})}function rx(e){return ol(j4(e))}function ix(e){const t=Ue(e);return t<=4?e:se(t,{size:2})}class ID extends he{constructor(t){super(`Invalid multisig simulation: ${t.reason}.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"MultisigSimulation.InvalidSimulationError\"})}}const Y4={...q8,tempo:\"0x76\"},kD={...F8,\"0x76\":\"tempo\"};function $D(e,t={}){if(!e)return null;const n=Rk(e);return n.type=kD[e.type],e.aaAuthorizationList&&(n.authorizationList=nD(e.aaAuthorizationList),delete n.aaAuthorizationList),e.calls&&(n.calls=e.calls.map(i=>({to:i.to,value:i.value&&i.value!==\"0x\"?BigInt(i.value):void 0,data:i.input||i.data||\"0x\"}))),e.feeToken&&(n.feeToken=e.feeToken),e.nonceKey&&(n.nonceKey=BigInt(e.nonceKey)),e.signature&&(n.signature=vp(e.signature)),e.validAfter&&(n.validAfter=Number(e.validAfter)),e.validBefore&&(n.validBefore=Number(e.validBefore)),e.keyAuthorization&&(n.keyAuthorization=H4(e.keyAuthorization)),e.feePayerSignature&&(n.feePayerSignature=Vg(e.feePayerSignature),n.feePayerSignature.v=Zg(n.feePayerSignature.yParity)),n}function BD(e){const t=Kk({...e,authorizationList:void 0});e.authorizationList&&(t.authorizationList=sD(e.authorizationList)),e.calls?t.calls=e.calls.map(i=>({to:i.to?Jt(i.to):i.to,value:i.value?se(i.value):\"0x\",data:i.data??\"0x\"})):(e.to||e.data||e.value)&&(t.calls=[{to:e.to?Jt(e.to):void 0,value:e.value?se(e.value):\"0x\",data:e.data??\"0x\"}]),typeof e.feeToken<\"u\"&&(t.feeToken=wp(e.feeToken)),e.keyAuthorization&&(t.keyAuthorization=F4(e.keyAuthorization)),e.multisigSimulation&&(t.multisigSimulation=OD(e.multisigSimulation)),typeof e.validBefore<\"u\"&&(t.validBefore=se(e.validBefore)),typeof e.validAfter<\"u\"&&(t.validAfter=se(e.validAfter));const n=(()=>{if(e.nonceKey===\"random\")return $g(6);if(typeof e.nonceKey==\"bigint\")return se(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=Y4.tempo,delete t.data,delete t.input,delete t.to,delete t.value),t}const X4={4217:{base:4217e5,range:100261e4},42431:{base:142431e4,range:723173648}},J4=4217;X4[J4].base;function W4(e,t=J4){const{base:n,range:i}=LD(t);return n+e%i}class ND extends he{constructor({sourceId:t}){super(`Source chain ID \"${t}\" is not supported.`,{metaMessages:[\"Supported source chain IDs: 4217, 42431.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ZoneId.UnsupportedSourceIdError\"})}}function LD(e){if(e===4217||e===42431)return X4[e];throw new ND({sourceId:e})}const Nn=[{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},{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\"}]}],jD=[{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:[]}],Bd=[{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:[]}],UD=[{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:[]}],DD=[{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:[]}],HD=[{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\",indexed:!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:[]}],eA=[{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:[]}],qD=[{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},{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:[]}],FD=[{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:[]}],GD=[{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:[]}],KD=[{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:[]}],VD=[{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:[]}],QD=[{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\",indexed:!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\"}]}],tA=[{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:[]}],ZD=[{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\"}],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:[]}],YD=[{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\"}]}]},{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:[]}],XD=[{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:[]},{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\"}]}],JD=[{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\"}]}],WD=[{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\",indexed:!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\",indexed:!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\"}]},{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\"}]}];[...Nn,...jD,...UD,...KD,...GD,...Bd,...DD,...HD,...eA,...qD,...FD,...tA,...VD,...QD,...ZD,...XD,...YD,...JD,...WD];function nA(e){const t=e.account;return t?.keyType&&t.keyType!==\"secp256k1\"||t?.source===\"accessKey\"||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:hb(e)}function _b(e){try{return nA(e)===\"tempo\"}catch{return!1}}function ax(e){const t=Ee(e,0,1);return t===\"0x76\"||t===\"0x78\"?eH(e):Ej(e)}async function rA(e,t){if(!_b(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:i,s,yParity:u}=t?.signature;return Rm(e,{r:se(i,{size:32}),s:se(s,{size:32}),yParity:u})}return Rm(e,t)}if(nA(e)===\"tempo\")return tH(e,t);throw new Error(\"Unsupported transaction type\")}function eH(e){const{feePayerSignature:t,nonce:n,...i}=Ep(e);return{...i,nonce:Number(n??0n),feePayerSignature:t&&{r:se(t.r,{size:32}),s:se(t.s,{size:32}),yParity:t.yParity}}}async function tH(e,t){const n=(()=>{if(e.signature)return e.signature;if(t&&\"type\"in t)return t;if(t)return rt({r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)})})(),{chainId:i,feePayer:s,multisigSimulation:u,nonce:c,owner:f,...d}=e,p=(()=>{const E=e.feePayerSignature;if(E)return{r:BigInt(E.r),s:BigInt(E.s),yParity:Number(E.yParity)};if(E===null||s)return null})(),y=typeof e.feePayerSignature<\"u\"&&e.feePayerSignature!==null,m=typeof n<\"u\"||!!(u&&e.signatures),b=s===!0&&(!m||!p)||typeof s==\"object\"&&!m||!m&&y,v={...d,calls:d.calls?.length?d.calls:[{to:d.to||(!d.data||d.data===\"0x\"?\"0x0000000000000000000000000000000000000000\":void 0),value:d.value,data:d.data}],chainId:Number(i),feePayerSignature:p,type:\"tempo\",...c?{nonce:BigInt(c)}:{}},x={...v};b&&delete x.feeToken;const S=(()=>{if(n)return n;if(!u||!e.signatures)return;const E=Bo($d(x)),A=e.signatures.map(P=>rt(P)),R=en(u.config),_=u.account,C=wb({account:_,config:R,payload:E,signatures:A});return rt({account:_,config:R,signatures:C})})();if(S&&typeof e.feePayer==\"object\"){const E=$d(v,{signature:S}),A=e.from??vi({payload:Bo(E),root:!0,signature:S}),R=bD(E,{sender:A}),_=await e.feePayer.sign({hash:R});return ci(E,{feePayerSignature:tp(_)})}return s===!0||!S&&y?S&&p?ci(x,{signature:S}):S?ci(x,{format:\"feePayer\",sender:e.from,signature:S}):ci(x,{feePayerSignature:null}):ci(x,{feePayerSignature:void 0,signature:S})}function Zm(e){const t=(()=>{if(typeof e==\"string\")return;const{address:f,...d}=e;return d})(),n=(()=>{if(!t)return;const f=t.owners.map(d=>typeof d==\"string\"||\"address\"in d?{owner:d,weight:1}:d);return en({...t,owners:f.map(({owner:d,weight:p})=>({owner:typeof d==\"string\"?d:d.address,weight:p})),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 version.\")}const i=sl(typeof e==\"string\"?e:e.address===void 0||e.address===\"infer\"?Zo(n):e.address),s=t?t.owners.flatMap(f=>{const d=typeof f==\"string\"||\"address\"in f?f:f.owner;return typeof d==\"string\"?[]:[ut(d)]}):[],u=n?.owners.flatMap(({owner:f})=>{const d=s.find(p=>wn(p.address,f));return d?[d]:[]})??[],c={address:i,config:n,owners:u,publicKey:\"0x\",source:\"multisig\",type:\"local\",async sign({hash:f}){return gt(await oc(c,{payload:f}))},async signMessage(){throw new Error(\"`signMessage` is not supported for multisig accounts.\")},async signTransaction(f,d){const{serializer:p=rA}=d??{},y=f;if(y.owner){const E=ut(y.owner);if(E.type!==\"local\")throw new Error(\"A local owner account is required to approve a multisig transaction.\");if(E.source!==\"root\"&&E.source!==\"multisig\")throw new Error(\"A Tempo owner account is required to approve a multisig transaction.\");const{owner:A,...R}=y;return await E.signTransaction(R,d)}if(u.length===0)return await p(f);const m={...y,signatures:void 0,...y.feePayerSignature===void 0?{}:{feePayerSignature:null}},b=hs(await p(m)),v=y.multisigSimulation,x=v?.account??i;if(!wn(x,i)){if(!v)throw new Error(\"A multisig config is required for local signing.\");const E=en(v.config),A=ba({account:x,config:E,payload:b});return gt(await oc(c,{payload:A}))}const S=await oc(c,{config:v?.config,payload:b,signatures:y.signatures?.map(E=>rt(E))});return await p(f,S)},async signTypedData(){throw new Error(\"`signTypedData` is not supported for multisig accounts.\")}};return c}function Pb(e){return e.source===\"multisig\"}async function oc(e,t){const{config:n,payload:i,signatures:s=[]}=t,u=n??e.config;if(!u)throw new Error(\"A current multisig config is required for local signing.\");const c=ba({account:e.address,config:u,payload:i}),f=[...s],d=new Set;let p=0;for(const m of s){const b=vi({payload:c,signature:m}).toLowerCase(),v=u.owners.find(x=>wn(x.owner,b));!v||d.has(b)||(d.add(b),p+=Number(v.weight))}const y=[...u.owners].sort((m,b)=>Number(b.weight)-Number(m.weight)||m.owner.toLowerCase().localeCompare(b.owner.toLowerCase()));for(const m of y){const b=m.owner.toLowerCase();if(d.has(b))continue;const v=e.owners.find(x=>wn(x.address,m.owner));if(v){if(Pb(v))f.push(await oc(v,{payload:c}));else{if(!v.sign)throw new Error(\"Multisig owner account cannot sign.\");f.push(rt(await v.sign({hash:c})))}if(d.add(b),p+=Number(m.weight),p>=Number(u.threshold))break}}if(p{if(v)return e.sign({hash:A,raw:!0});if(x){if(!f)throw new Error(\"Multisig state is required to sign a key authorization.\");return gt(await oc(e,{config:f.config,payload:A,signatures:p?.map(_=>rt(_))}))}return e.sign({hash:A})})();return xp({address:m,chainId:i,signature:rt(R),type:b,...y?{witness:y}:{},...n?{isAdmin:!0}:{},...S,...E})}function Cb(e){return\"accessKeyAddress\"in e?{accessKeyAddress:e.accessKeyAddress,keyType:e.keyType}:\"publicKey\"in e&&e.publicKey?{accessKeyAddress:ia(Ng(e.publicKey)),keyType:e.type}:{accessKeyAddress:e.address,keyType:e.type}}W4(0);W4(0,42431);const da=\"0xaAAAaaAA00000000000000000000000000000000\",sA=\"0xAACC000000000000000000000000000000000000\",xG=\"0x20c0000000000000000000000000000000000000\",rH=\"0x5165300000000000000000000000000000000000\",SG=\"0x20fc000000000000000000000000000000000000\",sx=[\"genesis\",\"t0\",\"t1\",\"t1a\",\"t1b\",\"t1c\",\"t2\",\"t3\",\"t4\",\"t5\",\"t6\"];function iH(e,t){return sx.indexOf(e){if(typeof m==\"object\"&&m.source===\"multisig\")return m})(),v=(()=>{if(d)return d;if(b?.config)return b.config})(),x=(()=>{if(b)return b.address;if(typeof m==\"string\")return m;if(m)return m.address})(),S=await(async()=>{if(v)return en(v);if(!x)throw new Error(\"A multisig account address or current config is required.\");const A=await Rb(u,{address:x});if(!A)throw new Error(`No current multisig config is cached for account ${x}. Provide the current config.`);return A})(),E=(()=>{if(b)return{...b,config:S};if(typeof m==\"object\")return m;if(x)return Zm({address:x,...S})})();return await s(u,{...y,...E?{account:E}:{},...e.call({currentConfig:S,nextConfig:p})})}e.inner=t;function n(s){const u=en(s.currentConfig),c=en({owners:s.nextConfig.owners,salt:u.salt,threshold:s.nextConfig.threshold,version:u.version+1n});return yr({address:sA,abi:Bd,args:[u,c.threshold,c.owners],functionName:\"updateConfig\"})}e.call=n;function i(s){const[u]=pl({abi:Bd,logs:s,eventName:\"MultisigConfigUpdated\",strict:!0});if(!u)throw new Error(\"`MultisigConfigUpdated` event not found.\");return u}e.extractEvent=i})(Xm||(Xm={}));const oH={0:\"secp256k1\",1:\"p256\",2:\"webAuthn\"},uH={true:\"limited\",false:\"unlimited\"};async function Jm(e,t){return Jm.inner(M4,e,t)}(function(e){async function t(i,s,u){const{accessKey:c,admin:f,chainId:d=s.chain?.id,expiry:p,limits:y,scopes:m,witness:b,...v}=u,x=v.account??s.account;if(!x)throw new Error(\"account is required.\");if(!d)throw new Error(\"chainId is required.\");const S=await cH(s,{account:x,accessKey:c,chainId:d,admin:f,expiry:p,limits:y,scopes:m,witness:b});return await i(s,{...v,keyAuthorization:S})}e.inner=t;function n(i){const[s]=pl({abi:Nn,logs:i,eventName:\"KeyAuthorized\",strict:!0});if(!s)throw new Error(\"`KeyAuthorized` event not found.\");return s}e.extractEvent=n})(Jm||(Jm={}));async function Wm(e,t){return Wm.inner(os,e,t)}(function(e){async function t(s,u,c){const{witness:f,...d}=c,p=e.call({witness:f});return await s(u,{...d,...p})}e.inner=t;function n(s){const{witness:u}=s;return yr({address:da,abi:Nn,functionName:\"burnKeyAuthorizationWitness\",args:[u]})}e.call=n;function i(s){const[u]=pl({abi:Nn,logs:s,eventName:\"KeyAuthorizationWitnessBurned\",strict:!0});if(!u)throw new Error(\"`KeyAuthorizationWitnessBurned` event not found.\");return u}e.extractEvent=i})(Wm||(Wm={}));async function qc(e,t){const{account:n=e.account,accessKey:i,...s}=t;if(!n)throw new Error(\"account is required.\");const u=ut(n),c=await Cr(e,{...s,account:null,...qc.call({account:u.address,accessKey:i})});return{address:c.keyId,keyType:oH[c.signatureType]??\"secp256k1\",expiry:c.expiry,spendPolicy:uH[`${c.enforceLimits}`],isRevoked:c.isRevoked}}(function(e){function t(n){const{account:i,accessKey:s}=n;return yr({address:da,abi:Nn,functionName:\"getKey\",args:[i,No(s)]})}e.call=t})(qc||(qc={}));async function Nd(e,t){const{account:n=e.account,accessKey:i,token:s,...u}=t;if(!n)throw new Error(\"account is required.\");const c=ut(n),f=e.chain?.hardfork;if(f&&iH(f,\"t3\"))return{remaining:await Cr(e,{...u,...Nd.call({account:c.address,accessKey:i,token:s})}),periodEnd:void 0};const[d,p]=await Cr(e,{...u,...Nd.callWithPeriod({account:c.address,accessKey:i,token:s})});return{remaining:d,periodEnd:p}}(function(e){function t(i){const{account:s,accessKey:u,token:c}=i;return yr({address:da,abi:Nn,functionName:\"getRemainingLimit\",args:[s,No(u),c]})}e.call=t;function n(i){const{account:s,accessKey:u,token:c}=i;return yr({address:da,abi:Nn,functionName:\"getRemainingLimitWithPeriod\",args:[s,No(u),c]})}e.callWithPeriod=n})(Nd||(Nd={}));async function eg(e,t){const{account:n=e.account,accessKey:i,...s}=t;if(!n)throw new Error(\"account is required.\");const u=ut(n);return Cr(e,{...s,account:null,...eg.call({account:u.address,accessKey:i})})}(function(e){function t(n){const{account:i,accessKey:s}=n;return yr({address:da,abi:Nn,functionName:\"isAdminKey\",args:[i,No(s)]})}e.call=t})(eg||(eg={}));async function tg(e,t){const{account:n=e.account,witness:i,...s}=t;if(!n)throw new Error(\"account is required.\");const u=ut(n);return Cr(e,{...s,account:null,...tg.call({account:u.address,witness:i})})}(function(e){function t(n){const{account:i,witness:s}=n;return yr({address:da,abi:Nn,functionName:\"isKeyAuthorizationWitnessBurned\",args:[i,s]})}e.call=t})(tg||(tg={}));async function ng(e,t){return ng.inner(os,e,t)}(function(e){async function t(s,u,c){const{accessKey:f,...d}=c,p=e.call({accessKey:f});return await s(u,{...d,...p})}e.inner=t;function n(s){const{accessKey:u}=s;return yr({address:da,abi:Nn,functionName:\"revokeKey\",args:[No(u)]})}e.call=n;function i(s){const[u]=pl({abi:Nn,logs:s,eventName:\"KeyRevoked\",strict:!0});if(!u)throw new Error(\"`KeyRevoked` event not found.\");return u}e.extractEvent=i})(ng||(ng={}));async function ox(e,t){const{chainId:n=e.chain?.id}=t,i=t.account??e.account;if(!i)throw new Error(\"account is required.\");if(!n)throw new Error(\"chainId is required.\");const s=ut(i),u=await(async()=>{if(\"multisig\"in t)return t.multisig;if(s.source!==\"multisig\")return;const d=s;if(!d.config)throw new Error(\"A multisig config is required to prepare a key authorization.\");return{config:d.config}})(),c=aA(s,{...t,chainId:BigInt(n),key:t.accessKey}),f=s.source===\"multisig\"&&u?ba({account:s.address,config:u.config,payload:c}):c;return{...t,account:s,chainId:n,multisig:u,signPayload:f}}async function cH(e,t){if(\"hash\"in t&&t.hash||\"owner\"in t&&t.owner){const y=t,m=y.owner;if(!m||typeof m==\"string\")throw new Error(\"A local owner account is required to approve a multisig key authorization.\");const v=ut(m).sign;if(!v)throw new Error(\"A local owner account is required to approve a multisig key authorization.\");const x=await(async()=>{if(\"hash\"in y&&y.hash){const le=gt(rt(await v({hash:y.hash})));return{hash:y.hash,signature:le}}const{account:R,owner:_,...C}=y,P=typeof R==\"string\"?R:R.address,I=await(async()=>{if(typeof R!=\"string\"&&R.config)return R.config;const le=await Rb(e,{address:P});if(le)return le;throw new Error(`No current multisig config is cached for account ${P}. Provide the current config.`)})(),z=(()=>{if(I.version!==0n)return Zm({address:P,...I});const{version:le,...$}=I;return Zm({address:\"infer\",...$})})();if(!tr(z.address,P))throw new Error(\"Initial multisig config does not match the account.\");const k=await ox(e,{...C,account:z}),L=gt(rt(await v({hash:k.signPayload}))),{accessKey:D,admin:Q,chainId:Y,expiry:te,limits:ue,scopes:J,witness:N}=k,{accessKeyAddress:G,keyType:re}=Cb(D),ce=xp({account:z.address,address:G,chainId:BigInt(Y),signature:rt({account:z.address,config:I,signatures:[rt(L)]}),type:re,...N?{witness:N}:{},...Q?{isAdmin:!0}:{expiry:te,limits:ue,scopes:J}});return{keyAuthorization:F4(ce)}})(),S=await e.request({method:\"multisig_approveKeyAuthorization\",params:[x]}),E=K4(S),A=Sb(await(async()=>{if(E.status===\"success\")return E.keyAuthorization;const R=await SD({account:E.account,approvals:E.approvals,config:E.config,hash:E.hash});return ED(E.keyAuthorization,{account:E.account,approvals:R.selectedApprovals.length>0?R.selectedApprovals:R.approvals.slice(0,1),config:E.config})})());if(!A.signature)throw new Error(\"Expected a signed multisig key authorization.\");return{...A,hash:E.hash,multisig:E,status:E.status}}const i=\"signPayload\"in t?t:await ox(e,t),{accessKey:s,account:u,chainId:c,multisig:f,signPayload:d,...p}=i;return nH(u,{chainId:BigInt(c),key:s,multisig:f,...p})}async function rg(e,t){return rg.inner(os,e,t)}(function(e){async function t(s,u,c){const{accessKey:f,token:d,limit:p,...y}=c,m=e.call({accessKey:f,token:d,limit:p});return await s(u,{...y,...m})}e.inner=t;function n(s){const{accessKey:u,token:c,limit:f}=s;return yr({address:da,abi:Nn,functionName:\"updateSpendingLimit\",args:[No(u),c,f]})}e.call=n;function i(s){const[u]=pl({abi:Nn,logs:s,eventName:\"SpendingLimitUpdated\",strict:!0});if(!u)throw new Error(\"`SpendingLimitUpdated` event not found.\");return u}e.extractEvent=i})(rg||(rg={}));async function ig(e,t){const{account:n,admin:i,hash:s,signature:u,...c}=t;return Cr(e,{...c,...ig.call({account:n,admin:i,hash:s,signature:u})})}(function(e){function t(n){const{account:i,admin:s=!0,hash:u,signature:c}=n;return yr({address:rH,abi:eA,functionName:s?\"verifyKeychainAdmin\":\"verifyKeychain\",args:[i,u,c]})}e.call=t})(ig||(ig={}));function No(e){return typeof e==\"string\"?e:e.accessKeyAddress}function lH(e){if(!_b(e))return Qo(e);const t=e.blockTimestamp==null?void 0:BigInt(e.blockTimestamp),n=e.multisig,{feePayerSignature:i,gasPrice:s,nonce:u,...c}=$D(e);return{...c,accessList:c.accessList,...typeof t<\"u\"&&{blockTimestamp:t},feePayerSignature:i?{r:se(i.r,{size:32}),s:se(i.s,{size:32}),v:BigInt(i.v??27),yParity:i.yParity}:void 0,multisig:uA(n),nonce:Number(u),typeHex:Y4[c.type],type:c.type}}function fH(e){return{...d4(e),multisig:uA(e.multisig),...e.status===\"pending\"?{status:\"pending\",type:\"tempo\"}:{}}}function uA(e){if(!e)return;const t=K4(e);if(t.type!==\"transaction\")throw new Error(\"Expected a multisig transaction operation.\");return t}function dH(e,t){const n=e,i=n.account?ut(n.account):void 0,s=n.owner?ut(n.owner):void 0;if(s?.type===\"json-rpc\")throw new Error(\"A local owner account is required to approve a multisig transaction.\");if(!_b(n))return Vo(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:u,signatures:c,...f}=n,d=BD({...f,type:\"tempo\"});t===\"estimateGas\"&&(d.maxFeePerGas=void 0,d.maxPriorityFeePerGas=void 0),d.to=void 0,d.data=void 0,d.value=void 0;const p=s??i,[y,m]=(()=>{const v=p&&\"keyType\"in p?p.keyType:p?.source;return v?v===\"webAuthn\"?[\"webAuthn\",\"0x0578\"]:[\"p256\",\"secp256k1\"].includes(v)?[v,void 0]:[n.keyType,ux(n.keyData)]:[n.keyType,ux(n.keyData)]})(),b=p&&\"accessKeyAddress\"in p?p.accessKeyAddress:n.keyId;return i&&(d.from=i.address),{...d,...n.capabilities?{capabilities:n.capabilities}:{},...m?{keyData:m}:{},...b?{keyId:b}:{},...y?{keyType:y}:{},...n.owner?{owner:void 0}:{},...typeof n.feePayer<\"u\"?{feePayer:typeof n.feePayer==\"object\"?ut(n.feePayer):n.feePayer}:{},...\"feePayerSignature\"in n&&n.feePayerSignature!==void 0?{feePayerSignature:n.feePayerSignature}:{}}}function ux(e){if(!e)return e;const t=(e.length-2)/2;return t<=4?e:se(t,{size:2})}const ao=new Map;async function pH(e){ao.set(e,(ao.get(e)??0)+1),await Promise.resolve();const t=(ao.get(e)??0)>1;return queueMicrotask(()=>{const n=ao.get(e)??0;n<=1?ao.delete(e):ao.set(e,n-1)}),t}const hH=25,cx=((e,t)=>rA(e,t)),cA={blockTime:1e3,extendSchema:cj(),formatters:{transaction:e4({exclude:[\"aaAuthorizationList\"],format:lH}),transactionReceipt:p4({format:fH}),transactionRequest:yL({format:dH})},prepareTransactionRequest:[async(e,{client:t,phase:n})=>{const i=e;if(i.hash){if(!i.account||typeof i.account==\"string\"||i.account.source!==\"multisig\")throw new Error(\"A local multisig account is required to approve a stored multisig transaction.\");if(!i.owner||typeof i.owner==\"string\")throw new Error(\"A local owner account is required to approve a stored multisig transaction.\");if(i.owner.source!==\"root\"&&i.owner.source!==\"multisig\")throw new Error(\"A Tempo owner account is required to approve a stored multisig transaction.\");const f=await nt(t,zj,\"getTransaction\")({hash:i.hash}),d=\"multisig\"in f?f.multisig:void 0;if(!d)throw new Error(\"Expected a multisig operation transaction.\");if(!tr(d.account,i.account.address))throw new Error(\"Multisig operation account does not match the requested account.\");const p=ax(d.transaction);if(xD({account:d.account,config:d.config,transaction:d.transaction}).toLowerCase()!==i.hash.toLowerCase())throw new Error(\"Multisig operation hash does not match transaction.\");return{...p,account:i.account,from:d.account,multisigSimulation:lx({account:d.account,config:d.config,local:i.account}),owner:i.owner}}if(n===\"afterFillParameters\")return typeof i.gas<\"u\"&&i.feePayer&&!i.feePayerSignature&&(i.keyAuthorization?.signature.type===\"webAuthn\"?i.gas=(i.gas??0n)+20000n:i.account?.source===\"accessKey\"&&(i.gas=(i.gas??0n)+10000n)),i;const s=(()=>{if(i.account?.source===\"multisig\")return{account:i.account.address,config:i.account.config,local:i.account}})();if(i.owner&&!s)throw new Error(\"A multisig account is required when an owner is provided.\");if(i.owner&&typeof i.owner==\"string\")throw new Error(\"A local owner account is required to approve a multisig transaction.\");if(i.owner&&i.owner.source!==\"root\"&&i.owner.source!==\"multisig\")throw new Error(\"A Tempo owner account is required to approve a multisig transaction.\");const u=!!s&&!!i.owner&&t.transport.multisig===!0;if(s){const{account:f,local:d}=s;if(!f)throw new Error(\"A multisig account address is required with a current config.\");const p=await(async()=>{if(s.config)return s.config;if(!u)return;const y=await nt(t,Rb,\"getConfig\")({address:f});if(!y)throw new Error(`No current multisig config is cached for account ${f}. Provide the current config.`);return y})();if(!p)throw new Error(\"A multisig config is required to prepare a transaction.\");i.from=f,i.multisigSimulation=lx({account:f,config:p,local:d})}const c=await(async()=>{if(i.nonceKey===\"expiring\"||i.nonceKey===Oo)return!0;if(typeof i.nonceKey<\"u\"||s)return!1;if(i.feePayer&&typeof i.nonceKey>\"u\")return!0;const f=i.account,d=typeof f==\"string\"?f:f?.address;return d&&typeof i.nonceKey>\"u\"?await pH(d.toLowerCase()):!1})();if(u&&typeof i.nonceKey>\"u\"?(i.nonceKey=_e($g(31))+1n,i.nonce=0):c?(i.nonceKey=Oo,i.nonce=0,typeof i.validAfter>\"u\"&&(i.validAfter=yH()),typeof i.validBefore>\"u\"&&(i.validBefore=Math.floor(Date.now()/1e3)+hH)):typeof i.nonceKey<\"u\"&&(i.nonce=typeof i.nonce==\"number\"?i.nonce:0),!i.keyAuthorization&&i.account?.source===\"accessKey\"){const f=i.account.keyAuthorizationManager;if(f){const d=i.chainId??i.chain?.id;if(typeof d<\"u\"){const p=i.account.address,y=i.account.accessKeyAddress,m={address:p,accessKey:y,chainId:d},b=await f.get(m);if(b){const v=BigInt(Math.floor(Date.now()/1e3));if(b.expiry!=null&&BigInt(b.expiry)<=v)await f.remove(m);else{const x=await nt(t,qc,\"getMetadata\")({account:p,accessKey:y});tr(x.address,y)&&!x.isRevoked&&x.expiry>v?await f.remove(m):i.keyAuthorization=b}}}}}return!i.feeToken&&i.chain?.feeToken&&(i.feeToken=i.chain.feeToken),i},{runAt:[\"beforeFillTransaction\",\"afterFillParameters\"]}],serializers:{transaction:cx,async transactionEnvelope({serializedTransaction:e,transaction:t}){const n=t;if(!n.multisigSimulation)return e;try{zr(e)}catch{if(ax(e).signature?.type===\"multisig\")return e;throw new Error(\"A Tempo owner account is required to approve a multisig transaction.\")}return await cx({...n,signatures:[...n.signatures??[],e]})}},async verifyHash(e,t){const{address:n,hash:i,signature:s,mode:u}=t,c=(()=>{if(typeof s==\"string\")try{return zr(s)}catch{return}})();if(c){if(c?.type===\"keychain\"&&u===\"allowAccessKey\"){const f=c.version===\"v2\"?hs(Je(\"0x04\",i,n)):i,d=(()=>{try{return vi({payload:f,signature:c.inner})}catch{return}})();if(!d)return!1;const p=await qc(e,{account:n,accessKey:d,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});return p.isRevoked||p.expiry<=BigInt(Math.floor(Date.now()/1e3))?!1:Fm(c.inner,{address:d,payload:f})}if(c.type===\"p256\"||c.type===\"webAuthn\"){const f=await h4(e,{address:n,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});if(!f||f===\"0xef01007702c00000000000000000000000000000000000\")return Fm(c,{address:n,payload:i})}}return await nt(e,Bj,\"verifyHash\")({...t,chain:null})}};function lx(e){const{account:t,config:n,local:i}=e;return{account:t,approvals:dx(n).map(s=>{const u=i?.owners.find(c=>tr(c.address,s.owner));if(u?.source===\"multisig\"){const c=u;if(!c.config)throw new Error(\"A nested multisig config is required for gas estimation.\");return{type:\"multisig\",spec:{account:c.address,approvals:dx(c.config).map(f=>{const d=c.owners.find(p=>tr(p.address,f.owner));if(d?.source===\"multisig\")throw new Error(\"Multisig simulation nesting exceeds depth two.\");return{...fx(d),owner:f.owner}}),config:c.config}}}return{...fx(u),owner:s.owner,type:\"primitive\"}}),config:n}}function fx(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 yH(){const t=BigInt(Math.floor(Date.now()/1e3))-60n;return t<=0n?0:Number(BigInt($g(8))%t)}function dx(e){const t=[...e.owners].sort((s,u)=>Number(u.weight)-Number(s.weight)||s.owner.toLowerCase().localeCompare(u.owner.toLowerCase())),n=[];let i=0;for(const s of t.slice(0,hr)){if(i>=Number(e.threshold))break;n.push(s),i+=Number(s.weight)}return n.sort((s,u)=>s.owner.toLowerCase().localeCompare(u.owner.toLowerCase()))}const tn=yl({...cA,id:4217,blockExplorers:{default:{name:\"Tempo Explorer\",url:\"https://explore.tempo.xyz\"}},name:\"Tempo Mainnet\",nativeCurrency:{name:\"USD\",symbol:\"USD\",decimals:6},rpcUrls:{default:{http:[\"https://rpc.tempo.xyz\"],webSocket:[\"wss://rpc.tempo.xyz\"]}}}),Pr=yl({...cA,id:42431,hardfork:\"t5\",blockExplorers:{default:{name:\"Tempo Explorer\",url:\"https://explore.testnet.tempo.xyz\"}},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}),mH=lU({chains:[tn,Pr],ssr:!0,transports:{[tn.id]:Z5(),[Pr.id]:Z5()}}),gH=`data:image/svg+xml,${encodeURIComponent(' ')}`,Ln=Qz()({head:()=>({links:[{rel:\"stylesheet\",href:yU},{rel:\"icon\",type:\"image/svg+xml\",href:gH}],meta:[{charSet:\"utf-8\"},{content:\"width=device-width, initial-scale=1\",name:\"viewport\"},{title:\"Tempo API Admin\"}],scripts:[{children:RU}]}),shellComponent:bH,component:wH,pendingComponent:()=>F.jsx(vH,{})});function bH({children:e}){return F.jsxs(\"html\",{lang:\"en\",\"data-regen-radius\":\"none\",suppressHydrationWarning:!0,children:[F.jsxs(\"head\",{children:[F.jsx(\"base\",{\"data-tempo-base\":\"true\",href:\"/\",suppressHydrationWarning:!0}),F.jsx(\"script\",{\"data-tempo-config\":\"true\",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:\"window.__TEMPO_API_CONFIG__=undefined\"}}),F.jsx(hR,{})]}),F.jsxs(\"body\",{children:[F.jsx(\"div\",{id:\"root\",children:e}),F.jsx(yR,{})]})]})}function vH(){return F.jsx(\"div\",{className:\"flex min-h-screen items-center justify-center text-foreground-secondary\",children:\"Loading…\"})}function wH(){return F.jsx(hU,{config:mH,children:F.jsx(a$,{client:Z8,persistOptions:t$,children:F.jsx(xH,{})})})}function xH(){const{data:e,error:t,isPending:n}=$4();if(n)return null;if(t)return F.jsx(\"div\",{className:\"flex min-h-screen items-center justify-center text-foreground\",children:t.message});if(!e.auth.identity)return F.jsx(MH,{loginUrl:e.auth.loginUrl});const{email:i}=e.auth.identity,{logoutUrl:s}=e.auth;return F.jsxs(\"div\",{className:\"relative flex min-h-dvh min-w-[360px] bg-background max-md:h-dvh max-md:flex-col max-md:overflow-hidden\",children:[F.jsx(\"div\",{className:\"flex-1 bg-background max-md:hidden\"}),F.jsx(SH,{email:i,logoutUrl:s}),F.jsx(\"main\",{className:\"flex min-w-0 w-full max-w-[1024px] flex-col px-4 pt-5 pb-10 max-md:min-h-0 max-md:flex-1 max-md:overflow-y-auto sm:px-8\",children:F.jsx(h3,{})}),F.jsx(\"div\",{className:\"flex-1 max-md:hidden\"}),F.jsx(TH,{})]})}const lA=[{exact:!1,href:\"/organizations\",icon:g$,label:\"Organizations\"},{exact:!1,href:\"/api-keys\",icon:v$,label:\"API Keys\"},{exact:!1,href:\"/verified-tokens\",icon:p$,label:\"Verified Tokens\"},{exact:!1,href:\"/routes\",icon:z$,label:\"Routes\"},{exact:!1,href:\"/subsidies\",icon:y$,label:\"Subsidies\"},{exact:!1,href:\"/earn/vaults\",icon:x$,label:\"Earn Vaults\"},{exact:!1,href:\"/early-access\",icon:P$,label:\"Early Access\"}];function SH(e){return F.jsxs(\"aside\",{className:\"sticky top-0 flex h-dvh w-[260px] shrink-0 flex-col gap-6 border-r border-border bg-background px-2.5 pb-5 max-lg:w-[68px] max-lg:items-center max-lg:px-1.5 max-md:hidden\",children:[F.jsxs(el,{\"aria-label\":\"Tempo API Admin\",className:\"-mb-1 inline-flex rounded-button px-3 pt-5 pb-3\",to:\"/\",children:[F.jsx(gU,{className:\"mt-2 h-4 w-auto text-foreground max-lg:hidden\"}),F.jsx(mU,{className:\"mt-2 h-4 w-auto text-foreground lg:hidden\"})]}),F.jsx(\"nav\",{\"aria-label\":\"Main\",className:\"flex flex-1 flex-col gap-1\",children:lA.map(t=>F.jsx(EH,{exact:t.exact,href:t.href,icon:t.icon,label:t.label},t.href))}),F.jsxs(\"div\",{className:\"flex w-full flex-col gap-1\",children:[F.jsx(\"div\",{className:\"flex justify-start px-2.5 max-lg:justify-center max-lg:px-2\",children:F.jsx(B4,{})}),F.jsx(AH,{email:e.email,logoutUrl:e.logoutUrl})]})]})}function EH(e){const{exact:t,href:n,icon:i,label:s}=e,c=!!y3()({to:n,fuzzy:!t});return F.jsxs(el,{\"aria-current\":c?\"page\":void 0,\"aria-label\":s,className:\"flex items-center gap-3 rounded-button px-3 py-3 text-label-16 text-foreground-secondary hover:bg-surface-hover data-active:font-semibold data-active:text-foreground max-lg:justify-center max-lg:gap-0 max-lg:p-2.5\",\"data-active\":c||void 0,to:n,children:[F.jsx(i,{className:\"size-5\"}),F.jsx(\"span\",{className:\"max-lg:hidden\",children:s})]})}function AH(e){return F.jsxs(\"div\",{className:\"flex items-center gap-3 p-2.5 max-lg:justify-center max-lg:p-2\",children:[F.jsx(ts,{address:N4(e.email),className:\"size-9 shrink-0\",size:36}),F.jsx(\"p\",{className:\"flex-1 truncate text-label-14 text-foreground max-lg:hidden\",children:e.email}),e.logoutUrl?F.jsx(\"a\",{\"aria-label\":\"Sign out\",className:\"shrink-0 text-foreground-secondary hover:text-foreground max-lg:hidden\",href:e.logoutUrl,children:F.jsx(X8,{className:\"size-[18px]\"})}):null]})}function TH(){const e=y3();return F.jsx(\"nav\",{\"aria-label\":\"Main\",className:\"z-10 flex w-full shrink-0 items-center justify-around border-t border-border bg-background pb-[env(safe-area-inset-bottom)] md:hidden\",children:lA.map(t=>{const n=!!e({to:t.href,fuzzy:!t.exact}),i=t.icon;return F.jsxs(el,{\"aria-current\":n?\"page\":void 0,\"aria-label\":t.label,className:\"flex flex-1 flex-col items-center gap-1 py-3 text-foreground-secondary data-active:text-foreground\",\"data-active\":n||void 0,to:t.href,children:[F.jsx(i,{className:\"size-5\"}),F.jsx(\"span\",{className:\"text-label-12\",children:t.label})]},t.href)})})}function MH({loginUrl:e}){return F.jsxs(\"div\",{className:\"flex min-h-dvh flex-col items-center justify-center gap-3 bg-background text-foreground\",children:[F.jsx(\"p\",{className:\"font-medium\",children:\"Sign in required\"}),e?F.jsx(wo,{render:F.jsx(\"a\",{href:e}),children:\"Sign in\"}):F.jsx(\"p\",{className:\"text-copy-14 text-foreground-secondary\",children:\"Your session has expired.\"})]})}const _H=tn.id;var px;function je(e,t,n){function i(f,d){if(f._zod||Object.defineProperty(f,\"_zod\",{value:{def:d,constr:c,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,d);const p=c.prototype,y=Object.keys(p);for(let m=0;mn?.Parent&&f instanceof n.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(c,\"name\",{value:e}),c}class Eo extends Error{constructor(){super(\"Encountered Promise during synchronous parse. Use .parseAsync() instead.\")}}class PH extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name=\"ZodEncodeError\"}}(px=globalThis).__zod_globalConfig??(px.__zod_globalConfig={});const CH=globalThis.__zod_globalConfig;function us(e){return CH}function zH(e){const t=Object.values(e).filter(i=>typeof i==\"number\");return Object.entries(e).filter(([i,s])=>t.indexOf(+i)===-1).map(([i,s])=>s)}function RH(e,t){return typeof t==\"bigint\"?t.toString():t}function OH(e){return{get value(){{const t=e();return Object.defineProperty(this,\"value\",{value:t}),t}}}}function fA(e){return e==null}function dA(e){const t=e.startsWith(\"^\")?1:0,n=e.endsWith(\"$\")?e.length-1:e.length;return e.slice(t,n)}const hx=Symbol(\"evaluating\");function St(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==hx)return i===void 0&&(i=hx,i=n()),i},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function IH(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function kH(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}const pA=\"captureStackTrace\"in Error?Error.captureStackTrace:(...e)=>{};function ag(e){return typeof e==\"object\"&&e!==null&&!Array.isArray(e)}function $H(e){if(ag(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!=\"function\")return!0;const n=t.prototype;return!(ag(n)===!1||Object.prototype.hasOwnProperty.call(n,\"isPrototypeOf\")===!1)}const BH=new Set([\"string\",\"number\",\"symbol\"]);function sg(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}function hA(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function wi(e){return{}}function NH(e){return Object.keys(e).filter(t=>e[t]._zod.optin===\"optional\"&&e[t]._zod.optout===\"optional\")}function LH(e,t){if(!$H(t))throw new Error(\"Invalid input to extend: expected a plain object\");const n=e._zod.def.checks;if(n&&n.length>0){const u=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(u,c)!==void 0)throw new Error(\"Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.\")}const s=kH(e._zod.def,{get shape(){const u={...e._zod.def.shape,...t};return IH(this,\"shape\",u),u}});return hA(e,s)}function ac(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function ad(e){return typeof e==\"string\"?e:e?.message}function cs(e,t,n){const i=e.message?e.message:ad(e.inst?._zod.def?.error?.(e))??ad(t?.error?.(e))??ad(n.customError?.(e))??ad(n.localeError?.(e))??\"Invalid input\",{inst:s,continue:u,input:c,...f}=e;return f.path??(f.path=[]),f.message=i,t?.reportInput&&(f.input=c),f}function mA(e){return Array.isArray(e)?\"array\":typeof e==\"string\"?\"string\":\"unknown\"}const gA=(e,t)=>{e.name=\"$ZodError\",Object.defineProperty(e,\"_zod\",{value:e._zod,enumerable:!1}),Object.defineProperty(e,\"issues\",{value:t,enumerable:!1}),e.message=JSON.stringify(t,RH,2),Object.defineProperty(e,\"toString\",{value:()=>e.message,enumerable:!1})},UH=je(\"$ZodError\",gA),Ap=je(\"$ZodError\",gA,{Parent:Error}),DH=e=>(t,n,i,s)=>{const u=i?{...i,async:!1}:{async:!1},c=t._zod.run({value:n,issues:[]},u);if(c instanceof Promise)throw new Eo;if(c.issues.length){const f=new(s?.Err??e)(c.issues.map(d=>cs(d,u,us())));throw pA(f,s?.callee),f}return c.value},HH=DH(Ap),qH=e=>async(t,n,i,s)=>{const u=i?{...i,async:!0}:{async:!0};let c=t._zod.run({value:n,issues:[]},u);if(c instanceof Promise&&(c=await c),c.issues.length){const f=new(s?.Err??e)(c.issues.map(d=>cs(d,u,us())));throw pA(f,s?.callee),f}return c.value},FH=qH(Ap),GH=e=>(t,n,i)=>{const s=i?{...i,async:!1}:{async:!1},u=t._zod.run({value:n,issues:[]},s);if(u instanceof Promise)throw new Eo;return u.issues.length?{success:!1,error:new(e??UH)(u.issues.map(c=>cs(c,s,us())))}:{success:!0,data:u.value}},bA=GH(Ap),KH=e=>async(t,n,i)=>{const s=i?{...i,async:!0}:{async:!0};let u=t._zod.run({value:n,issues:[]},s);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(c=>cs(c,s,us())))}:{success:!0,data:u.value}},vA=KH(Ap),VH=e=>{const t=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??\"\"}}`:\"[\\\\s\\\\S]*\";return new RegExp(`^${t}$`)},QH=/^-?\\d+(?:\\.\\d+)?$/,wA=je(\"$ZodCheck\",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ZH=je(\"$ZodCheckMaxLength\",(e,t)=>{var n;wA.init(e,t),(n=e._zod.def).when??(n.when=i=>{const s=i.value;return!fA(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const s=i.value;if(s.length<=t.maximum)return;const c=mA(s);i.issues.push({origin:c,code:\"too_big\",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),YH=je(\"$ZodCheckMinLength\",(e,t)=>{var n;wA.init(e,t),(n=e._zod.def).when??(n.when=i=>{const s=i.value;return!fA(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const s=i.value;if(s.length>=t.minimum)return;const c=mA(s);i.issues.push({origin:c,code:\"too_small\",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),XH={major:4,minor:4,patch:3},jn=je(\"$ZodType\",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=XH;const i=[...e._zod.def.checks??[]];e._zod.traits.has(\"$ZodCheck\")&&i.unshift(e);for(const s of i)for(const u of s._zod.onattach)u(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(c,f,d)=>{let p=ac(c),y;for(const m of f){if(m._zod.def.when){if(jH(c)||!m._zod.def.when(c))continue}else if(p)continue;const b=c.issues.length,v=m._zod.check(c);if(v instanceof Promise&&d?.async===!1)throw new Eo;if(y||v instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await v,c.issues.length!==b&&(p||(p=ac(c,b)))});else{if(c.issues.length===b)continue;p||(p=ac(c,b))}}return y?y.then(()=>c):c},u=(c,f,d)=>{if(ac(c))return c.aborted=!0,c;const p=s(f,i,d);if(p instanceof Promise){if(d.async===!1)throw new Eo;return p.then(y=>e._zod.parse(y,d))}return e._zod.parse(p,d)};e._zod.run=(c,f)=>{if(f.skipChecks)return e._zod.parse(c,f);if(f.direction===\"backward\"){const p=e._zod.parse({value:c.value,issues:[]},{...f,skipChecks:!0});return p instanceof Promise?p.then(y=>u(y,c,f)):u(p,c,f)}const d=e._zod.parse(c,f);if(d instanceof Promise){if(f.async===!1)throw new Eo;return d.then(p=>s(p,i,f))}return s(d,i,f)}}St(e,\"~standard\",()=>({validate:s=>{try{const u=bA(e,s);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return vA(e,s).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:\"zod\",version:1}))}),JH=je(\"$ZodString\",(e,t)=>{jn.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??VH(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==\"string\"||n.issues.push({expected:\"string\",code:\"invalid_type\",input:n.value,inst:e}),n}}),WH=je(\"$ZodNumber\",(e,t)=>{jn.init(e,t),e._zod.pattern=e._zod.bag.pattern??QH,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const s=n.value;if(typeof s==\"number\"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const u=typeof s==\"number\"?Number.isNaN(s)?\"NaN\":Number.isFinite(s)?void 0:\"Infinity\":void 0;return n.issues.push({expected:\"number\",code:\"invalid_type\",input:s,inst:e,...u?{received:u}:{}}),n}});function yx(e,t,n){e.issues.length&&t.issues.push(...yA(n,e.issues)),t.value[n]=e.value}const eq=je(\"$ZodArray\",(e,t)=>{jn.init(e,t),e._zod.parse=(n,i)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:\"array\",code:\"invalid_type\",input:s,inst:e}),n;n.value=Array(s.length);const u=[];for(let c=0;cyx(p,n,c))):yx(d,n,c)}return u.length?Promise.all(u).then(()=>n):n}});function Ld(e,t,n,i,s,u){const c=n in i;if(e.issues.length){if(s&&u&&!c)return;t.issues.push(...yA(n,e.issues))}if(!c&&!s){e.issues.length||t.issues.push({code:\"invalid_type\",expected:\"nonoptional\",input:void 0,path:[n]});return}e.value===void 0?c&&(t.value[n]=void 0):t.value[n]=e.value}function tq(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has(\"$ZodType\"))throw new Error(`Invalid element at key \"${i}\": expected a Zod schema`);const n=NH(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function nq(e,t,n,i,s,u){const c=[],f=s.keySet,d=s.catchall._zod,p=d.def.type,y=d.optin===\"optional\",m=d.optout===\"optional\";for(const b in t){if(b===\"__proto__\"||f.has(b))continue;if(p===\"never\"){c.push(b);continue}const v=d.run({value:t[b],issues:[]},i);v instanceof Promise?e.push(v.then(x=>Ld(x,n,b,t,y,m))):Ld(v,n,b,t,y,m)}return c.length&&n.issues.push({code:\"unrecognized_keys\",keys:c,input:t,inst:u}),e.length?Promise.all(e).then(()=>n):n}const rq=je(\"$ZodObject\",(e,t)=>{if(jn.init(e,t),!Object.getOwnPropertyDescriptor(t,\"shape\")?.get){const f=t.shape;Object.defineProperty(t,\"shape\",{get:()=>{const d={...f};return Object.defineProperty(t,\"shape\",{value:d}),d}})}const i=OH(()=>tq(t));St(e._zod,\"propValues\",()=>{const f=t.shape,d={};for(const p in f){const y=f[p]._zod;if(y.values){d[p]??(d[p]=new Set);for(const m of y.values)d[p].add(m)}}return d});const s=ag,u=t.catchall;let c;e._zod.parse=(f,d)=>{c??(c=i.value);const p=f.value;if(!s(p))return f.issues.push({expected:\"object\",code:\"invalid_type\",input:p,inst:e}),f;f.value={};const y=[],m=c.shape;for(const b of c.keys){const v=m[b],x=v._zod.optin===\"optional\",S=v._zod.optout===\"optional\",E=v._zod.run({value:p[b],issues:[]},d);E instanceof Promise?y.push(E.then(A=>Ld(A,f,b,p,x,S))):Ld(E,f,b,p,x,S)}return u?nq(y,p,f,d,i.value,e):y.length?Promise.all(y).then(()=>f):f}});function mx(e,t,n,i){for(const u of e)if(u.issues.length===0)return t.value=u.value,t;const s=e.filter(u=>!ac(u));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:\"invalid_union\",input:t.value,inst:n,errors:e.map(u=>u.issues.map(c=>cs(c,i,us())))}),t)}const iq=je(\"$ZodUnion\",(e,t)=>{jn.init(e,t),St(e._zod,\"optin\",()=>t.options.some(i=>i._zod.optin===\"optional\")?\"optional\":void 0),St(e._zod,\"optout\",()=>t.options.some(i=>i._zod.optout===\"optional\")?\"optional\":void 0),St(e._zod,\"values\",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),St(e._zod,\"pattern\",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${i.map(s=>dA(s.source)).join(\"|\")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,s)=>{if(n)return n(i,s);let u=!1;const c=[];for(const f of t.options){const d=f._zod.run({value:i.value,issues:[]},s);if(d instanceof Promise)c.push(d),u=!0;else{if(d.issues.length===0)return d;c.push(d)}}return u?Promise.all(c).then(f=>mx(f,i,e,s)):mx(c,i,e,s)}}),aq=je(\"$ZodEnum\",(e,t)=>{jn.init(e,t);const n=zH(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(s=>BH.has(typeof s)).map(s=>typeof s==\"string\"?sg(s):s.toString()).join(\"|\")})$`),e._zod.parse=(s,u)=>{const c=s.value;return i.has(c)||s.issues.push({code:\"invalid_value\",values:n,input:c,inst:e}),s}}),sq=je(\"$ZodLiteral\",(e,t)=>{if(jn.init(e,t),t.values.length===0)throw new Error(\"Cannot create literal schema with no valid values\");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i==\"string\"?sg(i):i?sg(i.toString()):String(i)).join(\"|\")})$`),e._zod.parse=(i,s)=>{const u=i.value;return n.has(u)||i.issues.push({code:\"invalid_value\",values:t.values,input:u,inst:e}),i}}),oq=je(\"$ZodTransform\",(e,t)=>{jn.init(e,t),e._zod.optin=\"optional\",e._zod.parse=(n,i)=>{if(i.direction===\"backward\")throw new PH(e.constructor.name);const s=t.transform(n.value,n);if(i.async)return(s instanceof Promise?s:Promise.resolve(s)).then(c=>(n.value=c,n.fallback=!0,n));if(s instanceof Promise)throw new Eo;return n.value=s,n.fallback=!0,n}});function gx(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const uq=je(\"$ZodOptional\",(e,t)=>{jn.init(e,t),e._zod.optin=\"optional\",e._zod.optout=\"optional\",St(e._zod,\"values\",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),St(e._zod,\"pattern\",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${dA(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin===\"optional\"){const s=n.value,u=t.innerType._zod.run(n,i);return u instanceof Promise?u.then(c=>gx(c,s)):gx(u,s)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),cq=je(\"$ZodCatch\",(e,t)=>{jn.init(e,t),e._zod.optin=\"optional\",St(e._zod,\"optout\",()=>t.innerType._zod.optout),St(e._zod,\"values\",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction===\"backward\")return t.innerType._zod.run(n,i);const s=t.innerType._zod.run(n,i);return s instanceof Promise?s.then(u=>(n.value=u.value,u.issues.length&&(n.value=t.catchValue({...n,error:{issues:u.issues.map(c=>cs(c,i,us()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(u=>cs(u,i,us()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),lq=je(\"$ZodPipe\",(e,t)=>{jn.init(e,t),St(e._zod,\"values\",()=>t.in._zod.values),St(e._zod,\"optin\",()=>t.in._zod.optin),St(e._zod,\"optout\",()=>t.out._zod.optout),St(e._zod,\"propValues\",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction===\"backward\"){const u=t.out._zod.run(n,i);return u instanceof Promise?u.then(c=>sd(c,t.in,i)):sd(u,t.in,i)}const s=t.in._zod.run(n,i);return s instanceof Promise?s.then(u=>sd(u,t.out,i)):sd(s,t.out,i)}});function sd(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const fq=je(\"$ZodReadonly\",(e,t)=>{jn.init(e,t),St(e._zod,\"propValues\",()=>t.innerType._zod.propValues),St(e._zod,\"values\",()=>t.innerType._zod.values),St(e._zod,\"optin\",()=>t.innerType?._zod?.optin),St(e._zod,\"optout\",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction===\"backward\")return t.innerType._zod.run(n,i);const s=t.innerType._zod.run(n,i);return s instanceof Promise?s.then(bx):bx(s)}});function bx(e){return e.value=Object.freeze(e.value),e}function dq(e,t){return new e({type:\"string\",...wi()})}function pq(e,t){return new e({type:\"number\",coerce:!0,checks:[],...wi()})}function hq(e,t){return new ZH({check:\"max_length\",...wi(),maximum:e})}function yq(e,t){return new YH({check:\"min_length\",...wi(),minimum:e})}const ir=je(\"ZodMiniType\",(e,t)=>{if(!e._zod)throw new Error(\"Uninitialized schema in ZodMiniType.\");jn.init(e,t),e.def=t,e.type=t.type,e.parse=(n,i)=>HH(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>bA(e,n,i),e.parseAsync=async(n,i)=>FH(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>vA(e,n,i),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(i=>typeof i==\"function\"?{_zod:{check:i,def:{check:\"custom\"},onattach:[]}}:i)]},{parent:!0}),e.with=e.check,e.clone=(n,i)=>hA(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.apply=n=>n(e)}),mq=je(\"ZodMiniString\",(e,t)=>{JH.init(e,t),ir.init(e,t)});function Wn(e){return dq(mq)}const gq=je(\"ZodMiniNumber\",(e,t)=>{WH.init(e,t),ir.init(e,t)}),bq=je(\"ZodMiniArray\",(e,t)=>{eq.init(e,t),ir.init(e,t)});function ec(e,t){return new bq({type:\"array\",element:e,...wi()})}const vq=je(\"ZodMiniObject\",(e,t)=>{rq.init(e,t),ir.init(e,t),St(e,\"shape\",()=>t.shape)});function Yo(e,t){const n={type:\"object\",shape:e??{},...wi()};return new vq(n)}function wq(e,t){return LH(e,t)}const xq=je(\"ZodMiniUnion\",(e,t)=>{iq.init(e,t),ir.init(e,t)});function xA(e,t){return new xq({type:\"union\",options:e,...wi()})}const Sq=je(\"ZodMiniEnum\",(e,t)=>{aq.init(e,t),ir.init(e,t),e.options=Object.values(t.entries)});function ta(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Sq({type:\"enum\",entries:n,...wi()})}const Eq=je(\"ZodMiniLiteral\",(e,t)=>{sq.init(e,t),ir.init(e,t)});function Lo(e,t){return new Eq({type:\"literal\",values:Array.isArray(e)?e:[e],...wi()})}const Aq=je(\"ZodMiniTransform\",(e,t)=>{oq.init(e,t),ir.init(e,t)});function Tq(e){return new Aq({type:\"transform\",transform:e})}const Mq=je(\"ZodMiniOptional\",(e,t)=>{uq.init(e,t),ir.init(e,t)});function et(e){return new Mq({type:\"optional\",innerType:e})}const _q=je(\"ZodMiniCatch\",(e,t)=>{cq.init(e,t),ir.init(e,t)});function it(e,t){return new _q({type:\"catch\",innerType:e,catchValue:(()=>t)})}const Pq=je(\"ZodMiniPipe\",(e,t)=>{lq.init(e,t),ir.init(e,t)});function SA(e,t){return new Pq({type:\"pipe\",in:e,out:t})}const Cq=je(\"ZodMiniReadonly\",(e,t)=>{fq.init(e,t),ir.init(e,t)});function tc(e){return new Cq({type:\"readonly\",innerType:e})}function zq(e){return pq(gq)}async function pa(e,t){return(await e.json().catch(()=>null))?.error?.message??t.fallback}const Rq=Yo({tab:it(et(ta([\"pending\",\"verified\"])),void 0)});function _G({address:e,chainId:t}){return ve[\"verified-tokens\"][\":address\"].logo.$url({param:{address:e},query:{chainId:String(t)}}).toString()}var jo;(e=>{function t({chainId:u}){return[\"verified-tokens\",u]}e.key=t;async function n({chainId:u}){return(await ve[\"verified-tokens\"].$get({query:{chainId:String(u)}})).json()}e.fn=n;function i(u){return{queryFn:()=>n(u),queryKey:t(u),staleTime:3e4}}e.options=i;function s(u){return tl(i(u))}e.useQuery=s})(jo||(jo={}));var vx;(e=>{async function t({logo:i,...s}){const u=await ve[\"verified-tokens\"].$post({json:{...s,...i?{logo:await i.text()}:{}}});if(!u.ok)throw new Error(\"Failed to add token.\");return u.json()}e.fn=t;function n(){const i=bt();return Tt({mutationFn:t,onSuccess:(s,u)=>i.invalidateQueries({queryKey:jo.key({chainId:u.chainId})})})}e.useMutation=n})(vx||(vx={}));var og;(e=>{let t;(n=>{function i(){return[\"verified-token-requests\"]}n.key=i;async function s(f){const d=await ve[\"verified-tokens\"].requests.$get({query:{...f,limit:\"5\"}});if(!d.ok)throw new Error(\"Failed to load requests.\");return d.json()}n.fn=s;function u(){return{getNextPageParam:f=>f.nextCursor??void 0,initialPageParam:null,queryFn:({pageParam:f})=>s({cursor:f??void 0}),queryKey:i(),staleTime:3e4}}n.options=u;function c(){return lO(u())}n.useQuery=c})(t=e.list||(e.list={})),(n=>{async function i({requestId:u}){const c=await ve[\"verified-tokens\"].requests[\":requestId\"].approve.$post({param:{requestId:u}});if(!c.ok)throw new Error(await pa(c,{fallback:\"Failed to approve request.\"}));return c.json()}n.fn=i;function s(){const u=bt();return Tt({mutationFn:i,onSuccess:(c,f)=>{u.invalidateQueries({queryKey:t.key()}),u.invalidateQueries({queryKey:jo.key({chainId:f.chainId})})}})}n.useMutation=s})(e.approve||(e.approve={})),(n=>{async function i({requestId:u,reviewNote:c}){const f=await ve[\"verified-tokens\"].requests[\":requestId\"].deny.$post({json:c?{reviewNote:c}:{},param:{requestId:u}});if(!f.ok)throw new Error(await pa(f,{fallback:\"Failed to deny request.\"}));return f.json()}n.fn=i;function s(){const u=bt();return Tt({mutationFn:i,onSuccess:()=>u.invalidateQueries({queryKey:t.key()})})}n.useMutation=s})(e.deny||(e.deny={}))})(og||(og={}));var wx;(e=>{async function t({address:i,chainId:s}){const u=await ve[\"verified-tokens\"][\":address\"].$delete({param:{address:i},query:{chainId:String(s)}});if(!u.ok)throw new Error(\"Failed to remove token.\");return u.json()}e.fn=t;function n(){const i=bt();return Tt({mutationFn:t,onSuccess:(s,u)=>i.invalidateQueries({queryKey:jo.key({chainId:u.chainId})})})}e.useMutation=n})(wx||(wx={}));const Oq=()=>an(()=>import(\"./verified-tokens-3cP7NI6N.js\"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),Iq=nr(\"/verified-tokens\")({validateSearch:Rq,loader:({context:e})=>Promise.all([e.queryClient.prefetchQuery(jo.options({chainId:_H})),e.queryClient.prefetchInfiniteQuery(og.list.options())]),component:Bn(Oq,\"component\")});tn.id,Pr.id;var ug;(e=>{e.Search=Yo({selected:it(et(Wn()),void 0),tab:it(et(ta([\"routes\",\"transactions\"])),void 0)})})(ug||(ug={}));var xx;(e=>{async function t(i){const s=await ve.subsidies.transactions.$get({query:{...i,limit:\"25\"}});if(!s.ok)throw new Error(\"Failed to load subsidy transactions.\");return s.json()}e.fn=t;function n(){return{getNextPageParam:i=>i.nextCursor??void 0,initialPageParam:null,queryFn:({pageParam:i})=>t({cursor:i??void 0}),queryKey:[\"subsidies\",\"transactions\"],staleTime:15e3}}e.options=n})(xx||(xx={}));var Sx;(e=>{async function t(i){const s=await ve.subsidies.routes.$get({query:{...i,limit:\"25\"}});if(!s.ok)throw new Error(\"Failed to load route subsidies.\");return s.json()}e.fn=t;function n(){return{getNextPageParam:i=>i.nextCursor??void 0,initialPageParam:null,queryFn:({pageParam:i})=>t({cursor:i??void 0}),queryKey:[\"subsidies\",\"routes\"],staleTime:15e3}}e.options=n})(Sx||(Sx={}));const kq=()=>an(()=>import(\"./subsidies-CDfvvjI8.js\"),__vite__mapDeps([18,9,19,10,20,21,16,14,4,5]),import.meta.url);`eip155:${Ya.id}`+\"\",`${Ya.blockExplorers.default.url}`,`${Ya.blockExplorers.default.url}`,`eip155:${So.id}`+\"\",`${So.blockExplorers.default.url}`,`${So.blockExplorers.default.url}`,`eip155:${tn.id}`+\"\",`${tn.blockExplorers.default.url}`,`${tn.blockExplorers.default.url}`,`eip155:${Pr.id}`+\"\",`${Pr.blockExplorers.default.url}`,`${Pr.blockExplorers.default.url}`;const $q=nr(\"/subsidies\")({validateSearch:ug.Search,component:Bn(kq,\"component\")}),Bq=[\"transfers\",\"deposits\",\"deposit-addresses\"],Nq=[\"action-required\",\"active\",\"awaiting-source\",\"bridging\",\"completed\",\"deactivated\",\"detected\",\"expired\",\"processing\",\"refunded\",\"refunding\",\"settling\"];var cg;(e=>{e.Search=Yo({depositAddressId:it(et(Wn()),void 0),environments:it(et(tc(ec(ta([\"production\",\"sandbox\"])))),void 0),inProgress:it(et(Lo(\"true\")),void 0),methods:it(et(tc(ec(ta([\"depositAddress\",\"transaction\"])))),void 0),needsAttention:it(et(Lo(\"true\")),void 0),orgId:it(et(Wn()),void 0),projectId:it(et(Wn()),void 0),providers:it(et(tc(ec(Wn()))),void 0),query:it(et(Wn()),void 0),resource:it(et(ta(Bq)),void 0),selected:it(et(Wn()),void 0),sourceChains:it(et(tc(ec(Wn()))),void 0),statuses:it(et(tc(ec(ta(Nq)))),void 0)})})(cg||(cg={}));var lg;(e=>{e.key=[\"routes\",\"support\",\"v1\"];async function t(){const i=await ve.routes.support.$get();if(!i.ok)throw new Error(\"Failed to load route support.\");return i.json()}e.fn=t;function n(){return{queryFn:t,queryKey:e.key,staleTime:3e4}}e.options=n})(lg||(lg={}));var Ex;(e=>{async function t(i){const s=await ve.routes.summary.$get({query:Tp(i)});if(!s.ok)throw new Error(\"Failed to load the routes summary.\");return s.json()}e.fn=t;function n(i){return{queryFn:()=>t(i),queryKey:[\"routes\",\"summary\",i],staleTime:15e3}}e.options=n})(Ex||(Ex={}));var Ax;(e=>{async function t(i){const s=await ve.routes.transfers.$get({query:{...Tp(i),limit:\"25\"}});if(!s.ok)throw new Error(\"Failed to load route transfers.\");return s.json()}e.fn=t;function n(i){return{getNextPageParam:s=>s.nextCursor??void 0,initialPageParam:null,queryFn:({pageParam:s})=>t({...i,cursor:s??void 0}),queryKey:[\"routes\",\"transfers\",i],staleTime:15e3}}e.options=n})(Ax||(Ax={}));var Tx;(e=>{async function t(i){const s=await ve.routes.transfers[\":id\"].$get({param:{id:i}});if(s.status===404)throw new Error(\"Route transfer not found.\");if(!s.ok)throw new Error(\"Failed to load the route transfer.\");return s.json()}e.fn=t;function n(i){return{queryFn:()=>t(i),queryKey:[\"routes\",\"transfers\",i],staleTime:15e3}}e.options=n})(Tx||(Tx={}));var Mx;(e=>{async function t(i){const s=await ve.routes.deposits.$get({query:{...Tp(i),limit:\"25\"}});if(!s.ok)throw new Error(\"Failed to load route deposits.\");return s.json()}e.fn=t;function n(i){return{getNextPageParam:s=>s.nextCursor??void 0,initialPageParam:null,queryFn:({pageParam:s})=>t({...i,cursor:s??void 0}),queryKey:[\"routes\",\"deposits\",i],staleTime:15e3}}e.options=n})(Mx||(Mx={}));var _x;(e=>{async function t(i){const s=await ve.routes.deposits[\":id\"].$get({param:{id:i}});if(s.status===404)throw new Error(\"Route deposit not found.\");if(!s.ok)throw new Error(\"Failed to load the route deposit.\");return s.json()}e.fn=t;function n(i){return{queryFn:()=>t(i),queryKey:[\"routes\",\"deposits\",i],staleTime:15e3}}e.options=n})(_x||(_x={}));var Px;(e=>{async function t(i){const s=await ve.routes[\"deposit-addresses\"].$get({query:{...Tp(i),limit:\"25\"}});if(!s.ok)throw new Error(\"Failed to load route deposit addresses.\");return s.json()}e.fn=t;function n(i){return{getNextPageParam:s=>s.nextCursor??void 0,initialPageParam:null,queryFn:({pageParam:s})=>t({...i,cursor:s??void 0}),queryKey:[\"routes\",\"deposit-addresses\",i],staleTime:15e3}}e.options=n})(Px||(Px={}));function Tp(e){const{environments:t,methods:n,providers:i,sourceChains:s,statuses:u,...c}=e;return{...c,environment:t?.join(\",\"),method:n?.join(\",\"),provider:i?.join(\",\"),sourceChain:s?.join(\",\"),status:u?.join(\",\")}}var Cx;(e=>{async function t(i){const s=await ve.routes[\"deposit-addresses\"][\":id\"].$get({param:{id:i}});if(s.status===404)throw new Error(\"Route deposit address not found.\");if(!s.ok)throw new Error(\"Failed to load the route deposit address.\");return s.json()}e.fn=t;function n(i){return{queryFn:()=>t(i),queryKey:[\"routes\",\"deposit-addresses\",i],staleTime:15e3}}e.options=n})(Cx||(Cx={}));const Lq=()=>an(()=>import(\"./routes-BwTWIt70.js\"),__vite__mapDeps([22,2,1,3,4,5,6,7,8,9,19,10,23,20,21,16,14]),import.meta.url);`eip155:${Ya.id}`+\"\",`${Ya.blockExplorers.default.url}`,`${Ya.blockExplorers.default.url}`,`eip155:${So.id}`+\"\",`${So.blockExplorers.default.url}`,`${So.blockExplorers.default.url}`,`eip155:${tn.id}`+\"\",`${tn.blockExplorers.default.url}`,`${tn.blockExplorers.default.url}`;const jq=nr(\"/routes\")({validateSearch:cg.Search,component:Bn(Lq,\"component\")});var jd;(e=>{e.Search=Yo({period:it(et(ta([\"24h\",\"7d\",\"30d\"])),void 0),query:it(et(SA(Wn(),Tq(t=>t.trim())).check(yq(3),hq(200))),void 0)})})(jd||(jd={}));function PG(e){return e.query?{query:e.query}:{}}function CG(e){const t=e.trim();return t.length>=3?t:void 0}var fg;(e=>{function t(s){return[\"organizations\",\"list\",s.query??\"\"]}e.key=t;async function n(s){const u=await ve.organizations.$get({query:{...s.cursor?{cursor:s.cursor}:{},limit:\"25\",...s.query?{query:s.query}:{}}});if(!u.ok)throw new Error(\"Failed to load organizations.\");return await u.json()}e.fn=n;function i(s){return{getNextPageParam:u=>u.nextCursor,initialPageParam:null,queryFn:({pageParam:u})=>n({...s,cursor:u??void 0}),queryKey:t(s),staleTime:3e4}}e.options=i})(fg||(fg={}));var Fc;(e=>{function t(s){return[\"organizations\",\"detail\",s]}e.key=t;async function n(s){const u=await ve.organizations[\":orgId\"].$get({param:{orgId:s}});if(u.status===404)throw new Error(\"Organization not found.\");if(!u.ok)throw new Error(\"Failed to load organization.\");return await u.json()}e.fn=n;function i(s){return{queryFn:()=>n(s),queryKey:t(s),staleTime:3e4}}e.options=i})(Fc||(Fc={}));var Gc;(e=>{function t(s){return[\"organizations\",s,\"subsidies\"]}e.key=t;async function n(s){const u=await ve.organizations[\":orgId\"].subsidies.$get({param:{orgId:s}});if(u.status===404)throw new Error(\"Organization not found.\");if(!u.ok)throw new Error(\"Failed to load organization subsidies.\");return await u.json()}e.fn=n;function i(s){return{queryFn:()=>n(s),queryKey:t(s),staleTime:3e4}}e.options=i})(Gc||(Gc={}));function EA(e){return{...e.detail,billing:{...e.detail.billing,enabledSources:e.enabledSources}}}var zx;(e=>{async function t(i){const s=await ve.organizations[\":orgId\"][\"billing-sources\"][\":source\"].$put({param:i});if(!s.ok)throw new Error(\"Failed to enable billing source.\");return await s.json()}e.fn=t;function n(i){const s=bt();return Tt({mutationFn:u=>t({orgId:i,source:u}),onSuccess:u=>s.setQueryData(Fc.key(i),c=>c&&EA({detail:c,enabledSources:u.data}))})}e.useMutation=n})(zx||(zx={}));var Rx;(e=>{async function t(i){const s=await ve.organizations[\":orgId\"][\"billing-sources\"][\":source\"].$delete({param:i});if(!s.ok)throw new Error(\"Failed to disable billing source.\");return await s.json()}e.fn=t;function n(i){const s=bt();return Tt({mutationFn:u=>t({orgId:i,source:u}),onSuccess:u=>s.setQueryData(Fc.key(i),c=>c&&EA({detail:c,enabledSources:u.data}))})}e.useMutation=n})(Rx||(Rx={}));var Ox;(e=>{async function t(i){const s=await ve.organizations[\":orgId\"].subsidies.routes.$put({json:i.enabled?{enabled:!0,frequency:\"tx\",maxAmount:i.maxAmount}:{enabled:!1},param:{orgId:i.orgId}});if(!s.ok)throw new Error(\"Failed to update Routes subsidy.\");return await s.json()}e.fn=t;function n(i){const s=bt();return Tt({mutationFn:u=>t({...u,orgId:i}),onSuccess:u=>s.setQueryData(Gc.key(i),c=>c&&{...c,routes:u})})}e.useMutation=n})(Ox||(Ox={}));var Ix;(e=>{async function t(i){const s=i.enabled?i.attributionSpendLimit?{attributionSpendLimit:i.attributionSpendLimit,enabled:!0}:{enabled:!0}:{enabled:!1},u=await ve.organizations[\":orgId\"].subsidies.sponsorship.$put({json:s,param:{orgId:i.orgId}});if(!u.ok)throw new Error(\"Failed to update sponsorship subsidy.\");return await u.json()}e.fn=t;function n(i){const s=bt();return Tt({mutationFn:u=>t({...u,orgId:i}),onSuccess:u=>s.setQueryData(Gc.key(i),c=>c&&{...c,sponsorship:u})})}e.useMutation=n})(Ix||(Ix={}));var kx;(e=>{function t(s){return[\"organizations\",s,\"members\"]}e.key=t;async function n(s){const u=await ve.organizations[\":orgId\"].members.$get({param:{orgId:s.orgId},query:{...s.cursor?{cursor:s.cursor}:{},limit:\"25\"}});if(!u.ok)throw new Error(\"Failed to load organization members.\");return await u.json()}e.fn=n;function i(s){return{getNextPageParam:u=>u.nextCursor,initialPageParam:null,queryFn:({pageParam:u})=>n({cursor:u??void 0,orgId:s}),queryKey:t(s),staleTime:3e4}}e.options=i})(kx||(kx={}));var $x;(e=>{async function t(i){const s=await ve.organizations[\":orgId\"].invitations.$post({json:{email:i.email,role:i.role},param:{orgId:i.orgId}});if(!s.ok)throw new Error(await pa(s,{fallback:\"Failed to send invitation.\"}));return await s.json()}e.fn=t;function n(i){return Tt({mutationFn:s=>t({...s,orgId:i})})}e.useMutation=n})($x||($x={}));var Bx;(e=>{function t(s){return[\"organizations\",s,\"projects\"]}e.key=t;async function n(s){const u=await ve.organizations[\":orgId\"].projects.$get({param:{orgId:s.orgId},query:{...s.cursor?{cursor:s.cursor}:{},limit:\"25\"}});if(!u.ok)throw new Error(\"Failed to load organization projects.\");return await u.json()}e.fn=n;function i(s){return{getNextPageParam:u=>u.nextCursor,initialPageParam:null,queryFn:({pageParam:u})=>n({cursor:u??void 0,orgId:s}),queryKey:t(s),staleTime:3e4}}e.options=i})(Bx||(Bx={}));var Nx;(e=>{function t(n){return{queryFn:async()=>{const i=await ve.organizations[\":orgId\"][\"api-keys\"].$get({param:{orgId:n}});if(!i.ok)throw new Error(\"Failed to load organization API keys.\");return await i.json()},queryKey:[\"organizations\",n,\"api-keys\"],staleTime:3e4}}e.options=t})(Nx||(Nx={}));var Lx;(e=>{function t(n){return{queryFn:async()=>{const i=await ve.organizations[\":orgId\"].sponsorship.$get({param:{orgId:n}});if(!i.ok)throw new Error(\"Failed to load sponsorship activity.\");return await i.json()},queryKey:[\"organizations\",n,\"sponsorship\"],staleTime:3e4}}e.options=t})(Lx||(Lx={}));var jx;(e=>{function t(n,i){return{queryFn:async()=>{const s=await ve.organizations[\":orgId\"].usage.$get({param:{orgId:n},query:{period:i}});if(!s.ok)throw new Error(\"Failed to load API usage.\");return await s.json()},queryKey:[\"organizations\",n,\"usage\",i],staleTime:3e4}}e.options=t})(jx||(jx={}));var Ux;(e=>{function t(n){return{queryFn:async()=>{const i=await ve.organizations[\":orgId\"].webhooks.$get({param:{orgId:n}});if(!i.ok)throw new Error(\"Failed to load webhook health.\");return await i.json()},queryKey:[\"organizations\",n,\"webhooks\"],staleTime:3e4}}e.options=t})(Ux||(Ux={}));const Uq=()=>an(()=>import(\"./organizations-atqCj_no.js\"),__vite__mapDeps([24,10]),import.meta.url),Dq=()=>an(()=>import(\"./organizations-uI5F4KZB.js\"),__vite__mapDeps([25,26,1,27,23,10,28,29]),import.meta.url),Hq=nr(\"/organizations\")({validateSearch:jd.Search,loaderDeps:({search:e})=>({query:e.query||void 0}),loader:({context:e,deps:t})=>e.queryClient.ensureInfiniteQueryData(fg.options(t)),component:Bn(Dq,\"component\"),errorComponent:Bn(Uq,\"errorComponent\")});var Kc;(e=>{e.key=[\"early-access\"];async function t(){const s=await ve[\"early-access\"].$get();if(!s.ok)throw new Error(\"Failed to load entries.\");return s.json()}e.fn=t;function n(){return{queryFn:t,queryKey:e.key,staleTime:3e4}}e.options=n;function i(){return tl(n())}e.useQuery=i})(Kc||(Kc={}));var Dx;(e=>{async function t(i){const s=await ve[\"early-access\"].$post({json:i});if(!s.ok)throw new Error(await pa(s,{fallback:\"Failed to add entry.\"}));return s.json()}e.fn=t;function n(){const i=bt();return Tt({mutationFn:t,onSuccess:()=>i.invalidateQueries({queryKey:Kc.key})})}e.useMutation=n})(Dx||(Dx={}));var Hx;(e=>{async function t({entry:i}){const s=await ve[\"early-access\"].$delete({json:{entry:i}});if(!s.ok)throw new Error(await pa(s,{fallback:\"Failed to remove entry.\"}));return s.json()}e.fn=t;function n(){const i=bt();return Tt({mutationFn:t,onSuccess:()=>i.invalidateQueries({queryKey:Kc.key})})}e.useMutation=n})(Hx||(Hx={}));const qq=()=>an(()=>import(\"./early-access-49BvcG2R.js\"),__vite__mapDeps([30,1,10,13,14,4,5,8,7,28,15]),import.meta.url),Fq=nr(\"/early-access\")({loader:({context:e})=>e.queryClient.prefetchQuery(Kc.options()),component:Bn(qq,\"component\")}),Gq=Yo({environment:it(et(ta([\"production\",\"sandbox\"])),void 0),orgId:it(et(Wn()),void 0),projectId:it(et(Wn()),void 0),query:it(et(Wn()),void 0)});var ls;(e=>{e.baseKey=[\"api-keys\"];function t(u={}){return[...e.baseKey,u.orgId??\"\",u.projectId??\"\"]}e.key=t;function n(u={}){return ve[\"api-keys\"].$get({query:u.orgId?{orgId:u.orgId}:{}}).then(async c=>{if(!c.ok)throw new Error(\"Failed to load API keys.\");const f=await c.json();return{data:u.projectId?f.data.filter(d=>d.projectId===u.projectId):f.data}})}e.fn=n;function i(u={}){return{queryFn:()=>n(u),queryKey:t(u),staleTime:3e4}}e.options=i;function s(u={}){return tl(i(u))}e.useQuery=s})(ls||(ls={}));var qx;(e=>{async function t(i){const s=await ve[\"api-keys\"].$post({json:i});if(!s.ok)throw new Error(await pa(s,{fallback:\"Failed to provision key.\"}));return s.json()}e.fn=t;function n(){const i=bt();return Tt({mutationFn:t,onSuccess:()=>i.invalidateQueries({queryKey:ls.baseKey})})}e.useMutation=n})(qx||(qx={}));var Fx;(e=>{async function t(i){const s=await ve[\"api-keys\"][\":id\"].$patch({json:i.input,param:{id:i.id}});if(!s.ok)throw new Error(await pa(s,{fallback:\"Failed to update the API key.\"}));return s.json()}e.fn=t;function n(){const i=bt();return Tt({mutationFn:t,onSuccess:()=>i.invalidateQueries({queryKey:ls.baseKey})})}e.useMutation=n})(Fx||(Fx={}));var Gx;(e=>{async function t(i){const s=await ve[\"api-keys\"][\":id\"].rotate.$post({param:{id:i}});if(!s.ok)throw new Error(await pa(s,{fallback:\"Failed to rotate the API key.\"}));return s.json()}e.fn=t;function n(){const i=bt();return Tt({mutationFn:t,onSuccess:()=>i.invalidateQueries({queryKey:ls.baseKey})})}e.useMutation=n})(Gx||(Gx={}));var Kx;(e=>{async function t(i){const s=await ve[\"api-keys\"][\":id\"].$delete({param:{id:i}});if(!s.ok)throw new Error(\"Failed to revoke the API key.\");return s.json()}e.fn=t;function n(){const i=bt();return Tt({mutationFn:t,onSuccess:()=>i.invalidateQueries({queryKey:ls.baseKey})})}e.useMutation=n})(Kx||(Kx={}));const Vx={read:\"zone::read\",write:\"zone::write\"};function zG(e){if(e===Vx.read)return\"read\";if(e===Vx.write)return\"write\"}function RG(e,t=\"read\"){const n=e.trim();if(!/^\\d+$/.test(n))return;const i=BigInt(n);if(i!==0n)return`zone:${i}:${t}`}var dg;(e=>{e.key=[\"scopes\",\"v2\"];function t(){return ve.scopes.$get().then(s=>s.json())}e.fn=t;function n(){return{queryFn:t,queryKey:e.key,staleTime:Number.POSITIVE_INFINITY}}e.options=n;function i(){return tl(n())}e.useQuery=i})(dg||(dg={}));const Kq=()=>an(()=>import(\"./api-keys-B74CI9I5.js\"),__vite__mapDeps([31,1,2,27,23,3,4,5,6,7,8,10,11,12,13,14,28,29,15,21,32,33,34]),import.meta.url),Vq=nr(\"/api-keys\")({validateSearch:Gq,loaderDeps:({search:e})=>e,loader:({context:e,deps:t})=>Promise.all([e.queryClient.prefetchQuery(ls.options(t)),e.queryClient.prefetchQuery(dg.options())]),component:Bn(Kq,\"component\")}),Qq=nr(\"/\")({beforeLoad:()=>{throw yg({to:\"/organizations\"})}}),Zq=()=>an(()=>import(\"./routes_.support-DvIwPLeh.js\"),__vite__mapDeps([35,36,3,4,5,6,7,8,19,10,37]),import.meta.url),Yq=nr(\"/routes_/support\")({loader:({context:e})=>e.queryClient.ensureQueryData(lg.options()),component:Bn(Zq,\"component\")}),Xq=()=>an(()=>import(\"./organizations_._orgId-BST7hdOf.js\"),__vite__mapDeps([38,10,28,37,39,6,4,12,7]),import.meta.url),Jq=()=>an(()=>import(\"./organizations_._orgId-B7r-QQtq.js\"),__vite__mapDeps([40,36,1,27,23,3,4,5,6,7,8,10,28,33,37,39,12]),import.meta.url),Wq=nr(\"/organizations_/$orgId\")({validateSearch:jd.Search,loader:({context:e,params:t})=>Promise.all([e.queryClient.ensureQueryData(Fc.options(t.orgId)),e.queryClient.ensureQueryData(Gc.options(t.orgId))]),component:Bn(Jq,\"component\"),errorComponent:Bn(Xq,\"errorComponent\")});var Qx;(e=>{function t(d,p){return`${d.toLocaleString()} ${p}${d===1?\"\":\"s\"}`}e.count=t;function n(d){return new Intl.DateTimeFormat(\"en\",{dateStyle:\"medium\",timeStyle:\"medium\"}).format(d)}e.dateTime=n;function i(d,p){return d==null?\"—\":new Intl.NumberFormat(\"en\",{currency:p?.toUpperCase()??\"USD\",style:\"currency\"}).format(Number(d))}e.money=i;function s(d){const p=d.filter(y=>y>0);if(p.length!==0)return Math.min(...p)}e.oldestUpdatedAt=s;function u(d,p){return p===0?\"0%\":new Intl.NumberFormat(\"en\",{maximumFractionDigits:1,style:\"percent\"}).format(d/p)}e.percent=u;function c(d){return d===\"month\"?\"Current month\":d}e.period=c;function f(d){return new Intl.DateTimeFormat(\"en\",{timeStyle:\"medium\"}).format(d)}e.time=f})(Qx||(Qx={}));const AA=\"access,capabilities,zone\",TA=tn.id,OG=[{id:tn.id,label:\"Mainnet\"},{id:Pr.id,label:\"Testnet\"}];function IG(e){return e===\"erc4626\"?\"ERC-4626\":\"Veda\"}var Vc;(e=>{e.Search=Yo({chainId:it(et(SA(zq(),xA([Lo(tn.id),Lo(Pr.id)]))),void 0)})})(Vc||(Vc={}));var Qc;(e=>{function t(s){return[\"earn-verified-vaults\",\"detail\",s.chainId,s.vaultId.toLowerCase()]}e.key=t;async function n(s){const u=await ve.earn[\"verified-vaults\"][\":vaultId\"].$get({param:{vaultId:s.vaultId},query:{chainId:String(s.chainId),include:AA}});if(!u.ok)throw new Error(await Mp(u,\"Vault not found.\"));return u.json()}e.fn=n;function i(s,u={}){return{enabled:u.enabled,queryFn:()=>n(s),queryKey:t(s),staleTime:3e4}}e.options=i})(Qc||(Qc={}));var Zc;(e=>{function t(s){return[\"earn-verified-vaults\",s.chainId]}e.key=t;async function n(s){const u=await ve.earn[\"verified-vaults\"].$get({query:{chainId:String(s.chainId),...s.cursor?{cursor:s.cursor}:{},include:AA,limit:\"25\"}});if(!u.ok)throw new Error(await Mp(u,\"Failed to load Earn vaults.\"));return u.json()}e.fn=n;function i(s){return{getNextPageParam:u=>u.nextCursor,initialPageParam:null,queryFn:({pageParam:u})=>n({...s,cursor:u??void 0}),queryKey:t(s),staleTime:3e4}}e.options=i})(Zc||(Zc={}));var Zx;(e=>{async function t(i){const s=await ve.earn[\"verified-vaults\"].$put({json:i});if(!s.ok)throw new Error(await Mp(s,\"Failed to verify Earn vault.\"));return s.json()}e.fn=t;function n(){const i=bt();return Tt({mutationFn:t,onSuccess:(s,u)=>(i.setQueryData(Qc.key({chainId:u.chainId,vaultId:u.vaultAddress}),s),i.invalidateQueries({queryKey:Zc.key({chainId:u.chainId})}))})}e.useMutation=n})(Zx||(Zx={}));var Yx;(e=>{async function t(i){const s=await ve.earn[\"verified-vaults\"][\":vaultId\"].$delete({param:{vaultId:i.vaultId},query:{chainId:String(i.chainId)}});if(!s.ok)throw new Error(await Mp(s,\"Failed to remove Earn vault.\"))}e.fn=t;function n(){const i=bt();return Tt({mutationFn:t,onSuccess:(s,u)=>Promise.all([i.invalidateQueries({queryKey:Zc.key({chainId:u.chainId})}),i.invalidateQueries({queryKey:Qc.key({chainId:u.chainId,vaultId:u.vaultId})})])})}e.useMutation=n})(Yx||(Yx={}));async function Mp(e,t){const n=await e.json().catch(()=>null),i=n?.error?.message??t,s=n?.error?.details?.flatMap(u=>u.message?[u.message]:[]);return s?.length?`${i}\n${s.join(`\n`)}`:i}const eF=()=>an(()=>import(\"./earn.vaults-CrVRK7pQ.js\"),__vite__mapDeps([41,26,2,27,23,19,42,1,3,4,5,6,7,8,34,10,15,16,32]),import.meta.url);tn.id+\"\",tn.blockExplorers.default.url,Pr.id+\"\",Pr.blockExplorers.default.url;const tF=nr(\"/earn/vaults\")({validateSearch:Vc.Search,loaderDeps:({search:e})=>({chainId:e.chainId??TA}),loader:({context:e,deps:t})=>e.queryClient.ensureInfiniteQueryData(Zc.options({chainId:t.chainId})),component:Bn(eF,\"component\")}),nF=()=>an(()=>import(\"./earn.vaults_.new-N75ESNZ4.js\"),__vite__mapDeps([43,1,42,3,4,5,6,7,8,34,10]),import.meta.url),rF=nr(\"/earn/vaults_/new\")({validateSearch:Vc.Search,component:Bn(nF,\"component\")});var Yc;(e=>{function t(s){return[\"earn-reward-campaign\",s.chainId,s.vaultId.toLowerCase()]}e.key=t;async function n(s){const u=await ve.earn[\"verified-vaults\"][\":vaultId\"].rewards.$get({param:{vaultId:s.vaultId},query:{chainId:String(s.chainId)}});if(u.status===404)return null;if(!u.ok)throw new Error(await Ob(u,\"Failed to load rewards.\"));return u.json()}e.fn=n;function i(s){return{queryFn:()=>n(s),queryKey:t(s),refetchInterval:1e4,staleTime:3e4}}e.options=i})(Yc||(Yc={}));var Xx;(e=>{async function t(i){const s=await ve.earn[\"verified-vaults\"][\":vaultId\"].rewards.$post({json:i.config,param:{vaultId:i.vaultId},query:{chainId:String(i.chainId)}});if(!s.ok)throw new Error(await Ob(s,\"Failed to configure rewards.\"));return s.json()}e.fn=t;function n(){const i=bt();return Tt({mutationFn:t,onSuccess:(s,u)=>i.setQueryData(Yc.key({chainId:u.chainId,vaultId:u.vaultId}),s)})}e.useMutation=n})(Xx||(Xx={}));var Jx;(e=>{async function t(i){const u=await ve.earn[\"verified-vaults\"][\":vaultId\"].rewards[i.paused?\"pause\":\"resume\"].$post({param:{vaultId:i.vaultId},query:{chainId:String(i.chainId)}});if(!u.ok)throw new Error(await Ob(u,\"Failed to update reward execution.\"));return u.json()}e.fn=t;function n(){const i=bt();return Tt({mutationFn:t,onSuccess:(s,u)=>i.setQueryData(Yc.key({chainId:u.chainId,vaultId:u.vaultId}),s)})}e.useMutation=n})(Jx||(Jx={}));async function Ob(e,t){const n=await e.json().catch(()=>null),i=n?.error?.message??t,s=n?.error?.details?.flatMap(u=>u.message?[u.message]:[]);return s?.length?`${i}\n${s.join(`\n`)}`:i}const iF=()=>an(()=>import(\"./earn.vaults_._vaultId.edit-CoGCuCFO.js\"),__vite__mapDeps([44,36,1,9,42,3,4,5,6,7,8,34,10,17]),import.meta.url),aF=nr(\"/earn/vaults_/$vaultId/edit\")({validateSearch:wq(Vc.Search,{tab:et(xA([Lo(\"overview\"),Lo(\"rewards\")]))}),loaderDeps:({search:e})=>({chainId:e.chainId??TA,tab:e.tab??\"overview\"}),loader:async({context:e,deps:t,params:n})=>{const i={chainId:t.chainId,vaultId:n.vaultId};await e.queryClient.ensureQueryData(Qc.options(i)),t.tab===\"rewards\"&&await e.queryClient.prefetchQuery(Yc.options(i))},component:Bn(iF,\"component\")}),sF=Iq.update({id:\"/verified-tokens\",path:\"/verified-tokens\",getParentRoute:()=>Ln}),oF=$q.update({id:\"/subsidies\",path:\"/subsidies\",getParentRoute:()=>Ln}),uF=jq.update({id:\"/routes\",path:\"/routes\",getParentRoute:()=>Ln}),cF=Hq.update({id:\"/organizations\",path:\"/organizations\",getParentRoute:()=>Ln}),lF=Fq.update({id:\"/early-access\",path:\"/early-access\",getParentRoute:()=>Ln}),fF=Vq.update({id:\"/api-keys\",path:\"/api-keys\",getParentRoute:()=>Ln}),dF=Qq.update({id:\"/\",path:\"/\",getParentRoute:()=>Ln}),pF=Yq.update({id:\"/routes_/support\",path:\"/routes/support\",getParentRoute:()=>Ln}),hF=Wq.update({id:\"/organizations_/$orgId\",path:\"/organizations/$orgId\",getParentRoute:()=>Ln}),yF=tF.update({id:\"/earn/vaults\",path:\"/earn/vaults\",getParentRoute:()=>Ln}),mF=rF.update({id:\"/earn/vaults_/new\",path:\"/earn/vaults/new\",getParentRoute:()=>Ln}),gF=aF.update({id:\"/earn/vaults_/$vaultId/edit\",path:\"/earn/vaults/$vaultId/edit\",getParentRoute:()=>Ln}),bF={IndexRoute:dF,ApiKeysRoute:fF,EarlyAccessRoute:lF,OrganizationsRoute:cF,RoutesRoute:uF,SubsidiesRoute:oF,VerifiedTokensRoute:sF,EarnVaultsRoute:yF,OrganizationsOrgIdRoute:hF,RoutesSupportRoute:pF,EarnVaultsNewRoute:mF,EarnVaultsVaultIdEditRoute:gF},vF=Ln._addFileChildren(bF);function wF(){if(typeof document>\"u\")return\"/\";const e=document.querySelector(\"base\");return e&&new URL(e.href).pathname.replace(/\\/$/,\"\")||\"/\"}function xF(){return uR({basepath:wF(),context:{queryClient:Z8},defaultPreload:\"intent\",defaultPreloadStaleTime:0,routeTree:vF,scrollRestoration:!0})}async function SF(){const e=await xF();let t;if(_2){const n=await _2.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,t=n.serializationAdapters,e.options.defaultSsr=n.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(dz),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:\".\",serializationAdapters:t}),e.stores.matchesId.get().length||await hz(e),e}var EF=SF;async function AF(){const e=await EF();return window.$_TSR?.h(),e}var Oy;function TF(){return Oy||(Oy=AF()),F.jsx(bz,{promise:Oy,children:e=>F.jsx(fR,{router:e})})}ie.startTransition(()=>{e9.hydrateRoot(document,F.jsx(ie.StrictMode,{children:F.jsx(TF,{})}))});export{z$ as $,Yg as A,ne as B,os as C,lr as D,$g as E,QD as F,SG as G,AG as H,T4 as I,M4 as J,Iq as K,l3 as L,_H as M,jo as N,og as O,vx as P,F as Q,HE as R,wo as S,Ot as T,tn as U,Pr as V,pU as W,wx as X,_G as Y,Rr as Z,$q as _,KL as a,Xx as a$,lO as a0,xx as a1,Sx as a2,So as a3,Ya as a4,el as a5,Bz as a6,jq as a7,Ex as a8,Ax as a9,Wq as aA,Rx as aB,zx as aC,Ox as aD,Ix as aE,Fc as aF,Gc as aG,kx as aH,Bx as aI,Nx as aJ,Lx as aK,jx as aL,Ux as aM,$x as aN,tF as aO,TA as aP,Zc as aQ,Yx as aR,IG as aS,O3 as aT,KR as aU,CF as aV,J8 as aW,rF as aX,Qc as aY,Zx as aZ,Yc as a_,Mx as aa,Px as ab,Tx as ac,_x as ad,Cx as ae,Ut as af,Hq as ag,fg as ah,PG as ai,Kc as aj,Dx as ak,Hx as al,Vq as am,$4 as an,ls as ao,qx as ap,CG as aq,Po as ar,dg as as,zG as at,RG as au,Fx as av,Gx as aw,Kx as ax,Vx as ay,lg as az,qE as b,Jx as b0,aF as b1,OG as b2,BE as b3,mG as b4,P3 as b5,zz as b6,Iz as b7,MF as b8,vG as b9,vc as ba,tb as bb,ca as bc,yG as bd,up as be,nb as bf,hG as bg,pG as bh,gE as bi,Vt as bj,Cd as bk,X$ as bl,nB as bm,dG as bn,LN as bo,ib as bp,UN as bq,tr as br,P5 as bs,la as bt,Ko as bu,sc as bv,Se as bw,FE as c,IE as d,Go as e,GE as f,nt as g,VE as h,C4 as i,ie as j,er as k,ga as l,hm as m,aH as n,EG as o,ut as p,wG as q,Cr as r,sa as s,xG as t,tl as u,tA as v,MG as w,yr as x,TG as y,pl as z};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/Input-BNichsNk.js": {
"content": "import{Q as a,ar as m,j as f,S as R}from\"./index-fAdpxP2M.js\";function N(e){const{children:s,className:n,variant:r=\"stacked\",...c}=e;return a.jsx(N.Context.Provider,{value:{variant:r},children:a.jsx(\"div\",{className:m(\"grid gap-2\",n),...c,children:s})})}(e=>{e.Context=f.createContext(void 0);function s(n){const{children:r,className:c,...o}=n;return a.jsx(\"div\",{className:m(\"grid w-full min-w-0 auto-cols-fr grid-flow-col gap-2\",c),...o,children:r})}e.Inline=s})(N||(N={}));function i(e){const s=f.useContext(N.Context),{className:n,disabled:r,error:c,label:o,prefix:p,size:y,suffix:x,variant:g,...h}=e,t=g??s?.variant??\"default\",b=f.useId(),u=h.id??(o?b:void 0),v=a.jsxs(\"div\",{className:m(i.fieldClassName[t],x?i.fieldWithSuffixClassName[t]:void 0),children:[p&&a.jsx(\"div\",{className:i.prefixClassName[t],children:p}),a.jsx(\"input\",{...h,className:i.inputClassName[t],disabled:r,id:u}),x&&a.jsx(\"div\",{className:i.suffixClassName[t],children:x})]});return a.jsxs(\"div\",{className:i.rootClassName[t],children:[t===\"default\"&&o&&a.jsx(\"label\",{className:\"label-13 text-foreground-secondary\",htmlFor:u,children:o}),a.jsx(R.Icon.Context.Provider,{value:i.iconButtonContextValue,children:a.jsxs(\"div\",{className:m(i.className(t),n),\"data-disabled\":r?\"\":void 0,\"data-error\":c?\"\":void 0,children:[t===\"stacked\"&&o&&a.jsx(\"label\",{className:i.stackedLabelClassName,htmlFor:u,children:o}),v]})}),typeof c==\"string\"&&a.jsx(\"p\",{className:\"label-13 text-negative\",children:c})]})}(e=>{function s(r=\"default\"){return e.baseClassName[r]}e.className=s,e.rootClassName={default:\"flex min-w-0 flex-col gap-[8px]\",stacked:\"flex min-w-0 flex-col gap-[6px]\"},e.iconButtonContextValue={variant:\"surface\"},e.baseClassName={default:\"inline-flex h-[40px] w-full items-center gap-[10px] rounded-body border-[2px] border-transparent bg-secondary px-[12px] copy-14 text-foreground [&:not([data-error])]:hover:bg-secondary-hover focus-within:border-focus focus-within:bg-secondary-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[error]:border-negative data-[error]:focus-within:border-focus\",stacked:\"relative flex w-full flex-col gap-1 rounded-body border-[2px] border-transparent bg-secondary px-3 pt-1.5 pb-1.5 text-foreground [&:not([data-error])]:hover:bg-secondary-hover focus-within:border-focus focus-within:bg-secondary-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[error]:border-negative data-[error]:focus-within:border-focus\"},e.fieldClassName={default:\"contents\",stacked:\"flex min-w-0 items-center gap-2 copy-14 leading-tight\"},e.fieldWithSuffixClassName={default:void 0,stacked:\"pr-12\"},e.inputClassName={default:\"min-w-0 flex-1 bg-transparent outline-none placeholder:text-foreground-secondary/50 disabled:cursor-not-allowed\",stacked:\"min-w-0 flex-1 bg-transparent outline-none placeholder:text-foreground-secondary/50 disabled:cursor-not-allowed\"},e.prefixClassName={default:\"shrink-0 select-none border-r border-border pr-[10px] text-foreground-secondary\",stacked:\"shrink-0 select-none text-foreground-secondary\"},e.suffixClassName={default:\"shrink-0 select-none border-l border-border pl-[10px] text-foreground-secondary\",stacked:\"absolute inset-y-0 right-3 flex shrink-0 select-none items-center text-foreground-secondary\"},e.stackedLabelClassName=\"font-mono text-[10px] leading-none uppercase tracking-[0.06em] text-foreground-secondary\";function n(r){const{className:c,error:o,onChange:p,onMax:y,prefix:x,suffix:g,value:h,...t}=r,b=f.useId(),u=A(h),v=f.useRef(null),w=!!o,C=typeof o==\"string\"&&o?o:void 0,j=f.useRef(null),z=[t[\"aria-describedby\"],C?b:void 0].filter(Boolean).join(\" \"),k=C?a.jsx(\"p\",{className:\"label-12 text-negative\",id:b,children:C}):w||!y?null:a.jsx(R.Text,{onClick:l=>{l.stopPropagation(),y()},size:\"small\",type:\"button\",children:\"Max\"});f.useLayoutEffect(()=>{const l=v.current,d=j.current;!l||d===null||(j.current=null,l.setSelectionRange(d,d))});const B=a.jsxs(\"div\",{className:\"inline-flex min-w-0 max-w-full items-baseline justify-center gap-[4px]\",children:[x&&a.jsx(\"div\",{className:\"shrink-0 heading-20 text-foreground-secondary\",children:x}),a.jsxs(\"div\",{className:\"relative inline-block min-w-0 max-w-full\",children:[u&&a.jsx(\"div\",{\"aria-hidden\":!0,className:\"pointer-events-none absolute inset-0 flex items-center justify-center whitespace-pre heading-20\",children:Array.from(u).map((l,d)=>l===\",\"?a.jsx(\"span\",{className:\"text-foreground-secondary\",children:\",\"},`comma-${d}`):a.jsx(\"span\",{className:l===\".\"?\"text-foreground-secondary\":\"text-foreground\",children:l},`ch-${d}`))}),a.jsx(\"input\",{...t,\"aria-describedby\":z||void 0,\"aria-label\":t[\"aria-label\"]??\"Amount\",\"aria-invalid\":w?!0:t[\"aria-invalid\"],autoComplete:t.autoComplete??\"off\",className:m(\"relative min-w-0 max-w-full bg-transparent text-center heading-20 text-transparent outline-none field-sizing-content caret-[var(--text-color-foreground)] placeholder:text-foreground-secondary/50\",c),inputMode:t.inputMode??\"decimal\",name:t.name??\"value\",onChange:l=>{const d=l.target.value,M=l.target.selectionStart??d.length,P=$(d,M),S=d.replace(/,/g,\"\");j.current=E(A(S),P),p(S)},placeholder:t.placeholder??\"0.00\",ref:v,spellCheck:t.spellCheck??!1,value:u})]}),g&&a.jsx(\"div\",{className:\"shrink-0 heading-20 text-foreground-secondary\",children:g})]});return k?a.jsxs(\"div\",{className:\"inline-flex min-w-0 max-w-full flex-col items-center gap-[2px]\",children:[B,k]}):B}e.Amount=n})(i||(i={}));function A(e){if(!e)return\"\";const[s,n]=e.split(\".\"),r=s.replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\");return n!==void 0?`${r}.${n}`:r}function $(e,s){let n=0;for(let r=0;rt.data)??[],J=g.data?.pages.flatMap(t=>t.data)??[],U=Re[d].label,A=[P,h,c,g,v,D,p,C],y=l.oldestUpdatedAt(A.map(t=>t.dataUpdatedAt)),B=A.every(t=>t.dataUpdatedAt>0),_=A.some(t=>t.error),F=A.some(t=>t.isFetching),X=i.error??m.error,Y=i.isPending||m.isPending;function Z(){Promise.all([P.refetch(),h.refetch(),c.refetch(),g.refetch(),v.refetch(),D.refetch(),p.refetch(),C.refetch()])}function ee(t){t.enabled?(i.reset(),m.mutate(t.source)):(m.reset(),i.mutate(t.source))}return e.jsxs(be,{title:x.name,description:x.id,action:e.jsxs(f,{render:e.jsx(R,{search:Q({query:a}),to:\"/organizations\"}),children:[e.jsx(je,{className:\"size-4\"}),\"Organizations\"]}),children:[e.jsx(u,{className:\"grid grid-cols-2 gap-px bg-border md:grid-cols-3\",children:e.jsxs(\"dl\",{className:\"contents\",children:[e.jsx(k,{label:\"Members\",children:x.memberCount}),e.jsx(k,{label:\"Projects\",children:x.projectCount}),e.jsx(k,{label:\"Owner user\",children:x.userId??\"None\"}),e.jsx(k,{label:\"Created by\",children:x.createdBy??\"Unknown\"}),e.jsx(k,{label:\"Created\",children:I(x.createdAt)}),e.jsx(k,{label:\"Updated\",children:I(x.updatedAt)})]})}),e.jsxs(\"section\",{className:\"flex flex-col gap-3\",children:[e.jsxs(\"div\",{className:\"flex flex-wrap items-center justify-between gap-3\",children:[e.jsx(\"h2\",{className:\"text-heading-18 text-foreground\",children:\"Operations\"}),e.jsxs(\"div\",{className:\"flex items-center gap-3\",children:[e.jsx(f,{render:e.jsx(R,{search:{orgId:r},to:\"/routes\"}),children:\"View routes\"}),e.jsx(\"span\",{\"aria-live\":\"polite\",className:\"text-label-12 text-foreground-secondary\",children:F&&!B?\"Updating…\":_?y?e.jsxs(\"time\",{dateTime:new Date(y).toISOString(),title:l.dateTime(y),children:[\"Partially updated \",l.time(y)]}):\"Update unavailable\":y&&B?e.jsxs(\"time\",{dateTime:new Date(y).toISOString(),title:l.dateTime(y),children:[\"Updated \",l.time(y)]}):\"Updating…\"}),e.jsxs(f,{loading:F,onClick:Z,children:[e.jsx(fe,{className:\"size-4\"}),\"Refresh\"]})]})]}),e.jsxs(u,{className:\"grid grid-cols-2 gap-px bg-border lg:grid-cols-4\",children:[e.jsx(q,{error:P.error,label:\"Active API keys\",loading:P.isPending,value:P.data?.data.length.toLocaleString()}),e.jsx(q,{error:p.error,label:`API requests, ${U}`,loading:p.isPending,value:p.data?.totals.requests.toLocaleString()}),e.jsx(q,{error:p.error,label:`Error rate, ${U}`,loading:p.isPending,value:p.data?l.percent(p.data.totals.errors,p.data.totals.requests):void 0}),e.jsx(q,{error:C.error,label:\"Webhook failures, 7 days\",loading:C.isPending,value:C.data?.failureCount.toLocaleString()})]})]}),e.jsxs(\"div\",{className:\"grid items-start gap-6 lg:grid-cols-2\",children:[e.jsx(Ne,{onPeriodChange:t=>{o({params:{orgId:r},replace:!0,search:{period:t,...a?{query:a}:{}},to:\"/organizations/$orgId\"})},period:d,query:p}),e.jsx(ve,{orgId:r,query:P})]}),e.jsxs(\"section\",{className:\"flex flex-col gap-3\",children:[e.jsx(\"h2\",{className:\"text-heading-18 text-foreground\",children:\"Billing\"}),e.jsx(Pe,{enabledSources:x.billing.enabledSources,error:X,onChange:ee,pending:Y}),e.jsxs(\"div\",{className:\"grid gap-3 md:grid-cols-2\",children:[e.jsx(W,{environment:\"Production\",record:x.billing.production,sponsorship:v.data?.production}),e.jsx(W,{environment:\"Sandbox\",record:x.billing.sandbox,sponsorship:v.data?.sandbox})]}),v.error?e.jsx(M,{error:v.error,onRetry:()=>v.refetch()}):null]}),e.jsxs(\"section\",{className:\"flex flex-col gap-3\",children:[e.jsx(\"h2\",{className:\"text-heading-18 text-foreground\",children:\"Subsidies\"}),e.jsxs(\"div\",{className:\"grid items-start gap-3\",children:[e.jsx(ke,{error:n.error,onSave:t=>n.mutate(t),pending:n.isPending,policy:E.sponsorship}),e.jsx(Ce,{error:j.error,onSave:t=>j.mutate(t),pending:j.isPending,policy:E.routes,usage:E.routesUsage})]})]}),e.jsx(Se,{query:C}),e.jsx(ye,{orgId:r}),e.jsxs(\"div\",{className:\"grid items-start gap-6 lg:grid-cols-2\",children:[e.jsx(V,{empty:\"No members.\",error:h.error,initialLoading:h.isPending,loading:h.isFetchingNextPage,more:h.hasNextPage,onMore:()=>h.fetchNextPage(),onRetry:()=>h.isFetchNextPageError?h.fetchNextPage():h.refetch(),title:\"Members\",children:H.map(t=>e.jsxs(S.Row,{className:\"min-h-[60px] py-3\",style:{height:\"auto\"},children:[e.jsxs(\"span\",{className:\"flex min-w-0 flex-1 flex-col gap-1\",children:[e.jsx(R,{className:\"truncate text-label-14 text-foreground hover:underline\",search:Q({query:t.userId}),to:\"/organizations\",children:t.email??t.userId}),e.jsx(\"span\",{className:\"truncate font-mono text-label-12 text-foreground-secondary\",children:t.email?t.userId:t.address??\"No email or address\"})]}),e.jsx(\"span\",{className:\"shrink-0 text-label-12 capitalize text-foreground-secondary\",children:t.role})]},t.userId))}),e.jsx(V,{empty:\"No projects.\",error:g.error,initialLoading:g.isPending,loading:g.isFetchingNextPage,more:g.hasNextPage,onMore:()=>g.fetchNextPage(),onRetry:()=>g.isFetchNextPageError?g.fetchNextPage():g.refetch(),title:\"Projects\",children:J.map(t=>e.jsxs(S.Row,{className:\"min-h-[60px] py-3\",style:{height:\"auto\"},children:[e.jsxs(\"span\",{className:\"flex min-w-0 flex-1 flex-col gap-1\",children:[e.jsx(R,{className:\"truncate text-label-14 text-foreground hover:underline\",search:{orgId:r,projectId:t.id},to:\"/api-keys\",children:t.name}),e.jsx(\"span\",{className:\"truncate font-mono text-label-12 text-foreground-secondary\",children:t.id})]}),e.jsx(\"span\",{className:\"shrink-0 text-label-12 text-foreground-secondary\",children:I(t.createdAt)})]},t.id))})]})]})}function ye(r){const s=he.useMutation(r.orgId),[a,o]=N.useState(0),[d,i]=N.useState(\"member\");return e.jsxs(\"section\",{className:\"flex flex-col gap-3\",children:[e.jsx(\"h2\",{className:\"text-heading-18 text-foreground\",children:\"Invite member\"}),e.jsx(u,{children:e.jsxs(\"form\",{className:\"flex flex-col gap-6 p-4\",onSubmit:m=>{m.preventDefault();const j=new FormData(m.currentTarget).get(\"email\");typeof j!=\"string\"||!j.trim()||s.mutate({email:j.trim(),role:d},{onSuccess:()=>{o(n=>n+1),i(\"member\")}})},children:[e.jsx(\"p\",{className:\"text-copy-13 text-foreground-secondary\",children:\"Send the standard Tempo invitation. Membership starts after the recipient accepts it.\"}),e.jsxs(ge.Inline,{children:[e.jsx(pe,{label:\"Email\",name:\"email\",placeholder:\"dev@example.com\",required:!0,type:\"email\"}),e.jsxs(\"label\",{className:\"flex min-w-0 flex-col gap-2\",children:[e.jsx(\"span\",{className:\"text-label-13 text-foreground-secondary\",children:\"Role\"}),e.jsx(G,{\"aria-label\":\"Role\",items:Ae,onChange:m=>i(m),value:d})]})]}),e.jsxs(\"div\",{className:\"flex items-center justify-end gap-3\",children:[s.error?e.jsx(\"p\",{className:\"mr-auto text-copy-13 text-negative\",role:\"alert\",children:s.error.message}):s.isSuccess?e.jsx(\"p\",{className:\"mr-auto text-copy-13 text-positive\",role:\"status\",children:\"Invitation sent.\"}):null,e.jsx(f,{loading:s.isPending,type:\"submit\",variant:\"primary\",children:\"Send invitation\"})]})]},a)})]})}function k(r){return e.jsxs(\"div\",{className:\"flex min-h-24 min-w-0 flex-col justify-between gap-3 bg-surface p-4\",children:[e.jsx(\"dt\",{className:\"text-label-12 text-foreground-secondary\",children:r.label}),e.jsx(\"dd\",{className:\"truncate text-label-14 text-foreground\",children:r.children})]})}function q(r){return e.jsxs(\"div\",{className:\"flex min-h-28 flex-col justify-between gap-3 bg-surface p-4\",children:[e.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:r.label}),e.jsx(\"span\",{className:r.error?\"text-label-13 text-negative\":\"text-heading-24 text-foreground\",children:r.error?\"Unavailable\":r.loading?\"—\":r.value??\"0\"})]})}function Ne(r){const s=r.query.data;return e.jsxs(\"section\",{className:\"flex min-w-0 flex-col gap-3\",children:[e.jsxs(\"div\",{className:\"flex items-center justify-between gap-3\",children:[e.jsx(\"h2\",{className:\"text-heading-18 text-foreground\",children:\"API usage\"}),e.jsx(G,{\"aria-label\":\"API usage window\",items:Ie,onChange:a=>r.onPeriodChange(a),value:r.period})]}),e.jsx(u,{children:r.query.isPending?e.jsx(w,{children:\"Loading API usage…\"}):r.query.error?e.jsx(M,{error:r.query.error,onRetry:()=>r.query.refetch()}):s?e.jsxs(\"div\",{className:\"flex flex-col gap-5 p-4\",children:[e.jsxs(\"dl\",{className:\"grid grid-cols-3 gap-4\",children:[e.jsx(b,{label:\"Requests\",children:s.totals.requests.toLocaleString()}),e.jsx(b,{label:\"Errors\",children:s.totals.errors.toLocaleString()}),e.jsxs(b,{label:\"Average latency\",children:[s.totals.averageDurationMs,\" ms\"]})]}),e.jsxs(\"div\",{className:\"border-t border-border pt-4\",children:[e.jsx(\"p\",{className:\"mb-2 text-label-12 text-foreground-secondary\",children:\"Errors by code\"}),e.jsx(\"div\",{className:\"flex flex-wrap gap-2\",children:s.byError.length?s.byError.map(a=>e.jsxs(\"span\",{className:\"border border-border px-2 py-1 text-label-12 text-foreground\",children:[a.code,\": \",a.requests.toLocaleString()]},a.code)):e.jsx(\"span\",{className:\"text-label-13 text-foreground-secondary\",children:\"No API errors.\"})})]}),e.jsxs(\"div\",{className:\"border-t border-border pt-4\",children:[e.jsx(\"p\",{className:\"mb-2 text-label-12 text-foreground-secondary\",children:\"Busiest routes\"}),e.jsx(\"div\",{className:\"flex flex-col gap-2\",children:s.byRoute.slice(0,5).map(a=>e.jsxs(\"div\",{className:\"flex items-center justify-between gap-3 text-label-13\",children:[e.jsx(\"code\",{className:\"truncate text-foreground\",children:a.route}),e.jsxs(\"span\",{className:\"shrink-0 text-foreground-secondary\",children:[l.count(a.requests,\"request\"),\",\",\" \",l.count(a.errors,\"error\")]})]},a.route))})]})]}):null})]})}function ve(r){const s=r.query.data?.data??[];return e.jsxs(\"section\",{className:\"flex min-w-0 flex-col gap-3\",children:[e.jsxs(\"div\",{className:\"flex items-center justify-between gap-3\",children:[e.jsx(\"h2\",{className:\"text-heading-18 text-foreground\",children:\"Active API keys\"}),e.jsx(R,{className:\"text-label-13 text-foreground-secondary hover:text-foreground\",search:{orgId:r.orgId},to:\"/api-keys\",children:\"View all\"})]}),e.jsx(u,{children:r.query.isPending?e.jsx(w,{children:\"Loading API keys…\"}):r.query.error?e.jsx(M,{error:r.query.error,onRetry:()=>r.query.refetch()}):s.length===0?e.jsx(w,{children:\"No API keys.\"}):e.jsx(S,{variant:\"surface\",children:s.slice(0,5).map(a=>e.jsx(S.Row,{className:\"min-h-[64px] py-3\",style:{height:\"auto\"},children:e.jsxs(\"span\",{className:\"flex min-w-0 flex-1 flex-col gap-1\",children:[e.jsx(\"span\",{className:\"truncate text-label-14 text-foreground\",children:a.name??a.id}),e.jsxs(\"span\",{className:\"truncate text-label-12 text-foreground-secondary\",children:[a.environment,\" · \",a.scopes.join(\", \")]}),e.jsxs(\"span\",{className:\"truncate text-label-12 text-foreground-secondary\",children:[\"Created by \",a.createdBy??\"unknown\"]})]})},a.id))})})]})}function Se(r){const s=r.query.data;return e.jsxs(\"section\",{className:\"flex min-w-0 flex-col gap-3\",children:[e.jsxs(\"div\",{className:\"flex items-end justify-between gap-3\",children:[e.jsx(\"h2\",{className:\"text-heading-18 text-foreground\",children:\"Webhooks\"}),s?e.jsxs(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:[l.count(s.subscriptions.length,\"subscription\"),\" ·\",\" \",l.count(s.failureCount,\"failure\"),\" in 7 days\"]}):null]}),e.jsx(u,{children:r.query.isPending?e.jsx(w,{children:\"Loading webhook health…\"}):r.query.error?e.jsx(M,{error:r.query.error,onRetry:()=>r.query.refetch()}):!s||s.subscriptions.length===0?e.jsx(w,{children:\"No webhooks.\"}):e.jsx(S,{variant:\"surface\",children:s.subscriptions.map(a=>e.jsxs(S.Row,{className:\"min-h-[64px] py-3\",style:{height:\"auto\"},children:[e.jsxs(\"span\",{className:\"flex min-w-0 flex-1 flex-col gap-1\",children:[e.jsx(\"span\",{className:\"truncate text-label-14 text-foreground\",children:a.eventType}),e.jsx(\"span\",{className:\"truncate font-mono text-label-12 text-foreground-secondary\",children:a.destination})]}),e.jsxs(\"span\",{className:\"flex shrink-0 flex-col items-end gap-1 text-label-12 text-foreground-secondary\",children:[e.jsx(\"span\",{className:\"capitalize\",children:a.status}),e.jsxs(\"span\",{className:a.failureCount?\"text-negative\":void 0,children:[a.failureCount,\" failures\"]})]})]},a.id))})}),s?.failures.length?e.jsxs(u,{className:\"p-4\",children:[e.jsx(\"p\",{className:\"mb-3 text-label-12 text-foreground-secondary\",children:\"Latest delivery failures\"}),e.jsx(\"div\",{className:\"flex flex-col gap-3\",children:s.failures.slice(0,5).map(a=>e.jsxs(\"div\",{className:\"flex items-start justify-between gap-4 text-label-13\",children:[e.jsxs(\"span\",{className:\"min-w-0 truncate text-negative\",children:[a.responseStatus??\"Network\",\" · \",a.error??\"Delivery failed\"]}),e.jsx(\"span\",{className:\"shrink-0 text-foreground-secondary\",children:I(a.createdAt)})]},a.id))})]}):null]})}function M(r){return e.jsxs(\"div\",{className:\"flex items-center gap-3 p-4 text-copy-14 text-negative\",role:\"alert\",children:[e.jsx(\"span\",{children:r.error.message}),e.jsx(f,{onClick:r.onRetry,children:\"Retry\"})]})}const we=[{description:\"Allow the organization to set up Stripe as a billing method.\",label:\"Stripe\",source:\"stripe\"},{description:\"Allow the organization to set up a Tempo account as a billing method.\",label:\"Tempo\",source:\"tempo\"}];function Pe(r){return e.jsxs(u,{children:[e.jsxs(\"div\",{className:\"p-4\",children:[e.jsx(\"h3\",{className:\"text-label-14 text-foreground\",children:\"Enabled sources\"}),e.jsx(\"p\",{className:\"mt-1 text-copy-13 text-foreground-secondary\",children:\"Disabling a source only blocks new setup. Existing billing connections continue to work.\"})]}),e.jsx(\"div\",{className:\"divide-y divide-border border-t border-border\",children:we.map(s=>{const a=r.enabledSources.includes(s.source);return e.jsxs(\"div\",{className:\"flex items-center justify-between gap-4 p-4\",children:[e.jsxs(\"div\",{className:\"min-w-0\",children:[e.jsxs(\"div\",{className:\"flex items-center gap-2\",children:[e.jsx(\"span\",{className:\"text-label-14 text-foreground\",children:s.label}),e.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:a?\"Enabled\":\"Disabled\"})]}),e.jsx(\"p\",{className:\"mt-1 text-copy-13 text-foreground-secondary\",children:s.description})]}),e.jsx($,{\"aria-label\":`${s.label} billing source`,checked:a,className:\"flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-border bg-secondary p-0.5 outline-none transition-colors hover:bg-secondary-hover focus-visible:border-focus data-[checked]:bg-invert disabled:cursor-not-allowed disabled:opacity-50\",disabled:r.pending,onCheckedChange:o=>r.onChange({enabled:o,source:s.source}),children:e.jsx(T,{className:\"block size-4 translate-x-0 rounded-full bg-foreground-secondary transition-transform data-[checked]:translate-x-4 data-[checked]:bg-on-invert\"})})]},s.source)})}),r.error?e.jsx(\"p\",{className:\"border-t border-border p-4 text-copy-13 text-negative\",role:\"alert\",children:r.error.message}):null]})}function Ce(r){const[s,a]=N.useState(r.policy!==null),[o,d]=N.useState(r.policy?.maxAmount??\"\");return N.useEffect(()=>{a(r.policy!==null),d(r.policy?.maxAmount??\"\")},[r.policy]),e.jsx(u,{children:e.jsxs(\"form\",{onSubmit:i=>(i.preventDefault(),s?r.onSave({enabled:!0,maxAmount:o}):r.onSave({enabled:!1})),children:[e.jsxs(\"div\",{className:\"flex items-start justify-between gap-4 p-4\",children:[e.jsxs(\"div\",{className:\"min-w-0\",children:[e.jsx(\"h3\",{className:\"text-label-14 text-foreground\",children:\"Routes\"}),e.jsx(\"p\",{className:\"mt-1 text-copy-13 text-foreground-secondary\",children:\"Configure normalized 1:1 delivery for eligible Routes deposits.\"})]}),e.jsx($,{\"aria-label\":\"Routes subsidy\",checked:s,className:\"flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-border bg-secondary p-0.5 outline-none transition-colors hover:bg-secondary-hover focus-visible:border-focus data-[checked]:bg-invert disabled:cursor-not-allowed disabled:opacity-50\",disabled:r.pending,onCheckedChange:a,children:e.jsx(T,{className:\"block size-4 translate-x-0 rounded-full bg-foreground-secondary transition-transform data-[checked]:translate-x-4 data-[checked]:bg-on-invert\"})})]}),s?e.jsx(\"div\",{className:\"border-t border-border p-4\",children:e.jsxs(\"label\",{className:\"flex min-w-0 flex-col gap-2\",children:[e.jsx(\"span\",{className:\"text-label-13 text-foreground-secondary\",children:\"Maximum subsidy per transaction\"}),e.jsxs(\"span\",{className:\"flex h-10 items-center rounded-body border-2 border-transparent bg-secondary px-3 focus-within:border-focus\",children:[e.jsx(\"span\",{className:\"text-copy-14 text-foreground-secondary\",children:\"$\"}),e.jsx(\"input\",{\"aria-label\":\"Maximum subsidy per transaction\",className:\"min-w-0 flex-1 bg-transparent px-2 text-copy-14 text-foreground outline-none\",disabled:r.pending,inputMode:\"decimal\",min:\"0.000001\",onChange:i=>d(i.target.value),required:!0,step:\"0.000001\",type:\"number\",value:o})]}),e.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:\"Caps the USD gap Tempo covers for each Routes transaction. Production enforcement also requires active Stripe billing.\"})]})}):e.jsx(\"p\",{className:\"border-t border-border p-4 text-copy-13 text-foreground-secondary\",children:\"The Routes subsidy policy is disabled for this organization.\"}),e.jsxs(\"div\",{className:\"border-t border-border p-4\",children:[e.jsxs(\"p\",{className:\"mb-3 text-label-12 text-foreground-secondary\",children:[\"Production usage since \",I(r.usage.from)]}),e.jsxs(\"dl\",{className:\"grid grid-cols-2 gap-4\",children:[e.jsx(b,{label:\"Subsidized amount\",children:l.money(r.usage.amount,\"usd\")}),e.jsx(b,{label:\"Completed deposits\",children:r.usage.count.toLocaleString()})]})]}),e.jsx(\"p\",{className:\"border-t border-border p-4 text-copy-13 text-foreground-secondary\",children:\"When enforcement is enabled, disabling this policy also blocks future Tempo top-ups for previously issued reusable addresses.\"}),e.jsxs(\"div\",{className:\"flex items-center justify-end gap-3 border-t border-border p-4\",children:[r.error?e.jsx(\"p\",{className:\"mr-auto text-copy-13 text-negative\",role:\"alert\",children:r.error.message}):null,e.jsx(f,{loading:r.pending,type:\"submit\",children:\"Save policy\"})]})]})})}function ke(r){const[s,a]=N.useState(r.policy.durationDays!==null),[o,d]=N.useState(r.policy.attributionSpendLimit??\"\");return N.useEffect(()=>{a(r.policy.durationDays!==null),d(r.policy.attributionSpendLimit??\"\")},[r.policy.attributionSpendLimit,r.policy.durationDays]),e.jsx(u,{children:e.jsxs(\"form\",{onSubmit:i=>(i.preventDefault(),s?o?r.onSave({attributionSpendLimit:o,enabled:!0}):r.onSave({enabled:!0}):r.onSave({enabled:!1})),children:[e.jsxs(\"div\",{className:\"flex items-start justify-between gap-4 p-4\",children:[e.jsxs(\"div\",{className:\"min-w-0\",children:[e.jsx(\"h3\",{className:\"text-label-14 text-foreground\",children:\"Sponsorship\"}),e.jsx(\"p\",{className:\"mt-1 text-copy-13 text-foreground-secondary\",children:\"Waive sponsored transaction charges for each attribution's first 90 days.\"})]}),e.jsx($,{\"aria-label\":\"Sponsorship subsidy\",checked:s,className:\"flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-border bg-secondary p-0.5 outline-none transition-colors hover:bg-secondary-hover focus-visible:border-focus data-[checked]:bg-invert disabled:cursor-not-allowed disabled:opacity-50\",disabled:r.pending,onCheckedChange:a,children:e.jsx(T,{className:\"block size-4 translate-x-0 rounded-full bg-foreground-secondary transition-transform data-[checked]:translate-x-4 data-[checked]:bg-on-invert\"})})]}),s?e.jsxs(\"div\",{className:\"grid gap-4 border-t border-border p-4 md:grid-cols-2\",children:[e.jsxs(\"label\",{className:\"flex min-w-0 flex-col gap-2\",children:[e.jsx(\"span\",{className:\"text-label-13 text-foreground-secondary\",children:\"Duration per attribution\"}),e.jsx(\"input\",{className:\"h-10 rounded-body border-2 border-transparent bg-secondary px-3 text-copy-14 text-foreground-secondary\",disabled:!0,value:\"90 days\"}),e.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:\"Starts with the attribution's first mainnet sponsorship.\"})]}),e.jsxs(\"label\",{className:\"flex min-w-0 flex-col gap-2\",children:[e.jsx(\"span\",{className:\"text-label-13 text-foreground-secondary\",children:\"Per-attribution spend cap (optional)\"}),e.jsxs(\"span\",{className:\"flex h-10 items-center rounded-body border-2 border-transparent bg-secondary px-3 focus-within:border-focus\",children:[e.jsx(\"span\",{className:\"text-copy-14 text-foreground-secondary\",children:\"$\"}),e.jsx(\"input\",{\"aria-label\":\"Per-attribution spend cap\",className:\"min-w-0 flex-1 bg-transparent px-2 text-copy-14 text-foreground outline-none\",disabled:r.pending,inputMode:\"decimal\",min:\"0\",onChange:i=>d(i.target.value),placeholder:\"No cap\",step:\"0.000001\",type:\"number\",value:o})]}),e.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:\"Leave blank for no spend cap.\"})]})]}):e.jsx(\"p\",{className:\"border-t border-border p-4 text-copy-13 text-foreground-secondary\",children:\"New sponsorships for this organization are billed normally.\"}),e.jsxs(\"div\",{className:\"flex items-center justify-end gap-3 border-t border-border p-4\",children:[r.error?e.jsx(\"p\",{className:\"mr-auto text-copy-13 text-negative\",role:\"alert\",children:r.error.message}):null,e.jsx(f,{loading:r.pending,type:\"submit\",children:\"Save policy\"})]})]})})}function W(r){const{settings:s,source:a}=r.record,o=s?.spendLimit&&r.sponsorship?Math.max(Number(s.spendLimit)-Number(r.sponsorship.committedSpend),0).toString():void 0;return e.jsxs(u,{className:\"flex flex-col gap-5 p-4\",children:[e.jsxs(\"div\",{className:\"flex items-center justify-between gap-3\",children:[e.jsx(\"h3\",{className:\"text-label-14 text-foreground\",children:r.environment}),e.jsx(\"span\",{className:\"text-label-12 capitalize text-foreground-secondary\",children:a?.status??\"No billing source\"})]}),e.jsxs(\"dl\",{className:\"grid grid-cols-2 gap-4\",children:[e.jsx(b,{label:\"Stripe customer\",children:a?.stripeCustomerId??\"—\"}),e.jsx(b,{label:\"Spend period\",children:r.sponsorship?l.period(r.sponsorship.period):\"—\"}),e.jsx(b,{label:\"Spend limit\",children:l.money(s?.spendLimit,s?.currency)}),e.jsx(b,{label:\"Committed spend\",children:r.sponsorship?l.money(r.sponsorship.committedSpend,r.sponsorship.currency):\"—\"}),e.jsx(b,{label:\"Limit remaining\",children:l.money(o,s?.currency)}),e.jsx(b,{label:\"Transaction limit\",children:l.money(s?.txFeeLimit,s?.currency)})]})]})}function b(r){return e.jsxs(\"div\",{className:\"min-w-0\",children:[e.jsx(\"dt\",{className:\"text-label-12 text-foreground-secondary\",children:r.label}),e.jsx(\"dd\",{className:\"mt-1 truncate text-label-13 text-foreground\",children:r.children})]})}function V(r){const s=Array.isArray(r.children)&&r.children.length===0;return e.jsxs(\"section\",{className:\"flex min-w-0 flex-col gap-3\",children:[e.jsx(\"h2\",{className:\"text-heading-18 text-foreground\",children:r.title}),e.jsx(u,{children:r.initialLoading?e.jsxs(w,{children:[\"Loading \",r.title.toLowerCase(),\"…\"]}):r.error&&s?e.jsxs(\"div\",{className:\"flex flex-col items-center gap-4 px-6 py-12 text-center\",role:\"alert\",children:[e.jsx(\"p\",{className:\"text-copy-14 text-negative\",children:r.error.message}),e.jsx(f,{onClick:r.onRetry,children:\"Retry\"})]}):s?e.jsx(w,{children:r.empty}):e.jsx(S,{variant:\"surface\",children:r.children})}),r.error&&!s?e.jsxs(\"div\",{className:\"flex items-center gap-3 text-copy-14 text-negative\",role:\"alert\",children:[e.jsx(\"span\",{children:r.error.message}),e.jsx(f,{onClick:r.onRetry,children:\"Retry\"})]}):r.more?e.jsx(f,{className:\"self-start\",loading:r.loading,onClick:r.onMore,children:\"Load more\"}):null]})}var l;(r=>{function s(n,c){return`${n.toLocaleString()} ${c}${n===1?\"\":\"s\"}`}r.count=s;function a(n){return new Intl.DateTimeFormat(\"en\",{dateStyle:\"medium\",timeStyle:\"medium\"}).format(n)}r.dateTime=a;function o(n,c){return n==null?\"—\":new Intl.NumberFormat(\"en\",{currency:c?.toUpperCase()??\"USD\",style:\"currency\"}).format(Number(n))}r.money=o;function d(n){const c=n.filter(x=>x>0);if(c.length!==0)return Math.min(...c)}r.oldestUpdatedAt=d;function i(n,c){return c===0?\"0%\":new Intl.NumberFormat(\"en\",{maximumFractionDigits:1,style:\"percent\"}).format(n/c)}r.percent=i;function m(n){return n===\"month\"?\"Current month\":n}r.period=m;function j(n){return new Intl.DateTimeFormat(\"en\",{timeStyle:\"medium\"}).format(n)}r.time=j})(l||(l={}));const Re={\"24h\":{label:\"24 hours\"},\"30d\":{label:\"30 days\"},\"7d\":{label:\"7 days\"}},Ie=[{label:\"24 hours\",value:\"24h\"},{label:\"7 days\",value:\"7d\"},{label:\"30 days\",value:\"30d\"}],Ae=[{label:\"Member\",value:\"member\"},{label:\"Admin\",value:\"admin\"},{label:\"Owner\",value:\"owner\"}];export{Pe as BillingSourcesCard,Ce as RoutesSubsidyCard,ke as SponsorshipSubsidyCard,He as component};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/organizations_._orgId-BST7hdOf.js": {
"content": "import{Q as e,j as d,S as c,af as y,aA as j,a5 as N,ai as v}from\"./index-fAdpxP2M.js\";import{C as u,P as S}from\"./Page-D0rzPo-_.js\";import{m as w}from\"./format-Dy1GQ0to.js\";import{A as k}from\"./arrow-left-CWMggVOA.js\";import{S as b,a as x}from\"./SwitchThumb-Bf91cokh.js\";import\"./FormContext-lWysHyLG.js\";import\"./useButton-ByI90A_n.js\";import\"./useAriaLabelledBy-B6dSNlUI.js\";import\"./useValueChanged-mcPqATWD.js\";function $(r){const t=y(),{query:s}=j.useSearch();return e.jsx(S,{title:\"Organization unavailable\",action:e.jsxs(c,{render:e.jsx(N,{search:v({query:s}),to:\"/organizations\"}),children:[e.jsx(k,{className:\"size-4\"}),\"Organizations\"]}),children:e.jsxs(u,{className:\"flex flex-col items-center gap-4 px-6 py-12 text-center\",children:[e.jsx(\"p\",{className:\"text-copy-14 text-negative\",children:r.error.message}),e.jsx(c,{onClick:()=>{r.reset(),t.invalidate()},children:\"Try again\"})]})})}const C=[{description:\"Allow the organization to set up Stripe as a billing method.\",label:\"Stripe\",source:\"stripe\"},{description:\"Allow the organization to set up a Tempo account as a billing method.\",label:\"Tempo\",source:\"tempo\"}];function U(r){return e.jsxs(u,{children:[e.jsxs(\"div\",{className:\"p-4\",children:[e.jsx(\"h3\",{className:\"text-label-14 text-foreground\",children:\"Enabled sources\"}),e.jsx(\"p\",{className:\"mt-1 text-copy-13 text-foreground-secondary\",children:\"Disabling a source only blocks new setup. Existing billing connections continue to work.\"})]}),e.jsx(\"div\",{className:\"divide-y divide-border border-t border-border\",children:C.map(t=>{const s=r.enabledSources.includes(t.source);return e.jsxs(\"div\",{className:\"flex items-center justify-between gap-4 p-4\",children:[e.jsxs(\"div\",{className:\"min-w-0\",children:[e.jsxs(\"div\",{className:\"flex items-center gap-2\",children:[e.jsx(\"span\",{className:\"text-label-14 text-foreground\",children:t.label}),e.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:s?\"Enabled\":\"Disabled\"})]}),e.jsx(\"p\",{className:\"mt-1 text-copy-13 text-foreground-secondary\",children:t.description})]}),e.jsx(b,{\"aria-label\":`${t.label} billing source`,checked:s,className:\"flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-border bg-secondary p-0.5 outline-none transition-colors hover:bg-secondary-hover focus-visible:border-focus data-[checked]:bg-invert disabled:cursor-not-allowed disabled:opacity-50\",disabled:r.pending,onCheckedChange:n=>r.onChange({enabled:n,source:t.source}),children:e.jsx(x,{className:\"block size-4 translate-x-0 rounded-full bg-foreground-secondary transition-transform data-[checked]:translate-x-4 data-[checked]:bg-on-invert\"})})]},t.source)})}),r.error?e.jsx(\"p\",{className:\"border-t border-border p-4 text-copy-13 text-negative\",role:\"alert\",children:r.error.message}):null]})}function I(r){const[t,s]=d.useState(r.policy!==null),[n,i]=d.useState(r.policy?.maxAmount??\"\");return d.useEffect(()=>{s(r.policy!==null),i(r.policy?.maxAmount??\"\")},[r.policy]),e.jsx(u,{children:e.jsxs(\"form\",{onSubmit:o=>(o.preventDefault(),t?r.onSave({enabled:!0,maxAmount:n}):r.onSave({enabled:!1})),children:[e.jsxs(\"div\",{className:\"flex items-start justify-between gap-4 p-4\",children:[e.jsxs(\"div\",{className:\"min-w-0\",children:[e.jsx(\"h3\",{className:\"text-label-14 text-foreground\",children:\"Routes\"}),e.jsx(\"p\",{className:\"mt-1 text-copy-13 text-foreground-secondary\",children:\"Configure normalized 1:1 delivery for eligible Routes deposits.\"})]}),e.jsx(b,{\"aria-label\":\"Routes subsidy\",checked:t,className:\"flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-border bg-secondary p-0.5 outline-none transition-colors hover:bg-secondary-hover focus-visible:border-focus data-[checked]:bg-invert disabled:cursor-not-allowed disabled:opacity-50\",disabled:r.pending,onCheckedChange:s,children:e.jsx(x,{className:\"block size-4 translate-x-0 rounded-full bg-foreground-secondary transition-transform data-[checked]:translate-x-4 data-[checked]:bg-on-invert\"})})]}),t?e.jsx(\"div\",{className:\"border-t border-border p-4\",children:e.jsxs(\"label\",{className:\"flex min-w-0 flex-col gap-2\",children:[e.jsx(\"span\",{className:\"text-label-13 text-foreground-secondary\",children:\"Maximum subsidy per transaction\"}),e.jsxs(\"span\",{className:\"flex h-10 items-center rounded-body border-2 border-transparent bg-secondary px-3 focus-within:border-focus\",children:[e.jsx(\"span\",{className:\"text-copy-14 text-foreground-secondary\",children:\"$\"}),e.jsx(\"input\",{\"aria-label\":\"Maximum subsidy per transaction\",className:\"min-w-0 flex-1 bg-transparent px-2 text-copy-14 text-foreground outline-none\",disabled:r.pending,inputMode:\"decimal\",min:\"0.000001\",onChange:o=>i(o.target.value),required:!0,step:\"0.000001\",type:\"number\",value:n})]}),e.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:\"Caps the USD gap Tempo covers for each Routes transaction. Production enforcement also requires active Stripe billing.\"})]})}):e.jsx(\"p\",{className:\"border-t border-border p-4 text-copy-13 text-foreground-secondary\",children:\"The Routes subsidy policy is disabled for this organization.\"}),e.jsxs(\"div\",{className:\"border-t border-border p-4\",children:[e.jsxs(\"p\",{className:\"mb-3 text-label-12 text-foreground-secondary\",children:[\"Production usage since \",w(r.usage.from)]}),e.jsxs(\"dl\",{className:\"grid grid-cols-2 gap-4\",children:[e.jsx(p,{label:\"Subsidized amount\",children:m.money(r.usage.amount,\"usd\")}),e.jsx(p,{label:\"Completed deposits\",children:r.usage.count.toLocaleString()})]})]}),e.jsx(\"p\",{className:\"border-t border-border p-4 text-copy-13 text-foreground-secondary\",children:\"When enforcement is enabled, disabling this policy also blocks future Tempo top-ups for previously issued reusable addresses.\"}),e.jsxs(\"div\",{className:\"flex items-center justify-end gap-3 border-t border-border p-4\",children:[r.error?e.jsx(\"p\",{className:\"mr-auto text-copy-13 text-negative\",role:\"alert\",children:r.error.message}):null,e.jsx(c,{loading:r.pending,type:\"submit\",children:\"Save policy\"})]})]})})}function O(r){const[t,s]=d.useState(r.policy.durationDays!==null),[n,i]=d.useState(r.policy.attributionSpendLimit??\"\");return d.useEffect(()=>{s(r.policy.durationDays!==null),i(r.policy.attributionSpendLimit??\"\")},[r.policy.attributionSpendLimit,r.policy.durationDays]),e.jsx(u,{children:e.jsxs(\"form\",{onSubmit:o=>(o.preventDefault(),t?n?r.onSave({attributionSpendLimit:n,enabled:!0}):r.onSave({enabled:!0}):r.onSave({enabled:!1})),children:[e.jsxs(\"div\",{className:\"flex items-start justify-between gap-4 p-4\",children:[e.jsxs(\"div\",{className:\"min-w-0\",children:[e.jsx(\"h3\",{className:\"text-label-14 text-foreground\",children:\"Sponsorship\"}),e.jsx(\"p\",{className:\"mt-1 text-copy-13 text-foreground-secondary\",children:\"Waive sponsored transaction charges for each attribution's first 90 days.\"})]}),e.jsx(b,{\"aria-label\":\"Sponsorship subsidy\",checked:t,className:\"flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-border bg-secondary p-0.5 outline-none transition-colors hover:bg-secondary-hover focus-visible:border-focus data-[checked]:bg-invert disabled:cursor-not-allowed disabled:opacity-50\",disabled:r.pending,onCheckedChange:s,children:e.jsx(x,{className:\"block size-4 translate-x-0 rounded-full bg-foreground-secondary transition-transform data-[checked]:translate-x-4 data-[checked]:bg-on-invert\"})})]}),t?e.jsxs(\"div\",{className:\"grid gap-4 border-t border-border p-4 md:grid-cols-2\",children:[e.jsxs(\"label\",{className:\"flex min-w-0 flex-col gap-2\",children:[e.jsx(\"span\",{className:\"text-label-13 text-foreground-secondary\",children:\"Duration per attribution\"}),e.jsx(\"input\",{className:\"h-10 rounded-body border-2 border-transparent bg-secondary px-3 text-copy-14 text-foreground-secondary\",disabled:!0,value:\"90 days\"}),e.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:\"Starts with the attribution's first mainnet sponsorship.\"})]}),e.jsxs(\"label\",{className:\"flex min-w-0 flex-col gap-2\",children:[e.jsx(\"span\",{className:\"text-label-13 text-foreground-secondary\",children:\"Per-attribution spend cap (optional)\"}),e.jsxs(\"span\",{className:\"flex h-10 items-center rounded-body border-2 border-transparent bg-secondary px-3 focus-within:border-focus\",children:[e.jsx(\"span\",{className:\"text-copy-14 text-foreground-secondary\",children:\"$\"}),e.jsx(\"input\",{\"aria-label\":\"Per-attribution spend cap\",className:\"min-w-0 flex-1 bg-transparent px-2 text-copy-14 text-foreground outline-none\",disabled:r.pending,inputMode:\"decimal\",min:\"0\",onChange:o=>i(o.target.value),placeholder:\"No cap\",step:\"0.000001\",type:\"number\",value:n})]}),e.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:\"Leave blank for no spend cap.\"})]})]}):e.jsx(\"p\",{className:\"border-t border-border p-4 text-copy-13 text-foreground-secondary\",children:\"New sponsorships for this organization are billed normally.\"}),e.jsxs(\"div\",{className:\"flex items-center justify-end gap-3 border-t border-border p-4\",children:[r.error?e.jsx(\"p\",{className:\"mr-auto text-copy-13 text-negative\",role:\"alert\",children:r.error.message}):null,e.jsx(c,{loading:r.pending,type:\"submit\",children:\"Save policy\"})]})]})})}function p(r){return e.jsxs(\"div\",{className:\"min-w-0\",children:[e.jsx(\"dt\",{className:\"text-label-12 text-foreground-secondary\",children:r.label}),e.jsx(\"dd\",{className:\"mt-1 truncate text-label-13 text-foreground\",children:r.children})]})}var m;(r=>{function t(a,l){return`${a.toLocaleString()} ${l}${a===1?\"\":\"s\"}`}r.count=t;function s(a){return new Intl.DateTimeFormat(\"en\",{dateStyle:\"medium\",timeStyle:\"medium\"}).format(a)}r.dateTime=s;function n(a,l){return a==null?\"—\":new Intl.NumberFormat(\"en\",{currency:l?.toUpperCase()??\"USD\",style:\"currency\"}).format(Number(a))}r.money=n;function i(a){const l=a.filter(g=>g>0);if(l.length!==0)return Math.min(...l)}r.oldestUpdatedAt=i;function o(a,l){return l===0?\"0%\":new Intl.NumberFormat(\"en\",{maximumFractionDigits:1,style:\"percent\"}).format(a/l)}r.percent=o;function h(a){return a===\"month\"?\"Current month\":a}r.period=h;function f(a){return new Intl.DateTimeFormat(\"en\",{timeStyle:\"medium\"}).format(a)}r.time=f})(m||(m={}));export{U as BillingSourcesCard,I as RoutesSubsidyCard,O as SponsorshipSubsidyCard,$ as errorComponent};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/organizations-atqCj_no.js": {
"content": "import{af as o,Q as e,S as a}from\"./index-fAdpxP2M.js\";import{P as s,C as i}from\"./Page-D0rzPo-_.js\";function m(r){const t=o();return e.jsx(s,{title:\"Organizations\",description:\"Look up organizations by id, name, or member email\",children:e.jsxs(i,{className:\"flex flex-col items-center gap-4 px-6 py-12 text-center\",children:[e.jsx(\"p\",{className:\"text-copy-14 text-negative\",children:r.error.message}),e.jsx(a,{onClick:()=>{r.reset(),t.invalidate()},children:\"Try again\"})]})})}export{m as errorComponent};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/organizations-uI5F4KZB.js": {
"content": "import{ag as f,L as j,j as o,ah as N,ai as u,Q as t,S as d,a5 as b}from\"./index-fAdpxP2M.js\";import{u as y}from\"./useSuspenseInfiniteQuery-CqnlWZHf.js\";import{I as k}from\"./Input-BNichsNk.js\";import{R as p,C}from\"./Rows-DIAYGio1.js\";import{P as v,C as P,N as S}from\"./Page-D0rzPo-_.js\";import{m as R}from\"./format-Dy1GQ0to.js\";import{S as z}from\"./search-D3TiKeEB.js\";import\"./chevron-down-DB92Sr2_.js\";function O(){const{query:s}=f.useLoaderDeps(),r=j({from:f.fullPath}),[a,i]=o.useState(s??\"\"),c=E(a,300),l=o.useRef(s??\"\"),n=y(N.options({query:s})),x=n.data.pages.flatMap(e=>e.data),m=a.trim().length>0&&a.trim().length<3;return o.useEffect(()=>{if(a.trim()!==l.current)return;const e=s??\"\";l.current=e,i(e)},[s,a]),o.useEffect(()=>{const e=c.trim();a.trim()!==e||e.length>0&&e.length<3||e===(s??\"\")||(l.current=e,r({replace:!0,search:u({query:e}),to:\"/organizations\"}))},[c,r,s,a]),t.jsxs(v,{title:\"Organizations\",description:\"Look up organizations by id, name, or member email\",children:[t.jsxs(\"form\",{className:\"flex min-w-0 gap-2\",onSubmit:e=>{e.preventDefault();const h=a.trim();m||(l.current=h,r({search:u({query:h}),to:\"/organizations\"}))},children:[t.jsx(\"div\",{className:\"min-w-0 flex-1\",children:t.jsx(k,{\"aria-label\":\"Search organizations\",error:m?\"Enter at least 3 characters.\":!1,onChange:e=>i(e.target.value),placeholder:\"Organization id, user id, name, or member email\",value:a})}),t.jsxs(d,{className:\"shrink-0\",disabled:m,type:\"submit\",children:[t.jsx(z,{className:\"size-4\"}),\"Search\"]})]}),t.jsx(P,{children:x.length===0?t.jsx(S,{children:s?`No organizations match “${s}”.`:\"No organizations yet.\"}):t.jsx(p,{variant:\"surface\",children:x.map(e=>t.jsxs(p.Row,{className:\"min-h-[64px] py-3\",render:t.jsx(b,{params:{orgId:e.id},search:u({query:s}),to:\"/organizations/$orgId\"}),style:{height:\"auto\"},children:[t.jsxs(\"span\",{className:\"flex min-w-0 flex-1 flex-col gap-1\",children:[t.jsx(\"span\",{className:\"truncate text-label-14 text-foreground\",children:e.name}),t.jsx(\"span\",{className:\"truncate font-mono text-label-12 text-foreground-secondary\",children:e.id})]}),t.jsxs(\"span\",{className:\"hidden shrink-0 text-right sm:block\",children:[t.jsx(\"span\",{className:\"block text-label-13 text-foreground\",children:g(e.memberCount,\"member\")}),t.jsx(\"span\",{className:\"block text-label-12 text-foreground-secondary\",children:g(e.projectCount,\"project\")})]}),t.jsx(\"span\",{className:\"hidden w-28 shrink-0 text-right text-label-12 text-foreground-secondary md:block\",children:R(e.createdAt)}),t.jsx(C,{className:\"size-4 shrink-0 text-foreground-secondary\"})]},e.id))})}),n.isFetchNextPageError?t.jsxs(\"div\",{className:\"flex items-center justify-center gap-3 text-copy-14 text-negative\",role:\"alert\",children:[t.jsx(\"span\",{children:n.error?.message??\"Failed to load more organizations.\"}),t.jsx(d,{onClick:()=>n.fetchNextPage(),children:\"Retry\"})]}):n.hasNextPage?t.jsx(d,{className:\"self-center\",loading:n.isFetchingNextPage,onClick:()=>n.fetchNextPage(),children:\"Load more\"}):null]})}function E(s,r){const[a,i]=o.useState(s);return o.useEffect(()=>{const c=setTimeout(()=>i(s),r);return()=>clearTimeout(c)},[r,s]),a}function g(s,r){return`${s} ${r}${s===1?\"\":\"s\"}`}export{O as component};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/Page-D0rzPo-_.js": {
"content": "import{Q as s,b9 as i,ar as l}from\"./index-fAdpxP2M.js\";function c(e){return s.jsxs(\"section\",{className:\"flex flex-col gap-6\",children:[s.jsxs(\"div\",{className:\"flex flex-col gap-4 md:flex-row md:items-center md:justify-between md:gap-4\",children:[s.jsxs(\"div\",{className:\"flex min-w-0 flex-1 items-start gap-4\",children:[s.jsxs(\"div\",{className:\"min-w-0 flex-1\",children:[s.jsx(\"h1\",{className:\"text-heading-24 text-foreground\",children:e.title}),e.description?s.jsx(\"p\",{className:\"mt-1 text-copy-15 text-foreground-secondary\",children:e.description}):null]}),s.jsx(\"div\",{className:\"shrink-0 md:hidden\",children:s.jsx(i,{})})]}),e.action?s.jsx(\"div\",{className:\"flex items-center gap-2 max-sm:w-full [&>*]:max-sm:flex-1\",children:e.action}):null]}),e.children]})}function n(e){return s.jsx(\"div\",{className:l(\"border border-border bg-surface\",e.className),children:e.children})}function r(e){return s.jsx(\"div\",{className:\"flex items-center justify-center px-6 py-12 text-copy-14 text-foreground-secondary\",children:e.children})}export{n as C,r as N,c as P};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/parseUnits-BQsjHBQX.js": {
"content": "import{b3 as n,b4 as o}from\"./index-fAdpxP2M.js\";function f(r,t){return n(r,t)}function s(r,t){return o(r,t)}export{f,s as p};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/pencil-CfafyHtt.js": {
"content": "import{Z as a}from\"./index-fAdpxP2M.js\";const e=[[\"path\",{d:\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\",key:\"1a8usu\"}],[\"path\",{d:\"m15 5 4 4\",key:\"1mk7zo\"}]],c=a(\"pencil\",e);export{c as P};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/Pilat-Demi-CADSbPAt.woff2": {
"content": "d09GMgABAAAAAKaAABEAAAACT8QAAKYaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoJyG4HGBBzLAAZgAJZcCIEuCZwMEQgKhflYhZ0jC4k+AAE2AiQDkngEIAWTNweoBQyBYVulG3IFs8N8VOFserOq/xzXbeLzBDpu40nozfoA7JVXRyfYtmyoebeDtxyuX2D2////C5JFHNrMktnbuwOohqhU80+yBIcnpcildtQPGR0CJcqINGDIGfLJe8XsWLBOXT9/Oer2/YTIZzeH2ZgR3ryaURuPmKBdm5wnr9jmSseUc0a3vkopZeeI2NxIKZ8IOoZTKwWU+ol/khWLW766ecnwHm6eYo+MkmJ+0rvHLtHaG52chuXCGTQiwWmjCh+OxQNBGYU9mULHv/SqL1RUiubFlq3GG26I/yDIcBKLJXJ2+6edDy3qrDc9ubNu7lhDttz2Fq8ml6lH2fFPjaWGYnXkN5TaWe/Pbjj8s3P20Z0Vv7j5D7ls7Q7XgtPpvEf0wpRQLR1uyXb7sOdWoukpPe5/8/0obwHGuO49CCIZrJU0M7I5iMhFNvbjl4QEcVYj2XHC7R48EsB2iOZ2d/9UxBj0BkNHpkrlsAJMIiKsKgb4ufXK3ltQYwzpsY2xYsmCWCaDFbDBBmMFjHBUCYKHCgdnNSglxnmnfXDXRv/Ta6/xvFIv9PrfOfBu619F/l1XeN3coX32VWAXenPi6BGLpAYbsAKwgo3M7AFvdJXR5f/hT9g976+VYgYjSam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8jTboLczhPRDUtkumySeYGnTRY2QXKzs4MryltnZ7y34Umwm184ixnbOFH3KPLKCENI/zhzUdtKy+Nb36LEqpLHPloOIZQQllTmHEUHRRTXLlIZ+cFcPOuq/4zpoiPqbVgIAVYTHZp2Kg+nddEahbIIe6EcybmiL16s0oI3EM6uYTLxGFE9JU6syhds8rb5BLKDQIzrAIPkF0Zvo6KVa2JYqe8LKAKTReVR0nR+Udy2JKtjosZqISqXKTjYgYqoeq4kWXxUbWgyRGtATdDSHQ/hAjhOwayC8IZFNS6QrsTE7AB5py52TB2/9ApEYxeFx4mtmej8bF3BVhtmyUpViamNISBKUxpYggD82jyk7Y/eQwC78xVcC3OqARB6zCDVGGgho6gArF9LWxdu9A2VJ/He4CBZoAKUhACwBClAClyj9eV5o/vGc8bFC+drHkPomIeOtJTGv89u/8pmMYQzd4CtidIHoLZ229/5jMtjrwZOKKwONCBO1LpA6VjmiacCthh17A5uxAwwhIOCeywn5Wm2rCZvNKti/R941+U8O0LlGmQAyQe6HkQrwtMVYKT17/3uZvFr7+rG6DXog2gWQ+TJ9E3DQnUmi75P18N0Jozp/R1srDOtk5XZ+QqlMXakIi1Gf0ODAFs/mD5cdhD8IRvN/1T3B/tUw8YFvkEWIzqX62YJnGn7+yWS38VvOVcxDvtBVqlzFsy0+Q3f7QLd+7uCdsiP5UszvzoJ/qOvgCJWiGeSlA/Ahz1Gxgs9rWLGz5u3Sr5YxJtxhVtwyYIh7DYK5F38DBg1IwOxpjEt/2p8OEtoLLbZpzw5o58YQ60m+aLdg+/KTJeeYd+12n3isWuAgAA",
"contentType": "font/woff2",
"encoding": "base64"
},
"assets/Pilat-Regular-Bx8vzE7q.woff2": {
"content": "d09GMgABAAAAAKXcABEAAAACSXgAAKV4AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoJyG4HGWBzLAAZgAJZcCIEuCZwMEQgKhex0hZBaC4k+AAE2AiQDkngEIAWSeQeoBQyBYVtyFZIB5e3uN0uCSm9WXcc9DL/n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itB0mg+TCsnJK246vhjdsvAe1jlCKUVN5nySjv+SN6i/aqoS3993yriuwg6p4luOeMJ3Xm+hfhQZRx/+PTlfPfr59nzI2vEXgD60NNhTLBUisNIiZiM2WYdPhizcgMbdsuenWktNsSi1GmdwX6wOZxTB/9fpgl96VXSh6D+rS++B/3Jz0De7MEGE+2nj1z3CT7JLq9P/Yv1C8qK+KJv9ukuijY9Jcfib5wnvxULw0K30C40C3WAqnC8Ek2R/SLf/BUi5N/20Gee9d/N/r2ir3ywNjr3UwOOn0D+sr5/ePrIz41C0CnnxPs7kfz5D5nrnXWKi0cbnpqHcie/0MwtVfc9BJ/8XpNcjMqfAQ==",
"contentType": "font/woff2",
"encoding": "base64"
},
"assets/refresh-cw-BZnR17p2.js": {
"content": "import{Z as e}from\"./index-fAdpxP2M.js\";const t=[[\"path\",{d:\"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\",key:\"v9h5vc\"}],[\"path\",{d:\"M21 3v5h-5\",key:\"1q7to0\"}],[\"path\",{d:\"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\",key:\"3uifl3\"}],[\"path\",{d:\"M8 16H3v5\",key:\"1cv678\"}]],c=e(\"refresh-cw\",t);export{c as R};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/routes_.support-DvIwPLeh.js": {
"content": "import{az as N,Q as e,S as y,a5 as v,j as d}from\"./index-fAdpxP2M.js\";import{u as w}from\"./useSuspenseQuery-CuN41JNT.js\";import{S}from\"./Select-BMgHxVP4.js\";import{T as c}from\"./Tag-CLDoN3Ro.js\";import{P as T,C,N as h}from\"./Page-D0rzPo-_.js\";import{A as $}from\"./arrow-left-CWMggVOA.js\";import\"./useButton-ByI90A_n.js\";import\"./useScrollLock-D0Gehqgv.js\";import\"./FormContext-lWysHyLG.js\";import\"./useValueChanged-mcPqATWD.js\";import\"./useOpenInteractionType-97GoxcAN.js\";function H(){const s=w(N.options());return e.jsxs(T,{title:\"Route Support\",description:\"Published catalog support for quotes, deposit addresses, wallet transfers, and conditional subsidies.\",action:e.jsxs(y,{render:e.jsx(v,{to:\"/routes\"}),children:[e.jsx($,{className:\"size-4\"}),\"Activity\"]}),children:[e.jsxs(\"div\",{className:\"flex flex-wrap items-center gap-x-4 gap-y-1 text-label-12 text-foreground-secondary\",children:[e.jsxs(\"span\",{children:[\"Published \",D(s.data.updatedAt)]}),e.jsx(\"span\",{children:\"Subsidies also require organization policy, billing, amount, and inventory checks.\"})]}),e.jsx(k,{routes:s.data.data})]})}function k(s){const[r,i]=d.useState(\"\"),[l,g]=d.useState(\"\"),u=d.useMemo(()=>{const a=new Map,p=new Map;for(const t of s.routes)a.set(`${t.destinationChain.id}/${t.destinationToken.id}`,`${t.destinationToken.symbol} · ${t.destinationChain.name}`),p.set(`${t.sourceChain.id}/${t.sourceToken.id}`,`${t.sourceToken.symbol} · ${t.sourceChain.name}`);return{destinations:[...a].map(([t,o])=>({label:o,value:t})),sources:[...p].map(([t,o])=>({label:o,value:t}))}},[s.routes]),m=s.routes.filter(a=>(!l||l===`${a.sourceChain.id}/${a.sourceToken.id}`)&&(!r||r===`${a.destinationChain.id}/${a.destinationToken.id}`));return e.jsxs(\"div\",{className:\"flex flex-col gap-3\",children:[e.jsxs(\"div\",{className:\"flex flex-wrap gap-3\",children:[e.jsx(f,{items:[{label:\"All sources\",value:\"\"},...u.sources],label:\"Source\",onChange:g,value:l}),e.jsx(f,{items:[{label:\"All destinations\",value:\"\"},...u.destinations],label:\"Destination\",onChange:i,value:r})]}),e.jsx(C,{className:\"overflow-hidden\",children:s.routes.length===0?e.jsx(h,{children:\"No routes are published.\"}):m.length===0?e.jsx(h,{children:\"No routes match these filters.\"}):e.jsx(\"div\",{className:\"overflow-x-auto\",children:e.jsxs(\"table\",{className:\"w-full min-w-[960px] border-collapse text-left\",children:[e.jsx(\"thead\",{className:\"border-b border-border bg-surface-secondary text-label-12 text-foreground-secondary\",children:e.jsxs(\"tr\",{children:[e.jsx(n,{children:\"Source\"}),e.jsx(n,{children:\"Destination\"}),e.jsx(n,{children:\"Quotes\"}),e.jsx(n,{children:\"Deposit addresses\"}),e.jsx(n,{children:\"Wallet transfers\"}),e.jsx(n,{children:\"Subsidies\"})]})}),e.jsx(\"tbody\",{className:\"divide-y divide-border\",children:m.map(a=>e.jsxs(\"tr\",{className:\"align-top\",children:[e.jsx(j,{chain:a.sourceChain.name,symbol:a.sourceToken.symbol}),e.jsx(j,{chain:a.destinationChain.name,symbol:a.destinationToken.symbol}),e.jsx(b,{providerIds:a.quoteProviders}),e.jsx(b,{providerIds:a.depositAddressProviders}),e.jsx(A,{providers:a.walletTransferProviders}),e.jsx(P,{subsidies:a.subsidies})]},a.id))})]})})})]})}function f(s){return e.jsxs(\"label\",{className:\"flex w-full min-w-0 flex-col gap-1.5 sm:w-64\",children:[e.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:s.label}),e.jsx(S,{\"aria-label\":s.label,className:\"w-full\",items:s.items,onChange:s.onChange,value:s.value})]})}function n(s){return e.jsx(\"th\",{className:\"px-4 py-3 font-medium\",children:s.children})}function j(s){return e.jsxs(\"td\",{className:\"px-4 py-3\",children:[e.jsx(\"span\",{className:\"block text-label-14 text-foreground\",children:s.symbol}),e.jsx(\"span\",{className:\"block text-label-12 text-foreground-secondary\",children:s.chain})]})}function b(s){return e.jsx(\"td\",{className:\"px-4 py-3\",children:s.providerIds.length?e.jsx(\"span\",{className:\"flex flex-wrap gap-1.5\",children:s.providerIds.map(r=>e.jsx(c,{children:r},r))}):e.jsx(x,{})})}function A(s){return e.jsx(\"td\",{className:\"px-4 py-3\",children:s.providers.length?e.jsx(\"span\",{className:\"flex flex-wrap gap-1.5\",children:s.providers.map(r=>e.jsx(c,{children:r.providerId},r.providerId))}):e.jsx(x,{})})}function P(s){const r=[...s.subsidies.depositAddress?[\"deposit address\"]:[],...s.subsidies.walletTransfer?[\"wallet transfer\"]:[]];return e.jsx(\"td\",{className:\"px-4 py-3\",children:r.length?e.jsx(\"span\",{className:\"flex flex-wrap gap-1.5\",children:r.map(i=>e.jsx(c,{children:i},i))}):e.jsx(x,{})})}function x(){return e.jsx(\"span\",{className:\"text-copy-14 text-foreground-tertiary\",children:\"—\"})}function D(s){const r=new Date(s);return Number.isNaN(r.getTime())?s:new Intl.DateTimeFormat(void 0,{dateStyle:\"medium\",timeStyle:\"short\"}).format(r)}export{H as component};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/routes-BwTWIt70.js": {
"content": "import{Z as tt,j as c,a6 as ct,Q as t,L as rn,a7 as dt,u as nt,a8 as Wn,S as He,a5 as bt,a3 as Ye,a4 as Ke,U as We,a0 as yt,a9 as Xn,aa as Gn,ab as Qn,ac as Zn,ad as Jn,ae as es}from\"./index-fAdpxP2M.js\";import{C as an,u as ts,a as ns}from\"./clipboard-BBKfs2nA.js\";import{I as it}from\"./Input-BNichsNk.js\";import{u as ln,a as ss,g as os,b as rs,c as as,d as is,e as ls,C as cs,f as ds,h as us,i as fs,j as ps,S as gs}from\"./Select-BMgHxVP4.js\";import{T as ms}from\"./Tabs-CVutcaXm.js\";import{T as we}from\"./Tag-CLDoN3Ro.js\";import{P as hs,N as ut}from\"./Page-D0rzPo-_.js\";import{C as cn}from\"./chevron-down-DB92Sr2_.js\";import{A as xs}from\"./arrow-right-Cic7WQii.js\";import{X as vs}from\"./x-BuvYxEbX.js\";import{E as bs}from\"./external-link-C2R5db17.js\";import{u as dn,a as jt,E as $e,b as ft,c as Pe,g as un,i as de,d as Z,t as Le,e as fn,f as Ct,h as pn,j as gn,k as ae,l as he,m as ue,n as Rt,o as Se,p as Pt,q as ys,r as js,s as Et,v as ze,w as Cs,x as Fe,y as Kt,z as pt,A as Rs,B as Ps,C as Es,D as Ts,F as Ss}from\"./useButton-ByI90A_n.js\";import{u as mn}from\"./FormContext-lWysHyLG.js\";import{i as gt,u as Te,m as Xe,a as hn,b as Is,c as pe,d as Ms,e as Wt,o as Re,f as re,g as Ge,h as st,j as Ns,k as ks,l as ws,T as mt,n as Tt,p as St,q as Os,r as ht,s as Ee,t as xn,v as Xt,w as ot,x as vn,y as It,A as Qe,F as As,z as Ds,C as Fs,B as Ls,D as zs,P as Hs,I as $s,E as Bs,G as qs,R as Us,H as _s,J as bn,K as se,L as Vs,M as Ys,N as yn,O as Ks,Q as Ws,S as Xs,U as Gs,V as Qs,W as Zs,X as Js,Y as eo,Z as to,_ as no,$ as so,a0 as oo,a1 as ro,a2 as ao,a3 as Gt,a4 as Qt,a5 as io}from\"./useScrollLock-D0Gehqgv.js\";import{u as lo,a as co}from\"./useOpenInteractionType-97GoxcAN.js\";import{p as uo,g as fo,D as po,a as go,b as mo,c as ho,d as xo,e as vo,f as bo}from\"./DialogTitle-CFzjJ1Ce.js\";import\"./useValueChanged-mcPqATWD.js\";const yo=[[\"path\",{d:\"M8 3 4 7l4 4\",key:\"9rb6wj\"}],[\"path\",{d:\"M4 7h16\",key:\"6tx8e3\"}],[\"path\",{d:\"m16 21 4-4-4-4\",key:\"siv7j2\"}],[\"path\",{d:\"M20 17H4\",key:\"h6l3hr\"}]],jo=tt(\"arrow-left-right\",yo);const Co=[[\"circle\",{cx:\"12\",cy:\"12\",r:\"10\",key:\"1mglay\"}],[\"path\",{d:\"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8\",key:\"1h4pet\"}],[\"path\",{d:\"M12 18V6\",key:\"zqpxq5\"}]],Ro=tt(\"circle-dollar-sign\",Co);const Po=[[\"path\",{d:\"M10 5H3\",key:\"1qgfaw\"}],[\"path\",{d:\"M12 19H3\",key:\"yhmn1j\"}],[\"path\",{d:\"M14 3v4\",key:\"1sua03\"}],[\"path\",{d:\"M16 17v4\",key:\"1q0r14\"}],[\"path\",{d:\"M21 12h-9\",key:\"1o4lsq\"}],[\"path\",{d:\"M21 19h-5\",key:\"1rlt1p\"}],[\"path\",{d:\"M21 5h-7\",key:\"1oszz2\"}],[\"path\",{d:\"M8 10v4\",key:\"tgpxqk\"}],[\"path\",{d:\"M8 12H3\",key:\"a7s4jb\"}]],Eo=tt(\"sliders-horizontal\",Po);const To=[[\"rect\",{width:\"18\",height:\"18\",x:\"3\",y:\"3\",rx:\"2\",key:\"afitv7\"}],[\"path\",{d:\"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2\",key:\"4125el\"}],[\"path\",{d:\"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21\",key:\"1dpki6\"}]],So=tt(\"wallet-cards\",To);function Io(e={}){const{highlightItemOnHover:s,highlightedIndex:n,onHighlightedIndexChange:o}=dn(),{ref:r,index:a}=ln(e),h=n===a,i=c.useRef(null),d=jt(r,i);return{compositeProps:c.useMemo(()=>({tabIndex:h?0:-1,onFocus(){o(a)},onMouseMove(){const u=i.current;if(!s||!u)return;const j=u.hasAttribute(\"disabled\")||u.ariaDisabled===\"true\";!h&&!j&&u.focus()}}),[h,o,a,s]),compositeRef:d,index:a}}function Mo(e){const{render:s,className:n,style:o,state:r=$e,props:a=ft,refs:h=ft,metadata:i,stateAttributesMapping:d,tag:b=\"div\",...u}=e,{compositeProps:j,compositeRef:p}=Io({metadata:i});return Pe(b,e,{state:r,ref:[...h,p],props:[j,...a,u],stateAttributesMapping:d})}function No(e,s){return s!=null&&!gt(s)?0:typeof e==\"function\"?e():e}function xt(e,s,n){const o=No(e,n);return typeof o==\"number\"?o:o?.[s]}function Zt(e){return typeof e==\"function\"?e():e}function jn(e,s){return s||e===\"click\"||e===\"mousedown\"}function ko(e){return e?.includes(\"mouse\")&&e!==\"mousedown\"}const lt=hn&&Is;function wo(e,s={}){const{enabled:n=!0,delay:o}=s,r=\"rootStore\"in e?e.rootStore:e,{events:a,dataRef:h}=r.context,i=c.useRef(!1),d=c.useRef(null),b=c.useRef(!0),u=Te();c.useEffect(()=>{const p=r.select(\"domReferenceElement\");if(!n)return;const C=un(p);function v(){const R=r.select(\"domReferenceElement\");!r.select(\"open\")&&fn(R)&&R===Wt(Re(R))&&(i.current=!0)}function I(){b.current=!0}function y(){b.current=!1}return Xe(pe(C,\"blur\",v),lt&&pe(C,\"keydown\",I,!0),lt&&pe(C,\"pointerdown\",y,!0))},[r,n]),c.useEffect(()=>{if(!n)return;function p(C){if(C.reason===Ct||C.reason===pn){const v=r.select(\"domReferenceElement\");de(v)&&(d.current=v,i.current=!0)}}return a.on(\"openchange\",p),()=>{a.off(\"openchange\",p)}},[a,n,r]);const j=c.useMemo(()=>{function p(){i.current=!1,d.current=null}return{onMouseLeave(){p()},onFocus(C){const v=C.currentTarget;if(i.current){if(d.current===v)return;p()}const I=st(C.nativeEvent);if(de(I)){if(lt&&!C.relatedTarget){if(!b.current&&!Ns(I))return}else if(!ks(I))return}const y=Ge(C.relatedTarget,r.context.triggerElements),{nativeEvent:R,currentTarget:f}=C,m=typeof o==\"function\"?o():o;if(r.select(\"open\")&&y||m===0||m===void 0){r.setOpen(!0,Z(Le,R,f));return}u.start(m,()=>{i.current||r.setOpen(!0,Z(Le,R,f))})},onBlur(C){p();const v=C.relatedTarget,I=C.nativeEvent,y=de(v)&&v.hasAttribute(Ms(\"focus-guard\"))&&v.getAttribute(\"data-type\")===\"outside\";u.start(0,()=>{const R=r.select(\"domReferenceElement\"),f=Wt(Re(R));!v&&f===R||re(h.current.floatingContext?.refs.floating.current,f)||re(R,f)||y||Ge(v??f,r.context.triggerElements)||r.setOpen(!1,Z(Le,I))})}}},[h,o,r,u]);return c.useMemo(()=>n?{reference:j,trigger:j}:{},[n,j])}class Mt{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new mt,this.restTimeout=new mt,this.handleCloseOptions=void 0}static create(){return new Mt}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const Ze=new WeakMap;function Je(e){if(!e.performedPointerEventsMutation)return;const s=e.pointerEventsScopeElement;s&&Ze.get(s)===e&&(e.pointerEventsScopeElement?.style.removeProperty(\"pointer-events\"),e.pointerEventsReferenceElement?.style.removeProperty(\"pointer-events\"),e.pointerEventsFloatingElement?.style.removeProperty(\"pointer-events\"),Ze.delete(s)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Cn(e,s){const{scopeElement:n,referenceElement:o,floatingElement:r}=s,a=Ze.get(n);a&&a!==e&&Je(a),Je(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=o,e.pointerEventsFloatingElement=r,Ze.set(n,e),n.style.pointerEvents=\"none\",o.style.pointerEvents=\"auto\",r.style.pointerEvents=\"auto\"}function Rn(e){const s=e.context.dataRef.current,n=gn(()=>s.hoverInteractionState??Mt.create()).current;return s.hoverInteractionState||(s.hoverInteractionState=n),ws(s.hoverInteractionState.disposeEffect),s.hoverInteractionState}function Oo(e,s={}){const{enabled:n=!0,closeDelay:o=0,nodeId:r}=s,a=\"rootStore\"in e?e.rootStore:e,h=a.useState(\"open\"),i=a.useState(\"floatingElement\"),d=a.useState(\"domReferenceElement\"),{dataRef:b}=a.context,u=Tt(),j=St(),p=Rn(a),C=Te(),v=ae(()=>jn(b.current.openEvent?.type,p.interactedInside)),I=ae(()=>ko(b.current.openEvent?.type)),y=ae(()=>{Je(p)});he(()=>{h||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,y())},[h,p,y]),c.useEffect(()=>y,[y]),he(()=>{if(n&&h&&p.handleCloseOptions?.blockPointerEvents&&I()&&de(d)&&i){const R=d,f=i,m=Re(i),M=u?.nodesRef.current.find(E=>E.id===j)?.context?.elements.floating;M&&(M.style.pointerEvents=\"\");const D=p.pointerEventsScopeElement!==f?p.pointerEventsScopeElement:null,l=M!==f?M:null,P=p.handleCloseOptions?.getScope?.()??D??l??R.closest(\"[data-rootownerid]\")??m.body;return Cn(p,{scopeElement:P,referenceElement:R,floatingElement:f}),()=>{y()}}},[n,h,d,i,p,I,u,j,y]),c.useEffect(()=>{if(!n)return;function R(){return!!(u&&j&&ht(u.nodesRef.current,j).length>0)}function f(E){const A=xt(o,\"close\",p.pointerType),k=()=>{a.setOpen(!1,Z(ue,E)),u?.events.emit(\"floating.closed\",E)};A?p.openChangeTimeout.start(A,k):(p.openChangeTimeout.clear(),k())}function m(E){const A=st(E);if(!Os(A)){p.interactedInside=!1;return}p.interactedInside=A?.closest(\"[aria-haspopup]\")!=null}function M(){p.openChangeTimeout.clear(),C.clear(),u?.events.off(\"floating.closed\",l),y()}function D(E){if(R()&&u){u.events.on(\"floating.closed\",l);return}if(Ge(E.relatedTarget,a.context.triggerElements))return;const A=b.current.floatingContext?.nodeId??r,k=E.relatedTarget;if(!(u&&A&&de(k)&&ht(u.nodesRef.current,A,!1).some(z=>re(z.context?.elements.floating,k)))){if(p.handler){p.handler(E);return}y(),v()||f(E)}}function l(E){!u||!j||R()||C.start(0,()=>{u.events.off(\"floating.closed\",l),a.setOpen(!1,Z(ue,E)),u.events.emit(\"floating.closed\",E)})}const P=i;return Xe(P&&pe(P,\"mouseenter\",M),P&&pe(P,\"mouseleave\",D),P&&pe(P,\"pointerdown\",m,!0),()=>{u?.events.off(\"floating.closed\",l)})},[n,i,a,b,o,r,v,y,p,u,j,C])}const Ao={current:null};function Do(e,s={}){const{enabled:n=!0,delay:o=0,handleClose:r=null,mouseOnly:a=!1,restMs:h=0,move:i=!0,triggerElementRef:d=Ao,externalTree:b,isActiveTrigger:u=!0,getHandleCloseContext:j,isClosing:p,shouldOpen:C}=s,v=\"rootStore\"in e?e.rootStore:e,{dataRef:I,events:y}=v.context,R=Tt(b),f=Rn(v),m=c.useRef(!1),M=Ee(r),D=Ee(o),l=Ee(h),P=Ee(n),E=Ee(C),A=Ee(p),k=ae(()=>jn(I.current.openEvent?.type,f.interactedInside)),B=ae(()=>E.current?.()!==!1),z=ae((g,T,$)=>{const S=v.context.triggerElements;if(S.hasElement(T))return!g||!re(g,T);if(!de($))return!1;const x=$;return S.hasMatchingElement(N=>re(N,x))&&(!g||!re(g,x))}),L=ae(()=>{if(!f.handler)return;Re(v.select(\"domReferenceElement\")).removeEventListener(\"mousemove\",f.handler),f.handler=void 0}),w=ae(()=>{Je(f)});return u&&(f.handleCloseOptions=M.current?.__options),c.useEffect(()=>L,[L]),c.useEffect(()=>{if(!n)return;function g(T){T.open?m.current=!1:(m.current=T.reason===ue,L(),f.openChangeTimeout.clear(),f.restTimeout.clear(),f.blockMouseMove=!0,f.restTimeoutPending=!1)}return y.on(\"openchange\",g),()=>{y.off(\"openchange\",g)}},[n,y,f,L]),c.useEffect(()=>{if(!n)return;function g(x,N=!0){const H=xt(D.current,\"close\",f.pointerType);H?f.openChangeTimeout.start(H,()=>{v.setOpen(!1,Z(ue,x)),R?.events.emit(\"floating.closed\",x)}):N&&(f.openChangeTimeout.clear(),v.setOpen(!1,Z(ue,x)),R?.events.emit(\"floating.closed\",x))}const T=d.current??(u?v.select(\"domReferenceElement\"):null);if(!de(T))return;function $(x){if(f.openChangeTimeout.clear(),f.blockMouseMove=!1,a&&!gt(f.pointerType))return;const N=Zt(l.current),H=xt(D.current,\"open\",f.pointerType),V=st(x),K=x.currentTarget??null,q=v.select(\"domReferenceElement\");let _=K;if(de(V)&&!v.context.triggerElements.hasElement(V)){for(const be of v.context.triggerElements.elements())if(re(be,V)){_=be;break}}de(K)&&de(q)&&!v.context.triggerElements.hasElement(K)&&re(K,q)&&(_=q);const F=_==null?!1:z(q,_,V),Q=v.select(\"open\"),ne=A.current?.()??v.select(\"transitionStatus\")===\"ending\",W=!Q&&ne&&m.current,ee=!F&&de(_)&&de(q)&&re(q,_)&&W,te=N>0&&!H,ie=F&&(Q||W)||ee,le=!Q||F;if(ie){B()&&v.setOpen(!0,Z(ue,x,_));return}te||(H?f.openChangeTimeout.start(H,()=>{le&&B()&&v.setOpen(!0,Z(ue,x,_))}):le&&B()&&v.setOpen(!0,Z(ue,x,_)))}function S(x){if(k()){w();return}L();const N=v.select(\"domReferenceElement\"),H=Re(N);f.restTimeout.clear(),f.restTimeoutPending=!1;const V=I.current.floatingContext??j?.();if(Ge(x.relatedTarget,v.context.triggerElements))return;if(M.current&&V){v.select(\"open\")||f.openChangeTimeout.clear();const q=d.current;f.handler=M.current({...V,tree:R,x:x.clientX,y:x.clientY,onClose(){w(),L(),P.current&&!k()&&q===v.select(\"domReferenceElement\")&&g(x,!0)}}),H.addEventListener(\"mousemove\",f.handler),f.handler(x);return}(f.pointerType!==\"touch\"||!re(v.select(\"floatingElement\"),x.relatedTarget))&&g(x)}return i?Xe(pe(T,\"mousemove\",$,{once:!0}),pe(T,\"mouseenter\",$),pe(T,\"mouseleave\",S)):Xe(pe(T,\"mouseenter\",$),pe(T,\"mouseleave\",S))},[L,w,I,D,v,n,M,f,u,z,k,a,i,l,d,R,P,j,A,B]),c.useMemo(()=>{if(!n)return;function g(T){f.pointerType=T.pointerType}return{onPointerDown:g,onPointerEnter:g,onMouseMove(T){const{nativeEvent:$}=T,S=T.currentTarget,x=v.select(\"domReferenceElement\"),N=v.select(\"open\"),H=z(x,S,T.target);if(a&&!gt(f.pointerType))return;if(N&&H&&f.handleCloseOptions?.blockPointerEvents){const q=v.select(\"floatingElement\");if(q){const _=f.handleCloseOptions?.getScope?.()??S.ownerDocument.body;Cn(f,{scopeElement:_,referenceElement:S,floatingElement:q})}}const V=Zt(l.current);if(N&&!H||V===0||!H&&f.restTimeoutPending&&T.movementX**2+T.movementY**2<2)return;f.restTimeout.clear();function K(){if(f.restTimeoutPending=!1,k())return;const q=v.select(\"open\");!f.blockMouseMove&&(!q||H)&&B()&&v.setOpen(!0,Z(ue,$,S))}f.pointerType===\"touch\"?ct.flushSync(()=>{K()}):H&&N?K():(f.restTimeoutPending=!0,f.restTimeout.start(V,K))}}},[n,f,k,z,a,v,l,B])}const Jt=.1,Fo=Jt*Jt,Y=.5;function qe(e,s,n,o,r,a){return o>=s!=a>=s&&e<=(r-n)*(s-o)/(a-o)+n}function Ue(e,s,n,o,r,a,h,i,d,b){let u=!1;return qe(e,s,n,o,r,a)&&(u=!u),qe(e,s,r,a,h,i)&&(u=!u),qe(e,s,h,i,d,b)&&(u=!u),qe(e,s,d,b,n,o)&&(u=!u),u}function Lo(e,s,n){return e>=n.x&&e<=n.x+n.width&&s>=n.y&&s<=n.y+n.height}function _e(e,s,n,o,r,a){const h=Math.min(n,r),i=Math.max(n,r),d=Math.min(o,a),b=Math.max(o,a);return e>=h&&e<=i&&s>=d&&s<=b}function zo(e={}){const{blockPointerEvents:s=!1}=e,n=new mt,o=({x:r,y:a,placement:h,elements:i,onClose:d,nodeId:b,tree:u})=>{const j=h?.split(\"-\")[0];let p=!1,C=null,v=null,I=typeof performance<\"u\"?performance.now():0;function y(f,m){const M=performance.now(),D=M-I;if(C===null||v===null||D===0)return C=f,v=m,I=M,!1;const l=f-C,P=m-v,E=l*l+P*P,A=D*D*Fo;return C=f,v=m,I=M,E0)}function L(){z()||R()}if(z())return;const w=M.getBoundingClientRect(),g=D.getBoundingClientRect(),T=r>g.right-g.width/2,$=a>g.bottom-g.height/2,S=g.width>w.width,x=g.height>w.height,N=(S?w:g).left,H=(S?w:g).right,V=(x?w:g).top,K=(x?w:g).bottom;if(j===\"top\"&&a>=w.bottom-1||j===\"bottom\"&&a<=w.top+1||j===\"left\"&&r>=w.right-1||j===\"right\"&&r<=w.left+1){L();return}let q=!1;switch(j){case\"top\":q=_e(l,P,N,w.top+1,H,g.bottom-1);break;case\"bottom\":q=_e(l,P,N,g.top+1,H,w.bottom-1);break;case\"left\":q=_e(l,P,g.right-1,K,w.left+1,V);break;case\"right\":q=_e(l,P,w.right-1,K,g.left+1,V);break}if(q)return;if(p&&!Lo(l,P,w)){L();return}if(!A&&y(l,P)){L();return}let _=!1;switch(j){case\"top\":{const F=S?Y/2:Y*4,Q=S||T?r+F:r-F,ne=S?r-F:T?r+F:r-F,W=a+Y+1,ee=T||S?g.bottom-Y:g.top,te=T?S?g.bottom-Y:g.top:g.bottom-Y;_=Ue(l,P,Q,W,ne,W,g.left,ee,g.right,te);break}case\"bottom\":{const F=S?Y/2:Y*4,Q=S||T?r+F:r-F,ne=S?r-F:T?r+F:r-F,W=a-Y,ee=T||S?g.top+Y:g.bottom,te=T?S?g.top+Y:g.bottom:g.top+Y;_=Ue(l,P,Q,W,ne,W,g.left,ee,g.right,te);break}case\"left\":{const F=x?Y/2:Y*4,Q=x||$?a+F:a-F,ne=x?a-F:$?a+F:a-F,W=r+Y+1,ee=$||x?g.right-Y:g.left,te=$?x?g.right-Y:g.left:g.right-Y;_=Ue(l,P,ee,g.top,te,g.bottom,W,Q,W,ne);break}case\"right\":{const F=x?Y/2:Y*4,Q=x||$?a+F:a-F,ne=x?a-F:$?a+F:a-F,W=r-Y,ee=$||x?g.left+Y:g.right,te=$?x?g.left+Y:g.right:g.left+Y;_=Ue(l,P,W,Q,W,ne,ee,g.top,te,g.bottom);break}}_?p||n.start(40,L):L()}};return o.__options={...e,blockPointerEvents:s},o}function Ho(e){const{open:s,defaultOpen:n,onOpenChange:o,disabled:r}=e,[a,h]=mn({controlled:s,default:n,name:\"Collapsible\",state:\"open\"}),{mounted:i,setMounted:d,transitionStatus:b}=xn(a,!0,!0),u=Rt(),[j,p]=c.useState(),C=j??u,v=ae(I=>{const y=!a,R=Z(Ct,I.nativeEvent);o(y,R),!R.isCanceled&&h(y)});return c.useMemo(()=>({disabled:r,handleTrigger:v,mounted:i,open:a,panelId:C,setMounted:d,setOpen:h,setPanelIdState:p,transitionStatus:b}),[r,v,i,a,C,d,h,p,b])}const Pn=c.createContext(void 0);function En(){const e=c.useContext(Pn);if(e===void 0)throw new Error(Se(15));return e}let Nt=(function(e){return e.open=\"data-open\",e.closed=\"data-closed\",e[e.startingStyle=Xt.startingStyle]=\"startingStyle\",e[e.endingStyle=Xt.endingStyle]=\"endingStyle\",e})({}),$o=(function(e){return e.panelOpen=\"data-panel-open\",e})({});const Bo={[Nt.open]:\"\"},qo={[Nt.closed]:\"\"},Uo={open(e){return e?{[$o.panelOpen]:\"\"}:null}},_o={open(e){return e?Bo:qo}},Tn={..._o,...ot},Vo=c.forwardRef(function(s,n){const{render:o,className:r,defaultOpen:a=!1,disabled:h=!1,onOpenChange:i,open:d,style:b,...u}=s,j=ae(i),p=Ho({open:d,defaultOpen:a,onOpenChange:j,disabled:h}),C=c.useMemo(()=>({open:p.open,disabled:p.disabled,transitionStatus:p.transitionStatus}),[p.open,p.disabled,p.transitionStatus]),v=c.useMemo(()=>({...p,onOpenChange:j,state:C}),[p,j,C]),I=Pe(\"div\",s,{state:C,ref:n,props:u,stateAttributesMapping:Tn});return t.jsx(Pn.Provider,{value:v,children:I})}),Yo={...Uo,...ot},Ko=c.forwardRef(function(s,n){const{panelId:o,open:r,handleTrigger:a,state:h,disabled:i}=En(),{className:d,disabled:b=i,id:u,render:j,nativeButton:p=!0,style:C,...v}=s,{getButtonProps:I,buttonRef:y}=Pt({disabled:b,focusableWhenDisabled:!0,native:p});return Pe(\"button\",s,{state:h,ref:[n,y],props:[{\"aria-controls\":r?o:void 0,\"aria-expanded\":r,onClick:a},v,I],stateAttributesMapping:Yo})}),Oe={height:void 0,width:void 0};function Wo(e){const{externalRef:s,hiddenUntilFound:n,id:o,keepMounted:r,mounted:a,onOpenChange:h,open:i,setMounted:d,setOpen:b,transitionStatus:u}=e,j=c.useRef(null),p=c.useRef(null),[C,v]=c.useState(Oe),I=c.useRef(Oe),y=c.useRef(!1),R=c.useRef(i),f=c.useRef(!1),[m,M]=c.useState(!1),D=c.useRef(null),l=jt(s,j),P=Ee({mounted:a,open:i}),E=vn(j,!1,!1),A=!i&&!a,k=m?\"idle\":u,B=i&&(R.current||f.current),z=!i&&a&&p.current===\"css-animation\"&&C.height===void 0&&C.width===void 0?I.current:C,L=n&&A&&p.current!==\"css-animation\",w=ae((x,N=!0)=>{N&&(I.current=x),v(x)}),g=ae(()=>{D.current?.(),D.current=null}),T=ae(x=>{g(),D.current=()=>{D.current=null,x()}}),$=ae(()=>{i&&a&&p.current===\"css-animation\"&&(f.current=!0)});he(()=>{!m||u===\"starting\"||M(!1)},[m,u]),c.useEffect(()=>()=>{$(),g()},[$,g]),he(()=>{const x=j.current;if(!x)return;!i&&D.current&&g();const N=Xo(x,B);if(p.current=N,i&&u===\"idle\"&&R.current&&N===\"css-animation\"){I.current=ke(x);return}if(i&&u===\"starting\"){const K=y.current;if(y.current=!1,N===\"none\"){w(ke(x)),M(!0);return}if(N===\"css-transition\"){const q=Go(x);if(w(ke(x)),!K)return q;const _=Ae(x,\"transition-duration\",\"0s\");return T(_),M(!0),q}if(N===\"css-animation\"){if(w(ke(x)),!K){Ae(x,\"animation-name\",\"none\")();return}const q=Ae(x,\"animation-name\",\"none\"),_=Ae(x,\"animation-duration\",\"0s\");q(),T(_),M(!0);return}}if(!i&&a&&(u===\"idle\"||u===\"starting\")){if(N===\"none\"){w(Oe,!1),d(!1);return}N===\"css-animation\"&&(R.current=!1,f.current=!1),w(ke(x));return}if(u!==\"ending\")return;if(N===\"none\"){d(!1);return}const H=ke(x);if(!((H.height??0)>0||(H.width??0)>0)){d(!1);return}w(H),N===\"css-animation\"&&Ae(x,\"animation-name\",\"none\")()},[a,i,g,w,d,T,B,u]),It({enabled:i&&a&&k===\"idle\",open:!0,ref:j,onComplete(){i&&w(Oe,!1)}}),c.useEffect(()=>{if(i||!a||k!==\"ending\"||!j.current)return;const N=new AbortController;let H=-1;function V(){P.current.open||(d(!1),w(Oe,!1))}return H=Qe.request(()=>{N.signal.aborted||E(V,N.signal)}),()=>{Qe.cancel(H),N.abort()}},[P,a,i,k,E,w,d]),he(()=>{const x=j.current;!x||!n||!A||x.setAttribute(\"hidden\",\"until-found\")},[A,n]),c.useEffect(function(){const N=j.current;if(!N)return;function H(V){y.current=!0,b(!0),h(!0,Z(ys,V))}return pe(N,\"beforematch\",H)},[h,b]);const S=r||n||a||i;return{height:z.height,props:{...L?{[Nt.startingStyle]:\"\"}:void 0,hidden:A,id:o},ref:l,shouldPreventOpenAnimation:B,shouldRender:S,transitionStatus:k,width:z.width}}function ke(e){return{height:e.scrollHeight,width:e.scrollWidth}}function Xo(e,s=!1){const n=un(e).getComputedStyle(e),o=(n.animationName.split(\",\").map(a=>a.trim()).some(a=>a!==\"\"&&a!==\"none\")||s)&&en(n.animationDuration),r=en(n.transitionDuration);return o&&r||r?\"css-transition\":o?\"css-animation\":\"none\"}function en(e){return e.split(\",\").map(s=>s.trim()).some(s=>s!==\"\"&&Number.parseFloat(s)>0)}function Ae(e,s,n){const o=e.style.getPropertyValue(s),r=e.style.getPropertyPriority(s);return e.style.setProperty(s,n),()=>{if(o===\"\"){e.style.removeProperty(s);return}e.style.setProperty(s,o,r)}}function Go(e){const s={\"justify-content\":e.style.justifyContent,\"align-items\":e.style.alignItems,\"align-content\":e.style.alignContent,\"justify-items\":e.style.justifyItems};Object.keys(s).forEach(r=>{e.style.setProperty(r,\"initial\",\"important\")});function n(){Object.entries(s).forEach(([r,a])=>{if(a===\"\"){e.style.removeProperty(r);return}e.style.setProperty(r,a)})}const o=Qe.request(n);return()=>{Qe.cancel(o),n()}}let tn=(function(e){return e.collapsiblePanelHeight=\"--collapsible-panel-height\",e.collapsiblePanelWidth=\"--collapsible-panel-width\",e})({});const Qo=c.forwardRef(function(s,n){const{className:o,hiddenUntilFound:r,keepMounted:a,render:h,id:i,style:d,...b}=s,{mounted:u,onOpenChange:j,open:p,panelId:C,setMounted:v,setPanelIdState:I,setOpen:y,state:R,transitionStatus:f}=En(),m=r??!1,M=a??!1;he(()=>{if(i)return I(i),()=>{I(void 0)}},[i,I]);const{height:D,props:l,ref:P,shouldPreventOpenAnimation:E,shouldRender:A,transitionStatus:k,width:B}=Wo({externalRef:n,hiddenUntilFound:m,id:C,keepMounted:M,mounted:u,onOpenChange:j,open:p,setMounted:v,setOpen:y,transitionStatus:f}),z={...R,transitionStatus:k},L=js(d,z),w=Pe(\"div\",{...s,style:void 0},{state:z,ref:P,props:[l,{style:{[tn.collapsiblePanelHeight]:D===void 0?\"auto\":`${D}px`,[tn.collapsiblePanelWidth]:B===void 0?\"auto\":`${B}px`}},b,L?{style:L}:void 0,E?{style:{animationName:\"none\"}}:void 0],stateAttributesMapping:Tn});return A?w:null}),Sn=c.createContext(void 0);function In(e){const s=c.useContext(Sn);if(s===void 0&&!e)throw new Error(Se(33));return s}const Mn=c.createContext(void 0);function Ie(e){const s=c.useContext(Mn);if(s===void 0&&!e)throw new Error(Se(36));return s}const Zo=c.createContext(void 0);function rt(e=!0){const s=c.useContext(Zo);if(s===void 0&&!e)throw new Error(Se(25));return s}const Nn=c.createContext(void 0);function Jo(){const e=c.useContext(Nn);if(e===void 0)throw new Error(Se(30));return e}function er(e){const{closeOnClick:s,highlighted:n,id:o,nodeId:r,store:a,typingRef:h,itemRef:i,itemMetadata:d}=e,{events:b}=a.useState(\"floatingTreeRoot\"),u=rt(!0),j=u!==void 0;return c.useMemo(()=>({id:o,role:\"menuitem\",tabIndex:n?0:-1,onKeyDown(p){p.key===\" \"&&h?.current&&p.preventDefault()},onMouseMove(p){r&&b.emit(\"itemhover\",{nodeId:r,target:p.currentTarget})},onClick(p){s&&b.emit(\"close\",{domEvent:p,reason:Et})},onMouseUp(p){if(u){const C=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,j&&C&&Math.abs(p.clientX-C.x)<=1&&Math.abs(p.clientY-C.y)<=1||j&&!hn&&p.button===2)return}i.current&&a.context.allowMouseUpTriggerRef.current&&(!j||p.button===2)&&(!d||d.type===\"regular-item\")&&i.current.click()}}),[s,n,o,b,r,a,h,i,u,j,d])}const tr={type:\"regular-item\"};function nr(e){const{closeOnClick:s,disabled:n=!1,highlighted:o,id:r,store:a,typingRef:h=a.context.typingRef,nativeButton:i,itemMetadata:d,nodeId:b}=e,u=c.useRef(null),{getButtonProps:j,buttonRef:p}=Pt({disabled:n,focusableWhenDisabled:!0,native:i,composite:!0}),C=er({closeOnClick:s,highlighted:o,id:r,nodeId:b,store:a,typingRef:h,itemRef:u,itemMetadata:d}),v=c.useCallback(y=>ze(C,{onMouseEnter(){d.type===\"submenu-trigger\"&&d.setActive()}},y,j),[C,j,d]),I=jt(u,p);return c.useMemo(()=>({getItemProps:v,itemRef:I}),[v,I])}let nn=(function(e){return e.checked=\"data-checked\",e.unchecked=\"data-unchecked\",e.disabled=\"data-disabled\",e.highlighted=\"data-highlighted\",e})({});const kn={checked(e){return e?{[nn.checked]:\"\"}:{[nn.unchecked]:\"\"}},...ot},sr=c.forwardRef(function(s,n){const{render:o,className:r,id:a,label:h,nativeButton:i=!1,disabled:d=!1,closeOnClick:b=!1,checked:u,defaultChecked:j,onCheckedChange:p,style:C,...v}=s,I=ln({label:h}),y=In(!0),R=Rt(a),{store:f}=Ie(),m=f.useState(\"isActive\",I.index),M=f.useState(\"itemProps\"),[D,l]=mn({controlled:u,default:j??!1,name:\"MenuCheckboxItem\",state:\"checked\"}),{getItemProps:P,itemRef:E}=nr({closeOnClick:b,disabled:d,highlighted:m,id:R,store:f,nativeButton:i,nodeId:y?.context.nodeId,itemMetadata:tr}),A=c.useMemo(()=>({disabled:d,highlighted:m,checked:D}),[d,m,D]);function k(z){const L=Z(Et,z.nativeEvent,void 0,{preventUnmountOnClose(){}});p?.(!D,L),!L.isCanceled&&l(w=>!w)}const B=Pe(\"div\",s,{state:A,stateAttributesMapping:kn,props:[M,{role:\"menuitemcheckbox\",\"aria-checked\":D,onClick:k},v,P],ref:[E,n,I.ref]});return t.jsx(Nn.Provider,{value:A,children:B})}),or=c.forwardRef(function(s,n){const{render:o,className:r,style:a,keepMounted:h=!1,...i}=s,d=Jo(),b=c.useRef(null),{transitionStatus:u,setMounted:j}=xn(d.checked);It({open:d.checked,ref:b,onComplete(){d.checked||j(!1)}});const p={checked:d.checked,disabled:d.disabled,highlighted:d.highlighted,transitionStatus:u};return Pe(\"span\",s,{state:p,ref:[n,b],stateAttributesMapping:kn,props:{\"aria-hidden\":!0,...i},enabled:h||d.checked})}),rr={...Ds,...ot},ar=c.forwardRef(function(s,n){const{render:o,className:r,style:a,finalFocus:h,...i}=s,{store:d}=Ie(),{side:b,align:u}=In(),j=ss()!=null,p=d.useState(\"open\"),C=d.useState(\"transitionStatus\"),v=d.useState(\"popupProps\"),I=d.useState(\"mounted\"),y=d.useState(\"instantType\"),R=d.useState(\"activeTriggerElement\"),f=d.useState(\"parent\"),m=d.useState(\"lastOpenChangeReason\"),M=d.useState(\"rootId\"),D=d.useState(\"floatingRootContext\"),l=d.useState(\"floatingTreeRoot\"),P=d.useState(\"closeDelay\"),E=d.useState(\"activeTriggerElement\"),A=d.useState(\"hoverEnabled\"),k=d.useState(\"disabled\"),B=f.type===\"context-menu\";It({open:p,ref:d.context.popupRef,onComplete(){p&&d.context.onOpenChangeComplete?.(!0)}}),c.useEffect(()=>{function T($){d.setOpen(!1,Z($.reason,$.domEvent))}return l.events.on(\"close\",T),()=>{l.events.off(\"close\",T)}},[l.events,d]),Oo(D,{enabled:A&&!k&&!B&&f.type!==\"menubar\",closeDelay:P});const z=c.useCallback(T=>{d.set(\"popupElement\",T)},[d]),L={transitionStatus:C,side:b,align:u,open:p,nested:f.type===\"menu\",instant:y},w=Pe(\"div\",s,{state:L,ref:[n,d.context.popupRef,z],stateAttributesMapping:rr,props:[v,{onKeyDown(T){j&&Fs.has(T.key)&&T.stopPropagation()}},os(C),i,{\"data-rootownerid\":M}]});let g=f.type===void 0||B;return(R||f.type===\"menubar\"&&m!==Cs)&&(g=!0),t.jsx(As,{context:D,modal:B,disabled:!I,returnFocus:h===void 0?g:h,initialFocus:f.type!==\"menu\",restoreFocus:!0,externalTree:f.type!==\"menubar\"?l:void 0,previousFocusableElement:E,nextFocusableElement:f.type===void 0?d.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:f.type===void 0?d.context.beforeContentFocusGuardRef:void 0,children:w})}),wn=c.createContext(void 0);function ir(){const e=c.useContext(wn);if(e===void 0)throw new Error(Se(32));return e}const lr=c.forwardRef(function(s,n){const{keepMounted:o=!1,...r}=s,{store:a}=Ie();return a.useState(\"mounted\")||o?t.jsx(wn.Provider,{value:o,children:t.jsx(Ls,{ref:n,...r})}):null}),cr=c.forwardRef(function(s,n){const{anchor:o,positionMethod:r=\"absolute\",className:a,render:h,side:i,align:d,sideOffset:b=0,alignOffset:u=0,collisionBoundary:j=\"clipping-ancestors\",collisionPadding:p=5,arrowPadding:C=5,sticky:v=!1,disableAnchorTracking:I=!1,collisionAvoidance:y=zs,style:R,...f}=s,{store:m}=Ie(),M=ir(),D=rt(!0),l=m.useState(\"parent\"),P=m.useState(\"floatingRootContext\"),E=m.useState(\"floatingTreeRoot\"),A=m.useState(\"mounted\"),k=m.useState(\"open\"),B=m.useState(\"modal\"),z=m.useState(\"openMethod\"),L=m.useState(\"activeTriggerElement\"),w=m.useState(\"transitionStatus\"),g=m.useState(\"positionerElement\"),T=m.useState(\"instantType\"),$=m.useState(\"hasViewport\"),S=m.useState(\"lastOpenChangeReason\"),x=m.useState(\"floatingNodeId\"),N=m.useState(\"floatingParentNodeId\"),H=P.useState(\"domReferenceElement\"),V=c.useRef(null),K=vn(g,!1,!1);let q=o,_=b,F=u,Q=d,ne=y;l.type===\"context-menu\"&&(q=o??l.context?.anchor,Q=Q??\"start\",!i&&Q!==\"center\"&&(F=s.alignOffset??2,_=s.sideOffset??-5));let W=i,ee=Q;l.type===\"menu\"?(W=W??\"inline-end\",ee=ee??\"start\",ne=s.collisionAvoidance??Hs):l.type===\"menubar\"&&(W=W??\"bottom\",ee=ee??\"start\");const te=l.type===\"context-menu\",ie=rs({anchor:q,floatingRootContext:P,positionMethod:D?\"fixed\":r,mounted:A,side:W,sideOffset:_,align:ee,alignOffset:F,arrowPadding:te?0:C,collisionBoundary:j,collisionPadding:p,sticky:v,nodeId:x,keepMounted:M,disableAnchorTracking:I,collisionAvoidance:ne,shiftCrossAxis:te&&!(\"side\"in ne&&ne.side===\"flip\"),externalTree:E,adaptiveOrigin:$?as:void 0});c.useEffect(()=>{function G(X){X.open&&(X.parentNodeId===x&&m.set(\"hoverEnabled\",!1),X.nodeId!==x&&X.parentNodeId===m.select(\"floatingParentNodeId\")&&m.setOpen(!1,Z(Fe)))}return E.events.on(\"menuopenchange\",G),()=>{E.events.off(\"menuopenchange\",G)}},[m,E.events,x]),c.useEffect(()=>{if(m.select(\"floatingParentNodeId\")==null)return;function G(X){if(X.open||X.nodeId!==m.select(\"floatingParentNodeId\"))return;const ye=X.reason??Fe;m.setOpen(!1,Z(ye))}return E.events.on(\"menuopenchange\",G),()=>{E.events.off(\"menuopenchange\",G)}},[E.events,m]);const le=Te();c.useEffect(()=>{k||le.clear()},[k,le]),c.useEffect(()=>{function G(X){if(!(!k||X.nodeId!==m.select(\"floatingParentNodeId\")))if(X.target&&L&&L!==X.target){const ye=m.select(\"closeDelay\");ye>0?le.isStarted()||le.start(ye,()=>{m.setOpen(!1,Z(Fe))}):m.setOpen(!1,Z(Fe))}else le.clear()}return E.events.on(\"itemhover\",G),()=>{E.events.off(\"itemhover\",G)}},[E.events,k,L,m,le]),c.useEffect(()=>{const G={open:k,nodeId:x,parentNodeId:N,reason:m.select(\"lastOpenChangeReason\")};E.events.emit(\"menuopenchange\",G)},[E.events,k,m,x,N]),he(()=>{const G=H,X=V.current;if(G&&(V.current=G),X&&G&&G!==X){m.set(\"instantType\",void 0);const ye=new AbortController;return K(()=>{m.set(\"instantType\",\"trigger-change\")},ye.signal),()=>{ye.abort()}}},[H,K,m]);const be={open:k,side:ie.side,align:ie.align,anchorHidden:ie.anchorHidden,nested:l.type===\"menu\",instant:T},je=l.type===\"menubar\"&&l.context.modal;is(k&&(je||B&&S!==ue),z===\"touch\",g,L);const Me=ls(s,be,{styles:ie.positionerStyles,transitionStatus:w,props:f,refs:[n,m.useStateSetter(\"positionerElement\")],hidden:!A,inert:!k}),Ne=A&&l.type!==\"menu\"&&(l.type!==\"menubar\"&&B&&S!==ue||l.type===\"menubar\"&&l.context.modal);let J=null;return l.type===\"menubar\"?J=l.context.contentElement:l.type===void 0&&(J=L),t.jsxs(Sn.Provider,{value:ie,children:[Ne&&t.jsx($s,{ref:l.type===\"context-menu\"||l.type===\"nested-context-menu\"?l.context.internalBackdropRef:null,inert:Bs(!k),cutout:J}),t.jsx(qs,{id:x,children:t.jsx(cs,{elementsRef:m.context.itemDomElements,labelsRef:m.context.itemLabels,children:Me})})]})}),dr=c.createContext(null);function On(e){return c.useContext(dr)}const ur={...uo,disabled:se(e=>e.parent.type===\"menubar\"&&e.parent.context.disabled||e.disabled),modal:se(e=>(e.parent.type===void 0||e.parent.type===\"context-menu\")&&(e.modal??!0)),openMethod:se(e=>e.openMethod),allowMouseEnter:se(e=>e.allowMouseEnter),stickIfOpen:se(e=>e.stickIfOpen),parent:se(e=>e.parent),rootId:se(e=>e.parent.type===\"menu\"?e.parent.store.select(\"rootId\"):e.parent.type!==void 0?e.parent.context.rootId:e.rootId),activeIndex:se(e=>e.activeIndex),isActive:se((e,s)=>e.activeIndex===s),hoverEnabled:se(e=>e.hoverEnabled),instantType:se(e=>e.instantType),lastOpenChangeReason:se(e=>e.openChangeReason),floatingTreeRoot:se(e=>e.parent.type===\"menu\"?e.parent.store.select(\"floatingTreeRoot\"):e.floatingTreeRoot),floatingNodeId:se(e=>e.floatingNodeId),floatingParentNodeId:se(e=>e.floatingParentNodeId),itemProps:se(e=>e.itemProps),closeDelay:se(e=>e.closeDelay),hasViewport:se(e=>e.hasViewport),keyboardEventRelay:se(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===\"menu\")return e.parent.store.select(\"keyboardEventRelay\")})};class kt extends Us{constructor(s){super({...fr(),...s},{positionerRef:c.createRef(),popupRef:c.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:c.createRef(),beforeContentFocusGuardRef:c.createRef(),onOpenChangeComplete:void 0,triggerElements:new _s},ur),this.unsubscribeParentListener=this.observe(\"parent\",n=>{if(this.unsubscribeParentListener?.(),n.type===\"menu\"){let o=n.store.select(\"rootId\"),r=n.store.select(\"floatingTreeRoot\"),a=n.store.select(\"keyboardEventRelay\");this.unsubscribeParentListener=n.store.subscribe(()=>{const h=n.store.select(\"rootId\"),i=n.store.select(\"floatingTreeRoot\"),d=n.store.select(\"keyboardEventRelay\");o===h&&r===i&&a===d||(o=h,r=i,a=d,this.notifyAll())}),this.context.allowMouseUpTriggerRef=n.store.context.allowMouseUpTriggerRef;return}n.type!==void 0&&(this.context.allowMouseUpTriggerRef=n.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(s,n){this.state.floatingRootContext.context.events.emit(\"setOpen\",{open:s,eventDetails:n})}static useStore(s,n){const o=gn(()=>new kt(n)).current;return s??o}unsubscribeParentListener=null}function fr(){return{...fo(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new bn,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:$e,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}const pr=c.createContext(void 0);function gr(){return c.useContext(pr)}const mr=Vs(function(s){const{children:n,open:o,onOpenChange:r,onOpenChangeComplete:a,defaultOpen:h=!1,disabled:i=!1,modal:d,loopFocus:b=!0,orientation:u=\"vertical\",actionsRef:j,closeParentOnEsc:p=!1,handle:C,triggerId:v,defaultTriggerId:I=null,highlightItemOnHover:y=!0}=s,R=rt(!0),f=Ie(!0),m=On(!0),M=gr(),D=c.useMemo(()=>M&&f?{type:\"menu\",store:f.store}:m?{type:\"menubar\",context:m}:R&&!f?{type:\"context-menu\",context:R}:{type:void 0},[R,f,m,M]),l=kt.useStore(C?.store,{open:h,openProp:o,activeTriggerId:I,triggerIdProp:v,parent:D});Ys(()=>{o===void 0&&l.state.open===!1&&h===!0&&l.update({open:!0,activeTriggerId:I})}),l.useControlledProp(\"openProp\",o),l.useControlledProp(\"triggerIdProp\",v),l.useContextCallback(\"onOpenChangeComplete\",a);const P=Kt(),E=Kt(),A=l.useState(\"floatingTreeRoot\"),k=yn(A),B=St(),z=l.useState(\"open\"),L=l.useState(\"activeTriggerElement\"),w=l.useState(\"positionerElement\"),g=l.useState(\"hoverEnabled\"),T=l.useState(\"disabled\"),$=l.useState(\"lastOpenChangeReason\"),S=l.useState(\"parent\"),x=l.useState(\"activeIndex\"),N=l.useState(\"payload\"),H=l.useState(\"floatingParentNodeId\"),V=c.useRef(null),K=c.useRef(S.type!==\"context-menu\"),q=Te(),_=c.useRef(!0),F=Te(),Q=H!=null,{openMethod:ne,triggerProps:W}=lo(z);l.useSyncedValues({disabled:i,modal:S.type===void 0?d:void 0,openMethod:ne,rootId:P}),Ks(l);const{forceUnmount:ee}=Ws(z,l,()=>{l.update({allowMouseEnter:!1,stickIfOpen:!0})});he(()=>{R&&!f?l.update({parent:{type:\"context-menu\",context:R},floatingNodeId:k,floatingParentNodeId:B}):f&&l.update({floatingNodeId:k,floatingParentNodeId:B})},[R,f,k,B,l]),c.useEffect(()=>{if(z||(V.current=null),S.type===\"context-menu\"){if(!z){q.clear(),K.current=!1;return}q.start(500,()=>{K.current=!0})}},[q,z,S.type]),he(()=>{!z&&!g&&l.set(\"hoverEnabled\",!0)},[z,g,l]);const te=ae((U,oe)=>{const ce=oe.reason;if(z===U&&oe.trigger===L&&$===ce||(oe.preventUnmountOnClose=()=>{l.set(\"preventUnmountingOnClose\",!0)},!U&&oe.trigger==null&&(oe.trigger=L??void 0),r?.(U,oe),oe.isCanceled))return;l.state.floatingRootContext.dispatchOpenChange(U,oe);const Be=oe.event;if(U===!1&&Be?.type===\"click\"&&Be.pointerType===\"touch\"&&!_.current)return;if(!U&&x!==null){const Kn=l.context.itemDomElements.current[x];queueMicrotask(()=>{Kn?.setAttribute(\"tabindex\",\"-1\")})}U&&ce===Le?(_.current=!1,F.start(300,()=>{_.current=!0})):(_.current=!0,F.clear());const Vt=(ce===Ct||ce===Et)&&Be.detail===0&&Be?.isTrusted,Yn=!U&&(ce===pn||ce==null),at={open:U,openChangeReason:ce};V.current=oe.event??null;const Yt=oe.trigger?.id??null;(Yt||U)&&(at.activeTriggerId=Yt,at.activeTriggerElement=oe.trigger??null),l.update(at),S.type===\"menubar\"&&(ce===Le||ce===pt||ce===ue||ce===Rs||ce===Fe)?l.set(\"instantType\",\"group\"):Vt||Yn?l.set(\"instantType\",Vt?\"click\":\"dismiss\"):l.set(\"instantType\",void 0)}),ie=Xs({popupStore:l,floatingId:E,nested:B!=null,onOpenChange:te}),le=ie.context.events;c.useEffect(()=>{const U=({open:oe,eventDetails:ce})=>te(oe,ce);return le.on(\"setOpen\",U),()=>{le?.off(\"setOpen\",U)}},[le,te]);const be=c.useCallback(()=>{l.setOpen(!1,Z(Ps))},[l]);c.useImperativeHandle(j,()=>({unmount:ee,close:be}),[ee,be]);let je;S.type===\"context-menu\"&&(je=S.context),c.useImperativeHandle(je?.positionerRef,()=>w,[w]),c.useImperativeHandle(je?.actionsRef,()=>({setOpen:te}),[te]);const me=Gs(ie,{enabled:!T,bubbles:{escapeKey:p&&S.type===\"menu\"},outsidePress(){return S.type!==\"context-menu\"||V.current?.type===\"contextmenu\"?!0:K.current},externalTree:Q?A:void 0}),Me=ds(),Ne=c.useCallback(U=>{l.select(\"activeIndex\")!==U&&l.set(\"activeIndex\",U)},[l]),J=us(ie,{enabled:!T,listRef:l.context.itemDomElements,activeIndex:x,nested:S.type!==void 0,loopFocus:b,orientation:u,parentOrientation:S.type===\"menubar\"?S.context.orientation:void 0,rtl:Me===\"rtl\",disabledIndices:ft,onNavigate:Ne,openOnArrowKeyDown:S.type!==\"context-menu\",externalTree:Q?A:void 0,focusItemOnHover:y}),G=c.useCallback(U=>{l.context.typingRef.current=U},[l]),X=fs(ie,{listRef:l.context.itemLabels,elementsRef:l.context.itemDomElements,activeIndex:x,resetMs:Qs,onMatch:U=>{z&&U!==x&&l.set(\"activeIndex\",U)},onTyping:G}),ye=c.useMemo(()=>{const U=ze(X.reference,J.reference,me.reference,{onMouseMove(){l.set(\"allowMouseEnter\",!0)}},W);return U[\"aria-haspopup\"]=\"menu\",U[\"aria-expanded\"]=z,U},[l,X.reference,J.reference,me.reference,W,z]),qn=c.useMemo(()=>{const U=ze(J.trigger,me.trigger,W);return U[\"aria-haspopup\"]=\"menu\",U[\"aria-expanded\"]=!1,U},[J.trigger,me.trigger,W]),Un=c.useMemo(()=>ze(Zs,{id:E,role:\"menu\",\"aria-labelledby\":L?.id,onMouseMove(){l.set(\"allowMouseEnter\",!0),S.type===\"menu\"&&l.set(\"hoverEnabled\",!1)},onClick(){l.select(\"hoverEnabled\")&&l.set(\"hoverEnabled\",!1)},onKeyDown(U){const oe=l.select(\"keyboardEventRelay\");oe&&!U.isPropagationStopped()&&oe(U)}},X.floating,J.floating,me.floating),[L,E,S.type,l,X.floating,J.floating,me.floating]),_n=J.item??$e;Js(l,{floatingRootContext:ie,activeTriggerProps:ye,inactiveTriggerProps:qn,popupProps:Un,itemProps:_n});const Vn=c.useMemo(()=>({store:l,parent:D}),[l,D]),_t=t.jsx(Mn.Provider,{value:Vn,children:typeof n==\"function\"?n({payload:N}):n});return S.type===void 0||S.type===\"context-menu\"?t.jsx(eo,{externalTree:A,children:_t}):_t});function An(e){if(fn(e)&&e.hasAttribute(\"data-rootownerid\"))return e.getAttribute(\"data-rootownerid\")??void 0;if(!Es(e))return An(Ts(e))}function hr(e,s){const n=c.useRef(null);function o(a){ct.flushSync(()=>{e.setOpen(!1,Z(pt,a.nativeEvent,a.currentTarget))}),oo(n.current)?.focus()}function r(a){const h=e.select(\"positionerElement\");if(h&&to(a,h))e.context.beforeContentFocusGuardRef.current?.focus();else{ct.flushSync(()=>{e.setOpen(!1,Z(pt,a.nativeEvent,a.currentTarget))});let i=no(e.context.triggerFocusTargetRef.current||s.current);for(;i!==null&&re(h,i);){const d=i;if(i=so(i),i===d)break}i?.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:o,handleFocusTargetFocus:r}}function xr(e){const{enabled:s=!0,mouseDownAction:n,open:o}=e,r=c.useRef(!1);return c.useMemo(()=>s?{onMouseDown:a=>{(n===\"open\"&&!o||n===\"close\"&&o)&&(r.current=!0,Re(a.currentTarget).addEventListener(\"click\",()=>{r.current=!1},{once:!0}))},onClick:a=>{r.current&&(r.current=!1,a.preventBaseUIHandler())}}:$e,[s,n,o])}const Ve=2,vr=ro(function(s,n){const{render:o,className:r,style:a,disabled:h=!1,nativeButton:i=!0,id:d,openOnHover:b,delay:u=100,closeDelay:j=0,handle:p,payload:C,...v}=s,I=Ie(!0),y=p?.store??I?.store;if(!y)throw new Error(Se(85));const R=Rt(d),f=y.useState(\"isTriggerActive\",R),m=y.useState(\"floatingRootContext\"),M=y.useState(\"isOpenedByTrigger\",R),D=y.useState(\"triggerPopupId\",R),l=c.useRef(null),P=yr(),E=dn(!0),A=Tt(),k=c.useMemo(()=>A??new bn,[A]),B=yn(k),z=St(),{registerTrigger:L,isMountedByThisTrigger:w}=ao(R,l,y,{payload:C,closeDelay:j,parent:P,floatingTreeRoot:k,floatingNodeId:B,floatingParentNodeId:z,keyboardEventRelay:E?.relayKeyboardEvent}),g=P.type===\"menubar\",T=y.useState(\"disabled\"),$=h||T||g&&P.context.disabled,{getButtonProps:S,buttonRef:x}=Pt({disabled:$,native:i});c.useEffect(()=>{!M&&P.type===void 0&&(y.context.allowMouseUpTriggerRef.current=!1)},[y,M,P.type]);const N=c.useRef(null),H=Te(),V=ae(J=>{if(!N.current)return;H.clear(),y.context.allowMouseUpTriggerRef.current=!1;const G=J.target;if(re(N.current,G)||re(y.select(\"positionerElement\"),G)||G===N.current||G!=null&&An(G)===y.select(\"rootId\"))return;const X=ps(N.current);J.clientX>=X.left-Ve&&J.clientX<=X.right+Ve&&J.clientY>=X.top-Ve&&J.clientY<=X.bottom+Ve||k.events.emit(\"close\",{domEvent:J,reason:Ss})});c.useEffect(()=>{M&&y.select(\"lastOpenChangeReason\")===ue&&Re(N.current).addEventListener(\"mouseup\",V,{once:!0})},[M,V,y]);const K=g&&P.context.hasSubmenuOpen,_=Do(m,{enabled:(b??K)&&!$&&P.type!==\"context-menu\"&&(!g||K&&!w),handleClose:zo({blockPointerEvents:!g}),mouseOnly:!0,move:!1,restMs:P.type===void 0?u:void 0,delay:{close:j},triggerElementRef:l,externalTree:k,isActiveTrigger:f,isClosing:()=>y.select(\"transitionStatus\")===\"ending\"}),F=br(M,y.select(\"lastOpenChangeReason\")),Q=co(m,{enabled:!$&&P.type!==\"context-menu\",event:M&&g?\"click\":\"mousedown\",toggle:!0,ignoreMouse:!1,stickIfOpen:P.type===void 0?F:!1}),ne=wo(m,{enabled:!$&&K}),W=xr({open:M,enabled:g,mouseDownAction:\"open\"}),ee=c.useMemo(()=>ze(ne.reference,Q.reference),[ne.reference,Q.reference]),te=y.useState(\"triggerProps\",w),{preFocusGuardRef:ie,handlePreFocusGuardFocus:le,handleFocusTargetFocus:be}=hr(y,l),je={disabled:$,open:M},me=[N,n,x,L,l],Me=[ee,_??$e,te,{\"aria-haspopup\":\"menu\",\"aria-controls\":D,id:R,onMouseDown:J=>{if(y.select(\"open\"))return;H.start(200,()=>{y.context.allowMouseUpTriggerRef.current=!0}),Re(J.currentTarget).addEventListener(\"mouseup\",V,{once:!0})}},g?{role:\"menuitem\"}:{},W,v,S],Ne=Pe(\"button\",s,{enabled:!g,stateAttributesMapping:Gt,state:je,ref:me,props:Me});return g?t.jsx(Mo,{tag:\"button\",render:o,className:r,style:a,state:je,refs:me,props:Me,stateAttributesMapping:Gt}):M?t.jsxs(c.Fragment,{children:[t.jsx(Qt,{ref:ie,onFocus:le},`${R}-pre-focus-guard`),t.jsx(c.Fragment,{children:Ne},R),t.jsx(Qt,{ref:y.context.triggerFocusTargetRef,onFocus:be},`${R}-post-focus-guard`)]}):t.jsx(c.Fragment,{children:Ne},R)});function br(e,s){const n=Te(),[o,r]=c.useState(!1);return he(()=>{e&&s===\"trigger-hover\"?(r(!0),n.start(io,()=>{r(!1)})):e||(n.clear(),r(!1))},[e,s,n]),o}function yr(){const e=rt(!0),s=Ie(!0),n=On();return c.useMemo(()=>n?{type:\"menubar\",context:n}:e&&!s?{type:\"context-menu\",context:e}:{type:void 0},[e,s,n])}const Dn=[\"awaiting-source\",\"processing\",\"refunding\",\"completed\",\"refunded\",\"action-required\",\"expired\"],jr=[\"processing\",\"refunding\",\"completed\",\"refunded\",\"action-required\",\"expired\"],Fn=[\"detected\",\"bridging\",\"settling\",\"refunding\",\"completed\",\"refunded\",\"action-required\"],Ln=[\"active\",\"action-required\",\"deactivated\"],Cr={[`eip155:${Ke.id}`]:{address:`${Ke.blockExplorers.default.url}/address`,tx:`${Ke.blockExplorers.default.url}/tx`},[`eip155:${Ye.id}`]:{address:`${Ye.blockExplorers.default.url}/address`,tx:`${Ye.blockExplorers.default.url}/tx`},[`eip155:${We.id}`]:{address:`${We.blockExplorers.default.url}/address`,tx:`${We.blockExplorers.default.url}/tx`},\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\":{address:\"https://solscan.io/account\",tx:\"https://solscan.io/tx\"},\"tron:0x2b6653dc\":{address:\"https://tronscan.org/address\",tx:\"https://tronscan.org/transaction\"}},Rr=[{label:\"Across\",value:\"across\"},{label:\"Relay\",value:\"relay\"},{label:\"Rhino\",value:\"rhino\"},{label:\"Squid\",value:\"squid\"},{label:\"Stargate\",value:\"stargate\"},{label:\"Symbiosis\",value:\"symbiosis\"}];function ta(){const e=rn({from:dt.fullPath}),s=dt.useSearch(),n=s.resource??\"transfers\",o=nt(Wn.options(Dr(s))),r=c.useCallback(b=>{e({replace:!0,search:{...b,resource:n,selected:void 0}})},[e,n]);function a(b){e({search:u=>({...u,depositAddressId:b===\"deposits\"?u.depositAddressId:void 0,methods:b===\"transfers\"?u.methods:void 0,resource:b,selected:void 0,statuses:void 0})})}function h(b){e({search:u=>({...u,selected:b})})}function i(){e({replace:!0,search:b=>({...b,selected:void 0})})}function d(b){e({replace:!0,search:u=>({...u,inProgress:b===\"inProgress\"&&!u.inProgress?\"true\":void 0,needsAttention:b===\"needsAttention\"&&!u.needsAttention?\"true\":void 0,selected:void 0,statuses:void 0})})}return t.jsxs(hs,{title:\"Routes\",description:\"Inspect transfers, deposits, and reusable deposit addresses\",action:t.jsx(He,{render:t.jsx(bt,{to:\"/routes/support\"}),children:\"Support matrix\"}),children:[t.jsx(Pr,{error:o.error,loading:o.isPending,onSelect:d,selected:s.inProgress?\"inProgress\":s.needsAttention?\"needsAttention\":null,summary:n===\"transfers\"?o.data?.resources.transfers:n===\"deposits\"?o.data?.resources.deposits:o.data?.resources.depositAddresses}),t.jsxs(\"div\",{className:\"flex min-w-0 flex-col\",children:[t.jsx(Er,{onChange:r,resource:n,search:s,tabs:t.jsx(ms,{active:n,className:\"min-w-max border-b-0\",onChange:a,tabs:[{icon:t.jsx(jo,{className:\"size-4\"}),id:\"transfers\",label:\"Transfers\"},{icon:t.jsx(Ro,{className:\"size-4\"}),id:\"deposits\",label:\"Deposits\"},{icon:t.jsx(So,{className:\"size-4\"}),id:\"deposit-addresses\",label:\"Deposit addresses\"}]})}),s.depositAddressId&&n===\"deposits\"?t.jsxs(\"div\",{className:\"flex min-w-0 items-center justify-between gap-3 border-x border-b border-border bg-surface px-3 py-2 text-label-13\",children:[t.jsxs(\"span\",{className:\"min-w-0 truncate text-foreground-secondary\",children:[\"Deposits for \",t.jsx(\"code\",{className:\"text-foreground\",children:s.depositAddressId})]}),t.jsx(He,{\"aria-label\":\"Show all deposits\",onClick:()=>{e({replace:!0,search:b=>({...b,depositAddressId:void 0})})},size:\"small\",children:\"Clear\"})]}):null,n===\"transfers\"?t.jsx(Sr,{onSelect:h,search:s}):n===\"deposits\"?t.jsx(Ir,{onSelect:h,search:s}):t.jsx(Mr,{onSelect:h,search:s})]}),s.selected?n===\"transfers\"?t.jsx(kr,{id:s.selected,onClose:i}):n===\"deposits\"?t.jsx(wr,{id:s.selected,onClose:i}):t.jsx(Or,{id:s.selected,onClose:i,onViewDeposits:()=>{e({search:b=>({...b,depositAddressId:s.selected,resource:\"deposits\",selected:void 0,statuses:void 0})})}}):null]})}function Pr(e){return e.error?t.jsx(\"div\",{className:\"border border-negative bg-negative-subtle px-4 py-3 text-copy-14 text-negative\",role:\"alert\",children:e.error.message}):t.jsxs(\"div\",{className:\"grid divide-y divide-border border border-border sm:grid-cols-2 sm:divide-x sm:divide-y-0\",children:[t.jsx(sn,{label:\"In progress\",loading:e.loading,onClick:()=>e.onSelect(\"inProgress\"),selected:e.selected===\"inProgress\",children:e.summary?.inProgress.toLocaleString()??\"0\"}),t.jsx(sn,{label:\"Needs attention\",loading:e.loading,onClick:()=>e.onSelect(\"needsAttention\"),selected:e.selected===\"needsAttention\",tone:\"negative\",children:e.summary?.actionRequired.toLocaleString()??\"0\"})]})}function sn(e){return t.jsxs(\"button\",{\"aria-pressed\":e.selected,className:\"flex min-h-24 min-w-0 cursor-pointer flex-col justify-between gap-3 bg-surface p-4 text-left transition-colors hover:bg-surface-hover focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus aria-pressed:bg-secondary\",onClick:e.onClick,type:\"button\",children:[t.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:e.label}),t.jsx(\"span\",{className:e.tone===\"negative\"?\"truncate text-heading-24 text-negative\":\"truncate text-heading-24 text-foreground\",children:e.loading?\"—\":e.children})]})}function Er(e){const[s,n]=c.useState(e.search),o=c.useRef(void 0),r=Fr(e.resource),a=Object.values(on(e.search,e.resource)).filter(Boolean).length;c.useEffect(()=>{o.current&&clearTimeout(o.current),n(e.search)},[e.search]),c.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);function h(i){n(i),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e.onChange(on(i,e.resource)),300)}return t.jsxs(Vo,{className:\"min-w-0\",children:[t.jsxs(\"div\",{className:\"flex min-w-0 items-stretch border-b border-border\",children:[t.jsx(\"div\",{className:\"min-w-0 flex-1 overflow-x-auto overflow-y-hidden\",children:e.tabs}),t.jsxs(Ko,{className:\"group flex shrink-0 cursor-pointer items-center gap-2 px-3 text-label-13 text-foreground-secondary hover:text-foreground focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus data-[panel-open]:text-foreground\",children:[t.jsx(Eo,{className:\"size-4 text-foreground-secondary\"}),t.jsx(\"span\",{children:\"Filters\"}),a?t.jsxs(we,{children:[a,\" active\"]}):null,t.jsx(cn,{className:\"size-4 text-foreground-secondary transition-transform group-data-[panel-open]:rotate-180\"})]})]}),t.jsx(Qo,{children:t.jsx(\"div\",{className:\"flex flex-col gap-3 border-b border-border p-4\",children:t.jsxs(\"div\",{className:\"grid gap-3 sm:grid-cols-2 lg:grid-cols-4\",children:[t.jsxs(\"label\",{className:\"flex min-w-0 flex-col gap-1.5 lg:col-span-2\",children:[t.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:\"Search\"}),t.jsx(it,{\"aria-label\":\"Search routes\",onChange:i=>h({...s,query:i.target.value}),placeholder:\"Resource id, address, or transaction\",value:s.query??\"\"})]}),t.jsx(De,{empty:\"All environments\",label:\"Environment\",onChange:i=>h({...s,environments:i}),items:[{label:\"Production\",value:\"production\"},{label:\"Sandbox\",value:\"sandbox\"}],value:s.environments??[]}),t.jsx(De,{empty:e.resource===\"transfers\"?\"Default statuses\":\"All statuses\",label:\"Status\",onChange:i=>h({...s,inProgress:void 0,needsAttention:void 0,statuses:i}),items:r,value:s.statuses??[]}),t.jsx(De,{empty:\"All providers\",label:\"Provider\",onChange:i=>h({...s,providers:i}),items:Rr,value:s.providers??[]}),t.jsx(De,{empty:\"All source chains\",label:\"Source chain\",onChange:i=>h({...s,sourceChains:i}),items:[{label:\"Ethereum\",value:`eip155:${Ye.id}`},{label:\"Base\",value:`eip155:${Ke.id}`},{label:\"Tempo\",value:`eip155:${We.id}`}],value:s.sourceChains??[]}),t.jsxs(\"label\",{className:\"flex min-w-0 flex-col gap-1.5\",children:[t.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:\"Organization ID\"}),t.jsx(it,{\"aria-label\":\"Organization ID\",onChange:i=>h({...s,orgId:i.target.value}),placeholder:\"org_…\",value:s.orgId??\"\"})]}),t.jsxs(\"label\",{className:\"flex min-w-0 flex-col gap-1.5\",children:[t.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:\"Project ID\"}),t.jsx(it,{\"aria-label\":\"Project ID\",onChange:i=>h({...s,projectId:i.target.value}),placeholder:\"prj_…\",value:s.projectId??\"\"})]}),t.jsx(Tr,{label:\"Work\",onChange:i=>h({...s,inProgress:i===\"inProgress\"?\"true\":void 0,needsAttention:i===\"needsAttention\"?\"true\":void 0,statuses:void 0}),items:[{label:\"All work\",value:\"\"},{label:\"In progress\",value:\"inProgress\"},{label:\"Needs attention\",value:\"needsAttention\"}],value:s.inProgress?\"inProgress\":s.needsAttention?\"needsAttention\":\"\"}),e.resource===\"transfers\"?t.jsx(De,{empty:\"All methods\",label:\"Method\",onChange:i=>h({...s,methods:i}),items:[{label:\"Wallet transaction\",value:\"transaction\"},{label:\"Deposit address\",value:\"depositAddress\"}],value:s.methods??[]}):null,t.jsx(\"div\",{className:\"flex items-end justify-end lg:col-start-4\",children:t.jsx(He,{onClick:()=>h({}),type:\"button\",children:\"Clear filters\"})})]})})})]})}function De(e){const s=e.items.filter(o=>e.value.includes(o.value)),n=s.length===0?e.empty:s.length===1?s[0].label:`${s.length} selected`;return t.jsxs(\"div\",{className:\"flex min-w-0 flex-col gap-1.5\",children:[t.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:e.label}),t.jsxs(mr,{children:[t.jsxs(vr,{\"aria-label\":e.label,className:\"flex h-10 w-full cursor-pointer items-center gap-2 border-2 border-transparent bg-secondary px-3 text-copy-14 text-foreground outline-none hover:bg-secondary-hover active:bg-secondary-active focus-visible:border-focus focus-visible:bg-secondary-hover\",children:[t.jsx(\"span\",{className:\"min-w-0 flex-1 truncate text-left\",children:n}),t.jsx(cn,{className:\"size-4 shrink-0 text-foreground-secondary\"})]}),t.jsx(lr,{children:t.jsx(cr,{align:\"start\",className:\"z-50 outline-none\",sideOffset:4,children:t.jsx(ar,{className:\"max-h-72 min-w-[var(--anchor-width)] overflow-auto border border-border bg-surface py-1 shadow-lg outline-none\",children:e.items.map(o=>t.jsxs(sr,{checked:e.value.includes(o.value),className:\"flex cursor-pointer items-center gap-2 px-3 py-2 text-label-14 text-foreground outline-none data-[highlighted]:bg-secondary-hover\",closeOnClick:!1,label:o.label,onCheckedChange:r=>e.onChange(r?[...e.value,o.value]:e.value.filter(a=>a!==o.value)),children:[t.jsx(\"span\",{className:\"grid size-4 shrink-0 place-items-center border border-border\",children:t.jsx(or,{children:t.jsx(an,{className:\"size-3\"})})}),o.label]},o.value))})})})]})]})}function Tr(e){return t.jsxs(\"label\",{className:\"flex min-w-0 flex-col gap-1.5\",children:[t.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:e.label}),t.jsx(gs,{\"aria-label\":e.label,className:\"w-full\",items:e.items,onChange:e.onChange,value:e.value})]})}function Sr(e){const s=Dn.filter(a=>e.search.statuses?.includes(a)),n=s.length>0?s:e.search.inProgress||e.search.needsAttention?void 0:jr,o=yt(Xn.options({...Bt(e.search,\"transfers\"),query:e.search.query,statuses:n})),r=o.data?.pages.flatMap(a=>a.data)??[];return t.jsx(wt,{empty:\"No route transfers match these filters.\",error:o.error,hasNextPage:o.hasNextPage,loading:o.isPending,loadingMore:o.isFetchingNextPage,onLoadMore:()=>o.fetchNextPage(),children:r.length?t.jsxs(\"table\",{className:\"w-full min-w-[720px] border-collapse text-left\",children:[t.jsx(Ot,{columns:[\"Status\",\"Route\",\"Source amount\",\"Provider\",\"Organization\",\"Updated\"]}),t.jsx(\"tbody\",{children:r.map(a=>t.jsxs(At,{id:a.id,onSelect:e.onSelect,children:[t.jsx(Dt,{status:a.status}),t.jsx(Ft,{record:a}),t.jsx(\"td\",{className:\"px-3 py-3 text-label-13 text-foreground\",children:Ce(a.sourceAmount,a.sourceToken.symbol)}),t.jsx(\"td\",{className:\"px-3 py-3 text-label-13 text-foreground-secondary\",children:a.provider.name}),t.jsx(Lt,{organization:a.organization,project:a.project}),t.jsx(\"td\",{className:\"whitespace-nowrap px-3 py-3 text-label-12 text-foreground-secondary\",children:t.jsx(\"time\",{dateTime:a.updatedAt,title:ve(a.updatedAt),children:et(a.updatedAt)})})]},a.id))})]}):void 0})}function Ir(e){const s=Fn.filter(r=>e.search.statuses?.includes(r)),n=yt(Gn.options({...Bt(e.search,\"deposits\"),depositAddressId:e.search.depositAddressId,query:e.search.query,statuses:s.length?s:void 0})),o=n.data?.pages.flatMap(r=>r.data)??[];return t.jsx(wt,{empty:\"No route deposits match these filters.\",error:n.error,hasNextPage:n.hasNextPage,loading:n.isPending,loadingMore:n.isFetchingNextPage,onLoadMore:()=>n.fetchNextPage(),children:o.length?t.jsxs(\"table\",{className:\"w-full min-w-[720px] border-collapse text-left\",children:[t.jsx(Ot,{columns:[\"Status\",\"Route\",\"Source amount\",\"Provider\",\"Organization\",\"Updated\"]}),t.jsx(\"tbody\",{children:o.map(r=>t.jsxs(At,{id:r.id,onSelect:e.onSelect,children:[t.jsx(Dt,{status:r.status}),t.jsx(Ft,{record:r}),t.jsx(\"td\",{className:\"px-3 py-3 text-label-13 text-foreground\",children:r.sourceAmount?Ce(r.sourceAmount,r.sourceToken.symbol):\"Pending\"}),t.jsx(\"td\",{className:\"px-3 py-3 text-label-13 text-foreground-secondary\",children:r.provider.name}),t.jsx(Lt,{organization:r.organization,project:r.project}),t.jsx(\"td\",{className:\"whitespace-nowrap px-3 py-3 text-label-12 text-foreground-secondary\",children:t.jsx(\"time\",{dateTime:r.updatedAt,title:ve(r.updatedAt),children:et(r.updatedAt)})})]},r.id))})]}):void 0})}function Mr(e){const s=Ln.filter(r=>e.search.statuses?.includes(r)),n=yt(Qn.options({...Bt(e.search,\"deposit-addresses\"),query:e.search.query,statuses:s.length?s:void 0})),o=n.data?.pages.flatMap(r=>r.data)??[];return t.jsx(wt,{empty:\"No route deposit addresses match these filters.\",error:n.error,hasNextPage:n.hasNextPage,loading:n.isPending,loadingMore:n.isFetchingNextPage,onLoadMore:()=>n.fetchNextPage(),children:o.length?t.jsxs(\"table\",{className:\"w-full min-w-[820px] border-collapse text-left\",children:[t.jsx(Ot,{columns:[\"Status\",\"Deposit address\",\"Route\",\"Provider\",\"Polling\",\"Organization\",\"Updated\"]}),t.jsx(\"tbody\",{children:o.map(r=>t.jsxs(At,{id:r.id,onSelect:e.onSelect,children:[t.jsx(Dt,{status:r.status}),t.jsx(\"td\",{className:\"px-3 py-3\",children:t.jsx(Nr,{value:r.address})}),t.jsx(Ft,{record:r}),t.jsx(\"td\",{className:\"px-3 py-3 text-label-13 text-foreground-secondary\",children:r.provider.name}),t.jsx(\"td\",{className:\"whitespace-nowrap px-3 py-3 text-label-12 text-foreground-secondary\",children:r.consecutivePollFailures?`${r.consecutivePollFailures} failed checks`:`Next ${et(r.nextPollAt)}`}),t.jsx(Lt,{organization:r.organization,project:r.project}),t.jsx(\"td\",{className:\"whitespace-nowrap px-3 py-3 text-label-12 text-foreground-secondary\",children:t.jsx(\"time\",{dateTime:r.updatedAt,title:ve(r.updatedAt),children:et(r.updatedAt)})})]},r.id))})]}):void 0})}function wt(e){return e.loading?t.jsx(ut,{children:\"Loading routes records…\"}):e.error?t.jsx(\"div\",{className:\"flex items-center justify-center gap-3 border-y border-border px-4 py-12 text-copy-14 text-negative\",role:\"alert\",children:e.error.message}):t.jsxs(\"div\",{className:\"flex flex-col gap-4\",children:[t.jsx(\"div\",{className:\"overflow-x-auto border-b border-border\",children:e.children??t.jsx(ut,{children:e.empty})}),e.hasNextPage?t.jsx(He,{className:\"self-center\",loading:e.loadingMore,onClick:e.onLoadMore,children:\"Load more\"}):null]})}function Ot(e){return t.jsx(\"thead\",{children:t.jsx(\"tr\",{className:\"border-b border-border\",children:e.columns.map(s=>t.jsx(\"th\",{className:\"whitespace-nowrap px-3 py-2 text-label-12 font-normal text-foreground-secondary\",scope:\"col\",children:s},s))})})}function At(e){return t.jsx(\"tr\",{\"aria-label\":`View ${e.id}`,className:\"cursor-pointer border-b border-border transition-colors last:border-b-0 hover:bg-surface-hover focus-visible:bg-surface-hover focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus\",onClick:()=>e.onSelect(e.id),onKeyDown:s=>{s.currentTarget!==s.target||![\"Enter\",\" \"].includes(s.key)||(s.preventDefault(),e.onSelect(e.id))},tabIndex:0,children:e.children})}function Nr(e){return t.jsxs(\"span\",{className:\"flex max-w-44 items-center gap-1.5 font-mono text-label-12 text-foreground-secondary\",title:e.value,children:[t.jsx(\"span\",{className:\"truncate\",children:vt(e.value)}),t.jsx(zn,{value:e.value})]})}function zn(e){const{copy:s,notifying:n}=ts();return t.jsx(\"button\",{\"aria-label\":`Copy ${e.value}`,className:\"shrink-0 cursor-pointer text-foreground-secondary hover:text-foreground\",onClick:o=>{o.stopPropagation(),s(e.value)},title:\"Copy address\",type:\"button\",children:n?t.jsx(an,{className:\"size-3 shrink-0\"}):t.jsx(ns,{className:\"size-3 shrink-0\"})})}function Dt(e){return t.jsx(\"td\",{className:\"px-3 py-3\",children:t.jsx(Hn,{status:e.status})})}function Ft(e){const{destinationChain:s,destinationToken:n,sourceChain:o,sourceToken:r}=e.record;return t.jsx(\"td\",{className:\"px-3 py-3\",children:t.jsxs(\"span\",{className:\"flex items-center gap-1.5 whitespace-nowrap\",children:[t.jsx(we,{children:o.name}),t.jsx(we,{children:r.symbol}),t.jsx(xs,{className:\"mx-0.5 size-3.5 shrink-0 text-foreground-secondary\"}),t.jsx(we,{children:s.name}),t.jsx(we,{children:n.symbol})]})})}function Lt(e){return t.jsx(\"td\",{className:\"px-3 py-3\",children:t.jsxs(\"span\",{className:\"flex min-w-32 flex-col gap-0.5\",children:[t.jsx(bt,{className:\"truncate text-label-13 text-foreground hover:underline\",onClick:s=>s.stopPropagation(),params:{orgId:e.organization.id},search:{},to:\"/organizations/$orgId\",children:e.organization.name??e.organization.id}),e.project?t.jsx(\"span\",{className:\"truncate text-label-12 text-foreground-secondary\",children:e.project.name??e.project.id}):null]})})}function Hn(e){const s=e.status===\"completed\"?\"positive\":e.status===\"active\"||e.status===\"awaiting-source\"?\"info\":e.status===\"action-required\"?\"negative\":Lr(e.status)?\"warning\":\"neutral\";return t.jsx(we,{intent:s,children:fe(e.status)})}function kr(e){const s=nt(Zn.options(e.id)),n=s.data;return t.jsx(zt,{error:s.error,loading:s.isPending,onClose:e.onClose,title:\"Route transfer\",children:n?t.jsxs(t.Fragment,{children:[t.jsx(Ht,{id:n.id,status:n.status}),n.statusReason?t.jsx($n,{reason:n.statusReason.message}):null,t.jsxs(ge,{title:\"Route\",children:[t.jsx(O,{label:\"Provider\",children:n.provider.name}),t.jsx(O,{label:\"Environment\",children:fe(n.environment)}),t.jsx(O,{label:\"Source\",children:qt(n)}),t.jsx(O,{label:\"Destination\",children:Ut(n)}),t.jsx(O,{label:\"Source amount\",children:Ce(n.sourceAmount,n.sourceToken.symbol)}),t.jsx(O,{label:\"Destination amount\",children:n.destinationAmount?Ce(n.destinationAmount,n.destinationToken.symbol):\"Pending\"}),t.jsx(O,{label:\"Method\",children:fe(n.method)}),t.jsx(O,{label:\"Mode\",children:fe(n.mode)})]}),t.jsx($t,{organization:n.organization,project:n.project}),t.jsxs(ge,{title:\"Accounts\",children:[t.jsx(O,{label:\"Sender\",children:n.sender?t.jsx(xe,{chainId:n.sourceChain.id,type:\"address\",value:n.sender}):\"Not recorded\"}),t.jsx(O,{label:\"Recipient\",children:t.jsx(xe,{chainId:n.destinationChain.id,type:\"address\",value:n.recipient})}),t.jsx(O,{label:\"Refund address\",children:n.refundAddress?t.jsx(xe,{chainId:n.sourceChain.id,type:\"address\",value:n.refundAddress}):\"Not configured\"})]}),t.jsx(ge,{title:\"Processing\",children:t.jsx(O,{label:\"Subsidies\",children:n.subsidies.length?t.jsx(\"ul\",{className:\"flex flex-col gap-1\",children:n.subsidies.map(o=>t.jsxs(\"li\",{children:[fe(o.provider),\": \",Ce(o.amount,o.token.symbol)]},`${o.provider}:${o.token.tokenKey}`))}):\"None\"})}),t.jsx(Bn,{transactions:n.transactions.map(({chainId:o,role:r,transactionRef:a})=>({chainId:o,roles:[r],transactionRef:a}))}),t.jsxs(\"section\",{className:\"flex flex-col gap-3\",children:[t.jsx(\"h3\",{className:\"text-heading-16 text-foreground\",children:\"Lifecycle\"}),t.jsx(\"ol\",{className:\"flex flex-col border-l border-border pl-4\",children:n.events.map(o=>t.jsxs(\"li\",{className:\"relative flex flex-col gap-1 pb-4 last:pb-0\",children:[t.jsx(\"span\",{className:\"absolute -left-[19px] top-1.5 size-2 bg-foreground-secondary\"}),t.jsx(\"span\",{className:\"text-label-13 text-foreground\",children:fe(o.status)}),t.jsx(\"time\",{className:\"text-label-12 text-foreground-secondary\",dateTime:o.createdAt,children:ve(o.createdAt)}),o.statusReason?t.jsx(\"span\",{className:\"text-copy-13 text-foreground-secondary\",children:o.statusReason.message}):null]},o.version))})]})]}):null})}function wr(e){const s=rn({from:dt.fullPath}),n=nt(Jn.options(e.id)),o=n.data;return t.jsx(zt,{error:n.error,loading:n.isPending,onClose:e.onClose,title:\"Route deposit\",children:o?t.jsxs(t.Fragment,{children:[t.jsx(Ht,{id:o.id,status:o.status}),o.statusReason?t.jsx($n,{reason:o.statusReason.message}):null,t.jsxs(ge,{title:\"Route\",children:[t.jsx(O,{label:\"Provider\",children:o.provider.name}),t.jsx(O,{label:\"Environment\",children:fe(o.environment)}),t.jsx(O,{label:\"Source\",children:qt(o)}),t.jsx(O,{label:\"Destination\",children:Ut(o)}),t.jsx(O,{label:\"Source amount\",children:o.sourceAmount?Ce(o.sourceAmount,o.sourceToken.symbol):\"Pending\"}),t.jsx(O,{label:\"Destination amount\",children:o.destinationAmount?Ce(o.destinationAmount,o.destinationToken.symbol):\"Pending\"})]}),t.jsx($t,{organization:o.organization,project:o.project}),t.jsxs(ge,{title:\"Accounts\",children:[t.jsx(O,{label:\"Sender\",children:o.sender?t.jsx(xe,{chainId:o.sourceChain.id,type:\"address\",value:o.sender}):\"Not recorded\"}),t.jsx(O,{label:\"Recipient\",children:t.jsx(xe,{chainId:o.destinationChain.id,type:\"address\",value:o.recipient})}),t.jsx(O,{label:\"Refund address\",children:t.jsx(xe,{chainId:o.sourceChain.id,type:\"address\",value:o.refundAddress})})]}),t.jsxs(ge,{title:\"Processing\",children:[t.jsx(O,{label:\"Detected by\",children:o.detectionTrigger?fe(o.detectionTrigger):\"Unknown\"}),t.jsx(O,{label:\"Poll observed\",children:o.pollObservedAt?ve(o.pollObservedAt):\"Not recorded\"}),t.jsx(O,{label:\"Provider delivered\",children:o.providerDeliveredAt?ve(o.providerDeliveredAt):\"Pending\"}),t.jsx(O,{label:\"Subsidies\",children:o.subsidies.length?t.jsx(\"ul\",{className:\"flex flex-col gap-1\",children:o.subsidies.map(r=>t.jsxs(\"li\",{children:[fe(r.provider),\": \",Ce(r.amount,r.token.symbol)]},`${r.provider}:${r.token.tokenKey}`))}):\"None\"}),t.jsx(O,{label:\"Webhook received\",children:o.webhookReceivedAt?ve(o.webhookReceivedAt):\"Not received\"}),t.jsx(O,{label:\"Retry attempts\",children:o.retryAttempts??\"None\"}),t.jsx(O,{label:\"Tempo gas paid\",children:o.tempoGasPaid??\"None\"})]}),t.jsx(\"button\",{className:\"w-fit text-label-13 text-foreground-secondary hover:text-foreground hover:underline\",onClick:()=>{s({search:r=>({...r,resource:\"deposit-addresses\",selected:o.depositAddress.id,statuses:void 0})})},type:\"button\",children:\"View deposit address\"}),t.jsx(Bn,{transactions:Ar(o)})]}):null})}function Or(e){const s=nt(es.options(e.id)),n=s.data;return t.jsx(zt,{error:s.error,loading:s.isPending,onClose:e.onClose,title:\"Deposit address\",children:n?t.jsxs(t.Fragment,{children:[t.jsx(Ht,{id:n.id,status:n.status}),t.jsxs(ge,{title:\"Route\",children:[t.jsx(O,{label:\"Provider\",children:n.provider.name}),t.jsx(O,{label:\"Environment\",children:fe(n.environment)}),t.jsx(O,{label:\"Source\",children:qt(n)}),t.jsx(O,{label:\"Destination\",children:Ut(n)}),t.jsx(O,{label:\"Delivery\",children:fe(n.deliveryStrategy)}),t.jsx(O,{label:\"Subsidized\",children:n.subsidize?\"Yes\":\"No\"})]}),t.jsx($t,{organization:n.organization,project:n.project}),t.jsxs(ge,{title:\"Accounts\",children:[t.jsx(O,{label:\"Deposit address\",children:t.jsxs(\"span\",{className:\"flex items-center gap-1.5\",children:[t.jsx(xe,{chainId:n.sourceChain.id,type:\"address\",value:n.address}),t.jsx(zn,{value:n.address})]})}),t.jsx(O,{label:\"Recipient\",children:t.jsx(xe,{chainId:n.destinationChain.id,type:\"address\",value:n.recipient})}),t.jsx(O,{label:\"Refund address\",children:t.jsx(xe,{chainId:n.sourceChain.id,type:\"address\",value:n.refundAddress})})]}),t.jsxs(ge,{title:\"Polling\",children:[t.jsx(O,{label:\"Last checked\",children:n.lastPolledAt?ve(n.lastPolledAt):\"Never\"}),t.jsx(O,{label:\"Next check\",children:ve(n.nextPollAt)}),t.jsx(O,{label:\"Consecutive failures\",children:n.consecutivePollFailures}),t.jsx(O,{label:\"Lease expires\",children:n.pollLeaseUntil?ve(n.pollLeaseUntil):\"No active lease\"})]}),t.jsx(He,{onClick:e.onViewDeposits,children:\"View deposits\"}),n.providerRequestIds.length?t.jsx(ge,{title:\"Provider request IDs\",children:n.providerRequestIds.map(o=>t.jsx(O,{label:\"Request\",children:o},o))}):null]}):null})}function zt(e){return t.jsx(po,{onOpenChange:s=>!s&&e.onClose(),open:!0,children:t.jsxs(go,{children:[t.jsx(mo,{className:\"fixed inset-0 z-40 bg-black/60 transition-opacity duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0\"}),t.jsxs(ho,{className:\"fixed inset-y-0 right-0 z-50 flex w-full max-w-xl flex-col border-l border-border bg-surface outline-none transition-transform duration-200 data-[ending-style]:translate-x-full data-[starting-style]:translate-x-full\",children:[t.jsxs(\"div\",{className:\"flex shrink-0 items-start justify-between gap-4 border-b border-border px-5 py-4\",children:[t.jsxs(\"div\",{className:\"min-w-0\",children:[t.jsx(xo,{className:\"text-heading-20 text-foreground\",children:e.title}),t.jsx(vo,{className:\"mt-1 text-copy-13 text-foreground-secondary\",children:\"Operational details and verified evidence\"})]}),t.jsx(bo,{\"aria-label\":\"Close details\",className:\"flex size-8 shrink-0 items-center justify-center text-foreground-secondary hover:bg-surface-hover hover:text-foreground\",children:t.jsx(vs,{className:\"size-4\"})})]}),t.jsx(\"div\",{className:\"flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto px-5 py-5\",children:e.loading?t.jsx(ut,{children:\"Loading details…\"}):e.error?t.jsx(\"div\",{className:\"border border-negative bg-negative-subtle p-4 text-copy-14 text-negative\",role:\"alert\",children:e.error.message}):e.children})]})]})})}function Ht(e){return t.jsxs(\"div\",{className:\"flex min-w-0 items-center justify-between gap-3\",children:[t.jsx(\"code\",{className:\"truncate text-label-12 text-foreground-secondary\",title:e.id,children:e.id}),t.jsx(Hn,{status:e.status})]})}function ge(e){return t.jsxs(\"section\",{className:\"flex flex-col gap-3\",children:[t.jsx(\"h3\",{className:\"text-heading-16 text-foreground\",children:e.title}),t.jsx(\"dl\",{className:\"grid gap-x-6 gap-y-4 sm:grid-cols-2\",children:e.children})]})}function O(e){return t.jsxs(\"div\",{className:\"flex min-w-0 flex-col gap-1\",children:[t.jsx(\"dt\",{className:\"text-label-12 text-foreground-secondary\",children:e.label}),t.jsx(\"dd\",{className:\"min-w-0 break-words text-label-13 text-foreground\",children:e.children})]})}function $t(e){return t.jsxs(ge,{title:\"Ownership\",children:[t.jsx(O,{label:\"Organization\",children:t.jsx(bt,{className:\"hover:underline\",params:{orgId:e.organization.id},search:{},to:\"/organizations/$orgId\",children:e.organization.name??e.organization.id})}),t.jsx(O,{label:\"Project\",children:e.project?.name??e.project?.id??\"Organization scoped\"})]})}function $n(e){return t.jsx(\"div\",{className:\"border border-negative bg-negative-subtle p-3 text-copy-13 text-negative\",children:e.reason})}function Bn(e){return t.jsxs(\"section\",{className:\"flex flex-col gap-3\",children:[t.jsx(\"h3\",{className:\"text-heading-16 text-foreground\",children:\"Transactions\"}),e.transactions.length?t.jsx(\"ul\",{className:\"divide-y divide-border border-y border-border\",children:e.transactions.map(s=>t.jsxs(\"li\",{className:\"flex items-center justify-between gap-3 py-3\",children:[t.jsx(\"span\",{className:\"text-copy-13 text-foreground-secondary\",children:s.roles.map(fe).join(\", \")}),t.jsx(xe,{chainId:s.chainId,value:s.transactionRef})]},`${s.chainId}:${s.transactionRef}`))}):t.jsx(\"p\",{className:\"text-copy-13 text-foreground-secondary\",children:\"No verified transactions.\"})]})}function xe(e){const s=e.chainId?Cr[e.chainId]:void 0;return s?t.jsxs(\"a\",{className:\"flex min-w-0 items-center gap-1.5 font-mono text-label-12 text-foreground-secondary hover:text-foreground\",href:`${s[e.type??\"tx\"]}/${e.value}`,rel:\"noreferrer\",target:\"_blank\",title:e.value,children:[t.jsx(\"span\",{className:\"truncate\",children:vt(e.value)}),t.jsx(bs,{className:\"size-3 shrink-0\"})]}):t.jsx(\"code\",{className:\"max-w-64 truncate text-label-12 text-foreground-secondary\",title:e.value,children:vt(e.value)})}function Ar(e){const s=e.destinationTransactionHashes??[],n=new Set(s.map(a=>a.toLowerCase())),o=[...e.sourceTransactionHashes.map(a=>({chainId:e.sourceChain.id,roles:[\"source\"],transactionRef:a})),...e.providerTransactionHashes.map(a=>({chainId:n.has(a.toLowerCase())?e.destinationChain.id:e.sourceChain.id,roles:[\"provider\"],transactionRef:a})),...s.map(a=>({chainId:e.destinationChain.id,roles:[\"destination\"],transactionRef:a})),...e.settlementTransactionHash?[{chainId:e.destinationChain.id,roles:[\"subsidizer\"],transactionRef:e.settlementTransactionHash}]:[]],r=new Map;for(const a of o){const h=a.chainId.startsWith(\"eip155:\")?a.transactionRef.toLowerCase():a.transactionRef,i=`${a.chainId}:${h}`,d=r.get(i);r.set(i,d?{...d,roles:d.roles.includes(\"subsidizer\")||a.roles.includes(\"subsidizer\")?[\"subsidizer\"]:[...new Set([...d.roles,...a.roles])]}:a)}return[...r.values()]}function Bt(e,s){return{environments:e.environments?.length?e.environments:void 0,inProgress:e.inProgress,methods:s===\"transfers\"&&e.methods?.length?e.methods:void 0,needsAttention:e.needsAttention,orgId:e.orgId,projectId:e.projectId,providers:e.providers?.length?e.providers:void 0,sourceChains:e.sourceChains?.length?e.sourceChains:void 0}}function Dr(e){return{environments:e.environments?.length?e.environments:void 0,methods:e.methods?.length?e.methods:void 0,orgId:e.orgId,projectId:e.projectId,providers:e.providers?.length?e.providers:void 0,sourceChains:e.sourceChains?.length?e.sourceChains:void 0}}function on(e,s){return{environments:e.environments?.length?e.environments:void 0,inProgress:e.inProgress,methods:s===\"transfers\"&&e.methods?.length?e.methods:void 0,needsAttention:e.needsAttention,orgId:e.orgId?.trim()||void 0,projectId:e.projectId?.trim()||void 0,providers:e.providers?.length?e.providers:void 0,query:e.query?.trim()||void 0,sourceChains:e.sourceChains?.length?e.sourceChains:void 0,statuses:e.statuses?.length?e.statuses:void 0}}function Fr(e){return(e===\"transfers\"?Dn:e===\"deposits\"?Fn:Ln).map(n=>({label:fe(n),value:n}))}function Lr(e){return[\"awaiting-source\",\"bridging\",\"detected\",\"processing\",\"refunding\",\"settling\"].includes(e)}function fe(e){return e.replace(/([a-z])([A-Z])/g,\"$1 $2\").replaceAll(\"-\",\" \").replace(/^./,s=>s.toUpperCase())}function qt(e){return`${e.sourceToken.symbol} on ${e.sourceChain.name}`}function Ut(e){return`${e.destinationToken.symbol} on ${e.destinationChain.name}`}function Ce(e,s){return`${e.formatted} ${s}`}function ve(e){return new Intl.DateTimeFormat(\"en\",{dateStyle:\"medium\",timeStyle:\"short\"}).format(new Date(e))}function et(e){const s=new Date(e).getTime()-Date.now(),n=Math.abs(s),[o,r]=n>=864e5?[\"day\",864e5]:n>=36e5?[\"hour\",36e5]:n>=6e4?[\"minute\",6e4]:[\"second\",1e3];return new Intl.RelativeTimeFormat(\"en\",{numeric:\"auto\"}).format(Math.round(s/r),o)}function vt(e){return e.length<=20?e:`${e.slice(0,10)}…${e.slice(-8)}`}export{ta as component};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/Rows-DIAYGio1.js": {
"content": "import{Z as Q,Q as e,ar as x,j as v,aW as W}from\"./index-fAdpxP2M.js\";import{C as Z}from\"./chevron-down-DB92Sr2_.js\";const H=[[\"path\",{d:\"m9 18 6-6-6-6\",key:\"mthhwq\"}]],J=Q(\"chevron-right\",H),N=v.createContext(void 0);function l(r){const{children:i,className:n,dividers:a,variant:t=\"pane\",...u}=r,s=a??l.defaultDividers[t];return e.jsx(N.Provider,{value:{dividers:s,variant:t},children:e.jsx(\"div\",{className:x(l.className[t],l.dividersClassName[t][s],n),...u,children:i})})}(r=>{function i(s){const{children:o,className:f,...m}=s,d=v.useContext(N)?.variant??\"pane\";return e.jsx(\"div\",{className:x(i.className[d],f),...m,children:o})}r.Group=i,(s=>{s.className={pane:\"relative [--rows-pane-content-padding-left:20px] [--rows-row-padding-left:20px] before:pointer-events-none before:absolute before:inset-y-0 before:left-[10px] before:z-10 before:w-[2px] before:bg-border [&_[data-rows-divider]]:left-[var(--rows-group-divider-left)]\",surface:\"relative [--rows-pane-content-padding-left:48px] [--rows-row-padding-left:48px] before:pointer-events-none before:absolute before:inset-y-0 before:left-[28px] before:z-10 before:w-[2px] before:bg-border [&_[data-rows-divider]]:left-[var(--rows-group-divider-left)]\"}})(i=r.Group||(r.Group={}));function n(s){const{children:o,className:f,...m}=s,d=v.useContext(N)?.variant??\"pane\";return e.jsx(\"div\",{className:x(n.className[d],f),...m,children:o})}r.Panel=n,(s=>{s.className={pane:\"overflow-hidden border-t border-border-pane bg-pane\",surface:\"overflow-hidden border-t border-border bg-pane\"}})(n=r.Panel||(r.Panel={})),r.className={pane:\"overflow-hidden rounded-body bg-pane px-[14px] [--rows-divider:var(--border-color-border-pane)] [--rows-pane-content-padding-left:0px] [&_[data-rows-divider]]:bg-[var(--rows-divider)]\",surface:\"overflow-hidden bg-surface [--rows-divider:var(--border-color-border)] [&_[data-rows-divider]]:bg-[var(--rows-divider)]\"},r.dividersClassName={pane:{full:\"[--rows-group-divider-left:0px]\",inset:\"[--rows-group-divider-left:0px]\"},surface:{full:\"[--rows-group-divider-left:0px]\",inset:\"[--rows-group-divider-left:20px]\"}},r.defaultDividers={pane:\"inset\",surface:\"full\"};function a(s){const{action:o={type:\"none\"},children:f,className:m,disabled:d,height:I,label:z,onClick:b,render:w,spacing:j=\"both\",style:V,...q}=s,F=v.useContext(N),p=F?.variant??(z===void 0?\"surface\":\"pane\"),G=F?.dividers??r.defaultDividers[p],c=o.type,g=c===\"details\"?o.content:void 0,y=c===\"expand\"?o.expanded:c===\"details\"?g!==void 0&&g!==!1:!1,C=g===!0?e.jsx(r.PanelLoader,{}):g,k=O({children:f,expanded:y,label:z,type:c,variant:p}),h=!!(b||w),A={height:I??a.height[p],...V},B=x(a.baseClassName[p],h&&a.interactiveClassName[p],h&&\"select-none\",p===\"pane\"&&(h?a.buttonSpacingClassName[j]:a.spacingClassName[j]),d&&\"pointer-events-none opacity-50\",m),P=p===\"surface\"?x(a.dividerClassName,a.surfaceDividerClassName[G]):x(a.dividerClassName,a.paneDividerClassName[G][h?j:\"static\"]),D={...q,\"aria-disabled\":d&&h?!0:void 0,\"aria-expanded\":c===\"expand\"?o.expanded:c===\"details\"?y:void 0,className:B,\"data-disabled\":d?\"\":void 0,...b?{onClick:b}:{},style:A},E=w&&v.isValidElement(w)?v.cloneElement(w,W(w.props,D),e.jsxs(e.Fragment,{children:[e.jsx(L,{className:P}),k]})):b?e.jsxs(\"button\",{...D,disabled:d,type:\"button\",children:[e.jsx(L,{className:P}),k]}):e.jsxs(\"div\",{...D,children:[e.jsx(L,{className:P}),k]});return c!==\"details\"?E:e.jsxs(e.Fragment,{children:[E,y&&C!==void 0&&C!==!1&&e.jsx(r.Panel,{children:C})]})}r.Row=a,(s=>{s.baseClassName={pane:\"group/rows-row relative flex items-center gap-[12px] label-13\",surface:\"group/rows-row relative flex w-full min-w-0 items-center gap-[14px] pl-[var(--rows-row-padding-left,20px)] pr-[var(--rows-row-padding-right,20px)] text-left text-foreground\"},s.dividerClassName=\"pointer-events-none absolute -top-px left-[var(--rows-row-divider-left)] right-[var(--rows-row-divider-right)] h-px\",s.paneDividerClassName={full:{both:\"[--rows-row-divider-left:0px] [--rows-row-divider-right:0px]\",end:\"[--rows-row-divider-left:0px] [--rows-row-divider-right:-14px]\",none:\"[--rows-row-divider-left:0px] [--rows-row-divider-right:0px]\",start:\"[--rows-row-divider-left:-14px] [--rows-row-divider-right:0px]\",static:\"[--rows-row-divider-left:-14px] [--rows-row-divider-right:-14px]\"},inset:{both:\"[--rows-row-divider-left:14px] [--rows-row-divider-right:14px]\",end:\"[--rows-row-divider-left:14px] [--rows-row-divider-right:0px]\",none:\"[--rows-row-divider-left:14px] [--rows-row-divider-right:14px]\",start:\"[--rows-row-divider-left:0px] [--rows-row-divider-right:14px]\",static:\"[--rows-row-divider-left:0px] [--rows-row-divider-right:0px]\"}},s.surfaceDividerClassName={full:\"[--rows-row-divider-left:0px] [--rows-row-divider-right:0px]\",inset:\"[--rows-row-divider-left:20px] [--rows-row-divider-right:20px]\"},s.height={pane:40,surface:56},s.interactiveClassName={pane:\"cursor-pointer hover:bg-secondary-hover active:bg-secondary-active focus-visible:outline focus-visible:outline-[2px] focus-visible:outline-offset-[-2px] focus-visible:outline-focus\",surface:\"cursor-pointer hover:bg-surface-hover active:bg-surface-active focus-visible:outline focus-visible:outline-[2px] focus-visible:outline-offset-[-2px] focus-visible:outline-focus\"},s.spacingClassName={both:\"\",end:\"ml-[-14px]\",none:\"mx-[-14px]\",start:\"mr-[-14px]\"},s.buttonSpacingClassName={both:\"mx-[-14px] w-[calc(100%+28px)] px-[14px]\",end:\"ml-[-14px] w-[calc(100%+14px)]\",none:\"mx-[-14px] w-[calc(100%+28px)]\",start:\"mr-[-14px] w-[calc(100%+14px)]\"}})(a=r.Row||(r.Row={}));function t(){return e.jsxs(\"div\",{className:\"grid gap-[8px] px-[20px] py-[12px] label-13\",children:[e.jsxs(\"div\",{className:\"relative flex items-center justify-between gap-[16px]\",children:[e.jsx(\"span\",{\"aria-hidden\":!0,className:\"invisible\",children:\"Label\"}),e.jsx(\"span\",{\"aria-hidden\":!0,className:\"invisible\",children:\"Value\"}),e.jsx(\"div\",{className:\"absolute h-[14px] w-[72px] animate-pulse rounded-body bg-skeleton\"}),e.jsx(\"div\",{className:\"absolute right-0 h-[14px] w-[96px] animate-pulse rounded-body bg-skeleton\"})]}),e.jsxs(\"div\",{className:\"relative flex items-center justify-between gap-[16px]\",children:[e.jsx(\"span\",{\"aria-hidden\":!0,className:\"invisible\",children:\"Label\"}),e.jsx(\"span\",{\"aria-hidden\":!0,className:\"invisible\",children:\"Value\"}),e.jsx(\"div\",{className:\"absolute h-[14px] w-[64px] animate-pulse rounded-body bg-skeleton\"}),e.jsx(\"div\",{className:\"absolute right-0 h-[14px] w-[72px] animate-pulse rounded-body bg-skeleton\"})]})]})}r.PanelLoader=t;function u(){return e.jsxs(e.Fragment,{children:[e.jsxs(r.Row,{children:[e.jsx(\"span\",{\"aria-hidden\":!0,className:\"size-6 shrink-0 animate-pulse rounded-button bg-skeleton\"}),e.jsxs(\"div\",{className:\"grid min-w-0 flex-1 gap-[6px]\",children:[e.jsx(\"span\",{\"aria-hidden\":!0,className:\"h-[14px] w-[128px] rounded-body bg-skeleton\"}),e.jsx(\"span\",{\"aria-hidden\":!0,className:\"h-[13px] w-[96px] rounded-body bg-skeleton\"})]}),e.jsx(\"span\",{\"aria-hidden\":!0,className:\"h-[13px] w-[36px] shrink-0 rounded-body bg-skeleton\"})]}),e.jsxs(r.Row,{children:[e.jsx(\"span\",{\"aria-hidden\":!0,className:\"size-6 shrink-0 animate-pulse rounded-button bg-skeleton\"}),e.jsxs(\"div\",{className:\"grid min-w-0 flex-1 gap-[6px]\",children:[e.jsx(\"span\",{\"aria-hidden\":!0,className:\"h-[14px] w-[112px] rounded-body bg-skeleton\"}),e.jsx(\"span\",{\"aria-hidden\":!0,className:\"h-[13px] w-[88px] rounded-body bg-skeleton\"})]}),e.jsx(\"span\",{\"aria-hidden\":!0,className:\"h-[13px] w-[28px] shrink-0 rounded-body bg-skeleton\"})]})]})}r.RowGroupLoader=u})(l||(l={}));function S(r){return e.jsx(l.Row,{...r})}(r=>{r.spacingClassName=l.Row.spacingClassName,r.buttonSpacingClassName=l.Row.buttonSpacingClassName})(S||(S={}));function K(r){const{expanded:i}=r;return e.jsx(Z,{\"aria-hidden\":!0,className:\"size-[16px] shrink-0 text-foreground-secondary opacity-70 data-[open]:rotate-180\",\"data-open\":i?\"\":void 0})}function L(r){return e.jsx(\"span\",{\"aria-hidden\":!0,className:r.className,\"data-rows-divider\":\"\"})}function M(){return e.jsx(J,{\"aria-hidden\":!0,className:\"size-[16px] shrink-0 text-foreground-secondary opacity-70\"})}function O(r){const{children:i,expanded:n,label:a,type:t,variant:u}=r;return a!==void 0?e.jsxs(e.Fragment,{children:[e.jsxs(\"div\",{className:x(\"grid min-w-0 flex-1 grid-cols-[minmax(0,max-content)_minmax(0,1fr)] items-center gap-[12px]\",u===\"pane\"&&\"pl-[var(--rows-pane-content-padding-left)]\"),children:[e.jsx(\"div\",{className:\"min-w-0 text-left text-foreground-secondary\",children:a}),e.jsx(\"div\",{className:\"flex min-w-0 items-center justify-end text-right\",children:i})]}),e.jsx(_,{expanded:n,type:t})]}):u===\"pane\"?e.jsxs(e.Fragment,{children:[e.jsx(\"div\",{className:\"min-w-0 flex-1 pl-[var(--rows-pane-content-padding-left)]\",children:i}),e.jsx(_,{expanded:n,type:t})]}):e.jsxs(e.Fragment,{children:[i,e.jsx(_,{expanded:n,type:t})]})}function _(r){const{expanded:i,type:n}=r;return n===\"details\"||n===\"expand\"?e.jsx(K,{expanded:i}):n===\"navigation\"?e.jsx(M,{}):null}export{J as C,l as R};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/search-D3TiKeEB.js": {
"content": "import{Z as c}from\"./index-fAdpxP2M.js\";const e=[[\"path\",{d:\"m21 21-4.34-4.34\",key:\"14j7rj\"}],[\"circle\",{cx:\"11\",cy:\"11\",r:\"8\",key:\"4ej97u\"}]],o=c(\"search\",e);export{o as S};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/Select-BMgHxVP4.js": {
"content": "import{j as c,Q as X,a6 as Rr,ar as br}from\"./index-fAdpxP2M.js\";import{l as Z,k as we,j as Nt,i as Pe,J as ot,K as en,e as et,L as tt,g as _e,M as sn,D as vt,C as Ht,O as vr,P as Pn,Q as Sr,R as ln,S as cn,T as $t,U as fn,V as Ln,y as Er,d as $e,A as dn,z as Dn,o as jt,v as tn,E as Fn,a as Vn,G as Cr,H as Ar,q as an,b as pn,w as Mr,p as kn,c as dt,F as Ir,W as Or,s as Kt}from\"./useButton-ByI90A_n.js\";import{ae as nt,af as je,ag as qe,ah as Tr,ai as Pr,aj as Lr,ak as Dr,al as ht,am as St,an as We,ao as Nn,ap as Hn,aq as Et,ar as Fr,as as Bn,at as nn,au as Wn,av as Ge,aw as Bt,ax as Mt,p as _n,a8 as Vr,H as kr,n as $n,ay as jn,az as Nr,s as Ke,aA as rn,aB as Hr,aC as gn,aD as qt,aE as mn,e as Xt,o as rt,f as ct,aF as Qe,aG as Br,aH as Gt,aI as Wr,aJ as _r,aK as Ut,aL as Ct,aM as At,aN as $r,aO as It,h as jr,aP as Un,aQ as Ur,aR as zn,u as Ft,aS as zr,K as re,t as Yr,aT as $,y as Yn,U as Kr,W as qr,M as Xr,aU as Gr,a3 as Jr,a7 as Qr,B as Zr,aV as eo,z as Kn,ab as to,D as no,I as ro,E as oo,aW as so,c as io,F as lo,w as co,C as ao}from\"./useScrollLock-D0Gehqgv.js\";import{a as uo,b as qn,e as Xn,u as hn,d as fo,c as po,f as go}from\"./FormContext-lWysHyLG.js\";import{u as mo}from\"./useValueChanged-mcPqATWD.js\";import{u as ho,a as xo}from\"./useOpenInteractionType-97GoxcAN.js\";const Gn=c.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function yo(){return c.useContext(Gn)}let Jn=(function(e){return e[e.None=0]=\"None\",e[e.GuessFromOrder=1]=\"GuessFromOrder\",e})({});function wo(e={}){const{label:t,metadata:n,textRef:r,indexGuessBehavior:o,index:i}=e,{register:s,unregister:l,subscribeMapChange:f,elementsRef:d,labelsRef:p,nextIndexRef:u}=yo(),g=c.useRef(-1),[a,h]=c.useState(i??(o===Jn.GuessFromOrder?()=>{if(g.current===-1){const y=u.current;u.current+=1,g.current=y}return g.current}:-1)),x=c.useRef(null),w=c.useCallback(y=>{if(x.current=y,a!==-1&&y!==null&&(d.current[a]=y,p)){const b=t!==void 0;p.current[a]=b?t:r?.current?.textContent??y.textContent}},[a,d,p,t,r]);return Z(()=>{if(i!=null)return;const y=x.current;if(y)return s(y,n),()=>{l(y)}},[i,s,l,n]),Z(()=>{if(i==null)return f(y=>{const b=x.current?y.get(x.current)?.index:null;b!=null&&h(b)})},[i,f,h]),c.useMemo(()=>({ref:w,index:a}),[a,w])}function on(e){if(e==null)return\"\";if(typeof e==\"string\")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Ro(e){const{children:t,elementsRef:n,labelsRef:r,onMapChange:o}=e,i=we(o),s=c.useRef(0),l=Nt(vo).current,f=Nt(bo).current,[d,p]=c.useState(0),u=c.useRef(d),g=we((y,b)=>{f.set(y,b??null),u.current+=1,p(u.current)}),a=we(y=>{f.delete(y),u.current+=1,p(u.current)}),h=c.useMemo(()=>{const y=new Map;return Array.from(f.keys()).filter(m=>m.isConnected).sort(So).forEach((m,R)=>{const A=f.get(m)??{};y.set(m,{...A,index:R})}),y},[f,d]);Z(()=>{if(typeof MutationObserver!=\"function\"||h.size===0)return;const y=new MutationObserver(b=>{const m=new Set,R=A=>m.has(A)?m.delete(A):m.add(A);b.forEach(A=>{A.removedNodes.forEach(R),A.addedNodes.forEach(R)}),m.size===0&&(u.current+=1,p(u.current))});return h.forEach((b,m)=>{m.parentElement&&y.observe(m.parentElement,{childList:!0})}),()=>{y.disconnect()}},[h]),Z(()=>{u.current===d&&(n.current.length!==h.size&&(n.current.length=h.size),r&&r.current.length!==h.size&&(r.current.length=h.size),s.current=h.size),i(h)},[i,h,n,r,d]),Z(()=>()=>{n.current=[]},[n]),Z(()=>()=>{r&&(r.current=[])},[r]);const x=we(y=>(l.add(y),()=>{l.delete(y)}));Z(()=>{l.forEach(y=>y(h))},[l,h]);const w=c.useMemo(()=>({register:g,unregister:a,subscribeMapChange:x,elementsRef:n,labelsRef:r,nextIndexRef:s}),[g,a,x,n,r,s]);return X.jsx(Gn.Provider,{value:w,children:t})}function bo(){return new Map}function vo(){return new Set}function So(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const Eo=c.createContext(void 0);function Qn(){return c.useContext(Eo)?.direction??\"ltr\"}function Co(e){const[t,n]=c.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}function xn(e,t,n){let{reference:r,floating:o}=e;const i=qe(t),s=Nn(t),l=Bn(s),f=je(t),d=i===\"y\",p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let a;switch(f){case\"top\":a={x:p,y:r.y-o.height};break;case\"bottom\":a={x:p,y:r.y+r.height};break;case\"right\":a={x:r.x+r.width,y:u};break;case\"left\":a={x:r.x-o.width,y:u};break;default:a={x:r.x,y:r.y}}switch(ht(t)){case\"start\":a[s]-=g*(n&&d?-1:1);break;case\"end\":a[s]+=g*(n&&d?-1:1);break}return a}async function Ao(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:f}=e,{boundary:d=\"clippingAncestors\",rootBoundary:p=\"viewport\",elementContext:u=\"floating\",altBoundary:g=!1,padding:a=0}=nt(t,e),h=Hn(a),w=l[g?u===\"floating\"?\"reference\":\"floating\":u],y=Et(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:p,strategy:f})),b=u===\"floating\"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,m=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),R=await(i.isElement==null?void 0:i.isElement(m))?await(i.getScale==null?void 0:i.getScale(m))||{x:1,y:1}:{x:1,y:1},A=Et(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:m,strategy:f}):b);return{top:(y.top-A.top+h.top)/R.y,bottom:(A.bottom-y.bottom+h.bottom)/R.y,left:(y.left-A.left+h.left)/R.x,right:(A.right-y.right+h.right)/R.x}}const Mo=50,Io=async(e,t,n)=>{const{placement:r=\"bottom\",strategy:o=\"absolute\",middleware:i=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:Ao},f=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:u}=xn(d,r,f),g=r,a=0;const h={};for(let x=0;xH<=0)){var j,L;const H=(((j=i.flip)==null?void 0:j.index)||0)+1,W=M[H];if(W&&(!(u===\"alignment\"?b!==qe(W):!1)||V.every(C=>qe(C.placement)===b?C.overflows[0]>0:!0)))return{data:{index:H,overflows:V},reset:{placement:W}};let U=(L=V.filter(E=>E.overflows[0]<=0).sort((E,C)=>E.overflows[1]-C.overflows[1])[0])==null?void 0:L.placement;if(!U)switch(a){case\"bestFit\":{var N;const E=(N=V.filter(C=>{if(O){const G=qe(C.placement);return G===b||G===\"y\"}return!0}).map(C=>[C.placement,C.overflows.filter(G=>G>0).reduce((G,I)=>G+I,0)]).sort((C,G)=>C[1]-G[1])[0])==null?void 0:N[0];E&&(U=E);break}case\"initialPlacement\":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function yn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wn(e){return Fr.some(t=>e[t]>=0)}const To=function(e){return e===void 0&&(e={}),{name:\"hide\",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o=\"referenceHidden\",...i}=nt(e,t);switch(o){case\"referenceHidden\":{const s=await r.detectOverflow(t,{...i,elementContext:\"reference\"}),l=yn(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:wn(l)}}}case\"escaped\":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),l=yn(s,n.floating);return{data:{escapedOffsets:l,escaped:wn(l)}}}default:return{}}}}},Zn=new Set([\"left\",\"top\"]);async function Po(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=je(n),l=ht(n),f=qe(n)===\"y\",d=Zn.has(s)?-1:1,p=i&&f?-1:1,u=nt(t,e);let{mainAxis:g,crossAxis:a,alignmentAxis:h}=typeof u==\"number\"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof h==\"number\"&&(a=l===\"end\"?h*-1:h),f?{x:a*p,y:g*d}:{x:g*d,y:a*p}}const Lo=function(e){return e===void 0&&(e=0),{name:\"offset\",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,f=await Po(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:s}}}}},Do=function(e){return e===void 0&&(e={}),{name:\"shift\",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:y=>{let{x:b,y:m}=y;return{x:b,y:m}}},...d}=nt(e,t),p={x:n,y:r},u=await i.detectOverflow(t,d),g=qe(je(o)),a=Wn(g);let h=p[a],x=p[g];if(s){const y=a===\"y\"?\"top\":\"left\",b=a===\"y\"?\"bottom\":\"right\",m=h+u[y],R=h-u[b];h=nn(m,h,R)}if(l){const y=g===\"y\"?\"top\":\"left\",b=g===\"y\"?\"bottom\":\"right\",m=x+u[y],R=x-u[b];x=nn(m,x,R)}const w=f.fn({...t,[a]:h,[g]:x});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[a]:s,[g]:l}}}}}},Fo=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:f=!0,crossAxis:d=!0}=nt(e,t),p={x:n,y:r},u=qe(o),g=Wn(u);let a=p[g],h=p[u];const x=nt(l,t),w=typeof x==\"number\"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(f){const m=g===\"y\"?\"height\":\"width\",R=i.reference[g]-i.floating[m]+w.mainAxis,A=i.reference[g]+i.reference[m]-w.mainAxis;aA&&(a=A)}if(d){var y,b;const m=g===\"y\"?\"width\":\"height\",R=Zn.has(je(o)),A=i.reference[u]-i.floating[m]+(R&&((y=s.offset)==null?void 0:y[u])||0)+(R?0:w.crossAxis),O=i.reference[u]+i.reference[m]+(R?0:((b=s.offset)==null?void 0:b[u])||0)-(R?w.crossAxis:0);hO&&(h=O)}return{[g]:a,[u]:h}}}},Vo=function(e){return e===void 0&&(e={}),{name:\"size\",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:f=()=>{},...d}=nt(e,t),p=await s.detectOverflow(t,d),u=je(o),g=ht(o),a=qe(o)===\"y\",{width:h,height:x}=i.floating;let w,y;u===\"top\"||u===\"bottom\"?(w=u,y=g===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?\"start\":\"end\")?\"left\":\"right\"):(y=u,w=g===\"end\"?\"top\":\"bottom\");const b=x-p.top-p.bottom,m=h-p.left-p.right,R=St(x-p[w],b),A=St(h-p[y],m),O=!t.middlewareData.shift;let M=R,F=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=b),O&&!g){const V=We(p.left,0),j=We(p.right,0),L=We(p.top,0),N=We(p.bottom,0);a?F=h-2*(V!==0||j!==0?V+j:We(p.left,p.right)):M=x-2*(L!==0||N!==0?L+N:We(p.top,p.bottom))}await f({...t,availableWidth:F,availableHeight:M});const k=await s.getDimensions(l.floating);return h!==k.width||x!==k.height?{reset:{rects:!0}}:{}}}};function er(e){const t=tt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=et(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=Bt(n)!==i||Bt(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function un(e){return Pe(e)?e:e.contextElement}function gt(e){const t=un(e);if(!et(t))return Ge(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=er(t);let s=(i?Bt(n.width):n.width)/r,l=(i?Bt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const ko=Ge(0);function tr(e){const t=_e(e);return!Ln()||!t.visualViewport?ko:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function No(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_e(e)?!1:t}function ft(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=un(e);let s=Ge(1);t&&(r?Pe(r)&&(s=gt(r)):s=gt(e));const l=No(i,n,r)?tr(i):Ge(0);let f=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,p=o.width/s.x,u=o.height/s.y;if(i){const g=_e(i),a=r&&Pe(r)?_e(r):r;let h=g,x=fn(h);for(;x&&r&&a!==h;){const w=gt(x),y=x.getBoundingClientRect(),b=tt(x),m=y.left+(x.clientLeft+parseFloat(b.paddingLeft))*w.x,R=y.top+(x.clientTop+parseFloat(b.paddingTop))*w.y;f*=w.x,d*=w.y,p*=w.x,u*=w.y,f+=m,d+=R,h=_e(x),x=fn(h)}}return Et({width:p,height:u,x:f,y:d})}function zt(e,t){const n=$t(e).scrollLeft;return t?t.left+n:ft(ot(e)).left+n}function nr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-zt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ho(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o===\"fixed\",s=ot(r),l=t?sn(t.floating):!1;if(r===s||l&&i)return n;let f={scrollLeft:0,scrollTop:0},d=Ge(1);const p=Ge(0),u=et(r);if((u||!u&&!i)&&((ln(r)!==\"body\"||cn(s))&&(f=$t(r)),u)){const a=ft(r);d=gt(r),p.x=a.x+r.clientLeft,p.y=a.y+r.clientTop}const g=s&&!u&&!i?nr(s,f):Ge(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+p.x+g.x,y:n.y*d.y-f.scrollTop*d.y+p.y+g.y}}function Bo(e){return Array.from(e.getClientRects())}function Wo(e){const t=ot(e),n=$t(e),r=e.ownerDocument.body,o=We(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=We(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+zt(e);const l=-n.scrollTop;return tt(r).direction===\"rtl\"&&(s+=We(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}const Rn=25;function _o(e,t){const n=_e(e),r=ot(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,f=0;if(o){i=o.width,s=o.height;const p=Ln();(!p||p&&t===\"fixed\")&&(l=o.offsetLeft,f=o.offsetTop)}const d=zt(r);if(d<=0){const p=r.ownerDocument,u=p.body,g=getComputedStyle(u),a=p.compatMode===\"CSS1Compat\"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,h=Math.abs(r.clientWidth-u.clientWidth-a);h<=Rn&&(i-=h)}else d<=Rn&&(i+=d);return{width:i,height:s,x:l,y:f}}function $o(e,t){const n=ft(e,!0,t===\"fixed\"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=et(e)?gt(e):Ge(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,f=o*i.x,d=r*i.y;return{width:s,height:l,x:f,y:d}}function bn(e,t,n){let r;if(t===\"viewport\")r=_o(e,n);else if(t===\"document\")r=Wo(ot(e));else if(Pe(t))r=$o(t,n);else{const o=tr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Et(r)}function rr(e,t){const n=vt(e);return n===t||!Pe(n)||Ht(n)?!1:tt(n).position===\"fixed\"||rr(n,t)}function jo(e,t){const n=t.get(e);if(n)return n;let r=en(e,[],!1).filter(l=>Pe(l)&&ln(l)!==\"body\"),o=null;const i=tt(e).position===\"fixed\";let s=i?vt(e):e;for(;Pe(s)&&!Ht(s);){const l=tt(s),f=Pn(s);!f&&l.position===\"fixed\"&&(o=null),(i?!f&&!o:!f&&l.position===\"static\"&&!!o&&(o.position===\"absolute\"||o.position===\"fixed\")||cn(s)&&!f&&rr(e,s))?r=r.filter(p=>p!==s):o=l,s=vt(s)}return t.set(e,r),r}function Uo(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n===\"clippingAncestors\"?sn(t)?[]:jo(t,this._c):[].concat(n),r],l=bn(t,s[0],o);let f=l.top,d=l.right,p=l.bottom,u=l.left;for(let g=1;g{s(!1,1e-7)},1e3)}M===1&&!ir(d,e.getBoundingClientRect())&&s(),R=!1}try{n=new IntersectionObserver(A,{...m,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,m)}n.observe(e)}return s(!0),i}function Sn(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver==\"function\",layoutShift:l=typeof IntersectionObserver==\"function\",animationFrame:f=!1}=r,d=un(e),p=o||i?[...d?en(d):[],...t?en(t):[]]:[];p.forEach(y=>{o&&y.addEventListener(\"scroll\",n,{passive:!0}),i&&y.addEventListener(\"resize\",n)});const u=d&&l?Xo(d,n):null;let g=-1,a=null;s&&(a=new ResizeObserver(y=>{let[b]=y;b&&b.target===d&&a&&t&&(a.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var m;(m=a)==null||m.observe(t)})),n()}),d&&!f&&a.observe(d),t&&a.observe(t));let h,x=f?ft(e):null;f&&w();function w(){const y=ft(e);x&&!ir(x,y)&&n(),x=y,h=requestAnimationFrame(w)}return n(),()=>{var y;p.forEach(b=>{o&&b.removeEventListener(\"scroll\",n),i&&b.removeEventListener(\"resize\",n)}),u?.(),(y=a)==null||y.disconnect(),a=null,f&&cancelAnimationFrame(h)}}const Go=Lo,Jo=Do,Qo=Oo,Zo=Vo,es=To,ts=Fo,ns=(e,t,n)=>{const r=new Map,o={platform:sr,...n},i={...o.platform,_c:r};return Io(e,t,{...o,platform:i})};var rs=typeof document<\"u\",os=function(){},Vt=rs?c.useLayoutEffect:os;function Wt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==\"function\"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e==\"object\"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Wt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i===\"_owner\"&&e.$$typeof)&&!Wt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function lr(e){return typeof window>\"u\"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function En(e,t){const n=lr(e);return Math.round(t*n)/n}function Qt(e){const t=c.useRef(e);return Vt(()=>{t.current=e}),t}function ss(e){e===void 0&&(e={});const{placement:t=\"bottom\",strategy:n=\"absolute\",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:f,open:d}=e,[p,u]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,a]=c.useState(r);Wt(g,r)||a(r);const[h,x]=c.useState(null),[w,y]=c.useState(null),b=c.useCallback(C=>{C!==O.current&&(O.current=C,x(C))},[]),m=c.useCallback(C=>{C!==M.current&&(M.current=C,y(C))},[]),R=i||h,A=s||w,O=c.useRef(null),M=c.useRef(null),F=c.useRef(p),k=f!=null,V=Qt(f),j=Qt(o),L=Qt(d),N=c.useCallback(()=>{if(!O.current||!M.current)return;const C={placement:t,strategy:n,middleware:g};j.current&&(C.platform=j.current),ns(O.current,M.current,C).then(G=>{const I={...G,isPositioned:L.current!==!1};H.current&&!Wt(F.current,I)&&(F.current=I,Rr.flushSync(()=>{u(I)}))})},[g,t,n,j,L]);Vt(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,u(C=>({...C,isPositioned:!1})))},[d]);const H=c.useRef(!1);Vt(()=>(H.current=!0,()=>{H.current=!1}),[]),Vt(()=>{if(R&&(O.current=R),A&&(M.current=A),R&&A){if(V.current)return V.current(R,A,N);N()}},[R,A,N,V,k]);const W=c.useMemo(()=>({reference:O,floating:M,setReference:b,setFloating:m}),[b,m]),U=c.useMemo(()=>({reference:R,floating:A}),[R,A]),E=c.useMemo(()=>{const C={position:n,left:0,top:0};if(!U.floating)return C;const G=En(U.floating,p.x),I=En(U.floating,p.y);return l?{...C,transform:\"translate(\"+G+\"px, \"+I+\"px)\",...lr(U.floating)>=1.5&&{willChange:\"transform\"}}:{position:n,left:G,top:I}},[n,l,U.floating,p.x,p.y]);return c.useMemo(()=>({...p,update:N,refs:W,elements:U,floatingStyles:E}),[p,N,W,U,E])}const is=(e,t)=>{const n=Go(e);return{name:n.name,fn:n.fn,options:[e,t]}},ls=(e,t)=>{const n=Jo(e);return{name:n.name,fn:n.fn,options:[e,t]}},cs=(e,t)=>({fn:ts(e).fn,options:[e,t]}),as=(e,t)=>{const n=Qo(e);return{name:n.name,fn:n.fn,options:[e,t]}},us=(e,t)=>{const n=Zo(e);return{name:n.name,fn:n.fn,options:[e,t]}},fs=(e,t)=>{const n=es(e);return{name:n.name,fn:n.fn,options:[e,t]}};function cr(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=Er(),i=_n()!=null,s=Nt(()=>new Vr({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new kr,floatingId:o,syncOnly:!1,nested:i})).current;return Z(()=>{const l={open:t,floatingId:o};r.reference!==void 0&&(l.referenceElement=r.reference,l.domReferenceElement=Pe(r.reference)?r.reference:null),r.floating!==void 0&&(l.floatingElement=r.floating),s.update(l)},[t,o,r.reference,r.floating,s]),s.context.onOpenChange=n,s.context.nested=i,s}function ds(e={}){const{nodeId:t,externalTree:n}=e,r=cr(e),o=e.rootContext||r,i=o.useState(\"referenceElement\"),s=o.useState(\"floatingElement\"),l=o.useState(\"domReferenceElement\"),f=o.useState(\"open\"),d=o.useState(\"floatingId\"),[p,u]=c.useState(null),[g,a]=c.useState(void 0),[h,x]=c.useState(void 0),w=c.useRef(null),y=$n(n),b=c.useMemo(()=>({reference:i,floating:s,domReference:l}),[i,s,l]),m=ss({...e,elements:{...b,...p&&{reference:p}}}),R=Pe(g)?g:null,A=h===void 0?o.state.floatingElement:h;o.useSyncedValue(\"referenceElement\",g??null),o.useSyncedValue(\"domReferenceElement\",g===void 0?l:R),o.useSyncedValue(\"floatingElement\",A);const O=c.useCallback(L=>{const N=Pe(L)?{getBoundingClientRect:()=>L.getBoundingClientRect(),getClientRects:()=>L.getClientRects(),contextElement:L}:L;u(N),m.refs.setReference(N)},[m.refs]),M=c.useCallback(L=>{(Pe(L)||L===null)&&(w.current=L,a(L)),(Pe(m.refs.reference.current)||m.refs.reference.current===null||L!==null&&!Pe(L))&&m.refs.setReference(L)},[m.refs,a]),F=c.useCallback(L=>{x(L),m.refs.setFloating(L)},[m.refs]),k=c.useMemo(()=>({...m.refs,setReference:M,setFloating:F,setPositionReference:O,domReference:w}),[m.refs,M,F,O]),V=c.useMemo(()=>({...m.elements,domReference:l}),[m.elements,l]),j=c.useMemo(()=>({...m,dataRef:o.context.dataRef,open:f,onOpenChange:o.setOpen,events:o.context.events,floatingId:d,refs:k,elements:V,nodeId:t,rootStore:o}),[m,k,V,t,o,f,d]);return Z(()=>{l&&(w.current=l)},[l]),Z(()=>{o.context.dataRef.current.floatingContext=j;const L=y?.nodesRef.current.find(N=>N.id===t);L&&(L.context=j)}),c.useMemo(()=>({...m,context:j,refs:k,elements:V,rootStore:o}),[m,k,V,j,o])}const ps=\"Escape\";function Yt(e,t,n){switch(e){case\"vertical\":return t;case\"horizontal\":return n;default:return t||n}}function Ot(e,t){return Yt(t,e===zn||e===Ut,e===Ct||e===At)}function Zt(e,t,n){return Yt(t,e===Ut,n?e===Ct:e===At)||e===\"Enter\"||e===\" \"||e===\"\"}function gs(e,t,n){return Yt(t,n?e===Ct:e===At,e===Ut)}function ms(e,t,n,r){const o=n?e===At:e===Ct,i=e===zn;return t===\"both\"||t===\"horizontal\"&&r&&r>1?e===ps:Yt(t,o,i)}function hs(e,t){const{listRef:n,activeIndex:r,onNavigate:o=()=>{},enabled:i=!0,selectedIndex:s=null,allowEscape:l=!1,loopFocus:f=!1,nested:d=!1,rtl:p=!1,virtual:u=!1,focusItemOnOpen:g=\"auto\",focusItemOnHover:a=!0,openOnArrowKeyDown:h=!0,disabledIndices:x=void 0,orientation:w=\"vertical\",parentOrientation:y,cols:b=1,id:m,resetOnPointerLeave:R=!0,externalTree:A}=t,O=\"rootStore\"in e?e.rootStore:e,M=O.useState(\"open\"),F=O.useState(\"floatingElement\"),k=O.useState(\"domReferenceElement\"),V=O.context.dataRef,j=jn(F),L=Nr(k),N=Ke(j),H=_n(),W=$n(A),U=c.useRef(g),E=c.useRef(s??-1),C=c.useRef(null),G=c.useRef(!0),I=we(P=>{o(E.current===-1?null:E.current,P)}),ee=c.useRef(I),oe=c.useRef(!!F),v=c.useRef(M),T=c.useRef(!1),B=c.useRef(!1),ce=c.useRef(null),te=Ke(x),ae=Ke(M),pe=Ke(s),Le=Ke(R),Ne=rn(),Ce=rn(),z=we(()=>{function P(Y){u?W?.events.emit(\"virtualfocus\",Y):ce.current=Hr(Y,{sync:T.current,preventScroll:!0})}const S=n.current[E.current],q=B.current;S&&P(S),(T.current?Y=>Y():Y=>Ne.request(Y))(()=>{const Y=n.current[E.current]||S;if(!Y)return;S||P(Y),fe&&(q||!G.current)&&Y.scrollIntoView?.({block:\"nearest\",inline:\"nearest\"})})});Z(()=>{V.current.orientation=w},[V,w]),Z(()=>{i&&(M&&F?(E.current=s??-1,U.current&&s!=null&&(B.current=!0,I())):oe.current&&(E.current=-1,ee.current()))},[i,M,F,s,I]),Z(()=>{if(i){if(!M){T.current=!1;return}if(F)if(r==null){if(T.current=!1,pe.current!=null)return;if(oe.current&&(E.current=-1,z()),(!v.current||!oe.current)&&U.current&&(C.current!=null||U.current===!0&&C.current==null)){let P=0;const S=()=>{n.current[0]==null?(P<2&&(P?D=>Ce.request(D):queueMicrotask)(S),P+=1):(E.current=C.current==null||Zt(C.current,w,p)||d?qt(n):mn(n),C.current=null,I())};S()}}else gn(n.current,r)||(E.current=r,z(),B.current=!1)}},[i,M,F,r,pe,d,n,w,p,I,z,Ce]),Z(()=>{if(!i||F||!W||u||!oe.current)return;const P=W.nodesRef.current,S=P.find(Y=>Y.id===H)?.context?.elements.floating,q=Xt(rt(F)),D=P.some(Y=>Y.context&&ct(Y.context.elements.floating,q));S&&!D&&G.current&&S.focus({preventScroll:!0})},[i,F,W,H,u]),Z(()=>{ee.current=I,v.current=M,oe.current=!!F}),Z(()=>{M||(C.current=null,U.current=g)},[M,g]);const se=r!=null,xe=we(P=>{if(!ae.current)return;const S=n.current.indexOf(P.currentTarget);S!==-1&&(E.current!==S||r!==S)&&(E.current=S,I(P))}),Ae=we(()=>y??W?.nodesRef.current.find(P=>P.id===H)?.context?.dataRef?.current.orientation),J=we(()=>qt(n,te.current)),ue=we(P=>{if(G.current=!1,T.current=!0,P.which===229||!ae.current&&P.currentTarget===N.current)return;if(d&&ms(P.key,w,p,b)){Ot(P.key,Ae())||Qe(P),O.setOpen(!1,$e(dn,P.nativeEvent)),et(k)&&(u?W?.events.emit(\"virtualfocus\",k):k.focus());return}const S=E.current,q=qt(n,x),D=mn(n,x);if(L||(P.key===\"Home\"&&(Qe(P),E.current=q,I(P)),P.key===\"End\"&&(Qe(P),E.current=D,I(P))),b>1){const Y=Array.from({length:n.current.length},()=>({width:1,height:1})),me=Br(Y,b),Ie=me.findIndex(he=>he!=null&&!Gt(n.current,he,x)),De=me.reduce((he,ye,Ee)=>ye!=null&&!Gt(n.current,ye,x)?Ee:he,-1),Se=me[Wr(me.map(he=>he!=null?n.current[he]:null),{event:P,orientation:w,loopFocus:f,rtl:p,cols:b,disabledIndices:$r([...(typeof x!=\"function\"?x:null)||n.current.map((he,ye)=>Gt(n.current,ye,x)?ye:void 0),void 0],me),minIndex:Ie,maxIndex:De,prevIndex:_r(E.current>D?q:E.current,Y,me,b,P.key===Ut?\"bl\":P.key===(p?Ct:At)?\"tr\":\"tl\"),stopEvent:!0})];if(Se!=null&&(E.current=Se,I(P)),w===\"both\")return}if(Ot(P.key,w)){if(Qe(P),M&&!u&&Xt(P.currentTarget.ownerDocument)===P.currentTarget){E.current=Zt(P.key,w,p)?q:D,I(P);return}Zt(P.key,w,p)?f?S>=D?l&&S!==n.current.length?E.current=-1:(T.current=!1,E.current=q):E.current=It(n.current,{startingIndex:S,disabledIndices:x}):E.current=Math.min(D,It(n.current,{startingIndex:S,disabledIndices:x})):f?S<=q?l&&S!==-1?E.current=n.current.length:(T.current=!1,E.current=D):E.current=It(n.current,{startingIndex:S,decrement:!0,disabledIndices:x}):E.current=Math.max(q,It(n.current,{startingIndex:S,decrement:!0,disabledIndices:x})),gn(n.current,E.current)&&(E.current=-1),I(P)}}),fe=c.useMemo(()=>({onFocus(S){T.current=!0,xe(S)},onClick:({currentTarget:S})=>S.focus({preventScroll:!0}),onMouseMove(S){T.current=!0,B.current=!1,a&&xe(S)},onPointerLeave(S){if(!ae.current||!G.current||S.pointerType===\"touch\")return;T.current=!0;const q=S.relatedTarget;if(!(!a||n.current.includes(q))&&Le.current&&(ce.current?.(),ce.current=null,E.current=-1,I(S),!u)){const D=N.current,Y=Xt(rt(D));D&&ct(D,Y)&&D.focus({preventScroll:!0})}}}),[xe,ae,N,a,n,I,Le,u]),Re=c.useMemo(()=>u&&M&&se&&{\"aria-activedescendant\":`${m}-${r}`},[u,M,se,m,r]),ge=c.useMemo(()=>({\"aria-orientation\":w===\"both\"?void 0:w,...L?{}:Re,onKeyDown(P){if(P.key===\"Tab\"&&P.shiftKey&&M&&!u){const S=jr(P.nativeEvent);if(S&&!ct(N.current,S))return;Qe(P),O.setOpen(!1,$e(Dn,P.nativeEvent)),et(k)&&k.focus();return}ue(P)},onPointerMove(){G.current=!0}}),[Re,ue,N,w,L,O,M,u,k]),ne=c.useMemo(()=>{function P(D){O.setOpen(!0,$e(dn,D.nativeEvent,D.currentTarget))}function S(D){g===\"auto\"&&Un(D.nativeEvent)&&(U.current=!u)}function q(D){U.current=g,g===\"auto\"&&Ur(D.nativeEvent)&&(U.current=!0)}return{onKeyDown(D){const Y=O.select(\"open\");G.current=!1;const me=D.key.startsWith(\"Arrow\"),Ie=gs(D.key,Ae(),p),De=Ot(D.key,w),Se=(d?Ie:De)||D.key===\"Enter\"||D.key.trim()===\"\";if(u&&Y)return ue(D);if(!(!Y&&!h&&me)){if(Se){const he=Ot(D.key,Ae());C.current=d&&he?null:D.key}if(d){Ie&&(Qe(D),Y?(E.current=J(),I(D)):P(D));return}De&&(pe.current!=null&&(E.current=pe.current),Qe(D),!Y&&h?P(D):ue(D),Y&&I(D))}},onFocus(D){O.select(\"open\")&&!u&&(E.current=-1,I(D))},onPointerDown:q,onPointerEnter:q,onMouseDown:S,onClick:S}},[ue,g,J,d,I,O,h,w,Ae,p,pe,u]),ie=c.useMemo(()=>({...Re,...ne}),[Re,ne]);return c.useMemo(()=>i?{reference:ie,floating:ge,item:fe,trigger:ne}:{},[i,ie,ge,ne,fe])}function xs(e,t){const{listRef:n,elementsRef:r,activeIndex:o,onMatch:i,onTyping:s,enabled:l=!0,resetMs:f=750,selectedIndex:d=null}=t,p=\"rootStore\"in e?e.rootStore:e,u=p.useState(\"open\"),g=Ft(),a=c.useRef(\"\"),h=c.useRef(d??o??-1),x=c.useRef(null),w=we(m=>{function R(L){const N=r?.current[L];return!N||zr(N)}function A(L,N,H=0){if(L.length===0)return-1;const W=(H%L.length+L.length)%L.length,U=N.toLocaleLowerCase();for(let E=0;E0&&m.key===\" \"&&(Qe(m),s?.(!0)),a.current.length>0&&a.current[0]!==\" \"&&A(O,a.current)===-1&&m.key!==\" \"&&s?.(!1),O==null||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;u&&m.key!==\" \"&&(Qe(m),s?.(!0));const M=a.current===\"\";M&&(h.current=d??o??-1),O.every(L=>L?L[0]?.toLocaleLowerCase()!==L[1]?.toLocaleLowerCase():!0)&&a.current===m.key&&(a.current=\"\",h.current=x.current),a.current+=m.key,g.start(f,()=>{a.current=\"\",h.current=x.current,s?.(!1)});const V=((M?d??o??-1:h.current)??0)+1,j=A(O,a.current,V);j!==-1?(i?.(j),x.current=j):m.key!==\" \"&&(a.current=\"\",s?.(!1))}),y=we(m=>{const R=m.relatedTarget,A=p.select(\"domReferenceElement\"),O=p.select(\"floatingElement\");ct(A,R)||ct(O,R)||(g.clear(),a.current=\"\",h.current=x.current,s?.(!1))});Z(()=>{!u&&d!==null||(g.clear(),x.current=null,a.current!==\"\"&&(a.current=\"\"))},[u,d,g]),Z(()=>{u&&a.current===\"\"&&(h.current=d??o??-1)},[u,d,o]);const b=c.useMemo(()=>({onKeyDown:w,onBlur:y}),[w,y]);return c.useMemo(()=>l?{reference:b,floating:b}:{},[l,b])}const ar=c.createContext(null),ur=c.createContext(null);function at(){const e=c.useContext(ar);if(e===null)throw new Error(jt(60));return e}function fr(){const e=c.useContext(ur);if(e===null)throw new Error(jt(61));return e}const ys=(e,t)=>Object.is(e,t);function mt(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function ws(e,t,n){return!e||e.length===0?!1:e.some(r=>r===void 0?!1:mt(t,r,n))}function bt(e,t,n){return!e||e.length===0?-1:e.findIndex(r=>r===void 0?!1:mt(r,t,n))}function Rs(e,t,n){return e.filter(r=>!mt(t,r,n))}function dr(e){return e!=null&&e.length>0&&typeof e[0]==\"object\"&&e[0]!=null&&\"items\"in e[0]}function bs(e){if(!Array.isArray(e))return e!=null&&\"null\"in e;const t=e;if(dr(t)){for(const n of t)for(const r of n.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(const n of t)if(n&&n.value==null&&n.label!=null)return!0;return!1}function pr(e,t){if(t&&e!=null)return t(e)??\"\";if(e&&typeof e==\"object\"){if(\"label\"in e&&e.label!=null)return String(e.label);if(\"value\"in e)return String(e.value)}return on(e)}function pt(e,t){return t&&e!=null?t(e)??\"\":e&&typeof e==\"object\"&&\"value\"in e&&\"label\"in e?on(e.value):on(e)}function gr(e,t,n){function r(){return pr(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==\"object\"&&\"label\"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){const o=t,i=dr(o)?o.flatMap(s=>s.items):o;if(e==null||typeof e!=\"object\"){const s=i.find(l=>l.value===e);return s&&s.label!=null?s.label:r()}if(\"value\"in e){const s=i.find(l=>l&&l.value===e.value);if(s&&s.label!=null)return s.label}}return r()}function vs(e,t,n){return e.reduce((r,o,i)=>(i>0&&r.push(\", \"),r.push(X.jsx(c.Fragment,{children:gr(o,t,n)},i)),r),[])}const _={id:re(e=>e.id),labelId:re(e=>e.labelId),modal:re(e=>e.modal),multiple:re(e=>e.multiple),items:re(e=>e.items),itemToStringLabel:re(e=>e.itemToStringLabel),itemToStringValue:re(e=>e.itemToStringValue),isItemEqualToValue:re(e=>e.isItemEqualToValue),value:re(e=>e.value),hasSelectedValue:re(e=>{const{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:pt(t,r)!==\"\"}),hasNullItemLabel:re((e,t)=>t?bs(e.items):!1),open:re(e=>e.open),mounted:re(e=>e.mounted),forceMount:re(e=>e.forceMount),transitionStatus:re(e=>e.transitionStatus),openMethod:re(e=>e.openMethod),activeIndex:re(e=>e.activeIndex),selectedIndex:re(e=>e.selectedIndex),isActive:re((e,t)=>e.activeIndex===t),isSelected:re((e,t,n)=>{const r=e.isItemEqualToValue,o=e.value;return e.multiple?Array.isArray(o)&&o.some(i=>mt(n,i,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:mt(n,o,r)}),isSelectedByFocus:re((e,t)=>e.selectedIndex===t),popupProps:re(e=>e.popupProps),triggerProps:re(e=>e.triggerProps),triggerElement:re(e=>e.triggerElement),positionerElement:re(e=>e.positionerElement),listElement:re(e=>e.listElement),popupSide:re(e=>e.popupSide),scrollUpArrowVisible:re(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:re(e=>e.scrollDownArrowVisible),hasScrollArrows:re(e=>e.hasScrollArrows)};function wt(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Ze=1;function mr(e,t){return Math.max(0,e-t)}function Ss(e,t){if(t<=0)return 0;const n=wt(e,0,t),r=n,o=t-n,i=r<=Ze,s=o<=Ze;return i&&s?r<=o?0:t:i?0:s?t:n}function Es(e){const{id:t,value:n,defaultValue:r=null,onValueChange:o,open:i,defaultOpen:s=!1,onOpenChange:l,name:f,form:d,autoComplete:p,disabled:u=!1,readOnly:g=!1,required:a=!1,modal:h=!0,actionsRef:x,inputRef:w,onOpenChangeComplete:y,items:b,multiple:m=!1,itemToStringLabel:R,itemToStringValue:A,isItemEqualToValue:O=ys,highlightItemOnHover:M=!0,children:F}=e,{clearErrors:k}=uo(),{setDirty:V,setTouched:j,setFocused:L,shouldValidateOnChange:N,validityData:H,setFilled:W,name:U,disabled:E,validation:C,validationMode:G}=qn(),I=Xn({id:t}),ee=E||u,oe=U??f,[v,T]=hn({controlled:n,default:m?r??pn:r,name:\"Select\",state:\"value\"}),[B,ce]=hn({controlled:i,default:s,name:\"Select\",state:\"open\"}),te=c.useRef([]),ae=c.useRef([]),pe=c.useRef(null),Le=c.useRef(null),Ne=c.useRef(0),Ce=c.useRef(null),z=c.useRef([]),se=c.useRef(!1),xe=c.useRef(!1),Ae=c.useRef(null),J=c.useRef(null),ue=c.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),fe=c.useRef(!1),{mounted:Re,setMounted:ge,transitionStatus:ne}=Yr(B),{openMethod:ie,triggerProps:P}=ho(B),S=Nt(()=>new Gr({id:I,labelId:void 0,modal:h,multiple:m,itemToStringLabel:R,itemToStringValue:A,isItemEqualToValue:O,value:v,open:B,mounted:Re,transitionStatus:ne,items:b,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,q=$(S,_.activeIndex),D=$(S,_.selectedIndex),Y=$(S,_.triggerElement),me=$(S,_.positionerElement),Ie=Co(ie),De=ie??Ie,Se=c.useMemo(()=>m&&Array.isArray(v)&&v.length===0?\"\":pt(v,A),[m,v,A]),he=c.useMemo(()=>m&&Array.isArray(v)?v.map(K=>pt(K,A)):pt(v,A),[m,v,A]),ye=Ke(S.state.triggerElement),Ee=we(()=>he);fo(ye,I,v,Ee);const Ue=c.useRef(v),st=m?Array.isArray(v)&&v.length>0:v!=null;Z(()=>{v!==Ue.current&&S.set(\"forceMount\",!0)},[S,v]),Z(()=>{W(st)},[st,W]),Z(function(){const de=z.current;let ke;if(m){const Be=Array.isArray(v)?v:[];if(Be.length===0)ke=null;else{const Ye=Be[Be.length-1],yt=bt(de,Ye,O);ke=yt===-1?null:yt}}else{const Be=bt(de,v,O);ke=Be===-1?null:Be}ke===null&&(J.current=null),!B&&S.set(\"selectedIndex\",ke)},[st,m,B,v,z,O,S,J]),mo(v,()=>{k(oe),V(v!==H.initialValue),N()?C.commit(v):C.commit(v,!0)});const Oe=we((K,de)=>{if(l?.(K,de),!de.isCanceled&&(ce(K),!K&&(de.reason===Dn||de.reason===Mr)&&(j(!0),L(!1),G===\"onBlur\"&&C.commit(v)),!K&&S.state.activeIndex!==null)){const ke=te.current[S.state.activeIndex];queueMicrotask(()=>{ke?.setAttribute(\"tabindex\",\"-1\")})}}),Q=we(()=>{ge(!1),S.update({activeIndex:null,openMethod:null}),y?.(!1)});Yn({enabled:!x,open:B,ref:pe,onComplete(){B||Q()}}),c.useImperativeHandle(x,()=>({unmount:Q}),[Q]);const be=we((K,de)=>{o?.(K,de),!de.isCanceled&&T(K)}),Me=we(()=>{const K=S.state.listElement||pe.current;if(!K)return;const de=mr(K.scrollHeight,K.clientHeight),ke=Ss(K.scrollTop,de),Be=ke>0,Ye=ke{const K=tn(Ve.reference,Te.reference,ve.reference,Fe.reference,P);return I&&(K.id=I),K},[Fe.reference,Ve.reference,Te.reference,ve.reference,P,I]),Je=c.useMemo(()=>tn(qr,Ve.floating,Te.floating,ve.floating),[Ve.floating,Te.floating,ve.floating]),it=Te.item??Fn;Xr(()=>{S.update({popupProps:Je,triggerProps:ze})}),Z(()=>{S.update({id:I,modal:h,multiple:m,value:v,open:B,mounted:Re,transitionStatus:ne,popupProps:Je,triggerProps:ze,items:b,itemToStringLabel:R,itemToStringValue:A,isItemEqualToValue:O,openMethod:De})},[S,I,h,m,v,B,Re,ne,Je,ze,b,R,A,O,De]);const ut=c.useMemo(()=>({store:S,name:oe,required:a,disabled:ee,readOnly:g,multiple:m,highlightItemOnHover:M,setValue:be,setOpen:Oe,listRef:te,popupRef:pe,scrollHandlerRef:Le,handleScrollArrowVisibility:Me,scrollArrowsMountedCountRef:Ne,itemProps:it,events:le.context.events,valueRef:Ce,valuesRef:z,labelsRef:ae,typingRef:se,selectionRef:ue,firstItemTextRef:Ae,selectedItemTextRef:J,validation:C,onOpenChangeComplete:y,keyboardActiveRef:xe,alignItemWithTriggerActiveRef:fe,initialValueRef:Ue}),[S,oe,a,ee,g,m,M,be,Oe,it,le.context.events,C,y,Me]),He=Vn(w,C.inputRef),Xe=m&&Array.isArray(v)&&v.length>0,lt=m?void 0:oe,xt=c.useMemo(()=>!m||!Array.isArray(v)||!oe?null:v.map(K=>{const de=pt(K,A);return X.jsx(\"input\",{type:\"hidden\",form:d,name:oe,value:de},de)}),[m,v,d,oe,A]);return X.jsx(ar.Provider,{value:ut,children:X.jsxs(ur.Provider,{value:le,children:[F,X.jsx(\"input\",{...C.getInputValidationProps({onFocus(){S.state.triggerElement?.focus({focusVisible:!0})},onChange(K){if(K.nativeEvent.defaultPrevented||ee||g){K.preventBaseUIHandler?.();return}const de=K.currentTarget.value,ke=$e(an,K.nativeEvent);function Be(){if(m)return;const Ye=z.current.find(yt=>pt(yt,A).toLowerCase()===de.toLowerCase()||pr(yt,R).toLowerCase()===de.toLowerCase());Ye!=null&&(V(Ye!==H.initialValue),be(Ye,ke),N()&&C.commit(Ye))}S.set(\"forceMount\",!0),queueMicrotask(Be)}}),id:I&<==null?`${I}-hidden-input`:void 0,form:d,name:lt,autoComplete:p,value:Se,disabled:ee,required:a&&!Xe,readOnly:g,ref:He,style:oe?Cr:Ar,tabIndex:-1,\"aria-hidden\":!0,suppressHydrationWarning:!0}),xt]})})}function Cs(e,t){return e??t}function As(e){const t=e.getBoundingClientRect(),n=_e(e),r=n.getComputedStyle(e,\"::before\"),o=n.getComputedStyle(e,\"::after\");if(!(r.content!==\"none\"||o.content!==\"none\"))return t;const s=parseFloat(r.width)||0,l=parseFloat(r.height)||0,f=parseFloat(o.width)||0,d=parseFloat(o.height)||0,p=Math.max(t.width,s,f),u=Math.max(t.height,l,d),g=p-t.width,a=u-t.height;return{left:t.left-g/2,right:t.right+g/2,top:t.top-a/2,bottom:t.bottom+a/2}}const Tt=2,Ms=400,Is={...Jr,...go,popupSide:e=>e?{\"data-popup-side\":e}:null,value:()=>null},Os=c.forwardRef(function(t,n){const{render:r,className:o,id:i,disabled:s=!1,nativeButton:l=!0,style:f,...d}=t,{setTouched:p,setFocused:u,validationMode:g,state:a,disabled:h}=qn(),{labelId:x}=po(),{store:w,setOpen:y,selectionRef:b,validation:m,readOnly:R,required:A,alignItemWithTriggerActiveRef:O,disabled:M,keyboardActiveRef:F}=at(),k=h||M||s,V=$(w,_.open),j=$(w,_.mounted),L=$(w,_.value),N=$(w,_.triggerProps),H=$(w,_.positionerElement),W=$(w,_.listElement),U=$(w,_.popupSide),E=$(w,_.id),C=$(w,_.labelId),G=$(w,_.hasSelectedValue),I=j&&H?U:null,ee=i??E,oe=Cs(x,C);Xn({id:ee});const v=Ke(H),T=c.useRef(null),{getButtonProps:B,buttonRef:ce}=kn({disabled:k,native:l}),te=we(se=>{w.set(\"triggerElement\",se)}),ae=Vn(n,T,ce,te),pe=Ft(),Le=Ft(),Ne=Ft();c.useEffect(()=>{if(V)return Ne.start(Ms,()=>{b.current.allowUnselectedMouseUp=!0,b.current.allowSelectedMouseUp=!0}),()=>{Ne.clear()};b.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},Le.clear()},[V,b,Le,Ne]);const Ce=tn(N,{id:ee,role:\"combobox\",\"aria-expanded\":V?\"true\":\"false\",\"aria-haspopup\":\"listbox\",\"aria-controls\":V?W?.id??jn(H)?.id:void 0,\"aria-labelledby\":oe,\"aria-readonly\":R||void 0,\"aria-required\":A||void 0,tabIndex:k?-1:0,ref:ae,onFocus(se){u(!0),V&&O.current&&y(!1,$e(an,se.nativeEvent)),pe.start(0,()=>{w.set(\"forceMount\",!0)})},onBlur(se){ct(H,se.relatedTarget)||(p(!0),u(!1),g===\"onBlur\"&&m.commit(L))},onPointerMove(){F.current=!1},onKeyDown(){F.current=!0},onMouseDown(se){if(V)return;const xe=rt(se.currentTarget);function Ae(J){if(!T.current)return;const ue=J.target;if(ct(T.current,ue)||ct(v.current,ue)||ue===T.current)return;const fe=As(T.current);J.clientX>=fe.left-Tt&&J.clientX<=fe.right+Tt&&J.clientY>=fe.top-Tt&&J.clientY<=fe.bottom+Tt||y(!1,$e(Ir,J))}Le.start(0,()=>{xe.addEventListener(\"mouseup\",Ae,{once:!0})})}},m.getValidationProps,d,B);Ce.role=\"combobox\";const z={...a,open:V,disabled:k,value:L,readOnly:R,popupSide:I,placeholder:!G};return dt(\"button\",t,{ref:[n,T],state:z,stateAttributesMapping:Is,props:Ce})}),Ts={value:()=>null},Ps=c.forwardRef(function(t,n){const{className:r,render:o,children:i,placeholder:s,style:l,...f}=t,{store:d,valueRef:p}=at(),u=$(d,_.value),g=$(d,_.items),a=$(d,_.itemToStringLabel),h=$(d,_.hasSelectedValue),x=!h&&s!=null&&i==null,w=$(d,_.hasNullItemLabel,x),y={value:u,placeholder:!h};let b=null;return typeof i==\"function\"?b=i(u):i!=null?b=i:!h&&s!=null&&!w?b=s:Array.isArray(u)?b=vs(u,g,a):b=gr(u,g,a),dt(\"span\",t,{state:y,ref:[n,p],props:[{children:b},f],stateAttributesMapping:Ts})}),Ls=c.forwardRef(function(t,n){const{render:r,className:o,style:i,...s}=t,{store:l}=at(),d={open:$(l,_.open)};return dt(\"span\",t,{state:d,ref:n,props:[{\"aria-hidden\":!0,children:\"▼\"},s],stateAttributesMapping:Qr})}),Ds=c.createContext(void 0),Fs=c.forwardRef(function(t,n){const{store:r}=at(),o=$(r,_.mounted),i=$(r,_.forceMount);return o||i?X.jsx(Ds.Provider,{value:!0,children:X.jsx(Zr,{ref:n,...t})}):null}),Vs=e=>({name:\"arrow\",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:f}=t,{element:d,padding:p=0,offsetParent:u=\"real\"}=nt(e,t)||{};if(d==null)return{};const g=Hn(p),a={x:n,y:r},h=Nn(o),x=Bn(h),w=await s.getDimensions(d),y=h===\"y\",b=y?\"top\":\"left\",m=y?\"bottom\":\"right\",R=y?\"clientHeight\":\"clientWidth\",A=i.reference[x]+i.reference[h]-a[h]-i.floating[x],O=a[h]-i.reference[h],M=u===\"real\"?await s.getOffsetParent?.(d):l.floating;let F=l.floating[R]||i.floating[x];(!F||!await s.isElement?.(M))&&(F=l.floating[R]||i.floating[x]);const k=A/2-O/2,V=F/2-w[x]/2-1,j=Math.min(g[b],V),L=Math.min(g[m],V),N=j,H=F-w[x]-L,W=F/2-w[x]/2+k,U=nn(N,W,H),E=!f.arrow&&ht(o)!=null&&W!==U&&i.reference[x]/2-(W({...Vs(e),options:[e,t]}),Ns={name:\"hide\",async fn(e){const{width:t,height:n,x:r,y:o}=e.rects.reference,i=t===0&&n===0&&r===0&&o===0;return{data:{referenceHidden:(await fs().fn(e)).data?.referenceHidden||i}}}},kt={sideX:\"left\",sideY:\"top\"},gi={name:\"adaptiveOrigin\",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:o},platform:i,strategy:s,placement:l}=e,f=_e(o),d=f.getComputedStyle(o);if(!(d.transitionDuration!==\"0s\"&&d.transitionDuration!==\"\"))return{x:t,y:n,data:kt};const u=await i.getOffsetParent?.(o);let g={width:0,height:0};if(s===\"fixed\"&&f?.visualViewport)g={width:f.visualViewport.width,height:f.visualViewport.height};else if(u===f){const b=rt(o);g={width:b.documentElement.clientWidth,height:b.documentElement.clientHeight}}else await i.isElement?.(u)&&(g=await i.getDimensions(u));const a=je(l);let h=t,x=n;a===\"left\"&&(h=g.width-(t+r.width)),a===\"top\"&&(x=g.height-(n+r.height));const w=a===\"left\"?\"right\":kt.sideX,y=a===\"top\"?\"bottom\":kt.sideY;return{x:h,y:x,data:{sideX:w,sideY:y}}}};function hr(e,t,n){const r=e===\"inline-start\"||e===\"inline-end\";return{top:\"top\",right:r?n?\"inline-start\":\"inline-end\":\"right\",bottom:\"bottom\",left:r?n?\"inline-end\":\"inline-start\":\"left\"}[t]}function Cn(e,t,n){const{rects:r,placement:o}=e;return{side:hr(t,je(o),n),align:ht(o)||\"center\",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Hs(e){const{anchor:t,positionMethod:n=\"absolute\",side:r=\"bottom\",sideOffset:o=0,align:i=\"center\",alignOffset:s=0,collisionBoundary:l,collisionPadding:f=5,sticky:d=!1,arrowPadding:p=5,disableAnchorTracking:u=!1,inline:g,keepMounted:a=!1,floatingRootContext:h,mounted:x,collisionAvoidance:w,shiftCrossAxis:y=!1,nodeId:b,adaptiveOrigin:m,lazyFlip:R=!1,externalTree:A}=e,[O,M]=c.useState(null);!x&&O!==null&&M(null);const F=w.side||\"flip\",k=w.align||\"flip\",V=w.fallbackAxisSide||\"end\",j=typeof t==\"function\"?t:void 0,L=we(j),N=j?L:t,H=Ke(t),W=Ke(x),E=Qn()===\"rtl\",C=O||{top:\"top\",right:\"right\",bottom:\"bottom\",left:\"left\",\"inline-end\":E?\"left\":\"right\",\"inline-start\":E?\"right\":\"left\"}[r],G=i===\"center\"?C:`${C}-${i}`;let I=f;const ee=1,oe=r===\"bottom\"?ee:0,v=r===\"top\"?ee:0,T=r===\"right\"?ee:0,B=r===\"left\"?ee:0;typeof I==\"number\"?I={top:I+oe,right:I+B,bottom:I+v,left:I+T}:I&&(I={top:(I.top||0)+oe,right:(I.right||0)+B,bottom:(I.bottom||0)+v,left:(I.left||0)+T});const ce={boundary:l===\"clipping-ancestors\"?\"clippingAncestors\":l,padding:I},te=c.useRef(null),ae=Ke(o),pe=Ke(s),Le=typeof o!=\"function\"?o:0,Ne=typeof s!=\"function\"?s:0,Ce=[];g&&Ce.push(g),Ce.push(is(Q=>{const be=Cn(Q,r,E),Me=typeof ae.current==\"function\"?ae.current(be):ae.current,le=typeof pe.current==\"function\"?pe.current(be):pe.current;return{mainAxis:Me,crossAxis:le,alignmentAxis:le}},[Le,Ne,E,r]));const z=k===\"none\"&&F!==\"shift\",se=!z&&(d||y||F===\"shift\"),xe=F===\"none\"?null:as({...ce,padding:{top:I.top+ee,right:I.right+ee,bottom:I.bottom+ee,left:I.left+ee},mainAxis:!y&&F===\"flip\",crossAxis:k===\"flip\"?\"alignment\":!1,fallbackAxisSideDirection:V}),Ae=z?null:ls(Q=>{const be=rt(Q.elements.floating).documentElement;return{...ce,rootBoundary:y?{x:0,y:0,width:be.clientWidth,height:be.clientHeight}:void 0,mainAxis:k!==\"none\",crossAxis:se,limiter:d||y?void 0:cs(Me=>{if(!te.current)return{};const{width:le,height:Fe}=te.current.getBoundingClientRect(),ve=qe(je(Me.placement)),Te=ve===\"y\"?le:Fe,Ve=ve===\"y\"?I.left+I.right:I.top+I.bottom;return{offset:Te/2+Ve/2}})}},[ce,d,y,I,k]);F===\"shift\"||k===\"shift\"||i===\"center\"?Ce.push(Ae,xe):Ce.push(xe,Ae),Ce.push(us({...ce,apply({elements:{floating:Q},availableWidth:be,availableHeight:Me,rects:le}){if(!W.current)return;const Fe=Q.style;Fe.setProperty(\"--available-width\",`${be}px`),Fe.setProperty(\"--available-height\",`${Me}px`);const ve=_e(Q).devicePixelRatio||1,{x:Te,y:Ve,width:ze,height:Je}=le.reference,it=(Math.round((Te+ze)*ve)-Math.round(Te*ve))/ve,ut=(Math.round((Ve+Je)*ve)-Math.round(Ve*ve))/ve;Fe.setProperty(\"--anchor-width\",`${it}px`),Fe.setProperty(\"--anchor-height\",`${ut}px`)}}),ks(Q=>({element:te.current||rt(Q.elements.floating).createElement(\"div\"),padding:p,offsetParent:\"floating\"}),[p]),{name:\"transformOrigin\",fn(Q){const{elements:be,middlewareData:Me,placement:le,rects:Fe,y:ve}=Q,Te=je(le),Ve=qe(Te),ze=te.current,Je=Me.arrow?.x||0,it=Me.arrow?.y||0,ut=ze?.clientWidth||0,He=ze?.clientHeight||0,Xe=Je+ut/2,lt=it+He/2,xt=Math.abs(Me.shift?.y||0),K=Fe.reference.height/2,de=typeof o==\"function\"?o(Cn(Q,r,E)):o,ke=xt>de,Be={top:`${Xe}px calc(100% + ${de}px)`,bottom:`${Xe}px ${-de}px`,left:`calc(100% + ${de}px) ${lt}px`,right:`${-de}px ${lt}px`}[Te],Ye=`${Xe}px ${Fe.reference.y+K-ve}px`;return be.floating.style.setProperty(\"--transform-origin\",se&&Ve===\"y\"&&ke?Ye:Be),{}}},Ns,m),Z(()=>{!x&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[x,h]);const J=c.useMemo(()=>({elementResize:!u&&typeof ResizeObserver<\"u\",layoutShift:!u&&typeof IntersectionObserver<\"u\"}),[u]),{refs:ue,elements:fe,x:Re,y:ge,middlewareData:ne,update:ie,placement:P,context:S,isPositioned:q,floatingStyles:D}=ds({rootContext:h,open:a?x:void 0,placement:G,middleware:Ce,strategy:n,whileElementsMounted:a?void 0:(...Q)=>Sn(...Q,J),nodeId:b,externalTree:A}),{sideX:Y,sideY:me}=ne.adaptiveOrigin||kt,Ie=q?n:\"fixed\",De=c.useMemo(()=>{const Q=m?{position:Ie,[Y]:Re,[me]:ge}:{position:Ie,...D};return q||(Q.opacity=0),Q},[m,Ie,Y,Re,me,ge,D,q]),Se=c.useRef(null);Z(()=>{if(!x)return;const Q=H.current,be=typeof Q==\"function\"?Q():Q,le=(An(be)?be.current:be)||null||null;le!==Se.current&&(ue.setPositionReference(le),Se.current=le)},[x,ue,N,H]),c.useEffect(()=>{if(!x)return;const Q=H.current;typeof Q!=\"function\"&&An(Q)&&Q.current!==Se.current&&(ue.setPositionReference(Q.current),Se.current=Q.current)},[x,ue,N,H]),c.useEffect(()=>{if(a&&x&&fe.domReference&&fe.floating)return Sn(fe.domReference,fe.floating,ie,J)},[a,x,fe,ie,J]);const he=je(P),ye=hr(r,he,E),Ee=ht(P)||\"center\",Ue=!!ne.hide?.referenceHidden;Z(()=>{R&&x&&q&&M(he)},[R,x,q,he]);const st=c.useMemo(()=>({position:\"absolute\",top:ne.arrow?.y,left:ne.arrow?.x}),[ne.arrow]),Oe=ne.arrow?.centerOffset!==0;return c.useMemo(()=>({positionerStyles:De,arrowStyles:st,arrowRef:te,arrowUncentered:Oe,side:ye,align:Ee,physicalSide:he,anchorHidden:Ue,refs:ue,context:S,isPositioned:q,update:ie}),[De,st,te,Oe,ye,Ee,he,Ue,ue,S,q,ie])}function An(e){return e!=null&&\"current\"in e}const xr=c.createContext(void 0);function Bs(){const e=c.useContext(xr);if(!e)throw new Error(jt(59));return e}function _t(e,t){e&&Object.assign(e.style,t)}const Ws={position:\"relative\",maxHeight:\"100%\",overflowX:\"hidden\",overflowY:\"auto\"};function yr(e){return e===\"starting\"?eo:Fn}function _s(e,t,{styles:n,transitionStatus:r,props:o,refs:i,hidden:s,inert:l=!1}){const f={...n};return l&&(f.pointerEvents=\"none\"),dt(\"div\",e,{state:t,ref:i,props:[{role:\"presentation\",hidden:s,style:f},yr(r),o],stateAttributesMapping:Kn})}const $s=20;function js(e,t,n,r){const[o,i]=c.useState(!1);Z(()=>{if(!e||!t||n==null){i(!1);return}const s=rt(n).documentElement.clientWidth,l=n.offsetWidth;i(s>0&&l>0&&l>=s-$s)},[e,t,n]),to(e&&(!t||o),r)}const Us={position:\"fixed\"},zs=c.forwardRef(function(t,n){const{anchor:r,positionMethod:o=\"absolute\",className:i,render:s,side:l=\"bottom\",align:f=\"center\",sideOffset:d=0,alignOffset:p=0,collisionBoundary:u=\"clipping-ancestors\",collisionPadding:g,arrowPadding:a=5,sticky:h=!1,disableAnchorTracking:x,alignItemWithTrigger:w=!0,collisionAvoidance:y=no,style:b,...m}=t,{store:R,listRef:A,labelsRef:O,alignItemWithTriggerActiveRef:M,selectedItemTextRef:F,valuesRef:k,initialValueRef:V,popupRef:j,setValue:L}=at(),N=fr(),H=$(R,_.open),W=$(R,_.mounted),U=$(R,_.modal),E=$(R,_.value),C=$(R,_.openMethod),G=$(R,_.positionerElement),I=$(R,_.triggerElement),ee=$(R,_.isItemEqualToValue),oe=$(R,_.transitionStatus),v=c.useRef(null),T=c.useRef(null),[B,ce]=c.useState(w),te=W&&B&&C!==\"touch\";!W&&B!==w&&ce(w),Z(()=>{W||(_.scrollUpArrowVisible(R.state)&&R.set(\"scrollUpArrowVisible\",!1),_.scrollDownArrowVisible(R.state)&&R.set(\"scrollDownArrowVisible\",!1))},[R,W]),c.useImperativeHandle(M,()=>te),js((te||U)&&H,C===\"touch\",G,I);const ae=Hs({anchor:r,floatingRootContext:N,positionMethod:o,mounted:W,side:l,sideOffset:d,align:f,alignOffset:p,arrowPadding:a,collisionBoundary:u,collisionPadding:g,sticky:h,disableAnchorTracking:x??te,collisionAvoidance:y,keepMounted:!0}),pe=te?\"none\":ae.side,Le=te?Us:ae.positionerStyles,Ne={open:H,side:pe,align:ae.align,anchorHidden:ae.anchorHidden};Z(()=>{R.set(\"popupSide\",ae.side)},[R,ae.side]);const Ce=we(J=>{R.set(\"positionerElement\",J)}),z=_s(t,Ne,{styles:Le,transitionStatus:oe,props:m,refs:[n,Ce],hidden:!W,inert:!H}),se=c.useRef(0),xe=we(J=>{if(J.size===0&&se.current===0||k.current.length===0)return;const ue=se.current;if(se.current=J.size,J.size===ue)return;const fe=$e(an);if(ue!==0&&!R.state.multiple&&E!==null&&bt(k.current,E,ee)===-1){const ge=V.current,ie=ge!=null&&bt(k.current,ge,ee)!==-1?ge:null;L(ie,fe),ie===null&&(R.set(\"selectedIndex\",null),F.current=null)}if(ue!==0&&R.state.multiple&&Array.isArray(E)){const Re=ne=>bt(k.current,ne,ee)!==-1,ge=E.filter(ne=>Re(ne));(ge.length!==E.length||ge.some(ne=>!ws(E,ne,ee)))&&(L(ge,fe),ge.length===0&&(R.set(\"selectedIndex\",null),F.current=null))}if(H&&te){R.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const Re={height:\"\"};_t(G,Re),_t(j.current,Re)}}),Ae=c.useMemo(()=>({...ae,side:pe,alignItemWithTriggerActive:te,setControlledAlignItemWithTrigger:ce,scrollUpArrowRef:v,scrollDownArrowRef:T}),[ae,pe,te,ce]);return X.jsx(Ro,{elementsRef:A,labelsRef:O,onMapChange:xe,children:X.jsxs(xr.Provider,{value:Ae,children:[W&&U&&X.jsx(ro,{inert:oo(!H),cutout:I}),z]})})}),Pt=\"base-ui-disable-scrollbar\",Mn={className:Pt,getElement(e){return X.jsx(\"style\",{nonce:e,href:Pt,precedence:\"base-ui:low\",children:`.${Pt}{scrollbar-width:none}.${Pt}::-webkit-scrollbar{display:none}`})}},Ys=c.createContext(void 0);function Ks(e){return c.useContext(Ys)}const qs=c.createContext(void 0),Xs={disableStyleElements:!1};function Gs(){return c.useContext(qs)??Xs}const Js={...Kn,...co},Qs=c.forwardRef(function(t,n){const{render:r,className:o,style:i,finalFocus:s,...l}=t,{store:f,popupRef:d,onOpenChangeComplete:p,setOpen:u,valueRef:g,firstItemTextRef:a,selectedItemTextRef:h,keyboardActiveRef:x,multiple:w,handleScrollArrowVisibility:y,scrollHandlerRef:b,listRef:m,highlightItemOnHover:R}=at(),{side:A,align:O,alignItemWithTriggerActive:M,isPositioned:F,setControlledAlignItemWithTrigger:k,scrollDownArrowRef:V,scrollUpArrowRef:j}=Bs(),L=Ks()!=null,N=fr(),H=Qn(),{nonce:W,disableStyleElements:U}=Gs(),E=$(f,_.id),C=$(f,_.open),G=$(f,_.mounted),I=$(f,_.popupProps),ee=$(f,_.transitionStatus),oe=$(f,_.triggerElement),v=$(f,_.positionerElement),T=$(f,_.listElement),B=c.useRef(!1),ce=c.useRef(!1),te=c.useRef({}),ae=rn(),pe=we(z=>{if(!v||!d.current||!ce.current)return;if(B.current||!M){y();return}const se=v.style.top===\"0px\",xe=v.style.bottom===\"0px\";if(!se&&!xe){y();return}const Ae=On(v),J=Rt(v.getBoundingClientRect().height,\"y\",Ae),ue=rt(v),fe=getComputedStyle(v),Re=parseFloat(fe.marginTop),ge=parseFloat(fe.marginBottom),ne=In(getComputedStyle(d.current)),ie=Math.min(ue.documentElement.clientHeight-Re-ge,ne),P=z.scrollTop,S=Lt(z);let q=0,D=null,Y=!1,me=!1;const Ie=ye=>{v.style.height=`${ye}px`},De=(ye,Ee)=>{const Ue=wt(ye,0,ie-J);Ue>0&&Ie(J+Ue),z.scrollTop=Ee,ie-(J+Ue)<=Ze&&(B.current=!0),y()},Se=se?S-P:P,he=Math.min(J+Se,ie);if(q=he,Se<=Ze){De(Se,se?S:0);return}if(ie-he>Ze)se?me=!0:D=0;else if(Y=!0,xe&&PZe&&(z.scrollTop=Ee)}(Y||q>=ie-Ze)&&(B.current=!0),y()});c.useImperativeHandle(b,()=>pe,[pe]),Yn({open:C,ref:d,onComplete(){C&&p?.(!0)}});const Le={open:C,transitionStatus:ee,side:A,align:O};Z(()=>{!v||!d.current||Object.keys(te.current).length||(te.current={top:v.style.top||\"0\",left:v.style.left||\"0\",right:v.style.right,height:v.style.height,bottom:v.style.bottom,minHeight:v.style.minHeight,maxHeight:v.style.maxHeight,marginTop:v.style.marginTop,marginBottom:v.style.marginBottom})},[d,v]),Z(()=>{C||M||(ce.current=!1,B.current=!1,_t(v,te.current))},[C,M,v,d]),Z(()=>{const z=d.current;if(!C||!oe||!v||!z||M&&!F||f.state.transitionStatus===\"ending\")return;if(!M){ce.current=!0,ae.request(y),z.style.removeProperty(\"--transform-origin\");return}const se=Zs(z);z.style.removeProperty(\"--transform-origin\");try{let xe=h.current;xe?.isConnected||(xe=!_.hasSelectedValue(f.state)&&a.current?.isConnected?a.current:null);const Ae=g.current,J=getComputedStyle(v),ue=getComputedStyle(z),fe=rt(oe),Re=_e(v),ge=On(oe),ne=Dt(oe.getBoundingClientRect(),ge),ie=Dt(v.getBoundingClientRect(),ge),P=ne.height,S=T||z,q=S.scrollHeight,D=parseFloat(ue.borderBottomWidth),Y=parseFloat(J.marginTop)||10,me=parseFloat(J.marginBottom)||10,Ie=parseFloat(J.minHeight)||100,De=In(ue),Se=5,he=5,ye=20,Ee=fe.documentElement.clientHeight-Y-me,Ue=fe.documentElement.clientWidth,st=Ee-ne.bottom+P;let Oe,Q=H===\"rtl\"?ne.right-ie.width:ne.left,be=0;if(xe&&Ae){const He=Dt(Ae.getBoundingClientRect(),ge);Oe=Dt(xe.getBoundingClientRect(),ge),Q=ie.left+(H===\"rtl\"?He.right-Oe.right:He.left-Oe.left);const Xe=He.top-ne.top+He.height/2;be=Oe.top-ie.top+Oe.height/2-Xe}const Me=st+be+me+D;let le=Math.min(Ee,Me);const Fe=Ee-Y-me,ve=Me-le,Te=Ue-he;v.style.left=`${wt(Q,Se,Te-ie.width)}px`,v.style.height=`${le}px`,v.style.maxHeight=\"auto\",v.style.marginTop=`${Y}px`,v.style.marginBottom=`${me}px`,z.style.height=\"100%\";const Ve=Lt(S),ze=ve>=Ve-Ze;ze&&(le=Math.min(Ee,ie.height)-(ve-Ve));const Je=ne.topEe-ye||Math.ceil(le)+Ze=Fe?\"0\":`${He}px`,v.style.height=`${le}px`,S.scrollTop=Lt(S)}else v.style.bottom=\"0\",S.scrollTop=ve;if(Oe){const He=ie.top,Xe=ie.height,lt=Oe.top+Oe.height/2,xt=Xe>0?(lt-He)/Xe*100:50,K=wt(xt,0,100);z.style.setProperty(\"--transform-origin\",`50% ${K}%`)}(ut===Ee||le>=De)&&(B.current=!0),y(),R&&f.state.selectedIndex===null&&f.state.activeIndex===null&&m.current[0]!=null&&f.set(\"activeIndex\",0),ce.current=!0}finally{se()}},[f,C,v,oe,g,a,h,d,y,M,k,ae,V,j,T,m,R,H,F]),c.useEffect(()=>{if(!M||!v||!C)return;const z=_e(v);function se(xe){u(!1,$e(Or,xe))}return io(z,\"resize\",se)},[u,M,v,C]);const Ne={...T?{role:\"presentation\",\"aria-orientation\":void 0}:{role:\"listbox\",\"aria-multiselectable\":w||void 0,id:`${E}-list`},onKeyDown(z){x.current=!0,L&&ao.has(z.key)&&z.stopPropagation()},onMouseMove(){x.current=!1},onScroll(z){T||pe(z.currentTarget)},...M&&{style:T?{height:\"100%\"}:Ws}},Ce=dt(\"div\",t,{ref:[n,d],state:Le,stateAttributesMapping:Js,props:[I,Ne,yr(ee),{className:!T&&M?Mn.className:void 0},l]});return X.jsxs(c.Fragment,{children:[!U&&Mn.getElement(W),X.jsx(lo,{context:N,modal:!1,disabled:!G,returnFocus:s,restoreFocus:!0,children:Ce})]})});function In(e){const t=e.maxHeight||\"\";return t.endsWith(\"px\")&&parseFloat(t)||1/0}function Lt(e){return mr(e.scrollHeight,e.clientHeight)}function On(e){return sr.getScale(e)}function Rt(e,t,n){return e/n[t]}function Dt(e,t){return Et({x:Rt(e.x,\"x\",t),y:Rt(e.y,\"y\",t),width:Rt(e.width,\"x\",t),height:Rt(e.height,\"y\",t)})}const Tn=[[\"transform\",\"none\"],[\"scale\",\"1\"],[\"translate\",\"0 0\"]];function Zs(e){const{style:t}=e,n={};for(const[r,o]of Tn)n[r]=t.getPropertyValue(r),t.setProperty(r,o,\"important\");return()=>{for(const[r]of Tn){const o=n[r];o?t.setProperty(r,o):t.removeProperty(r)}}}const wr=c.createContext(void 0);function ei(){const e=c.useContext(wr);if(!e)throw new Error(jt(57));return e}const ti=c.memo(c.forwardRef(function(t,n){const{render:r,className:o,style:i,value:s=null,label:l,disabled:f=!1,nativeButton:d=!1,...p}=t,u=c.useRef(null),g=wo({label:l,textRef:u,indexGuessBehavior:Jn.GuessFromOrder}),{store:a,itemProps:h,setOpen:x,setValue:w,selectionRef:y,typingRef:b,valuesRef:m,multiple:R,selectedItemTextRef:A}=at(),O=$(a,_.isActive,g.index),M=$(a,_.isSelected,g.index,s),F=$(a,_.isSelectedByFocus,g.index),k=$(a,_.isItemEqualToValue),V=g.index,j=V!==-1,L=c.useRef(null);Z(()=>{if(!j)return;const T=m.current;return T[V]=s,()=>{delete T[V]}},[j,V,s,m]),Z(()=>{if(!j)return;const T=a.state.value;let B=T;R&&Array.isArray(T)&&T.length>0&&(B=T[T.length-1]),B!==void 0&&mt(s,B,k)&&(a.set(\"selectedIndex\",V),u.current&&(A.current=u.current))},[j,V,R,k,a,s,A]);const N=c.useRef(null),H=c.useRef(\"mouse\"),W=c.useRef(!1),{getButtonProps:U,buttonRef:E}=kn({disabled:f,focusableWhenDisabled:!0,native:d,composite:!0}),C={disabled:f,selected:M,highlighted:O};function G(T){const B=a.state.value;if(R){const ce=Array.isArray(B)?B:[],te=M?Rs(ce,s,k):[...ce,s];w(te,$e(Kt,T))}else w(s,$e(Kt,T)),x(!1,$e(Kt,T))}function I(){y.current.dragY=0}const ee={role:\"option\",\"aria-selected\":M,tabIndex:O?0:-1,onKeyDown(T){N.current=T.key,a.set(\"activeIndex\",V),T.key===\" \"&&b.current&&T.preventDefault()},onClick(T){const B=T.type===\"click\"&&H.current!==\"touch\",ce=T.nativeEvent.pointerType,te=B&&Un(T.nativeEvent)&&(ce!==void 0||O),ae=B&&!te&&!W.current;W.current=!1,!(T.type===\"keydown\"&&N.current===null)&&(f||T.type===\"keydown\"&&N.current===\" \"&&b.current||ae||(N.current=null,G(T.nativeEvent)))},onPointerEnter(T){H.current=T.pointerType},onPointerMove(T){if(T.pointerType===\"mouse\"&&T.buttons===1){const B=y.current;B.dragY+=T.movementY,B.dragY**2>=64&&(B.allowUnselectedMouseUp=!0)}},onPointerDown(T){H.current=T.pointerType,W.current=!0,I()},onMouseUp(){if(I(),f||H.current===\"touch\"||W.current)return;const T=!y.current.allowSelectedMouseUp&&M,B=!y.current.allowUnselectedMouseUp&&!M;T||B||(W.current=!0,L.current?.click(),W.current=!1)}},oe=dt(\"div\",t,{ref:[E,n,g.ref,L],state:C,props:[h,ee,p,U]}),v=c.useMemo(()=>({selected:M,index:V,textRef:u,selectedByFocus:F,hasRegistered:j}),[M,V,u,F,j]);return X.jsx(wr.Provider,{value:v,children:oe})})),ni=c.memo(c.forwardRef(function(t,n){const{index:r,textRef:o,selectedByFocus:i,hasRegistered:s}=ei(),{firstItemTextRef:l,selectedItemTextRef:f}=at(),{render:d,className:p,style:u,...g}=t,a=c.useCallback(x=>{x&&(s&&r===0&&(l.current=x),s&&i&&(f.current=x))},[l,f,r,i,s]);return dt(\"div\",t,{ref:[a,n,o],props:g})}));function mi(e){const{className:t,disabled:n,error:r,items:o,onChange:i,placeholder:s=\"Select an option\",value:l,...f}=e,d=o.find(p=>p.value===l);return X.jsxs(Es,{disabled:n,onValueChange:p=>{typeof p==\"string\"&&i(p)},value:l,children:[X.jsxs(Os,{className:br(\"flex h-[40px] w-full items-center gap-[10px] rounded-body border-[2px] border-transparent bg-secondary px-[12px] copy-14 text-foreground outline-none hover:bg-secondary-hover active:bg-secondary-active focus-visible:border-focus focus-visible:bg-secondary-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[error]:border-negative data-[error]:focus-visible:border-negative\",t),\"data-error\":r?\"\":void 0,...f,children:[X.jsx(Ps,{className:\"min-w-0 flex-1 truncate\",placeholder:X.jsx(\"span\",{className:\"text-foreground-secondary\",children:s}),children:d?X.jsx(oi,{item:d}):void 0}),X.jsx(Ls,{className:\"ml-auto shrink-0 text-foreground-secondary\",children:X.jsx(si,{})})]}),X.jsx(Fs,{children:X.jsx(zs,{alignItemWithTrigger:!1,className:\"z-50 outline-none\",sideOffset:4,children:X.jsx(Qs,{className:\"max-h-[288px] min-w-[var(--anchor-width)] overflow-auto rounded-body border border-border bg-surface py-[4px] shadow-lg\",children:o.map(p=>X.jsx(ti,{className:\"flex cursor-pointer items-center gap-[10px] px-[12px] py-[8px] label-14 text-foreground outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-secondary-hover data-[selected]:font-medium\",disabled:p.disabled,label:p.textValue,value:p.value,children:X.jsx(ri,{item:p})},p.value))})})})]})}function ri(e){const{item:t}=e;return X.jsxs(X.Fragment,{children:[t.prefix,X.jsx(ni,{children:t.label}),t.suffix&&X.jsx(\"span\",{className:\"ml-auto text-foreground-secondary\",children:t.suffix})]})}function oi(e){const{item:t}=e;return X.jsxs(\"span\",{className:\"flex min-w-0 items-center gap-[10px]\",children:[t.prefix,X.jsx(\"span\",{className:\"min-w-0 truncate\",children:t.label})]})}function si(){return X.jsx(\"svg\",{\"aria-hidden\":!0,className:\"size-[16px]\",fill:\"none\",viewBox:\"0 0 24 24\",children:X.jsx(\"path\",{d:\"m6 9 6 6 6-6\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:\"2\"})})}export{Ro as C,mi as S,Ks as a,Hs as b,gi as c,js as d,_s as e,Qn as f,yr as g,hs as h,xs as i,As as j,wo as u};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/styles-CV_vovhO.css": {
"content": "@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-content:\"\";--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:var(--font-body,ui-sans-serif, system-ui, sans-serif);--font-mono:ui-monospace, monospace;--spacing:.25rem;--container-md:28rem;--container-xl:36rem;--container-2xl:42rem;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-normal:0em;--leading-tight:1.25;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--text-heading-64:4rem;--text-heading-64--letter-spacing:0;--text-heading-64--line-height:1.1;--text-heading-64--font-weight:600;--text-heading-48:3rem;--text-heading-48--letter-spacing:0;--text-heading-48--line-height:1.15;--text-heading-48--font-weight:600;--text-heading-40:2.5rem;--text-heading-40--letter-spacing:0;--text-heading-40--line-height:1.2;--text-heading-40--font-weight:600;--text-heading-32:2rem;--text-heading-32--letter-spacing:0;--text-heading-32--line-height:1.25;--text-heading-32--font-weight:500;--text-heading-24:1.5rem;--text-heading-24--letter-spacing:0;--text-heading-24--line-height:1.35;--text-heading-24--font-weight:500;--text-heading-20:1.25rem;--text-heading-20--line-height:1.4;--text-heading-20--letter-spacing:.01em;--text-heading-20--font-weight:500;--text-heading-16:1rem;--text-heading-16--line-height:1.5;--text-heading-16--letter-spacing:.01em;--text-heading-16--font-weight:500;--text-copy-16:1rem;--text-copy-16--line-height:1.6;--text-copy-16--letter-spacing:.01em;--text-copy-16--font-weight:400;--text-copy-15:.9375rem;--text-copy-15--line-height:1.6;--text-copy-15--letter-spacing:.01em;--text-copy-15--font-weight:400;--text-copy-14:.875rem;--text-copy-14--line-height:1.6;--text-copy-14--letter-spacing:.01em;--text-copy-14--font-weight:400;--text-copy-13:.8125rem;--text-copy-13--line-height:1.55;--text-copy-13--letter-spacing:.01em;--text-copy-13--font-weight:400;--text-label-16:1rem;--text-label-16--line-height:1.5;--text-label-16--letter-spacing:.01em;--text-label-16--font-weight:400;--text-label-15:.9375rem;--text-label-15--line-height:1.45;--text-label-15--letter-spacing:.01em;--text-label-15--font-weight:400;--text-label-14:.875rem;--text-label-14--line-height:1.45;--text-label-14--letter-spacing:.01em;--text-label-14--font-weight:400;--text-label-13:.8125rem;--text-label-13--line-height:1.4;--text-label-13--letter-spacing:.01em;--text-label-13--font-weight:400;--text-label-12:.75rem;--text-label-12--line-height:1.35;--text-label-12--letter-spacing:.01em;--text-label-12--font-weight:400;--text-button-16:1rem;--text-button-16--line-height:1.5;--text-button-16--letter-spacing:.01em;--text-button-16--font-weight:500;--text-button-14:.875rem;--text-button-14--line-height:1.45;--text-button-14--letter-spacing:.01em;--text-button-14--font-weight:500;--text-button-12:.75rem;--text-button-12--line-height:1.35;--text-button-12--letter-spacing:.01em;--text-button-12--font-weight:500;--radius-base:var(--regen-radius,6px);--radius-body:var(--regen-radius-body,var(--radius-base));--radius-button:var(--regen-radius-button,var(--radius-base));--radius-identicon:var(--regen-radius-identicon,var(--radius-base));--color-transparent:#0000;--color-current:currentColor;--color-black:#000;--color-white:#fff;--color-gray-1:oklch(96.19% 0 0);--color-gray-2:oklch(93.89% 0 0);--color-gray-3:oklch(92.34% 0 0);--color-gray-4:oklch(93.89% 0 0);--color-gray-5:oklch(83.73% 0 0);--color-gray-6:oklch(73.26% 0 0);--color-gray-7:oklch(64.95% 0 0);--color-gray-8:oklch(58.95% 0 0);--color-gray-9:oklch(51.02% 0 0);--color-gray-10:oklch(20.44% 0 0);--color-gray-dark-1:oklch(21.56% 0 0);--color-gray-dark-2:oklch(23.76% 0 0);--color-gray-dark-3:oklch(28.01% 0 0);--color-gray-dark-4:oklch(30.08% 0 0);--color-gray-dark-5:oklch(38.99% 0 0);--color-gray-dark-6:oklch(62.38% 0 0);--color-gray-dark-7:oklch(64.95% 0 0);--color-gray-dark-8:oklch(58.95% 0 0);--color-gray-dark-9:oklch(70.8% 0 0);--color-gray-dark-10:oklch(94.66% 0 0);--color-red-1:oklch(96.5% .0221 13.48);--color-red-2:oklch(95.41% .0292 15.02);--color-red-3:oklch(94.33% .0357 16.17);--color-red-4:oklch(91.51% .045 21.34);--color-red-5:oklch(84.47% .0962 19.64);--color-red-6:oklch(72.8% .1735 23.51);--color-red-7:oklch(65.32% .2328 25.73);--color-red-8:oklch(60.95% .2289 27.85);--color-red-9:oklch(57.75% .214 27.99);--color-red-10:oklch(24.8% .096 19.67);--color-red-dark-1:oklch(22.1% .0658 15.41);--color-red-dark-2:oklch(25.93% .0835 19.61);--color-red-dark-3:oklch(31.47% .1108 21.85);--color-red-dark-4:oklch(35.27% .1277 22.42);--color-red-dark-5:oklch(40.68% .1485 24.65);--color-red-dark-6:oklch(66.2% .2289 24.8);--color-red-dark-7:oklch(66.2% .2246 25.11);--color-red-dark-8:oklch(61.83% .2282 27.2);--color-red-dark-9:oklch(71.38% .2147 23.49);--color-red-dark-10:oklch(95.6% .0295 7.03);--color-amber-1:oklch(97.48% .0331 85.79);--color-amber-2:oklch(96.81% .0495 90.24);--color-amber-3:oklch(95.93% .0636 90.52);--color-amber-4:oklch(91.02% .1322 88.25);--color-amber-5:oklch(86.55% .1583 79.63);--color-amber-6:oklch(80.25% .1953 73.59);--color-amber-7:oklch(81.87% .1969 76.46);--color-amber-8:oklch(77.21% .1991 64.28);--color-amber-9:oklch(52.79% .1496 54.65);--color-amber-10:oklch(30.83% .099 45.48);--color-amber-dark-1:oklch(22.46% .0538 76.04);--color-amber-dark-2:oklch(24.95% .0642 64.78);--color-amber-dark-3:oklch(32.34% .0837 63.83);--color-amber-dark-4:oklch(35.53% .0903 66.3);--color-amber-dark-5:oklch(41.55% .1044 67.98);--color-amber-dark-6:oklch(75.04% .1737 74.49);--color-amber-dark-7:oklch(81.87% .1969 76.46);--color-amber-dark-8:oklch(77.21% .1991 64.28);--color-amber-dark-9:oklch(77.21% .1991 64.28);--color-amber-dark-10:oklch(96.7% .0418 84.59);--color-green-1:oklch(97.59% .0294 145.45);--color-green-2:oklch(96.92% .0382 147.2);--color-green-3:oklch(94.6% .0707 144.31);--color-green-4:oklch(91.49% .1039 146.35);--color-green-5:oklch(85.45% .1759 146.44);--color-green-6:oklch(82.36% .2383 145.34);--color-green-7:oklch(73.03% .1944 147.46);--color-green-8:oklch(66.26% .1678 147.69);--color-green-9:oklch(60.2% .1618 147.84);--color-green-10:oklch(29.15% .1333 147.44);--color-green-dark-1:oklch(23.09% .0721 149.64);--color-green-dark-2:oklch(27.12% .0907 150.01);--color-green-dark-3:oklch(29.84% .0979 149.13);--color-green-dark-4:oklch(34.39% .1066 147.63);--color-green-dark-5:oklch(44.19% .1533 147.01);--color-green-dark-6:oklch(65.6% .1899 146.32);--color-green-dark-7:oklch(75.55% .2082 147);--color-green-dark-8:oklch(68.78% .1858 147.23);--color-green-dark-9:oklch(81.51% .2258 148.1);--color-green-dark-10:oklch(96.76% .0586 154.13);--color-blue-1:oklch(97.32% .0141 252.29);--color-blue-2:oklch(96.29% .0197 252.04);--color-blue-3:oklch(94.58% .0296 252.02);--color-blue-4:oklch(91.58% .0481 248.01);--color-blue-5:oklch(82.75% .0998 252.1);--color-blue-6:oklch(71.4% .1308 251.19);--color-blue-7:oklch(53.23% .2073 259.16);--color-blue-8:oklch(47.13% .1983 258.78);--color-blue-9:oklch(53.18% .2399 256.99);--color-blue-10:oklch(26.67% .1129 255.03);--color-blue-dark-1:oklch(22.17% .0695 261.1);--color-blue-dark-2:oklch(25.45% .0824 258.21);--color-blue-dark-3:oklch(30.86% .1046 258.84);--color-blue-dark-4:oklch(34.1% .1247 259.58);--color-blue-dark-5:oklch(38.5% .1456 260.45);--color-blue-dark-6:oklch(51.25% .1722 256.97);--color-blue-dark-7:oklch(49.75% .2015 259.95);--color-blue-dark-8:oklch(43.65% .2003 259.57);--color-blue-dark-9:oklch(71.7% .1648 250.79);--color-blue-dark-10:oklch(96.75% .0188 243.43);--color-purple-1:oklch(96.65% .0236 308.36);--color-purple-2:oklch(96.73% .0213 302.14);--color-purple-3:oklch(94.85% .0327 298.66);--color-purple-4:oklch(91.77% .0531 297.5);--color-purple-5:oklch(81.26% .1171 291.65);--color-purple-6:oklch(72.23% .159 285.4);--color-purple-7:oklch(55.95% .2296 279.31);--color-purple-8:oklch(49.03% .2014 278.92);--color-purple-9:oklch(47.63% .1969 277.19);--color-purple-10:oklch(23.96% .0992 297.62);--color-purple-dark-1:oklch(22.34% .0766 312.38);--color-purple-dark-2:oklch(25.91% .089 305.43);--color-purple-dark-3:oklch(31.98% .1158 298.94);--color-purple-dark-4:oklch(35.93% .1403 291.82);--color-purple-dark-5:oklch(40.99% .1576 285.47);--color-purple-dark-6:oklch(64.12% .1933 279.4);--color-purple-dark-7:oklch(64.12% .1929 274.69);--color-purple-dark-8:oklch(57.2% .1855 274.3);--color-purple-dark-9:oklch(74.18% .1798 287.51);--color-purple-dark-10:oklch(96.1% .0268 310.17);--background-color-background:light-dark(#fafafa,#0c0c0c);--background-color-surface:light-dark(#fff,#141414);--background-color-surface-hover:light-dark(oklch(96.19% 0 0),oklch(21.56% 0 0));--background-color-surface-active:light-dark(oklch(93.89% 0 0),oklch(23.76% 0 0));--background-color-secondary:light-dark(oklch(93.89% 0 0),oklch(23.76% 0 0));--background-color-secondary-hover:light-dark(oklch(from var(--background-color-secondary) calc(l - .015) c h),oklch(from var(--background-color-secondary) calc(l + .02) c h));--background-color-secondary-active:light-dark(oklch(from var(--background-color-secondary) calc(l - .03) c h),oklch(from var(--background-color-secondary) calc(l + .035) c h));--background-color-pane:light-dark(oklch(96.19% 0 0),oklch(23.76% 0 0));--background-color-accent:var(--regen-accent);--background-color-accent-hover:oklch(from var(--background-color-accent) calc(l + clamp(0, (.6 - l) * 999, 1)*.045 - (clamp(0, (l - .6) * 999, 1)*.035)) calc(c*.98) h);--background-color-accent-active:oklch(from var(--background-color-accent) calc(l + clamp(0, (.6 - l) * 999, 1)*.075 - (clamp(0, (l - .6) * 999, 1)*.06)) calc(c*.96) h);--background-color-accent-subtle:light-dark(#fafafa,#0c0c0c)}@supports (color:color-mix(in lab,red,red)){:root,:host{--background-color-accent-subtle:color-mix(in oklch, var(--background-color-background), var(--background-color-accent) 12%)}}:root,:host{--background-color-invert:light-dark(#000,#fff);--background-color-negative:light-dark(oklch(61.82% .19788 25.73),oklch(59.7% .184172 25.11));--background-color-negative-hover:light-dark(oklch(from var(--background-color-negative) calc(l - .03) calc(c*1.05) h),oklch(from var(--background-color-negative) calc(l - .025) calc(c*1.05) h));--background-color-negative-active:light-dark(oklch(from var(--background-color-negative) calc(l - .06) calc(c*1.08) h),oklch(from var(--background-color-negative) calc(l - .05) calc(c*1.08) h));--background-color-negative-subtle:light-dark(oklch(96.5% .0221 13.48),oklch(22.1% .0658 15.41));--background-color-info-subtle:light-dark(oklch(97.32% .0141 252.29),oklch(22.17% .0695 261.1));--background-color-positive-subtle:light-dark(oklch(96.92% .0382 147.2),oklch(27.12% .0907 150.01));--background-color-skeleton:light-dark(oklch(92.34% 0 0),oklch(28.01% 0 0));--background-color-warning-subtle:light-dark(oklch(97.48% .0331 85.79),oklch(22.46% .0538 76.04));--text-color-foreground:light-dark(oklch(20.44% 0 0),oklch(94.66% 0 0));--text-color-foreground-secondary:light-dark(oklch(51.02% 0 0),oklch(70.8% 0 0));--text-color-foreground-secondary-hover:light-dark(oklch(20.44% 0 0),oklch(94.66% 0 0));--text-color-on-accent:oklch(from var(--regen-accent) clamp(0, (.6 - l) * 999, 1) 0 0);--text-color-on-accent-subtle:light-dark(oklch(20.44% 0 0),oklch(94.66% 0 0))}@supports (color:color-mix(in lab,red,red)){:root,:host{--text-color-on-accent-subtle:color-mix(in oklch, var(--text-color-foreground), var(--background-color-accent) 72%)}}:root,:host{--text-color-on-invert:light-dark(#fff,#000);--text-color-on-negative:#fff;--text-color-negative:light-dark(oklch(57.75% .214 27.99),oklch(71.38% .2147 23.49));--text-color-info:light-dark(oklch(53.18% .2399 256.99),oklch(71.7% .1648 250.79));--text-color-positive:light-dark(oklch(60.2% .1618 147.84),oklch(81.51% .2258 148.1));--text-color-warning:light-dark(oklch(52.79% .1496 54.65),oklch(77.21% .1991 64.28));--text-color-warning-strong:light-dark(oklch(30.83% .099 45.48),oklch(96.7% .0418 84.59));--border-color-border:light-dark(oklch(93.89% 0 0),oklch(30.08% 0 0));--border-color-border-hover:light-dark(oklch(83.73% 0 0),oklch(38.99% 0 0));--border-color-border-pane:light-dark(oklch(91.3% 0 0),oklch(28.01% 0 0));--border-color-focus:light-dark(oklch(53.23% .2073 259.16),oklch(71.7% .1648 250.79));--border-color-negative:light-dark(oklch(91.51% .045 21.34),oklch(35.27% .1277 22.42));--border-color-info:light-dark(oklch(91.58% .0481 248.01),oklch(34.1% .1247 259.58));--border-color-warning:light-dark(oklch(91.02% .1322 88.25),oklch(35.53% .0903 66.3));--background-color-error-subtle:var(--background-color-negative-subtle);--background-color-success-subtle:var(--background-color-positive-subtle);--text-color-negative-text:var(--text-color-negative);--text-color-error:var(--text-color-negative);--text-color-success:var(--text-color-positive);--border-color-error:var(--border-color-negative);--outline-color-focus:light-dark(oklch(53.23% .2073 259.16),oklch(71.7% .1648 250.79))}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{inset-block:0}.-top-px{top:-1px}.top-0{top:0}.top-1\\.5{top:calc(var(--spacing) * 1.5)}.top-1\\/2{top:50%}.top-full{top:100%}.right-0{right:0}.right-3{right:calc(var(--spacing) * 3)}.right-\\[var\\(--rows-row-divider-right\\)\\]{right:var(--rows-row-divider-right)}.bottom-\\[-1px\\]{bottom:-1px}.-left-\\[19px\\]{left:-19px}.left-0{left:0}.left-1\\/2{left:50%}.left-\\[var\\(--rows-row-divider-left\\)\\]{left:var(--rows-row-divider-left)}.isolate{isolation:isolate}.z-1{z-index:1}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-0\\.5{margin-inline:calc(var(--spacing) * .5)}.mx-\\[-14px\\]{margin-inline:-14px}.-mt-2{margin-top:calc(var(--spacing) * -2)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.-mr-2{margin-right:calc(var(--spacing) * -2)}.mr-\\[-6px\\]{margin-right:-6px}.mr-\\[-14px\\]{margin-right:-14px}.mr-auto{margin-right:auto}.-mb-1{margin-bottom:calc(var(--spacing) * -1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.ml-\\[-14px\\]{margin-left:-14px}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.field-sizing-content{field-sizing:content}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-\\[6px\\]{width:6px;height:6px}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.size-\\[18px\\]{width:18px;height:18px}.size-\\[24px\\]{width:24px;height:24px}.size-\\[40px\\]{width:40px;height:40px}.size-\\[48px\\]{width:48px;height:48px}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-10{height:calc(var(--spacing) * 10)}.h-\\[1px\\]{height:1px}.h-\\[12px\\]{height:12px}.h-\\[13px\\]{height:13px}.h-\\[14px\\]{height:14px}.h-\\[16px\\]{height:16px}.h-\\[20px\\]{height:20px}.h-\\[24px\\]{height:24px}.h-\\[32px\\]{height:32px}.h-\\[36px\\]{height:36px}.h-\\[38px\\]{height:38px}.h-\\[40px\\]{height:40px}.h-\\[44px\\]{height:44px}.h-dvh{height:100dvh}.h-px{height:1px}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-\\[288px\\]{max-height:288px}.max-h-\\[calc\\(100dvh-2rem\\)\\]{max-height:calc(100dvh - 2rem)}.min-h-0{min-height:0}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-28{min-height:calc(var(--spacing) * 28)}.min-h-\\[44px\\]{min-height:44px}.min-h-\\[56px\\]{min-height:56px}.min-h-\\[60px\\]{min-height:60px}.min-h-\\[64px\\]{min-height:64px}.min-h-\\[180px\\]{min-height:180px}.min-h-dvh{min-height:100dvh}.min-h-screen{min-height:100vh}.w-9{width:calc(var(--spacing) * 9)}.w-28{width:calc(var(--spacing) * 28)}.w-32{width:calc(var(--spacing) * 32)}.w-40{width:calc(var(--spacing) * 40)}.w-\\[12ch\\]{width:12ch}.w-\\[12px\\]{width:12px}.w-\\[16px\\]{width:16px}.w-\\[20px\\]{width:20px}.w-\\[24px\\]{width:24px}.w-\\[28px\\]{width:28px}.w-\\[32px\\]{width:32px}.w-\\[36px\\]{width:36px}.w-\\[38px\\]{width:38px}.w-\\[44px\\]{width:44px}.w-\\[64px\\]{width:64px}.w-\\[72px\\]{width:72px}.w-\\[88px\\]{width:88px}.w-\\[96px\\]{width:96px}.w-\\[112px\\]{width:112px}.w-\\[128px\\]{width:128px}.w-\\[260px\\]{width:260px}.w-\\[calc\\(100\\%\\+14px\\)\\]{width:calc(100% + 14px)}.w-\\[calc\\(100\\%\\+28px\\)\\]{width:calc(100% + 28px)}.w-\\[calc\\(100vw-2rem\\)\\]{width:calc(100vw - 2rem)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-44{max-width:calc(var(--spacing) * 44)}.max-w-64{max-width:calc(var(--spacing) * 64)}.max-w-\\[384px\\]{max-width:384px}.max-w-\\[1024px\\]{max-width:1024px}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:0}.min-w-24{min-width:calc(var(--spacing) * 24)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-\\[360px\\]{min-width:360px}.min-w-\\[680px\\]{min-width:680px}.min-w-\\[720px\\]{min-width:720px}.min-w-\\[820px\\]{min-width:820px}.min-w-\\[960px\\]{min-width:960px}.min-w-\\[var\\(--anchor-width\\)\\]{min-width:var(--anchor-width)}.min-w-max{min-width:max-content}.flex-1{flex:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-rgn-spin{animation:1s linear infinite rgn-spin}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-y{resize:vertical}.auto-cols-fr{grid-auto-columns:minmax(0,1fr)}.grid-flow-col{grid-auto-flow:column}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[minmax\\(0\\,max-content\\)_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,max-content) minmax(0,1fr)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-around{justify-content:space-around}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\\[2px\\]{gap:2px}.gap-\\[4px\\]{gap:4px}.gap-\\[6px\\]{gap:6px}.gap-\\[8px\\]{gap:8px}.gap-\\[10px\\]{gap:10px}.gap-\\[12px\\]{gap:12px}.gap-\\[14px\\]{gap:14px}.gap-\\[16px\\]{gap:16px}.gap-\\[inherit\\]{gap:inherit}.gap-px{gap:1px}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-10{column-gap:calc(var(--spacing) * 10)}.gap-y-1{row-gap:var(--spacing)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--border-color-border)}.self-center{align-self:center}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-\\[min\\(var\\(--radius-body\\)\\,var\\(--regen-radius-large\\)\\)\\]{border-radius:min(var(--radius-body),var(--regen-radius-large))}.rounded-body{border-radius:var(--radius-body)}.rounded-button{border-radius:var(--radius-button)}.rounded-full{border-radius:3.40282e38px}.rounded-identicon{border-radius:var(--radius-identicon)}.rounded-none{border-radius:0}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2,.border-\\[2px\\]{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-border{border-color:var(--border-color-border)}.border-border-pane{border-color:var(--border-color-border-pane)}.border-info{border-color:var(--border-color-info)}.border-negative{border-color:var(--border-color-negative)}.border-transparent{border-color:#0000}.border-warning{border-color:var(--border-color-warning)}.bg-accent{background-color:var(--background-color-accent)}.bg-accent-subtle{background-color:var(--background-color-accent-subtle)}.bg-background{background-color:var(--background-color-background)}.bg-black\\/60{background-color:#0009}@supports (color:color-mix(in lab,red,red)){.bg-black\\/60{background-color:color-mix(in oklab,var(--color-black) 60%,transparent)}}.bg-current{background-color:currentColor}.bg-info-subtle{background-color:var(--background-color-info-subtle)}.bg-negative{background-color:var(--background-color-negative)}.bg-negative-subtle{background-color:var(--background-color-negative-subtle)}.bg-pane{background-color:var(--background-color-pane)}.bg-positive-subtle{background-color:var(--background-color-positive-subtle)}.bg-secondary{background-color:var(--background-color-secondary)}.bg-secondary-hover{background-color:var(--background-color-secondary-hover)}.bg-skeleton{background-color:var(--background-color-skeleton)}.bg-surface{background-color:var(--background-color-surface)}.bg-transparent{background-color:#0000}.bg-warning-subtle{background-color:var(--background-color-warning-subtle)}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-\\[2px\\]{padding:2px}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\\[5px\\]{padding-inline:5px}.px-\\[6px\\]{padding-inline:6px}.px-\\[12px\\]{padding-inline:12px}.px-\\[14px\\]{padding-inline:14px}.px-\\[16px\\]{padding-inline:16px}.px-\\[20px\\]{padding-inline:20px}.px-\\[22px\\]{padding-inline:22px}.px-\\[24px\\]{padding-inline:24px}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-\\[2px\\]{padding-block:2px}.py-\\[3px\\]{padding-block:3px}.py-\\[4px\\]{padding-block:4px}.py-\\[8px\\]{padding-block:8px}.py-\\[10px\\]{padding-block:10px}.py-\\[12px\\]{padding-block:12px}.py-\\[48px\\]{padding-block:48px}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pr-1{padding-right:var(--spacing)}.pr-12{padding-right:calc(var(--spacing) * 12)}.pr-\\[10px\\]{padding-right:10px}.pr-\\[var\\(--rows-row-padding-right\\,20px\\)\\]{padding-right:var(--rows-row-padding-right,20px)}.pb-1{padding-bottom:var(--spacing)}.pb-1\\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-\\[env\\(safe-area-inset-bottom\\)\\]{padding-bottom:env(safe-area-inset-bottom)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-\\[10px\\]{padding-left:10px}.pl-\\[var\\(--rows-pane-content-padding-left\\)\\]{padding-left:var(--rows-pane-content-padding-left)}.pl-\\[var\\(--rows-row-padding-left\\,20px\\)\\]{padding-left:var(--rows-row-padding-left,20px)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.button-12{font-size:var(--text-button-12);letter-spacing:var(--text-button-12--letter-spacing);line-height:var(--text-button-12--line-height);font-weight:var(--text-button-12--font-weight)}.button-14{font-size:var(--text-button-14);letter-spacing:var(--text-button-14--letter-spacing);line-height:var(--text-button-14--line-height);font-weight:var(--text-button-14--font-weight)}.button-16{font-size:var(--text-button-16);letter-spacing:var(--text-button-16--letter-spacing);line-height:var(--text-button-16--line-height);font-weight:var(--text-button-16--font-weight)}.copy-13{font-size:var(--text-copy-13);letter-spacing:var(--text-copy-13--letter-spacing);line-height:var(--text-copy-13--line-height);font-weight:var(--text-copy-13--font-weight)}.copy-14{font-size:var(--text-copy-14);letter-spacing:var(--text-copy-14--letter-spacing);line-height:var(--text-copy-14--line-height);font-weight:var(--text-copy-14--font-weight)}.copy-15{font-size:var(--text-copy-15);letter-spacing:var(--text-copy-15--letter-spacing);line-height:var(--text-copy-15--line-height);font-weight:var(--text-copy-15--font-weight)}.copy-16{font-size:var(--text-copy-16);letter-spacing:var(--text-copy-16--letter-spacing);line-height:var(--text-copy-16--line-height);font-weight:var(--text-copy-16--font-weight)}.heading-16{font-size:var(--text-heading-16);letter-spacing:var(--text-heading-16--letter-spacing);line-height:var(--text-heading-16--line-height);font-weight:var(--text-heading-16--font-weight)}.heading-20{font-size:var(--text-heading-20);letter-spacing:var(--text-heading-20--letter-spacing);line-height:var(--text-heading-20--line-height);font-weight:var(--text-heading-20--font-weight)}.heading-24{font-size:var(--text-heading-24);letter-spacing:var(--text-heading-24--letter-spacing);line-height:var(--text-heading-24--line-height);font-weight:var(--text-heading-24--font-weight)}.heading-32{font-size:var(--text-heading-32);letter-spacing:var(--text-heading-32--letter-spacing);line-height:var(--text-heading-32--line-height);font-weight:var(--text-heading-32--font-weight)}.heading-40{font-size:var(--text-heading-40);letter-spacing:var(--text-heading-40--letter-spacing);line-height:var(--text-heading-40--line-height);font-weight:var(--text-heading-40--font-weight)}.heading-48{font-size:var(--text-heading-48);letter-spacing:var(--text-heading-48--letter-spacing);line-height:var(--text-heading-48--line-height);font-weight:var(--text-heading-48--font-weight)}.heading-64{font-size:var(--text-heading-64);letter-spacing:var(--text-heading-64--letter-spacing);line-height:var(--text-heading-64--line-height);font-weight:var(--text-heading-64--font-weight)}.label-12{font-size:var(--text-label-12);letter-spacing:var(--text-label-12--letter-spacing);line-height:var(--text-label-12--line-height);font-weight:var(--text-label-12--font-weight)}.label-13{font-size:var(--text-label-13);letter-spacing:var(--text-label-13--letter-spacing);line-height:var(--text-label-13--line-height);font-weight:var(--text-label-13--font-weight)}.label-14{font-size:var(--text-label-14);letter-spacing:var(--text-label-14--letter-spacing);line-height:var(--text-label-14--line-height);font-weight:var(--text-label-14--font-weight)}.label-15{font-size:var(--text-label-15);letter-spacing:var(--text-label-15--letter-spacing);line-height:var(--text-label-15--line-height);font-weight:var(--text-label-15--font-weight)}.label-16{font-size:var(--text-label-16);letter-spacing:var(--text-label-16--letter-spacing);line-height:var(--text-label-16--line-height);font-weight:var(--text-label-16--font-weight)}.text-copy-13{font-size:var(--text-copy-13);line-height:var(--tw-leading,var(--text-copy-13--line-height));letter-spacing:var(--tw-tracking,var(--text-copy-13--letter-spacing));font-weight:var(--tw-font-weight,var(--text-copy-13--font-weight))}.text-copy-14{font-size:var(--text-copy-14);line-height:var(--tw-leading,var(--text-copy-14--line-height));letter-spacing:var(--tw-tracking,var(--text-copy-14--letter-spacing));font-weight:var(--tw-font-weight,var(--text-copy-14--font-weight))}.text-copy-15{font-size:var(--text-copy-15);line-height:var(--tw-leading,var(--text-copy-15--line-height));letter-spacing:var(--tw-tracking,var(--text-copy-15--letter-spacing));font-weight:var(--tw-font-weight,var(--text-copy-15--font-weight))}.text-heading-16{font-size:var(--text-heading-16);line-height:var(--tw-leading,var(--text-heading-16--line-height));letter-spacing:var(--tw-tracking,var(--text-heading-16--letter-spacing));font-weight:var(--tw-font-weight,var(--text-heading-16--font-weight))}.text-heading-20{font-size:var(--text-heading-20);line-height:var(--tw-leading,var(--text-heading-20--line-height));letter-spacing:var(--tw-tracking,var(--text-heading-20--letter-spacing));font-weight:var(--tw-font-weight,var(--text-heading-20--font-weight))}.text-heading-24{font-size:var(--text-heading-24);line-height:var(--tw-leading,var(--text-heading-24--line-height));letter-spacing:var(--tw-tracking,var(--text-heading-24--letter-spacing));font-weight:var(--tw-font-weight,var(--text-heading-24--font-weight))}.text-label-12{font-size:var(--text-label-12);line-height:var(--tw-leading,var(--text-label-12--line-height));letter-spacing:var(--tw-tracking,var(--text-label-12--letter-spacing));font-weight:var(--tw-font-weight,var(--text-label-12--font-weight))}.text-label-13{font-size:var(--text-label-13);line-height:var(--tw-leading,var(--text-label-13--line-height));letter-spacing:var(--tw-tracking,var(--text-label-13--letter-spacing));font-weight:var(--tw-font-weight,var(--text-label-13--font-weight))}.text-label-14{font-size:var(--text-label-14);line-height:var(--tw-leading,var(--text-label-14--line-height));letter-spacing:var(--tw-tracking,var(--text-label-14--letter-spacing));font-weight:var(--tw-font-weight,var(--text-label-14--font-weight))}.text-label-16{font-size:var(--text-label-16);line-height:var(--tw-leading,var(--text-label-16--line-height));letter-spacing:var(--tw-tracking,var(--text-label-16--letter-spacing));font-weight:var(--tw-font-weight,var(--text-label-16--font-weight))}.text-\\[10px\\]{font-size:10px}.leading-none{--tw-leading:1;line-height:1}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.tracking-\\[0\\.06em\\]{--tw-tracking:.06em;letter-spacing:.06em}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.text-foreground{color:var(--text-color-foreground)}.text-foreground-secondary{color:var(--text-color-foreground-secondary)}.text-info{color:var(--text-color-info)}.text-negative{color:var(--text-color-negative)}.text-on-accent{color:var(--text-color-on-accent)}.text-on-accent-subtle{color:var(--text-color-on-accent-subtle)}.text-on-invert{color:var(--text-color-on-invert)}.text-on-negative{color:var(--text-color-on-negative)}.text-positive{color:var(--text-color-positive)}.text-transparent{color:#0000}.text-warning{color:var(--text-color-warning)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.decoration-current\\/40{text-decoration-color:currentColor}@supports (color:color-mix(in lab,red,red)){.decoration-current\\/40{-webkit-text-decoration-color:color-mix(in oklab,currentcolor 40%,transparent);text-decoration-color:color-mix(in oklab,currentcolor 40%,transparent)}}.underline-offset-2{text-underline-offset:2px}.caret-\\[var\\(--text-color-foreground\\)\\]{caret-color:var(--text-color-foreground)}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-\\[2px\\]{outline-style:var(--tw-outline-style);outline-width:2px}.outline-offset-\\[2px\\]{outline-offset:2px}.outline-transparent{outline-color:#0000}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[--rows-divider\\:var\\(--border-color-border\\)\\]{--rows-divider:var(--border-color-border)}.\\[--rows-divider\\:var\\(--border-color-border-pane\\)\\]{--rows-divider:var(--border-color-border-pane)}.\\[--rows-group-divider-left\\:0px\\]{--rows-group-divider-left:0px}.\\[--rows-group-divider-left\\:20px\\]{--rows-group-divider-left:20px}.\\[--rows-pane-content-padding-left\\:0px\\]{--rows-pane-content-padding-left:0px}.\\[--rows-pane-content-padding-left\\:20px\\]{--rows-pane-content-padding-left:20px}.\\[--rows-pane-content-padding-left\\:48px\\]{--rows-pane-content-padding-left:48px}.\\[--rows-row-divider-left\\:-14px\\]{--rows-row-divider-left:-14px}.\\[--rows-row-divider-left\\:0px\\]{--rows-row-divider-left:0px}.\\[--rows-row-divider-left\\:14px\\]{--rows-row-divider-left:14px}.\\[--rows-row-divider-left\\:20px\\]{--rows-row-divider-left:20px}.\\[--rows-row-divider-right\\:-14px\\]{--rows-row-divider-right:-14px}.\\[--rows-row-divider-right\\:0px\\]{--rows-row-divider-right:0px}.\\[--rows-row-divider-right\\:14px\\]{--rows-row-divider-right:14px}.\\[--rows-row-divider-right\\:20px\\]{--rows-row-divider-right:20px}.\\[--rows-row-padding-left\\:20px\\]{--rows-row-padding-left:20px}.\\[--rows-row-padding-left\\:48px\\]{--rows-row-padding-left:48px}.\\[text-decoration\\:inherit\\]{-webkit-text-decoration:inherit;text-decoration:inherit}@media(hover:hover){.group-hover\\:bg-accent-hover:is(:where(.group):hover *){background-color:var(--background-color-accent-hover)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *){background-color:var(--background-color-negative-hover)}.group-hover\\:bg-secondary-hover:is(:where(.group):hover *){background-color:var(--background-color-secondary-hover)}.group-hover\\:text-foreground:is(:where(.group):hover *){color:var(--text-color-foreground)}}.group-active\\:bg-accent-active:is(:where(.group):active *){background-color:var(--background-color-accent-active)}.group-active\\:bg-negative-active:is(:where(.group):active *){background-color:var(--background-color-negative-active)}.group-active\\:bg-secondary-active:is(:where(.group):active *){background-color:var(--background-color-secondary-active)}@media(hover:hover){.group-hover\\:group-active\\:bg-accent-active:is(:where(.group):hover *):is(:where(.group):active *){background-color:var(--background-color-accent-active)}.group-hover\\:group-active\\:bg-negative-active:is(:where(.group):hover *):is(:where(.group):active *){background-color:var(--background-color-negative-active)}.group-hover\\:group-active\\:bg-secondary-active:is(:where(.group):hover *):is(:where(.group):active *){background-color:var(--background-color-secondary-active)}}.group-data-\\[panel-open\\]\\:rotate-180:is(:where(.group)[data-panel-open] *){rotate:180deg}.placeholder\\:font-sans::placeholder{font-family:var(--font-sans)}.placeholder\\:text-foreground-secondary\\/50::placeholder{color:light-dark(#66666680,#a1a1a180)}@supports (color:color-mix(in lab,red,red)){.placeholder\\:text-foreground-secondary\\/50::placeholder{color:color-mix(in oklab,var(--text-color-foreground-secondary) 50%,transparent)}}.before\\:pointer-events-none:before{content:var(--tw-content);pointer-events:none}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-y-0:before{content:var(--tw-content);inset-block:0}.before\\:left-\\[10px\\]:before{content:var(--tw-content);left:10px}.before\\:left-\\[28px\\]:before{content:var(--tw-content);left:28px}.before\\:z-10:before{content:var(--tw-content);z-index:10}.before\\:w-\\[2px\\]:before{content:var(--tw-content);width:2px}.first\\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first\\:pt-0:first-child{padding-top:0}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.last\\:pb-0:last-child{padding-bottom:0}.focus-within\\:border-focus:focus-within{border-color:var(--border-color-focus)}.focus-within\\:bg-secondary-hover:focus-within{background-color:var(--background-color-secondary-hover)}@media(hover:hover){.hover\\:border-border-hover:hover{border-color:var(--border-color-border-hover)}.hover\\:bg-secondary-hover:hover{background-color:var(--background-color-secondary-hover)}.hover\\:bg-surface-hover:hover{background-color:var(--background-color-surface-hover)}.hover\\:text-foreground:hover{color:var(--text-color-foreground)}.hover\\:text-foreground-secondary-hover:hover{color:var(--text-color-foreground-secondary-hover)}.hover\\:text-negative:hover{color:var(--text-color-negative)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:decoration-current:hover{text-decoration-color:currentColor}}.focus-visible\\:border-focus:focus-visible{border-color:var(--border-color-focus)}.focus-visible\\:bg-secondary-hover:focus-visible{background-color:var(--background-color-secondary-hover)}.focus-visible\\:bg-surface-hover:focus-visible{background-color:var(--background-color-surface-hover)}.focus-visible\\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-2:focus-visible,.focus-visible\\:outline-\\[2px\\]:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:-outline-offset-2:focus-visible{outline-offset:-2px}.focus-visible\\:outline-offset-\\[-1px\\]:focus-visible{outline-offset:-1px}.focus-visible\\:outline-offset-\\[-2px\\]:focus-visible{outline-offset:-2px}.focus-visible\\:outline-offset-\\[2px\\]:focus-visible{outline-offset:2px}.focus-visible\\:outline-focus:focus-visible{outline-color:var(--outline-color-focus)}.active\\:bg-secondary-active:active{background-color:var(--background-color-secondary-active)}.active\\:bg-surface-active:active{background-color:var(--background-color-surface-active)}.active\\:text-foreground:active{color:var(--text-color-foreground)}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.has-disabled\\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\\:opacity-60:has(:disabled){opacity:.6}.aria-pressed\\:bg-secondary[aria-pressed=true]{background-color:var(--background-color-secondary)}.data-active\\:font-semibold[data-active]{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.data-active\\:text-foreground[data-active]{color:var(--text-color-foreground)}.data-\\[checked\\]\\:translate-x-4[data-checked]{--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[checked\\]\\:border-\\[var\\(--background-color-invert\\)\\][data-checked]{border-color:var(--background-color-invert)}.data-\\[checked\\]\\:bg-accent[data-checked]{background-color:var(--background-color-accent)}.data-\\[checked\\]\\:bg-invert[data-checked]{background-color:var(--background-color-invert)}.data-\\[checked\\]\\:bg-surface[data-checked]{background-color:var(--background-color-surface)}.data-\\[checked\\]\\:text-foreground[data-checked]{color:var(--text-color-foreground)}.data-\\[checked\\]\\:text-on-accent[data-checked]{color:var(--text-color-on-accent)}@media(hover:hover){.data-\\[checked\\]\\:hover\\:bg-accent-hover[data-checked]:hover{background-color:var(--background-color-accent-hover)}}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[ending-style\\]\\:translate-x-full[data-ending-style]{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[ending-style\\]\\:opacity-0[data-ending-style]{opacity:0}.data-\\[error\\]\\:border-negative[data-error]{border-color:var(--border-color-negative)}.data-\\[error\\]\\:focus-within\\:border-focus[data-error]:focus-within{border-color:var(--border-color-focus)}.data-\\[error\\]\\:focus-visible\\:border-negative[data-error]:focus-visible{border-color:var(--border-color-negative)}.data-\\[highlighted\\]\\:bg-secondary-hover[data-highlighted]{background-color:var(--background-color-secondary-hover)}.data-\\[loading\\]\\:pointer-events-none[data-loading]{pointer-events:none}.data-\\[open\\]\\:rotate-90[data-open]{rotate:90deg}.data-\\[open\\]\\:rotate-180[data-open]{rotate:180deg}.data-\\[panel-open\\]\\:text-foreground[data-panel-open]{color:var(--text-color-foreground)}.data-\\[selected\\]\\:bg-surface-hover[data-selected]{background-color:var(--background-color-surface-hover)}.data-\\[selected\\]\\:font-medium[data-selected]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\\[side\\=bottom\\]\\:-top-\\[6px\\][data-side=bottom]{top:-6px}.data-\\[side\\=bottom\\]\\:rotate-0[data-side=bottom]{rotate:0deg}.data-\\[side\\=left\\]\\:-right-\\[6px\\][data-side=left]{right:-6px}.data-\\[side\\=left\\]\\:rotate-90[data-side=left]{rotate:90deg}.data-\\[side\\=right\\]\\:-left-\\[6px\\][data-side=right]{left:-6px}.data-\\[side\\=right\\]\\:-rotate-90[data-side=right]{rotate:-90deg}.data-\\[side\\=top\\]\\:-bottom-\\[6px\\][data-side=top]{bottom:-6px}.data-\\[side\\=top\\]\\:rotate-180[data-side=top]{rotate:180deg}.data-\\[starting-style\\]\\:translate-x-full[data-starting-style]{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[starting-style\\]\\:opacity-0[data-starting-style]{opacity:0}.data-\\[unchecked\\]\\:hidden[data-unchecked]{display:none}@media not all and (min-width:64rem){.max-lg\\:hidden{display:none}.max-lg\\:w-\\[68px\\]{width:68px}.max-lg\\:items-center{align-items:center}.max-lg\\:justify-center{justify-content:center}.max-lg\\:gap-0{gap:0}.max-lg\\:p-2{padding:calc(var(--spacing) * 2)}.max-lg\\:p-2\\.5{padding:calc(var(--spacing) * 2.5)}.max-lg\\:px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.max-lg\\:px-2{padding-inline:calc(var(--spacing) * 2)}}@media not all and (min-width:48rem){.max-md\\:hidden{display:none}.max-md\\:h-dvh{height:100dvh}.max-md\\:min-h-0{min-height:0}.max-md\\:flex-1{flex:1}.max-md\\:flex-col{flex-direction:column}.max-md\\:overflow-hidden{overflow:hidden}.max-md\\:overflow-y-auto{overflow-y:auto}}@media not all and (min-width:40rem){.max-sm\\:hidden{display:none}.max-sm\\:w-full{width:100%}.max-sm\\:flex-col{flex-direction:column}}@media(min-width:40rem){.sm\\:block{display:block}.sm\\:w-64{width:calc(var(--spacing) * 64)}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}:where(.sm\\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.sm\\:divide-y-0>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(0px * var(--tw-divide-y-reverse));border-bottom-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))}.sm\\:px-8{padding-inline:calc(var(--spacing) * 8)}}@media(min-width:48rem){.md\\:block{display:block}.md\\:hidden{display:none}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:items-center{align-items:center}.md\\:justify-between{justify-content:space-between}.md\\:gap-4{gap:calc(var(--spacing) * 4)}}@media(min-width:64rem){.lg\\:col-span-2{grid-column:span 2/span 2}.lg\\:col-start-4{grid-column-start:4}.lg\\:hidden{display:none}.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\\[\\&_\\[data-rows-divider\\]\\]\\:left-\\[var\\(--rows-group-divider-left\\)\\] [data-rows-divider]{left:var(--rows-group-divider-left)}.\\[\\&_\\[data-rows-divider\\]\\]\\:bg-\\[var\\(--rows-divider\\)\\] [data-rows-divider]{background-color:var(--rows-divider)}.\\[\\&\\:hover\\:active\\]\\:bg-surface-active:hover:active{background-color:var(--background-color-surface-active)}.\\[\\&\\:hover\\:active\\]\\:text-foreground:hover:active{color:var(--text-color-foreground)}@media(hover:hover){.\\[\\&\\:not\\(\\[data-error\\]\\)\\]\\:hover\\:bg-secondary-hover:not([data-error]):hover{background-color:var(--background-color-secondary-hover)}}@media not all and (min-width:40rem){.\\[\\&\\>\\*\\]\\:max-sm\\:flex-1>*{flex:1}}.\\[\\&\\>svg\\]\\:size-\\[12px\\]>svg{width:12px;height:12px}.\\[\\&\\>svg\\]\\:size-\\[20px\\]>svg{width:20px;height:20px}.\\[\\&\\>svg\\]\\:h-\\[10px\\]>svg{height:10px}.\\[\\&\\>svg\\]\\:h-\\[12px\\]>svg{height:12px}.\\[\\&\\>svg\\]\\:h-\\[14px\\]>svg{height:14px}.\\[\\&\\>svg\\]\\:h-\\[16px\\]>svg{height:16px}.\\[\\&\\>svg\\]\\:w-\\[10px\\]>svg{width:10px}.\\[\\&\\>svg\\]\\:w-\\[12px\\]>svg{width:12px}.\\[\\&\\>svg\\]\\:w-\\[14px\\]>svg{width:14px}.\\[\\&\\>svg\\]\\:w-\\[16px\\]>svg{width:16px}}:root{color-scheme:light dark;--regen-accent-neutral:light-dark(oklch(20.44% 0 0),oklch(94.66% 0 0));--regen-accent-blue:oklch(47.13% .1983 258.78);--regen-accent-red:light-dark(oklch(58% .17 18),oklch(54% .145 18));--regen-accent-amber:light-dark(oklch(81.87% .1969 76.46),oklch(72% .165 76.46));--regen-accent-green:light-dark(oklch(73% .125 147),oklch(64% .115 147));--regen-accent-purple:light-dark(oklch(57% .21 288),oklch(52% .19 288));--regen-accent:var(--regen-accent-neutral);--regen-radius-none:0px;--regen-radius-small:4px;--regen-radius-medium:6px;--regen-radius-large:12px;--regen-radius-full:9999px;--regen-radius:var(--regen-radius-medium)}:root[data-theme=dark]{color-scheme:dark}:root[data-theme=light]{color-scheme:light}html{background:var(--background-color-background);color:var(--text-color-foreground);font-family:var(--font-sans)}:root[data-regen-disable-motion] *,:root[data-regen-disable-motion] :before,:root[data-regen-disable-motion] :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}[data-regen-color=blue]{--regen-accent:var(--regen-accent-blue)}[data-regen-color=red]{--regen-accent:var(--regen-accent-red)}[data-regen-color=amber]{--regen-accent:var(--regen-accent-amber)}[data-regen-color=green]{--regen-accent:var(--regen-accent-green)}[data-regen-color=purple]{--regen-accent:var(--regen-accent-purple)}[data-regen-radius=none]{--regen-radius:var(--regen-radius-none)}[data-regen-radius=small]{--regen-radius:var(--regen-radius-small)}[data-regen-radius=medium]{--regen-radius:var(--regen-radius-medium)}[data-regen-radius=large]{--regen-radius:var(--regen-radius-large)}[data-regen-radius=full]{--regen-radius:var(--regen-radius-large);--regen-radius-button:var(--regen-radius-full);--regen-radius-identicon:var(--regen-radius-full)}@keyframes rgn-spin{to{transform:rotate(360deg)}}@font-face{font-family:Pilat;font-weight:400;font-display:swap;src:url(./Pilat-Regular-Bx8vzE7q.woff2)format(\"woff2\")}@font-face{font-family:Pilat;font-weight:500 700;font-display:swap;src:url(./Pilat-Demi-CADSbPAt.woff2)format(\"woff2\")}:root{--font-body:\"Pilat\", ui-sans-serif, system-ui, sans-serif}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-divide-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-content{syntax:\"*\";inherits:false;initial-value:\"\"}@property --tw-divide-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@keyframes pulse{50%{opacity:.5}}\n",
"contentType": "text/css; charset=utf-8"
},
"assets/subsidies-CDfvvjI8.js": {
"content": "import{Z as H,L as F,_ as v,Q as e,$ as K,a0 as z,a1 as O,a2 as B,S as U,V as m,U as f,a3 as j,a4 as p,a5 as g}from\"./index-fAdpxP2M.js\";import{T as q}from\"./Tabs-CVutcaXm.js\";import{T as c}from\"./Tag-CLDoN3Ro.js\";import{P as _,N as k}from\"./Page-D0rzPo-_.js\";import{A as Z}from\"./arrow-right-Cic7WQii.js\";import{X as Q}from\"./x-BuvYxEbX.js\";import{E as V}from\"./external-link-C2R5db17.js\";import{D as W,a as Y,b as J,c as X,d as G,e as ee,f as te}from\"./DialogTitle-CFzjJ1Ce.js\";import\"./useButton-ByI90A_n.js\";import\"./useScrollLock-D0Gehqgv.js\";const ae=[[\"path\",{d:\"M13 16H8\",key:\"wsln4y\"}],[\"path\",{d:\"M14 8H8\",key:\"1l3xfs\"}],[\"path\",{d:\"M16 12H8\",key:\"1fr5h0\"}],[\"path\",{d:\"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z\",key:\"ycz6yz\"}]],ne=H(\"receipt-text\",ae),C={[`eip155:${p.id}`]:{address:`${p.blockExplorers.default.url}/address`,tx:`${p.blockExplorers.default.url}/tx`},[`eip155:${j.id}`]:{address:`${j.blockExplorers.default.url}/address`,tx:`${j.blockExplorers.default.url}/tx`},[`eip155:${f.id}`]:{address:`${f.blockExplorers.default.url}/address`,tx:`${f.blockExplorers.default.url}/tx`},[`eip155:${m.id}`]:{address:`${m.blockExplorers.default.url}/address`,tx:`${m.blockExplorers.default.url}/tx`},\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\":{address:\"https://solscan.io/account\",tx:\"https://solscan.io/tx\"},\"tron:0x2b6653dc\":{address:\"https://tronscan.org/address\",tx:\"https://tronscan.org/transaction\"}};function Te(){const t=F({from:v.fullPath}),a=v.useSearch(),s=a.tab??\"transactions\";function l(d){t({search:{selected:void 0,tab:d===\"transactions\"?void 0:\"routes\"}})}function n(d){t({search:L=>({...L,selected:d})})}function N(){t({replace:!0,search:d=>({...d,selected:void 0})})}return e.jsx(_,{title:\"Subsidies\",description:\"Inspect managed transaction sponsorship and route subsidy activity\",children:e.jsxs(\"div\",{className:\"flex min-w-0 flex-col\",children:[e.jsx(q,{active:s,onChange:l,tabs:[{icon:e.jsx(ne,{className:\"size-4\"}),id:\"transactions\",label:\"Transactions\"},{icon:e.jsx(K,{className:\"size-4\"}),id:\"routes\",label:\"Routes\"}]}),s===\"transactions\"?e.jsx(re,{onClose:N,onSelect:n,selected:a.selected}):e.jsx(se,{onClose:N,onSelect:n,selected:a.selected})]})})}function re(t){const a=z(O.options()),s=a.data?.pages.flatMap(n=>n.data)??[],l=s.find(n=>n.id===t.selected);return e.jsxs(e.Fragment,{children:[e.jsx(T,{empty:\"No managed fee-payer transactions recorded.\",error:a.error,hasNextPage:a.hasNextPage,loading:a.isPending,loadingMore:a.isFetchingNextPage,onLoadMore:()=>a.fetchNextPage(),children:s.length?e.jsxs(\"table\",{className:\"w-full min-w-[680px] border-collapse text-left\",children:[e.jsx($,{columns:[\"Status\",\"Transaction\",\"Amount\",\"Organization\",\"Time\"]}),e.jsx(\"tbody\",{children:s.map(n=>e.jsxs(S,{id:n.id,onSelect:t.onSelect,children:[e.jsx(A,{status:n.status}),e.jsx(oe,{record:n}),e.jsx(ce,{record:n}),e.jsx(P,{organization:n.organization,project:n.project}),e.jsx(R,{value:n.createdAt})]},n.id))})]}):void 0}),l?e.jsx(xe,{onClose:t.onClose,record:l}):null]})}function se(t){const a=z(B.options()),s=a.data?.pages.flatMap(n=>n.data)??[],l=s.find(n=>n.id===t.selected);return e.jsxs(e.Fragment,{children:[e.jsx(T,{empty:\"No Routes subsidies recorded.\",error:a.error,hasNextPage:a.hasNextPage,loading:a.isPending,loadingMore:a.isFetchingNextPage,onLoadMore:()=>a.fetchNextPage(),children:s.length?e.jsxs(\"table\",{className:\"w-full min-w-[680px] border-collapse text-left\",children:[e.jsx($,{columns:[\"Status\",\"Direction\",\"Route\",\"Amount\",\"Organization\",\"Time\"]}),e.jsx(\"tbody\",{children:s.map(n=>e.jsxs(S,{id:n.id,onSelect:t.onSelect,children:[e.jsx(A,{status:n.status}),e.jsx(le,{direction:n.direction}),e.jsx(ie,{record:n}),e.jsx(de,{subsidies:n.subsidies}),e.jsx(P,{organization:n.organization,project:n.project}),e.jsx(R,{value:n.updatedAt})]},n.id))})]}):void 0}),l?e.jsx(ue,{onClose:t.onClose,record:l}):null]})}function le(t){return e.jsx(\"td\",{className:\"px-3 py-3\",children:e.jsx(c,{children:o(t.direction)})})}function T(t){return t.loading?e.jsx(k,{children:\"Loading subsidy records…\"}):t.error?e.jsx(\"div\",{className:\"flex items-center justify-center border-y border-border px-4 py-12 text-copy-14 text-negative\",role:\"alert\",children:t.error.message}):e.jsxs(\"div\",{className:\"flex flex-col gap-4\",children:[e.jsx(\"div\",{className:\"overflow-x-auto border-b border-border\",children:t.children??e.jsx(k,{children:t.empty})}),t.hasNextPage?e.jsx(U,{className:\"self-center\",loading:t.loadingMore,onClick:t.onLoadMore,children:\"Load more\"}):null]})}function $(t){return e.jsx(\"thead\",{children:e.jsx(\"tr\",{className:\"border-b border-border\",children:t.columns.map(a=>e.jsx(\"th\",{className:\"whitespace-nowrap px-3 py-2 text-label-12 font-normal text-foreground-secondary\",scope:\"col\",children:a},a))})})}function S(t){return e.jsx(\"tr\",{\"aria-label\":`View ${t.id}`,className:\"cursor-pointer border-b border-border transition-colors last:border-b-0 hover:bg-surface-hover focus-visible:bg-surface-hover focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus\",onClick:()=>t.onSelect(t.id),onKeyDown:a=>{a.currentTarget!==a.target||![\"Enter\",\" \"].includes(a.key)||(a.preventDefault(),t.onSelect(t.id))},tabIndex:0,children:t.children})}function A(t){return e.jsx(\"td\",{className:\"px-3 py-3\",children:e.jsx(D,{value:t.status})})}function D(t){const a=t.value===\"completed\"||t.value===\"finalized\"?\"positive\":t.value===\"action-required\"||t.value===\"failed\"?\"negative\":je(t.value)?\"warning\":\"neutral\";return e.jsx(c,{intent:a,children:o(t.value)})}function ie(t){const{destinationChain:a,destinationToken:s,sourceChain:l,sourceToken:n}=t.record;return e.jsx(\"td\",{className:\"px-3 py-3\",children:e.jsxs(\"span\",{className:\"flex items-center gap-1.5 whitespace-nowrap\",children:[e.jsx(c,{children:l.name}),e.jsx(c,{children:n.symbol}),e.jsx(Z,{className:\"mx-0.5 size-3.5 shrink-0 text-foreground-secondary\"}),e.jsx(c,{children:a.name}),e.jsx(c,{children:s.symbol})]})})}function oe(t){const{record:a}=t,s=C[`eip155:${a.chainId}`];return a.transactionHash&&s?e.jsx(\"td\",{className:\"px-3 py-3\",children:e.jsx(\"a\",{className:\"font-mono text-label-12 text-foreground-secondary hover:text-foreground hover:underline\",href:`${s.tx}/${a.transactionHash}`,onClick:l=>l.stopPropagation(),rel:\"noreferrer\",target:\"_blank\",title:a.transactionHash,children:w(a.transactionHash)})}):e.jsx(\"td\",{className:\"px-3 py-3\",children:e.jsx(\"code\",{className:\"text-label-12 text-foreground-secondary\",title:a.id,children:w(a.id)})})}function ce(t){return e.jsx(\"td\",{className:\"px-3 py-3\",children:e.jsxs(\"span\",{className:\"flex min-w-24 flex-col gap-0.5\",children:[e.jsx(\"span\",{className:\"whitespace-nowrap text-label-13 text-foreground\",children:he(t.record)}),e.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:\"Tempo\"})]})})}function de(t){return e.jsx(\"td\",{className:\"px-3 py-3\",children:e.jsx(\"ul\",{className:\"flex min-w-24 flex-col gap-2\",children:t.subsidies.map(a=>e.jsxs(\"li\",{className:\"flex flex-col gap-0.5\",children:[e.jsxs(\"span\",{className:\"whitespace-nowrap text-label-13 text-foreground\",children:[a.amount.formatted,\" \",a.token.symbol]}),e.jsx(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:o(a.provider)})]},`${a.provider}:${a.token.tokenKey}`))})})}function P(t){return e.jsx(\"td\",{className:\"px-3 py-3\",children:e.jsxs(\"span\",{className:\"flex min-w-32 flex-col gap-0.5\",children:[e.jsx(g,{className:\"truncate text-label-13 text-foreground hover:underline\",onClick:a=>a.stopPropagation(),params:{orgId:t.organization.id},search:{},to:\"/organizations/$orgId\",children:t.organization.name??t.organization.id}),t.project?e.jsx(\"span\",{className:\"truncate text-label-12 text-foreground-secondary\",children:t.project.name??t.project.id}):null]})})}function R(t){return e.jsx(\"td\",{className:\"whitespace-nowrap px-3 py-3 text-label-12 text-foreground-secondary\",children:e.jsx(\"time\",{dateTime:t.value,title:u(t.value),children:y(t.value)})})}function xe(t){const{record:a}=t;return e.jsxs(I,{onClose:t.onClose,title:\"Sponsored transaction\",children:[e.jsx(M,{id:a.id,status:a.status}),e.jsxs(i,{title:\"Transaction\",children:[e.jsx(r,{label:\"Hash\",children:a.transactionHash?e.jsx(x,{chainId:`eip155:${a.chainId}`,value:a.transactionHash}):\"Pending\"}),e.jsx(r,{label:\"Chain ID\",children:a.chainId}),e.jsx(r,{label:\"API key\",children:e.jsx(\"code\",{children:a.apiKeyId})}),e.jsx(r,{label:\"Environment\",children:o(a.environment)})]}),e.jsxs(i,{title:\"Subsidy\",children:[e.jsx(r,{label:\"Provider\",children:\"Tempo\"}),e.jsx(r,{label:\"Subsidizer account\",children:a.subsidizerAccount?e.jsx(x,{chainId:`eip155:${a.chainId}`,type:\"address\",value:a.subsidizerAccount}):\"Not recorded\"}),e.jsx(r,{label:\"Fee paid\",children:h(a.feeAmount)}),e.jsx(r,{label:\"Maximum fee\",children:h(a.feeMaximum)}),e.jsx(r,{label:\"Fee token\",children:a.feeToken?e.jsx(\"code\",{children:a.feeToken}):\"Chain default\"})]}),e.jsx(E,{organization:a.organization,project:a.project}),e.jsxs(i,{title:\"Billing\",children:[e.jsx(r,{label:\"State\",children:me(a)}),e.jsx(r,{label:\"Billable\",children:a.billable?\"Yes\":\"No\"}),e.jsx(r,{label:\"Attribution\",children:a.sponsorshipAttributionId??\"No subsidy attribution\"}),e.jsx(r,{label:\"Meter reported\",children:b(a.meterReportedAt)})]}),e.jsxs(i,{title:\"Timing\",children:[e.jsx(r,{label:\"Created\",children:u(a.createdAt)}),e.jsx(r,{label:\"Finalized\",children:b(a.finalizedAt)})]})]})}function ue(t){const{record:a}=t;return e.jsxs(I,{onClose:t.onClose,title:\"Route subsidy\",children:[e.jsx(M,{id:a.id,status:a.status}),e.jsxs(i,{title:\"Route\",children:[e.jsxs(r,{label:\"Source\",children:[a.sourceToken.symbol,\" on \",a.sourceChain.name]}),e.jsxs(r,{label:\"Destination\",children:[a.destinationToken.symbol,\" on \",a.destinationChain.name]}),e.jsx(r,{label:\"Route provider\",children:a.provider.name}),e.jsx(r,{label:\"Environment\",children:o(a.environment)}),e.jsx(r,{label:\"Direction\",children:o(a.direction)}),e.jsx(r,{label:a.direction===\"inbound\"?\"Deposit\":\"Transfer\",children:e.jsx(g,{className:\"font-mono hover:underline\",search:{resource:a.direction===\"inbound\"?\"deposits\":\"transfers\",selected:a.id},to:\"/routes\",children:a.id})})]}),e.jsx(i,{title:\"Subsidies\",children:a.subsidies.map(s=>e.jsx(r,{label:o(s.provider),children:e.jsxs(\"span\",{className:\"flex min-w-0 flex-col gap-1\",children:[e.jsxs(\"span\",{children:[s.amount.formatted,\" \",s.token.symbol]}),e.jsxs(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:[s.token.name,\", \",s.token.decimals,\" decimals\"]}),e.jsx(\"code\",{className:\"break-all text-label-12 text-foreground-secondary\",children:s.token.tokenKey})]})},`${s.provider}:${s.token.tokenKey}`))}),e.jsxs(i,{title:\"Accounts\",children:[e.jsx(r,{label:\"Recipient\",children:e.jsx(x,{chainId:a.destinationChain.id,type:\"address\",value:a.recipient})}),e.jsx(r,{label:\"Subsidizer account\",children:a.subsidizerAccount?e.jsx(x,{chainId:a.destinationChain.id,type:\"address\",value:a.subsidizerAccount}):\"Not recorded\"})]}),e.jsx(i,{title:\"Subsidy transaction\",children:e.jsx(r,{label:\"Hash\",children:a.subsidyTransaction?e.jsx(x,{chainId:a.subsidyTransaction.chainId,value:a.subsidyTransaction.transactionRef}):\"Not recorded\"})}),e.jsx(E,{organization:a.organization,project:a.project}),e.jsxs(i,{title:\"Billing\",children:[e.jsx(r,{label:\"State\",children:fe(a)}),e.jsx(r,{label:\"Meter reported\",children:b(a.meterReportedAt)})]}),e.jsxs(i,{title:\"Timing\",children:[e.jsx(r,{label:\"Created\",children:u(a.createdAt)}),e.jsx(r,{label:\"Updated\",children:u(a.updatedAt)})]})]})}function I(t){return e.jsx(W,{onOpenChange:a=>!a&&t.onClose(),open:!0,children:e.jsxs(Y,{children:[e.jsx(J,{className:\"fixed inset-0 z-40 bg-black/60 transition-opacity duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0\"}),e.jsxs(X,{className:\"fixed inset-y-0 right-0 z-50 flex w-full max-w-xl flex-col border-l border-border bg-surface outline-none transition-transform duration-200 data-[ending-style]:translate-x-full data-[starting-style]:translate-x-full\",children:[e.jsxs(\"div\",{className:\"flex shrink-0 items-start justify-between gap-4 border-b border-border px-5 py-4\",children:[e.jsxs(\"div\",{className:\"min-w-0\",children:[e.jsx(G,{className:\"text-heading-20 text-foreground\",children:t.title}),e.jsx(ee,{className:\"mt-1 text-copy-13 text-foreground-secondary\",children:\"Subsidy and billing details\"})]}),e.jsx(te,{\"aria-label\":\"Close details\",className:\"flex size-8 shrink-0 items-center justify-center text-foreground-secondary hover:bg-surface-hover hover:text-foreground\",children:e.jsx(Q,{className:\"size-4\"})})]}),e.jsx(\"div\",{className:\"flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto px-5 py-5\",children:t.children})]})]})})}function M(t){return e.jsxs(\"div\",{className:\"flex min-w-0 items-center justify-between gap-3\",children:[e.jsx(\"code\",{className:\"truncate text-label-12 text-foreground-secondary\",title:t.id,children:t.id}),e.jsx(D,{value:t.status})]})}function i(t){return e.jsxs(\"section\",{className:\"flex flex-col gap-3\",children:[e.jsx(\"h3\",{className:\"text-heading-16 text-foreground\",children:t.title}),e.jsx(\"dl\",{className:\"grid gap-x-6 gap-y-4 sm:grid-cols-2\",children:t.children})]})}function r(t){return e.jsxs(\"div\",{className:\"flex min-w-0 flex-col gap-1\",children:[e.jsx(\"dt\",{className:\"text-label-12 text-foreground-secondary\",children:t.label}),e.jsx(\"dd\",{className:\"min-w-0 break-words text-label-13 text-foreground\",children:t.children})]})}function E(t){return e.jsxs(i,{title:\"Ownership\",children:[e.jsx(r,{label:\"Organization\",children:e.jsx(g,{className:\"hover:underline\",params:{orgId:t.organization.id},search:{},to:\"/organizations/$orgId\",children:t.organization.name??t.organization.id})}),e.jsx(r,{label:\"Project\",children:t.project?.name??t.project?.id??\"Organization scoped\"})]})}function x(t){const a=C[t.chainId];return a?e.jsxs(\"a\",{className:\"flex min-w-0 items-center gap-1.5 break-all font-mono hover:underline\",href:`${a[t.type??\"tx\"]}/${t.value}`,rel:\"noreferrer\",target:\"_blank\",children:[e.jsx(\"span\",{children:t.value}),e.jsx(V,{className:\"size-3 shrink-0\"})]}):e.jsx(\"code\",{className:\"break-all\",children:t.value})}function he(t){return t.feeAmount?h(t.feeAmount):t.feeMaximum?`Up to ${h(t.feeMaximum)}`:\"Pending\"}function h(t){return t?`${t.formatted} ${t.currency.toUpperCase()}`:\"Pending\"}function me(t){return t.sponsorshipAttributionId?\"Subsidized\":t.billable?t.meterReportedAt?`Reported ${y(t.meterReportedAt)}`:\"Pending\":\"Not billable\"}function fe(t){return t.environment!==\"production\"?\"Not billable\":t.meterReportedAt?`Reported ${y(t.meterReportedAt)}`:\"Pending\"}function je(t){return[\"bridging\",\"detected\",\"pending\",\"processing\",\"refunding\",\"settling\"].includes(t)}function b(t){return t?u(t):\"Pending\"}function u(t){return new Intl.DateTimeFormat(\"en\",{dateStyle:\"medium\",timeStyle:\"short\"}).format(new Date(t))}function y(t){const a=new Date(t).getTime()-Date.now(),s=Math.abs(a),[l,n]=s>=864e5?[\"day\",864e5]:s>=36e5?[\"hour\",36e5]:s>=6e4?[\"minute\",6e4]:[\"second\",1e3];return new Intl.RelativeTimeFormat(\"en\",{numeric:\"auto\"}).format(Math.round(a/n),l)}function o(t){return t.replace(/([a-z])([A-Z])/g,\"$1 $2\").replaceAll(\"-\",\" \").replace(/^./,a=>a.toUpperCase())}function w(t){return t.length<=20?t:`${t.slice(0,10)}…${t.slice(-8)}`}export{Te as component};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/SwitchThumb-Bf91cokh.js": {
"content": "import{j as d,Q as k}from\"./index-fAdpxP2M.js\";import{f as se,a as de,b as re,c as oe,e as ie,u as le,d as ce}from\"./FormContext-lWysHyLG.js\";import{o as ue,a as fe,n as pe,l as he,p as me,v as ye,E as ve,c as V,g as ke,G as Ce,H as be,d as xe,q as ge}from\"./useButton-ByI90A_n.js\";import{u as Ee}from\"./useAriaLabelledBy-B6dSNlUI.js\";import{u as Pe}from\"./useValueChanged-mcPqATWD.js\";const L=d.createContext(void 0);function Ie(){const e=d.useContext(L);if(e===void 0)throw new Error(ue(63));return e}let M=(function(e){return e.checked=\"data-checked\",e.unchecked=\"data-unchecked\",e.disabled=\"data-disabled\",e.readonly=\"data-readonly\",e.required=\"data-required\",e.valid=\"data-valid\",e.invalid=\"data-invalid\",e.touched=\"data-touched\",e.dirty=\"data-dirty\",e.filled=\"data-filled\",e.focused=\"data-focused\",e})({});const T={...se,checked(e){return e?{[M.checked]:\"\"}:{[M.unchecked]:\"\"}}},Te=d.forwardRef(function(i,m){const{checked:C,className:j,defaultChecked:b,\"aria-labelledby\":y,form:u,id:q,inputRef:w,name:H,nativeButton:f=!1,onCheckedChange:N,readOnly:l=!1,required:p=!1,disabled:O=!1,render:Be,uncheckedValue:x,value:g,style:Re,...W}=i,{clearErrors:G}=de(),{state:E,setTouched:J,setDirty:Q,validityData:U,setFilled:v,setFocused:P,shouldValidateOnChange:Y,validationMode:_,disabled:z,name:S,validation:r}=re(),{labelId:X}=oe(),n=z||O,c=S??H,s=d.useRef(null),Z=fe(s,w,r.inputRef),h=d.useRef(null),I=pe(),B=ie({id:q,implicit:!1,controlRef:h}),R=f?void 0:B,[a,$]=le({controlled:C,default:!!b,name:\"Switch\",state:\"checked\"});ce(h,I,a),he(()=>{s.current&&v(s.current.checked)},[s,v]),Pe(a,()=>{G(c),Q(a!==U.initialValue),v(a),Y()?r.commit(a):r.commit(a,!0)});const{getButtonProps:D,buttonRef:A}=me({disabled:n,native:f}),ee=Ee(y,X,s,!f,R),te={id:f?B:I,role:\"switch\",\"aria-checked\":a,\"aria-readonly\":l||void 0,\"aria-required\":p||void 0,\"aria-labelledby\":ee,onFocus(){n||P(!0)},onBlur(){const t=s.current;!t||n||(J(!0),P(!1),_===\"onBlur\"&&r.commit(t.checked))},onClick(t){if(l||n)return;t.preventDefault();const o=s.current;o&&o.dispatchEvent(new(ke(o)).PointerEvent(\"click\",{bubbles:!0,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}},ae=ye({checked:a,disabled:n,form:u,id:R,name:c,required:p,style:c?Ce:be,tabIndex:-1,type:\"checkbox\",\"aria-hidden\":!0,ref:Z,onChange(t){if(t.nativeEvent.defaultPrevented)return;if(l){t.preventDefault();return}const o=t.currentTarget.checked,F=xe(ge,t.nativeEvent);N?.(o,F),!F.isCanceled&&$(o)},onFocus(){h.current?.focus()}},r.getInputValidationProps,g!==void 0?{value:g}:ve),K=d.useMemo(()=>({...E,checked:a,disabled:n,readOnly:l,required:p}),[E,a,n,l,p]),ne=V(\"span\",i,{state:K,ref:[m,h,A],props:[te,r.getValidationProps,W,D],stateAttributesMapping:T});return k.jsxs(L.Provider,{value:K,children:[ne,!a&&c&&x!==void 0&&k.jsx(\"input\",{type:\"hidden\",form:u,name:c,value:x}),k.jsx(\"input\",{...ae,suppressHydrationWarning:!0})]})}),je=d.forwardRef(function(i,m){const{render:C,className:j,style:b,...y}=i,u=Ie();return V(\"span\",i,{state:u,ref:m,stateAttributesMapping:T,props:y})});export{Te as S,je as a};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/Tabs-CVutcaXm.js": {
"content": "import{j as r,Q as y,ar as R}from\"./index-fAdpxP2M.js\";const g=typeof window>\"u\"?r.useEffect:r.useLayoutEffect;function j(o){const{active:p,className:u,expand:m=!1,onChange:f,tabs:s,...b}=o,x=s.findIndex(e=>e.id===p),{indicatorRef:l,ready:n,stripRef:c,tabRef:d}=E(x),a=r.useRef(null),w=(e,i)=>{let t=null;if(e.key===\"ArrowRight\"?t=(i+1)%s.length:e.key===\"ArrowLeft\"?t=(i-1+s.length)%s.length:e.key===\"Home\"?t=0:e.key===\"End\"&&(t=s.length-1),t===null)return;const h=s[t];h&&(e.preventDefault(),f(h.id),a.current?.querySelectorAll('[role=\"tab\"]')[t]?.focus())};return y.jsxs(\"div\",{...b,className:R(\"relative flex items-stretch border-b border-border\",u),ref:e=>{a.current=e,c(e)},role:\"tablist\",children:[y.jsx(\"span\",{ref:l,className:\"pointer-events-none absolute bottom-[-1px] left-0 h-[1px] bg-accent\"}),s.map((e,i)=>{const t=e.id===p;return y.jsxs(\"button\",{\"aria-selected\":t,className:R(\"relative z-1 inline-flex min-w-0 cursor-pointer select-none items-center justify-center gap-[6px] whitespace-nowrap rounded-button border-0 bg-transparent py-[10px] label-13 focus-visible:outline focus-visible:outline-[2px] focus-visible:outline-offset-[-1px] focus-visible:outline-focus\",m?\"flex-1\":\"px-[12px]\",t?\"text-foreground\":\"text-foreground-secondary hover:text-foreground-secondary-hover\"),onKeyDown:h=>w(h,i),onPointerDown:()=>f(e.id),ref:d(i),role:\"tab\",tabIndex:t?0:-1,type:\"button\",children:[e.icon,e.label,t&&!n&&y.jsx(\"span\",{className:\"absolute bottom-[-1px] left-0 h-[1px] w-full bg-accent\"})]},e.id)})]})}function E(o,p={}){const{inset:u=0}=p,[m,f]=r.useState(!1),s=r.useRef(null),b=r.useRef([]),x=r.useRef(null),l=r.useCallback(n=>{const c=b.current[n],d=s.current,a=x.current;if(!c||!d||!a)return;const w=d.getBoundingClientRect(),e=c.getBoundingClientRect(),i=e.left-w.left+d.scrollLeft+u,t=Math.max(e.width-u*2,0);a.style.left=`${i}px`,a.style.width=`${t}px`,f(!0)},[u]);return g(()=>{if(o<0){f(!1);return}l(o)},[o,l]),r.useEffect(()=>{const n=()=>{o>=0&&l(o)};return window.addEventListener(\"resize\",n),()=>window.removeEventListener(\"resize\",n)},[o,l]),{indicatorRef:n=>{x.current=n},ready:m,stripRef:n=>{s.current=n},tabRef:n=>c=>{b.current[n]=c}}}export{j as T};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/Tag-CLDoN3Ro.js": {
"content": "import{Q as e,ar as o}from\"./index-fAdpxP2M.js\";function t(n){const{children:a,className:i,dot:r=!1,icon:s,intent:l=\"neutral\",...c}=n;return e.jsxs(\"span\",{className:o(\"inline-flex min-w-0 items-center gap-[4px] whitespace-nowrap rounded-button px-[6px] py-[2px] label-12\",t.intentClassName[l],i),...c,children:[s?e.jsx(\"span\",{className:\"flex size-[12px] shrink-0 items-center justify-center [&>svg]:size-[12px]\",children:s}):r?e.jsx(\"span\",{\"aria-hidden\":\"true\",className:\"size-[6px] shrink-0 rounded-full bg-current\"}):null,e.jsx(\"span\",{className:\"min-w-0 overflow-hidden text-ellipsis\",children:a})]})}(n=>{n.intentClassName={accent:\"bg-accent-subtle text-on-accent-subtle\",info:\"bg-info-subtle text-info\",negative:\"bg-negative-subtle text-negative\",neutral:\"bg-secondary text-foreground-secondary\",positive:\"bg-positive-subtle text-positive\",warning:\"bg-warning-subtle text-warning\"}})(t||(t={}));export{t as T};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/trash-2-DJ_dAK_9.js": {
"content": "import{Z as a}from\"./index-fAdpxP2M.js\";const t=[[\"path\",{d:\"M5 12h14\",key:\"1ays0h\"}],[\"path\",{d:\"M12 5v14\",key:\"s699le\"}]],h=a(\"plus\",t);const e=[[\"path\",{d:\"M10 11v6\",key:\"nco0om\"}],[\"path\",{d:\"M14 11v6\",key:\"outv1u\"}],[\"path\",{d:\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\",key:\"miytrc\"}],[\"path\",{d:\"M3 6h18\",key:\"d0wm0j\"}],[\"path\",{d:\"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\",key:\"e791ji\"}]],s=a(\"trash-2\",e);export{h as P,s as T};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/triangle-alert-DyUQO9Em.js": {
"content": "import{Z as e}from\"./index-fAdpxP2M.js\";const a=[[\"path\",{d:\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\",key:\"wmoenq\"}],[\"path\",{d:\"M12 9v4\",key:\"juzpu7\"}],[\"path\",{d:\"M12 17h.01\",key:\"p32p05\"}]],o=e(\"triangle-alert\",a);export{o as T};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/useAriaLabelledBy-B6dSNlUI.js": {
"content": "import{j as u}from\"./index-fAdpxP2M.js\";import{n as l,l as c}from\"./useButton-ByI90A_n.js\";function y(n,e,t,r=!0,i){const[a,d]=u.useState(),f=l(i?`${i}-label`:void 0),o=n??e??a;return c(()=>{const s=n||e||!r?void 0:L(t.current,f);a!==s&&d(s)}),o}function L(n,e){const t=b(n);if(t)return!t.id&&e&&(t.id=e),t.id||void 0}function b(n){if(!n)return;const e=n.parentElement;if(e&&e.tagName===\"LABEL\")return e;const t=n.id;if(t){const i=n.nextElementSibling;if(i&&i.htmlFor===t)return i}const r=n.labels;return r&&r[0]}export{y as u};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/useButton-ByI90A_n.js": {
"content": "import{j as u,b8 as we}from\"./index-fAdpxP2M.js\";const V={};function A(e,t){const n=u.useRef(V);return n.current===V&&(n.current=e(t)),n}function _(e,t,n,r){const o=A(J).current;return he(o,e,t,n,r)&&q(o,[e,t,n,r]),o.callback}function Ee(e){const t=A(J).current;return Ce(t,e)&&q(t,e),t.callback}function J(){return{callback:null,cleanup:null,refs:[]}}function he(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function Ce(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function q(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let o=0;o{for(let o=0;o{},ve=typeof document<\"u\"?u.useLayoutEffect:Pe,x={...we},N=x.useInsertionEffect,Ie=N&&N!==x.useLayoutEffect?N:e=>e();function ke(e){const t=A(Ne).current;return t.next=e,Ie(t.effect),t.trampoline}function Ne(){const e={next:void 0,callback:De,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function De(){}const Q={clipPath:\"inset(50%)\",overflow:\"hidden\",whiteSpace:\"nowrap\",border:0,padding:0,width:1,height:1,margin:-1},ot={...Q,position:\"fixed\",top:0,left:0},rt={...Q,position:\"absolute\"};function st(){}const it=Object.freeze([]),g=Object.freeze({});function v(){return typeof window<\"u\"}function L(e){return ee(e)?(e.nodeName||\"\").toLowerCase():\"#document\"}function y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Se(e){var t;return(t=(ee(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ee(e){return v()?e instanceof Node||e instanceof y(e).Node:!1}function te(e){return v()?e instanceof Element||e instanceof y(e).Element:!1}function O(e){return v()?e instanceof HTMLElement||e instanceof y(e).HTMLElement:!1}function Y(e){return!v()||typeof ShadowRoot>\"u\"?!1:e instanceof ShadowRoot||e instanceof y(e).ShadowRoot}function ne(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=re(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!==\"inline\"&&o!==\"contents\"}function ct(e){return/^(table|td|th)$/.test(L(e))}function Re(e){try{if(e.matches(\":popover-open\"))return!0}catch{}try{return e.matches(\":modal\")}catch{return!1}}const Te=/transform|translate|scale|rotate|perspective|filter/,Ae=/paint|layout|strict|content/,m=e=>!!e&&e!==\"none\";let D;function xe(e){const t=te(e)?re(e):e;return m(t.transform)||m(t.translate)||m(t.scale)||m(t.rotate)||m(t.perspective)||!Le()&&(m(t.backdropFilter)||m(t.filter))||Te.test(t.willChange||\"\")||Ae.test(t.contain||\"\")}function at(e){let t=R(e);for(;O(t)&&!oe(t);){if(xe(t))return t;if(Re(t))return null;t=R(t)}return null}function Le(){return D==null&&(D=typeof CSS<\"u\"&&CSS.supports&&CSS.supports(\"-webkit-backdrop-filter\",\"none\")),D}function oe(e){return/^(html|body|#document)$/.test(L(e))}function re(e){return y(e).getComputedStyle(e)}function ut(e){return te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function R(e){if(L(e)===\"html\")return e;const t=e.assignedSlot||e.parentNode||Y(e)&&e.host||Se(e);return Y(t)?t.host:t}function se(e){const t=R(e);return oe(t)?e.ownerDocument?e.ownerDocument.body:e.body:O(t)&&ne(t)?t:se(t)}function z(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=se(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=y(o);if(s){const f=Oe(c);return t.concat(c,c.visualViewport||[],ne(o)?o:[],f&&n?z(f):[])}else return t.concat(o,z(o,[],n))}function Oe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const lt=\"none\",ft=\"trigger-press\",dt=\"trigger-hover\",pt=\"trigger-focus\",bt=\"outside-press\",mt=\"item-press\",gt=\"close-press\",yt=\"focus-out\",wt=\"escape-key\",Et=\"list-navigation\",ht=\"cancel-open\",Ct=\"sibling-open\",Pt=\"imperative-action\",vt=\"window-resize\";function It(e,t,n,r){let o=!1,s=!1;const c=r??g;return{reason:e,event:t??new Event(\"base-ui\"),cancel(){o=!0},allowPropagation(){s=!0},get isCanceled(){return o},get isPropagationAllowed(){return s},trigger:n,...c}}let G=0;function Be(e,t=\"mui\"){const[n,r]=u.useState(e),o=e||n;return u.useEffect(()=>{n==null&&(G+=1,r(`${t}-${G}`))},[n,t]),o}const X=x.useId;function Me(e,t){if(X!==void 0){const n=X();return e??(t?`${t}-${n}`:n)}return Be(e,t)}function kt(e){return Me(e,\"base-ui\")}function Ue(e,t){return function(r,...o){const s=new URL(e);return s.searchParams.set(\"code\",r.toString()),o.forEach(c=>s.searchParams.append(\"args[]\",c)),`${t} error #${r}; visit ${s} for the full message.`}}const ie=Ue(\"https://base-ui.com/production-error\",\"Base UI\"),$e=parseInt(u.version,10);function Ke(e){return $e>=e}function Z(e){if(!u.isValidElement(e))return null;const t=e,n=t.props;return(Ke(19)?n?.ref:t.ref)??null}function T(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function He(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const s=t[r](o);s!=null&&Object.assign(n,s);continue}o===!0?n[`data-${r.toLowerCase()}`]=\"\":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function We(e,t){return typeof e==\"function\"?e(t):e}function je(e,t){return typeof e==\"function\"?e(t):e}const B={};function M(e,t,n,r,o){if(!n&&!r&&!o&&!e)return C(t);let s=C(e);return t&&(s=w(s,t)),n&&(s=w(s,n)),r&&(s=w(s,r)),o&&(s=w(s,o)),s}function Fe(e){if(e.length===0)return B;if(e.length===1)return C(e[0]);let t=C(e[0]);for(let n=1;n=65&&o<=90&&(typeof t==\"function\"||typeof t>\"u\")}function U(e){return typeof e==\"function\"}function ae(e,t){return U(e)?e(t):e??B}function Ye(e,t){return t?e?(...n)=>{const r=n[0];if(fe(r)){const s=r;P(s);const c=t(...n);return s.baseUIHandlerPrevented||e?.(...n),c}const o=t(...n);return e?.(...n),o}:ue(t):e}function ue(e){return e&&((...t)=>{const n=t[0];return fe(n)&&P(n),e(...t)})}function P(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function le(e,t){return t?e?t+\" \"+e:t:e}function fe(e){return e!=null&&typeof e==\"object\"&&\"nativeEvent\"in e}function Nt(e,t,n={}){const r=t.render,o=ze(t,n);if(n.enabled===!1)return null;const s=n.state??g;return Ze(e,r,o,s)}function ze(e,t={}){const{className:n,style:r,render:o}=e,{state:s=g,ref:c,props:f,stateAttributesMapping:d,enabled:a=!0}=t,p=a?We(n,s):void 0,E=a?je(r,s):void 0,I=a?He(s,d):g,b=a&&f?Ge(f):void 0,l=a?T(I,b)??{}:g;return typeof document<\"u\"&&(a?Array.isArray(c)?l.ref=Ee([l.ref,Z(o),...c]):l.ref=_(l.ref,Z(o),c):_(null,null)),a?(p!==void 0&&(l.className=le(l.className,p)),E!==void 0&&(l.style=T(l.style,E)),l):g}function Ge(e){return Array.isArray(e)?Fe(e):M(void 0,e)}const Xe=Symbol.for(\"react.lazy\");function Ze(e,t,n,r){if(t){if(typeof t==\"function\")return t(n,r);const o=M(n,t.props);o.ref=n.ref;let s=t;return s?.$$typeof===Xe&&(s=u.Children.toArray(t)[0]),u.cloneElement(s,o)}if(e&&typeof e==\"string\")return Je(e,n);throw new Error(ie(8))}function Je(e,t){return e===\"button\"?u.createElement(\"button\",{type:\"button\",...t,key:t.key}):e===\"img\"?u.createElement(\"img\",{alt:\"\",...t,key:t.key}):u.createElement(e,t)}const qe=u.createContext(void 0);function Qe(e=!1){const t=u.useContext(qe);if(t===void 0&&!e)throw new Error(ie(16));return t}function et(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:s}=e,c=r&&t!==!1,f=r&&t===!1;return{props:u.useMemo(()=>{const a={onKeyDown(p){n&&t&&p.key!==\"Tab\"&&p.preventDefault()}};return r||(a.tabIndex=o,!s&&n&&(a.tabIndex=t?o:-1)),(s&&(t||c)||!s&&n)&&(a[\"aria-disabled\"]=n),s&&(!t||f)&&(a.disabled=n),a},[r,n,t,c,f,s,o])}}function Dt(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0,composite:s}=e,c=u.useRef(null),f=Qe(!0),d=s??f!==void 0,{props:a}=et({focusableWhenDisabled:n,disabled:t,composite:d,tabIndex:r,isNativeButton:o}),p=u.useCallback(()=>{const b=c.current;S(b)&&d&&t&&a.disabled===void 0&&b.disabled&&(b.disabled=!1)},[t,a.disabled,d]);ve(p,[p]);const E=u.useCallback((b={})=>{const{onClick:l,onMouseDown:de,onKeyUp:pe,onKeyDown:be,onPointerDown:me,...ge}=b;return M({onClick(i){if(t){i.preventDefault();return}l?.(i)},onMouseDown(i){t||de?.(i)},onKeyDown(i){if(t||(P(i),be?.(i),i.baseUIHandlerPrevented))return;const $=i.target===i.currentTarget,h=i.currentTarget,K=S(h),H=!o&&tt(h),W=$&&(o?K:!H),j=i.key===\"Enter\",F=i.key===\" \",k=h.getAttribute(\"role\"),ye=k?.startsWith(\"menuitem\")||k===\"option\"||k===\"gridcell\";if($&&d&&F){if(i.defaultPrevented&&ye)return;i.preventDefault(),H||o&&K?(h.click(),i.preventBaseUIHandler()):W&&(l?.(i),i.preventBaseUIHandler());return}W&&(!o&&(F||j)&&i.preventDefault(),!o&&j&&l?.(i))},onKeyUp(i){if(!t){if(P(i),pe?.(i),i.target===i.currentTarget&&o&&d&&S(i.currentTarget)&&i.key===\" \"){i.preventDefault();return}i.baseUIHandlerPrevented||i.target===i.currentTarget&&!o&&!d&&i.key===\" \"&&l?.(i)}},onPointerDown(i){if(t){i.preventDefault();return}me?.(i)}},o?{type:\"button\"}:{role:\"button\"},a,ge)},[t,a,d,o]),I=ke(b=>{c.current=b,p()});return{getButtonProps:E,buttonRef:I}}function S(e){return O(e)&&e.tagName===\"BUTTON\"}function tt(e){return!!(e?.tagName===\"A\"&&e?.href)}export{Et as A,Pt as B,oe as C,R as D,g as E,ht as F,rt as G,ot as H,gt as I,Se as J,z as K,re as L,Re as M,st as N,ct as O,xe as P,at as Q,L as R,ne as S,ut as T,Oe as U,Le as V,vt as W,Y as X,Ke as Y,ee as Z,_ as a,it as b,Nt as c,It as d,O as e,ft as f,y as g,wt as h,te as i,A as j,ke as k,ve as l,dt as m,kt as n,ie as o,Dt as p,lt as q,je as r,mt as s,pt as t,Qe as u,M as v,bt as w,Ct as x,Me as y,yt as z};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/useOpenInteractionType-97GoxcAN.js": {
"content": "import{j as a}from\"./index-fAdpxP2M.js\";import{aA as E,u as R,i as b,h as I,j as S,aX as x}from\"./useScrollLock-D0Gehqgv.js\";import{f as j,E as A,d as _,k as q}from\"./useButton-ByI90A_n.js\";import{u as B}from\"./useValueChanged-mcPqATWD.js\";function V(t,u={}){const{enabled:i=!0,event:o=\"click\",toggle:e=!0,ignoreMouse:d=!1,stickIfOpen:g=!0,touchOpenDelay:m=0,reason:T=j}=u,f=\"rootStore\"in t?t.rootStore:t,y=f.context.dataRef,p=a.useRef(void 0),C=E(),O=R(),h=a.useMemo(()=>{function k(n,s,c,l){const r=_(T,s,c);n&&l===\"touch\"&&m>0?O.start(m,()=>{f.setOpen(!0,r)}):f.setOpen(n,r)}function w(n,s,c){const l=y.current.openEvent,r=f.select(\"domReferenceElement\")!==s;return n&&r||!n||!e?!0:l&&g?!c(l.type):!1}return{onPointerDown(n){p.current=n.pointerType},onMouseDown(n){const s=p.current,c=n.nativeEvent,l=f.select(\"open\");if(n.button!==0||o===\"click\"||b(s,!0)&&d)return;const r=w(l,n.currentTarget,P=>P===\"click\"||P===\"mousedown\"),M=I(c);if(S(M)){k(r,c,M,s);return}const D=n.currentTarget;C.request(()=>{k(r,c,D,s)})},onClick(n){if(o===\"mousedown-only\")return;const s=p.current;if(o===\"mousedown\"&&s){p.current=void 0;return}if(b(s,!0)&&d)return;const c=f.select(\"open\"),l=w(c,n.currentTarget,r=>r===\"click\"||r===\"mousedown\"||r===\"keydown\"||r===\"keyup\");k(l,n.nativeEvent,n.currentTarget,s)},onKeyDown(){p.current=void 0}}},[y,o,d,T,f,g,e,C,O,m]);return a.useMemo(()=>i?{reference:h}:A,[i,h])}function F(t){const u=a.useRef(\"\"),i=a.useCallback(e=>{e.defaultPrevented||(u.current=e.pointerType,t(e,e.pointerType))},[t]);return{onClick:a.useCallback(e=>{if(e.detail===0){t(e,\"keyboard\");return}\"pointerType\"in e?t(e,e.pointerType):t(e,u.current),u.current=\"\"},[t]),onPointerDown:i}}function H(t,u){const i=q((d,g)=>{(typeof t==\"function\"?t():t)||u(g||(x?\"touch\":\"\"))}),{onClick:o,onPointerDown:e}=F(i);return a.useMemo(()=>({onClick:o,onPointerDown:e}),[o,e])}function W(t){const[u,i]=a.useState(null),o=H(t,i);return B(t,e=>{e&&!t&&i(null)}),a.useMemo(()=>({openMethod:u,triggerProps:o}),[u,o])}export{V as a,H as b,W as u};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/useScrollLock-D0Gehqgv.js": {
"content": "import{j as a,a6 as Ct,b6 as _n,b7 as Vn,Q as ce}from\"./index-fAdpxP2M.js\";import{j as Le,k as K,l as W,X as ze,e as ie,i as xe,L as wt,R as de,o as Yn,Y as Zt,N as Ot,H as Gn,d as Fe,z as en,E as Ke,y as xt,Z as Bn,c as jn,a as Ht,m as Kn,w as tn,g as Je,f as $n,h as qn,V as Xn,C as et,D as Un,S as Pt}from\"./useButton-ByI90A_n.js\";function B(e){return e?.ownerDocument||document}let De=(function(e){return e.startingStyle=\"data-starting-style\",e.endingStyle=\"data-ending-style\",e})({});const zn={[De.startingStyle]:\"\"},Jn={[De.endingStyle]:\"\"},As={transitionStatus(e){return e===\"starting\"?zn:e===\"ending\"?Jn:null}},Qn=[];function nn(e){a.useEffect(e,Qn)}const Ye=null;class Zn{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let s=0;s=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const Ge=new Zn;class fe{static create(){return new fe}static request(t){return Ge.request(t)}static cancel(t){return Ge.cancel(t)}currentId=Ye;request(t){this.cancel(),this.currentId=Ge.request(()=>{this.currentId=Ye,t()})}cancel=()=>{this.currentId!==Ye&&(Ge.cancel(this.currentId),this.currentId=Ye)};disposeEffect=()=>this.cancel}function rn(){const e=Le(fe.create).current;return nn(e.disposeEffect),e}function ge(e){return e==null?e:\"current\"in e?e.current:e}function er(e,t=!1,n=!0){const r=rn();return K((s,o=null)=>{r.cancel();const i=ge(e);if(i==null)return;const u=i,y=()=>{Ct.flushSync(s)};if(typeof u.getAnimations!=\"function\"||globalThis.BASE_UI_ANIMATIONS_DISABLED){s();return}function p(){Promise.all(u.getAnimations().map(c=>c.finished)).then(()=>{o?.aborted||y()}).catch(()=>{if(n){o?.aborted||y();return}const c=u.getAnimations();!o?.aborted&&c.length>0&&c.some(R=>R.pending||R.playState!==\"finished\")&&p()})}if(t){const c=De.startingStyle;if(!u.hasAttribute(c)){r.request(p);return}const R=new MutationObserver(()=>{u.hasAttribute(c)||(R.disconnect(),p())});R.observe(u,{attributes:!0,attributeFilter:[c]}),o?.addEventListener(\"abort\",()=>R.disconnect(),{once:!0});return}r.request(p)})}function tr(e){const{enabled:t=!0,open:n,ref:r,onComplete:s}=e,o=K(s),i=er(r,n,!1);a.useEffect(()=>{if(!t)return;const u=new AbortController;return i(o,u.signal),()=>{u.abort()}},[t,n,o,i])}function nr(e,t=!1,n=!1){const[r,s]=a.useState(e&&t?\"idle\":void 0),[o,i]=a.useState(e);return e&&!o&&(i(!0),s(\"starting\")),!e&&o&&r!==\"ending\"&&!n&&s(\"ending\"),!e&&!o&&r===\"ending\"&&s(void 0),W(()=>{if(!e&&o&&r!==\"ending\"&&n){const u=fe.request(()=>{s(\"ending\")});return()=>{fe.cancel(u)}}},[e,o,r,n]),W(()=>{if(!e||t)return;const u=fe.request(()=>{s(void 0)});return()=>{fe.cancel(u)}},[t,e]),W(()=>{if(!e||!t)return;e&&o&&r!==\"idle\"&&s(\"starting\");const u=fe.request(()=>{s(\"idle\")});return()=>{fe.cancel(u)}},[t,e,o,r]),{mounted:o,setMounted:i,transitionStatus:r}}const ke=typeof navigator<\"u\",tt=or(),sn=cr(),on=ir(),cn=typeof CSS>\"u\"||!CSS.supports?!1:CSS.supports(\"-webkit-backdrop-filter:none\"),rr=tt.platform===\"MacIntel\"&&tt.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(tt.platform),sr=ke&&/apple/i.test(navigator.vendor),ht=ke&&/android/i.test(sn)||/android/i.test(on),vs=ke&&sn.toLowerCase().startsWith(\"mac\")&&!navigator.maxTouchPoints,un=on.includes(\"jsdom/\");function or(){if(!ke)return{platform:\"\",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??\"\",maxTouchPoints:navigator.maxTouchPoints??-1}}function ir(){if(!ke)return\"\";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(\" \"):navigator.userAgent}function cr(){if(!ke)return\"\";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??\"\"}const gt=\"data-base-ui-focusable\",an=\"input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])\",nt=\"ArrowLeft\",rt=\"ArrowRight\",ur=\"ArrowUp\",ar=\"ArrowDown\";function pe(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function F(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&ze(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ce(e){return\"composedPath\"in e?e.composedPath()[0]:e.target}function Ms(e,t){if(!xe(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute(\"data-trigger-disabled\");for(const[,r]of t.entries())if(F(r,n))return!r.hasAttribute(\"data-trigger-disabled\");return!1}function st(e,t){if(t==null)return!1;if(\"composedPath\"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function lr(e){return e.matches(\"html,body\")}function ln(e){return ie(e)&&e.matches(an)}function Fs(e){return e?.closest(`button,a[href],[role=\"button\"],select,[tabindex]:not([tabindex=\"-1\"]),${an}`)!=null}function Lt(e){return e?e.getAttribute(\"role\")===\"combobox\"&&ln(e):!1}function Ns(e){if(!e||un)return!0;try{return e.matches(\":focus-visible\")}catch{return!0}}function Wt(e){return e?e.hasAttribute(gt)?e:e.querySelector(`[${gt}]`)||e:null}function He(e,t,n=!0){return e.filter(s=>s.parentId===t).flatMap(s=>[...!n||s.context?.open?[s]:[],...He(e,s.id,n)])}function _t(e,t){let n=[],r=e.find(s=>s.id===t)?.parentId;for(;r;){const s=e.find(o=>o.id===r);r=s?.parentId,s&&(n=n.concat(s))}return n}function $e(e){e.preventDefault(),e.stopPropagation()}function fr(e){return\"nativeEvent\"in e}function dr(e){return e.pointerType===\"\"&&e.isTrusted?!0:ht&&e.pointerType?e.type===\"click\"&&e.buttons===1:e.detail===0&&!e.pointerType}function hr(e){return un?!1:!ht&&e.width===0&&e.height===0||ht&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===\"mouse\"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===\"touch\"}function Ds(e,t){const n=[\"mouse\",\"pen\"];return t||n.push(\"\",void 0),n.includes(e)}function gr(e){const t=e.type;return t===\"click\"||t===\"mousedown\"||t===\"keydown\"||t===\"keyup\"}const Hs=[\"top\",\"right\",\"bottom\",\"left\"],pr=Math.min,br=Math.max,Ls=Math.round,ot=Math.floor,Ws=e=>({x:e,y:e}),mr={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"};function _s(e,t,n){return br(e,pr(t,n))}function Vs(e,t){return typeof e==\"function\"?e(t):e}function fn(e){return e.split(\"-\")[0]}function dn(e){return e.split(\"-\")[1]}function yr(e){return e===\"x\"?\"y\":\"x\"}function Er(e){return e===\"y\"?\"height\":\"width\"}function Sr(e){const t=e[0];return t===\"t\"||t===\"b\"?\"y\":\"x\"}function Rr(e){return yr(Sr(e))}function Ys(e,t,n){n===void 0&&(n=!1);const r=dn(e),s=Rr(e),o=Er(s);let i=s===\"x\"?r===(n?\"end\":\"start\")?\"right\":\"left\":r===\"start\"?\"bottom\":\"top\";return t.reference[o]>t.floating[o]&&(i=bt(i)),[i,bt(i)]}function Gs(e){const t=bt(e);return[pt(e),t,pt(t)]}function pt(e){return e.includes(\"start\")?e.replace(\"start\",\"end\"):e.replace(\"end\",\"start\")}const Vt=[\"left\",\"right\"],Yt=[\"right\",\"left\"],Tr=[\"top\",\"bottom\"],Cr=[\"bottom\",\"top\"];function wr(e,t,n){switch(e){case\"top\":case\"bottom\":return n?t?Yt:Vt:t?Vt:Yt;case\"left\":case\"right\":return t?Tr:Cr;default:return[]}}function Bs(e,t,n,r){const s=dn(e);let o=wr(fn(e),n===\"start\",r);return s&&(o=o.map(i=>i+\"-\"+s),t&&(o=o.concat(o.map(pt)))),o}function bt(e){const t=fn(e);return mr[t]+e.slice(t.length)}function Or(e){return{top:0,right:0,bottom:0,left:0,...e}}function js(e){return typeof e!=\"number\"?Or(e):{top:e,right:e,bottom:e,left:e}}function Ks(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Be(e,t,n){return Math.floor(e/t)!==n}function Gt(e,t){return t<0||t>=e.length}function $s(e,t){return ue(e.current,{disabledIndices:t})}function qs(e,t){return ue(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function ue(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:s=1}={}){let o=t;do o+=n?-s:s;while(o>=0&&o<=e.length-1&&mt(e,o,r));return o}function Xs(e,{event:t,orientation:n,loopFocus:r,onLoop:s,rtl:o,cols:i,disabledIndices:u,minIndex:y,maxIndex:p,prevIndex:c,stopEvent:R=!1}){let l=c,b;if(t.key===ur?b=\"up\":t.key===ar&&(b=\"down\"),b){const m=[],E=[];let h=!1,x=0;{let L=null,S=-1;e.forEach((G,V)=>{if(G==null)return;x+=1;const d=G.closest('[role=\"row\"]');d&&(h=!0),(d!==L||S===-1)&&(L=d,S+=1,m[S]=[]),m[S].push(V),E[V]=S})}let T=!1,$=0;if(h)for(const L of m){const S=L.length;S>$&&($=S),S!==i&&(T=!0)}const H=T&&x{if(!T||c===-1)return;const S=E[c];if(S==null)return;const G=m[S].indexOf(c),V=L===\"up\"?-1:1;for(let d=S+V,N=0;N=m.length){if(!r||H)return;if(d=d<0?m.length-1:0,s){const te=Math.min(G,m[d].length-1),j=m[d][te]??m[d][0],oe=s(t,c,j);d=E[oe]??d}}const q=m[d];for(let te=Math.min(G,q.length-1);te>=0;te-=1){const j=q[te];if(!mt(e,j,u))return j}}},I=L=>{if(!H||c===-1)return;const S=c%w,G=L===\"up\"?-w:w,V=p-p%w,d=ot(p/w)+1;for(let N=c-S+G,q=0;qp){if(!r)return;N=N<0?V:0}const te=Math.min(N+w-1,p);for(let j=Math.min(N+S,te);j>=N;j-=1)if(!mt(e,j,u))return j}};R&&$e(t);const _=Z(b)??I(b);if(_!==void 0)l=_;else if(c===-1)l=b===\"up\"?p:y;else if(l=ue(e,{startingIndex:c,amount:w,decrement:b===\"up\",disabledIndices:u}),r){if(b===\"up\"&&(c-wL?G:G-w,s&&(l=s(t,c,l))}b===\"down\"&&c+w>p&&(l=ue(e,{startingIndex:c%w-w,amount:w,disabledIndices:u}),s&&(l=s(t,c,l)))}Gt(e,l)&&(l=c)}if(n===\"both\"){const m=ot(c/i);t.key===(o?nt:rt)&&(R&&$e(t),c%i!==i-1?(l=ue(e,{startingIndex:c,disabledIndices:u}),r&&Be(l,i,m)&&(l=ue(e,{startingIndex:c-c%i-1,disabledIndices:u}),s&&(l=s(t,c,l)))):r&&(l=ue(e,{startingIndex:c-c%i-1,disabledIndices:u}),s&&(l=s(t,c,l))),Be(l,i,m)&&(l=c)),t.key===(o?rt:nt)&&(R&&$e(t),c%i!==0?(l=ue(e,{startingIndex:c,decrement:!0,disabledIndices:u}),r&&Be(l,i,m)&&(l=ue(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:u}),s&&(l=s(t,c,l)))):r&&(l=ue(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:u}),s&&(l=s(t,c,l))),Be(l,i,m)&&(l=c));const E=ot(p/i)===m;Gt(e,l)&&(r&&E?(l=t.key===(o?rt:nt)?p:ue(e,{startingIndex:c-c%i-1,disabledIndices:u}),s&&(l=s(t,c,l))):l=c)}return l}function Us(e,t,n){const r=[];let s=0;return e.forEach(({width:o,height:i},u)=>{let y=!1;for(;!y;){const p=[];for(let c=0;cr[c]==null)?(p.forEach(c=>{r[c]=u}),y=!0):s+=1}}),[...r]}function zs(e,t,n,r,s){if(e===-1)return-1;const o=n.indexOf(e),i=t[e];switch(s){case\"tl\":return o;case\"tr\":return i?o+i.width-1:o;case\"bl\":return i?o+(i.height-1)*r:o;case\"br\":return n.lastIndexOf(e);default:return-1}}function Js(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function mt(e,t,n){if(typeof n==\"function\"?n(t):n?.includes(t)??!1)return!0;const s=e[t];return s?kt(s)?!n&&(s.hasAttribute(\"disabled\")||s.getAttribute(\"aria-disabled\")===\"true\"):!0:!1}function xr(e){return e.visibility===\"hidden\"||e.visibility===\"collapse\"}function kt(e,t=e?wt(e):null){return!e||!e.isConnected||!t||xr(t)?!1:typeof e.checkVisibility==\"function\"?e.checkVisibility():t.display!==\"none\"&&t.display!==\"contents\"}const Pr='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]';function kr(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return ze(n)?n.host:null}function yt(e){for(const t of Array.from(e.children))if(de(t)===\"summary\")return t;return null}function Ir(e,t){const n=yt(t);return!!n&&(e===n||F(n,e))}function hn(e){const t=e?de(e):\"\";return e!=null&&e.matches(Pr)&&(t!==\"summary\"||e.parentElement!=null&&de(e.parentElement)===\"details\"&&yt(e.parentElement)===e)&&(t!==\"details\"||yt(e)==null)&&(t!==\"input\"||e.type!==\"hidden\")}function gn(e){if(!hn(e)||!e.isConnected||e.matches(\":disabled\"))return!1;for(let t=e;t;t=kr(t)){const n=t!==e,r=de(t)===\"slot\";if(t.hasAttribute(\"inert\")||n&&de(t)===\"details\"&&!t.open&&!Ir(e,t)||t.hasAttribute(\"hidden\")||!r&&!Ar(t,n))return!1}return!0}function Ar(e,t){const n=wt(e);return t?n.display!==\"none\":kt(e,n)}function pn(e){const t=e.tabIndex;if(t<0){const n=de(e);if(n===\"details\"||n===\"audio\"||n===\"video\"||ie(e)&&e.isContentEditable)return 0}return t}function it(e){if(de(e)!==\"input\")return null;const t=e;return t.type===\"radio\"&&t.name!==\"\"?t:null}function vr(e,t){const n=it(e);if(!n)return!0;const r=t.find(s=>{const o=it(s);return o?.name===n.name&&o.form===n.form&&o.checked});return r?r===n:t.find(s=>{const o=it(s);return o?.name===n.name&&o.form===n.form})===n}function bn(e){if(ie(e)&&de(e)===\"slot\"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return ie(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function mn(e,t){bn(e).forEach(n=>{hn(n)&&t.push(n),mn(n,t)})}function yn(e,t,n){bn(e).forEach(r=>{ie(r)&&r.matches(t)&&n.push(r),yn(r,t,n)})}function It(e){return gn(e)&&pn(e)>=0}function En(e){const t=[];return mn(e,t),t.filter(gn)}function We(e){const t=En(e);return t.filter(n=>pn(n)>=0&&vr(n,t))}function Sn(e,t){const n=We(e),r=n.length;if(r===0)return;const s=pe(B(e)),o=n.indexOf(s),i=o===-1?t===1?0:r-1:o+t;return n[i]}function Rn(e){return Sn(B(e).body,1)||e}function Tn(e){return Sn(B(e).body,-1)||e}function Cn(e,t){if(!e)return null;const n=We(B(e).body),r=n.length;if(r===0)return null;const s=n.indexOf(e);if(s===-1)return null;const o=(s+t+r)%r;return n[o]}function Qs(e){return Cn(e,1)}function Zs(e){return Cn(e,-1)}function Ne(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!F(n,r)}function Mr(e){We(e).forEach(n=>{n.dataset.tabindex=n.getAttribute(\"tabindex\")||\"\",n.setAttribute(\"tabindex\",\"-1\")})}function Bt(e){const t=[];yn(e,\"[data-tabindex]\",t),t.forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute(\"tabindex\",r):n.removeAttribute(\"tabindex\")})}const Fr=\"ArrowUp\",Nr=\"ArrowDown\",Dr=\"ArrowLeft\",Hr=\"ArrowRight\",Lr=\"Home\",Wr=\"End\",_r=new Set([Dr,Hr]),Vr=new Set([Fr,Nr]),Yr=new Set([..._r,...Vr]),eo=new Set([...Yr,Lr,Wr]);function ct(e){const t=Le(Gr,e).current;return t.next=e,W(t.effect),t}function Gr(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function to(e){const t=a.useRef(!0);t.current&&(t.current=!1,e())}const Oe=(e,t,n,r,s,o,...i)=>{if(i.length>0)throw new Error(Yn(1));let u;if(e)u=e;else throw new Error(\"Missing arguments\");return u};var wn=_n();const Et=[];let St;function Br(){return St}function jr(e){Et.push(e)}function Kr(e){const t=(n,r)=>{const s=Le($r).current;let o;try{St=s;for(const i of Et)i.before(s);o=e(n,r);for(const i of Et)i.after(s);s.didInitialize=!0}finally{St=void 0}return o};return t.displayName=e.displayName||e.name,t}function no(e){return a.forwardRef(Kr(e))}function $r(){return{didInitialize:!1}}const qr=Zt(19),Xr=qr?zr:Jr;function On(e,t,n,r,s){return Xr(e,t,n,r,s)}function Ur(e,t,n,r,s){const o=a.useCallback(()=>t(e.getSnapshot(),n,r,s),[e,t,n,r,s]);return wn.useSyncExternalStore(e.subscribe,o,o)}jr({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const s of e.syncHooks)n.add(s.store);const r=[];for(const s of n)r.push(s.subscribe(t));return()=>{for(const s of r)s()}}),wn.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function zr(e,t,n,r,s){const o=Br();if(!o)return Ur(e,t,n,r,s);const i=o.syncIndex;o.syncIndex+=1;let u;return o.didInitialize?(u=o.syncHooks[i],(u.store!==e||u.selector!==t||!Object.is(u.a1,n)||!Object.is(u.a2,r)||!Object.is(u.a3,s))&&(u.store!==e&&(o.didChangeStore=!0),u.store=e,u.selector=t,u.a1=n,u.a2=r,u.a3=s,u.didChange=!0)):(u={store:e,selector:t,a1:n,a2:r,a3:s,value:t(e.getSnapshot(),n,r,s),didChange:!1},o.syncHooks.push(u)),u.value}function Jr(e,t,n,r,s){return Vn.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,o=>t(o,n,r,s))}class Qr{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,s){return On(this,t,n,r,s)}}class Zr extends Qr{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){a.useDebugValue(t);const r=this;W(()=>{r.state[t]!==n&&r.set(t,n)},[r,t,n])}useSyncedValueWithCleanup(t,n){const r=this;W(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this,r=Object.values(t);W(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){a.useDebugValue(t);const r=this,s=n!==void 0;W(()=>{s&&!Object.is(r.state[t],n)&&r.setState({...r.state,[t]:n})},[r,t,n,s])}select(t,n,r,s){const o=this.selectors[t];return o(this.state,n,r,s)}useState(t,n,r,s){return a.useDebugValue(t),On(this,this.selectors[t],n,r,s)}useContextCallback(t,n){a.useDebugValue(t);const r=K(n??Ot);this.context[t]=r}useStateSetter(t){const n=a.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t==\"function\"?r=t:r=this.selectors[t];let s=r(this.state);return n(s,s,this),this.subscribe(o=>{const i=r(o);if(!Object.is(s,i)){const u=s;s=i,n(i,u,this)}})}}function Pe(...e){return()=>{for(let t=0;t{e.removeEventListener(t,n,r)}}const ve=0;class we{static create(){return new we}currentId=ve;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=ve,n()},t)}isStarted(){return this.currentId!==ve}clear=()=>{this.currentId!==ve&&(clearTimeout(this.currentId),this.currentId=ve)};disposeEffect=()=>this.clear}function qe(){const e=Le(we.create).current;return nn(e.disposeEffect),e}const Xe=a.forwardRef(function(t,n){const[r,s]=a.useState();W(()=>{sr&&s(\"button\")},[]);const o={tabIndex:0,role:r};return ce.jsx(\"span\",{...t,ref:n,style:Gn,\"aria-hidden\":r?void 0:!0,...o,\"data-base-ui-focus-guard\":\"\"})});function Ue(e){return`data-base-ui-${e}`}let je=0;function ut(e,t={}){const{preventScroll:n=!1,sync:r=!1,shouldFocus:s}=t;cancelAnimationFrame(je);function o(){s&&!s()||e?.focus({preventScroll:n})}if(r)return o(),Ot;const i=requestAnimationFrame(o);return je=i,()=>{je===i&&(cancelAnimationFrame(i),je=0)}}const at={inert:new WeakMap,\"aria-hidden\":new WeakMap},jt=\"data-base-ui-inert\",Rt={inert:new WeakSet,\"aria-hidden\":new WeakSet};let Me=new WeakMap,lt=0;function es(e){return Rt[e]}function xn(e){return e?ze(e)?e.host:xn(e.parentNode):null}const ft=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=xn(n);return e.contains(r)?r:null}).filter(n=>n!=null),Kt=e=>{const t=new Set;return e.forEach(n=>{let r=n;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},$t=(e,t,n)=>{const r=[],s=o=>{!o||n.has(o)||Array.from(o.children).forEach(i=>{de(i)!==\"script\"&&(t.has(i)?s(i):r.push(i))})};return s(e),r};function ts(e,t,n,r,{mark:s=!0,markerIgnoreElements:o=[]}){const i=r?\"inert\":n?\"aria-hidden\":null;let u=null,y=null;const p=ft(t,e),c=s?ft(t,o):[],R=new Set(c),l=s?$t(t,Kt(p),new Set(p)).filter(E=>!R.has(E)):[],b=[],m=[];if(i){const E=at[i],h=es(i);y=h,u=E;const x=ft(t,Array.from(t.querySelectorAll(\"[aria-live]\"))),T=p.concat(x);$t(t,Kt(T),new Set(T)).forEach(H=>{const w=H.getAttribute(i),Z=w!==null&&w!==\"false\",I=(E.get(H)||0)+1;E.set(H,I),b.push(H),I===1&&Z&&h.add(H),Z||H.setAttribute(i,i===\"inert\"?\"\":\"true\")})}return s&&l.forEach(E=>{const h=(Me.get(E)||0)+1;Me.set(E,h),m.push(E),h===1&&E.setAttribute(jt,\"\")}),lt+=1,()=>{u&&b.forEach(E=>{const x=(u.get(E)||0)-1;u.set(E,x),x||(!y?.has(E)&&i&&E.removeAttribute(i),y?.delete(E))}),s&&m.forEach(E=>{const h=(Me.get(E)||0)-1;Me.set(E,h),h||E.removeAttribute(jt)}),lt-=1,lt||(at.inert=new WeakMap,at[\"aria-hidden\"]=new WeakMap,Rt.inert=new WeakSet,Rt[\"aria-hidden\"]=new WeakSet,Me=new WeakMap)}}function qt(e,t={}){const{ariaHidden:n=!1,inert:r=!1,mark:s=!0,markerIgnoreElements:o=[]}=t,i=B(e[0]).body;return ts(e,i,n,r,{mark:s,markerIgnoreElements:o})}const ro=500,so=500,oo={style:{transition:\"none\"}},ns=\"data-base-ui-click-trigger\",io={fallbackAxisSide:\"none\"},co={fallbackAxisSide:\"end\"},rs={clipPath:\"inset(50%)\",position:\"fixed\",top:0,left:0},Pn=a.createContext(null),kn=()=>a.useContext(Pn),ss=Ue(\"portal\");function os(e={}){const{ref:t,container:n,componentProps:r=Ke,elementProps:s}=e,o=xt(),u=kn()?.portalNode,[y,p]=a.useState(null),[c,R]=a.useState(null),l=K(h=>{h!==null&&R(h)}),b=a.useRef(null);W(()=>{if(n===null){b.current&&(b.current=null,R(null),p(null));return}if(o==null)return;const h=(n&&(Bn(n)?n:n.current))??u??document.body;if(h==null){b.current&&(b.current=null,R(null),p(null));return}b.current!==h&&(b.current=h,R(null),p(h))},[n,u,o]);const m=jn(\"div\",r,{ref:[t,l],props:[{id:o,[ss]:\"\"},s]});return{portalNode:c,portalSubtree:y&&m?Ct.createPortal(m,y):null}}const uo=a.forwardRef(function(t,n){const{render:r,className:s,style:o,children:i,container:u,renderGuards:y,...p}=t,{portalNode:c,portalSubtree:R}=os({container:u,ref:n,componentProps:t,elementProps:p}),l=a.useRef(null),b=a.useRef(null),m=a.useRef(null),E=a.useRef(null),[h,x]=a.useState(null),T=a.useRef(!1),$=h?.modal,H=h?.open,w=typeof y==\"boolean\"?y:!!h&&!h.modal&&h.open&&!!c;a.useEffect(()=>{if(!c||$)return;function I(_){c&&_.relatedTarget&&Ne(_)&&(_.type===\"focusin\"?T.current&&(Bt(c),T.current=!1):(Mr(c),T.current=!0))}return Pe(D(c,\"focusin\",I,!0),D(c,\"focusout\",I,!0))},[c,$]),a.useEffect(()=>{!c||H!==!1||(Bt(c),T.current=!1)},[H,c]);const Z=a.useMemo(()=>({beforeOutsideRef:l,afterOutsideRef:b,beforeInsideRef:m,afterInsideRef:E,portalNode:c,setFocusManagerState:x}),[c]);return ce.jsxs(a.Fragment,{children:[R,ce.jsxs(Pn.Provider,{value:Z,children:[w&&c&&ce.jsx(Xe,{\"data-type\":\"outside\",ref:l,onFocus:I=>{if(Ne(I,c))m.current?.focus();else{const _=h?h.domReference:null;Tn(_)?.focus()}}}),w&&c&&ce.jsx(\"span\",{\"aria-owns\":c.id,style:rs}),c&&Ct.createPortal(i,c),w&&c&&ce.jsx(Xe,{\"data-type\":\"outside\",ref:b,onFocus:I=>{if(Ne(I,c))E.current?.focus();else{const _=h?h.domReference:null;Rn(_)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Fe(en,I.nativeEvent))}}})]})]})});function In(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}class is{nodesRef={current:[]};events=In();addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const An=a.createContext(null),vn=a.createContext(null),At=()=>a.useContext(An)?.id||null,vt=e=>{const t=a.useContext(vn);return e??t};function ao(e){const t=xt(),n=vt(e),r=At();return W(()=>{if(!t)return;const s={id:t,parentId:r};return n?.addNode(s),()=>{n?.removeNode(s)}},[n,t,r]),t}function lo(e){const{children:t,id:n}=e,r=At();return ce.jsx(An.Provider,{value:a.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function fo(e){const{children:t,externalTree:n}=e,r=Le(()=>n??new is).current;return ce.jsx(vn.Provider,{value:r,children:t})}function cs(e,t){const n=Je(Ce(e));return e instanceof n.KeyboardEvent?\"keyboard\":e instanceof n.FocusEvent?t||\"keyboard\":\"pointerType\"in e?e.pointerType||\"keyboard\":\"touches\"in e?\"touch\":e instanceof n.MouseEvent?t||(e.detail===0?\"keyboard\":\"mouse\"):\"\"}const Xt=20;let me=[];function Mt(){me=me.filter(e=>e.deref()?.isConnected)}function us(e){Mt(),e&&de(e)!==\"body\"&&(me.push(new WeakRef(e)),me.length>Xt&&(me=me.slice(-Xt)))}function dt(){return Mt(),me[me.length-1]?.deref()}function as(e){return e?It(e)?e:We(e)[0]||e:null}function Ut(e,t){if(e.hasAttribute(\"tabindex\")&&!e.hasAttribute(\"data-tabindex\")||!t.current.includes(\"floating\")&&!e.getAttribute(\"role\")?.includes(\"dialog\"))return;const r=En(e).filter(o=>{const i=o.getAttribute(\"data-tabindex\")||\"\";return It(o)||o.hasAttribute(\"data-tabindex\")&&!i.startsWith(\"-\")}),s=e.getAttribute(\"tabindex\");t.current.includes(\"floating\")||r.length===0?s!==\"0\"&&e.setAttribute(\"tabindex\",\"0\"):(s!==\"-1\"||e.hasAttribute(\"data-tabindex\")&&e.getAttribute(\"data-tabindex\")!==\"-1\")&&(e.setAttribute(\"tabindex\",\"-1\"),e.setAttribute(\"data-tabindex\",\"-1\"))}function ho(e){const{context:t,children:n,disabled:r=!1,initialFocus:s=!0,returnFocus:o=!0,restoreFocus:i=!1,modal:u=!0,closeOnFocusOut:y=!0,openInteractionType:p=\"\",nextFocusableElement:c,previousFocusableElement:R,beforeContentFocusGuardRef:l,externalTree:b,getInsideElements:m}=e,E=\"rootStore\"in t?t.rootStore:t,h=E.useState(\"open\"),x=E.useState(\"domReferenceElement\"),T=E.useState(\"floatingElement\"),{events:$,dataRef:H}=E.context,w=K(()=>H.current.floatingContext?.nodeId),Z=s===!1,I=Lt(x)&&Z,_=a.useRef([\"content\"]),L=ct(s),S=ct(o),G=ct(p),V=vt(b),d=kn(),N=a.useRef(!1),q=a.useRef(!1),te=a.useRef(!1),j=a.useRef(null),oe=a.useRef(\"\"),ye=a.useRef(\"\"),Ee=a.useRef(null),Se=a.useRef(null),_e=Ht(Ee,l,d?.beforeInsideRef),A=Ht(Se,d?.afterInsideRef),se=qe(),he=qe(),Re=rn(),Ve=d!=null,P=Wt(T),ee=K((C=P)=>C?We(C):[]),ae=K(()=>m?.().filter(C=>C!=null)??[]);a.useEffect(()=>{if(r||!u)return;function C(z){z.key===\"Tab\"&&F(P,pe(B(P)))&&ee().length===0&&!I&&$e(z)}const X=B(P);return D(X,\"keydown\",C)},[r,P,u,I,ee]),a.useEffect(()=>{if(r||!h)return;const C=B(P);function X(){te.current=!1}function z(v){const k=Ce(v),Y=ae(),O=F(T,k)||F(x,k)||F(d?.portalNode,k)||Y.some(J=>J===k||F(J,k));te.current=!O,ye.current=v.pointerType||\"keyboard\",k?.closest(`[${ns}]`)&&(q.current=!0)}function U(){ye.current=\"keyboard\"}return Pe(D(C,\"pointerdown\",z,!0),D(C,\"pointerup\",X,!0),D(C,\"pointercancel\",X,!0),D(C,\"keydown\",U,!0))},[r,T,x,P,h,d,ae]),a.useEffect(()=>{if(r||!y)return;const C=B(P);function X(){q.current=!0,he.start(0,()=>{q.current=!1})}function z(Y){const O=Ce(Y);It(O)&&(j.current=O)}function U(Y){const O=Y.relatedTarget,J=Y.currentTarget,ne=Ce(Y);queueMicrotask(()=>{const Te=w(),re=E.context.triggerElements,Qe=ae(),f=O?.hasAttribute(Ue(\"focus-guard\"))&&[Ee.current,Se.current,d?.beforeInsideRef.current,d?.afterInsideRef.current,d?.beforeOutsideRef.current,d?.afterOutsideRef.current,ge(R),ge(c)].includes(O),g=!(F(x,O)||F(T,O)||F(O,T)||F(d?.portalNode,O)||Qe.some(M=>M===O||F(M,O))||O!=null&&re.hasElement(O)||re.hasMatchingElement(M=>F(M,O))||f||V&&(He(V.nodesRef.current,Te).find(M=>F(M.context?.elements.floating,O)||F(M.context?.elements.domReference,O))||_t(V.nodesRef.current,Te).find(M=>[M.context?.elements.floating,Wt(M.context?.elements.floating)].includes(O)||M.context?.elements.domReference===O)));if(J===x&&P&&Ut(P,_),i&&J!==x&&!kt(ne)&&pe(C)===C.body){if(ie(P)&&(P.focus(),i===\"popup\")){Re.request(()=>{P.focus()});return}const M=ee(),Q=j.current,be=(Q&&M.includes(Q)?Q:null)||M[M.length-1]||P;ie(be)&&be.focus()}if(H.current.insideReactTree){H.current.insideReactTree=!1;return}(I||!u)&&O&&g&&!q.current&&(I||O!==dt())&&(N.current=!0,E.setOpen(!1,Fe(en,Y)))})}function v(){te.current||(H.current.insideReactTree=!0,se.start(0,()=>{H.current.insideReactTree=!1}))}const k=ie(x)?x:null;if(!(!T&&!k))return Pe(k&&D(k,\"focusout\",U),k&&D(k,\"pointerdown\",X),T&&D(T,\"focusin\",z),T&&D(T,\"focusout\",U),T&&d&&D(T,\"focusout\",v,!0))},[r,x,T,P,u,V,d,E,y,i,ee,I,w,_,H,se,he,Re,c,R,ae]),a.useEffect(()=>{if(r||!T||!h)return;const C=Array.from(d?.portalNode?.querySelectorAll(`[${Ue(\"portal\")}]`)||[]),z=(V?_t(V.nodesRef.current,w()):[]).find(J=>Lt(J.context?.elements.domReference||null))?.context?.elements.domReference,v=[...[T,...C,Ee.current,Se.current,d?.beforeOutsideRef.current,d?.afterOutsideRef.current,...ae()],z,ge(R),ge(c),I?x:null].filter(J=>J!=null),k=qt(v,{ariaHidden:u||I,mark:!1}),Y=[T,...C].filter(J=>J!=null),O=qt(Y);return()=>{O(),k()}},[h,r,x,T,u,d,I,V,w,c,R,ae]),W(()=>{if(!h||r||!ie(P))return;const C=B(P),X=pe(C);queueMicrotask(()=>{const z=L.current,U=typeof z==\"function\"?z(G.current||\"\"):z;if(U===void 0||U===!1||F(P,X))return;let k=null;const Y=()=>(k==null&&(k=ee(P)),k[0]||P);let O;U===!0||U===null?O=Y():O=ge(U),O=O||Y();const J=F(P,pe(C));ut(O,{preventScroll:O===P,shouldFocus(){if(J)return!0;const ne=pe(C);return!(ne!==O&&F(P,ne))}})})},[r,h,P,ee,L,G]),W(()=>{if(r||!P)return;const C=B(P),X=pe(C);us(X);function z(v){if(v.open||(oe.current=cs(v.nativeEvent,ye.current)),v.reason===Kn&&v.nativeEvent.type===\"mouseleave\"&&(N.current=!0),v.reason===tn)if(v.nested)N.current=!1;else if(dr(v.nativeEvent)||hr(v.nativeEvent))N.current=!1;else{let k=!1;B(P).createElement(\"div\").focus({get preventScroll(){return k=!0,!1}}),k?N.current=!1:N.current=!0}}$.on(\"openchange\",z);function U(){const v=S.current;let k=typeof v==\"function\"?v(oe.current):v;if(k===void 0||k===!1)return null;if(k===null&&(k=!0),typeof k==\"boolean\")return x?.isConnected?x:dt()||null;const Y=x?.isConnected?x:dt();return ge(k)||Y||null}return()=>{$.off(\"openchange\",z);const v=pe(C),k=ae(),Y=F(T,v)||k.some(ne=>ne===v||F(ne,v))||V&&He(V.nodesRef.current,w(),!1).some(ne=>F(ne.context?.elements.floating,v)),O=S.current,J=U();queueMicrotask(()=>{const ne=as(J),Te=typeof O!=\"boolean\";O&&!N.current&&ie(ne)&&(!(!Te&&ne!==v&&v!==C.body)||Y)&&ne.focus({preventScroll:!0}),N.current=!1})}},[r,T,P,S,$,V,x,w,ae]),W(()=>{if(!cn||h||!T)return;const C=pe(B(T));!ie(C)||!ln(C)||F(T,C)&&C.blur()},[h,T]),W(()=>{if(!(r||!d))return d.setFocusManagerState({modal:u,closeOnFocusOut:y,open:h,onOpenChange:E.setOpen,domReference:x}),()=>{d.setFocusManagerState(null)}},[r,d,u,h,E,y,x]),W(()=>{if(!(r||!P))return Ut(P,_),()=>{queueMicrotask(Mt)}},[r,P,_]);const Ie=!r&&(u?!I:!0)&&(Ve||u);return ce.jsxs(a.Fragment,{children:[Ie&&ce.jsx(Xe,{\"data-type\":\"inside\",ref:_e,onFocus:C=>{if(u){const X=ee();ut(X[X.length-1])}else d?.portalNode&&(N.current=!1,Ne(C,d.portalNode)?Rn(x)?.focus():ge(R??d.beforeOutsideRef)?.focus())}}),n,Ie&&ce.jsx(Xe,{\"data-type\":\"inside\",ref:A,onFocus:C=>{u?ut(ee()[0]):d?.portalNode&&(y&&(N.current=!0),Ne(C,d.portalNode)?Tn(x)?.focus():ge(c??d.afterOutsideRef)?.focus())}})]})}const ls={intentional:\"onClick\",sloppy:\"onPointerDown\"};function fs(){return!1}function ds(e){return{escapeKey:typeof e==\"boolean\"?e:e?.escapeKey??!1,outsidePress:typeof e==\"boolean\"?e:e?.outsidePress??!0}}function go(e,t={}){const{enabled:n=!0,escapeKey:r=!0,outsidePress:s=!0,outsidePressEvent:o=\"sloppy\",referencePress:i=fs,referencePressEvent:u=\"sloppy\",bubbles:y,externalTree:p}=t,c=\"rootStore\"in e?e.rootStore:e,R=c.useState(\"open\"),l=c.useState(\"floatingElement\"),{dataRef:b}=c.context,m=vt(p),E=K(typeof s==\"function\"?s:()=>!1),h=typeof s==\"function\"?E:s,x=h!==!1,T=K(()=>o),{escapeKey:$,outsidePress:H}=ds(y),w=a.useRef(!1),Z=a.useRef(!1),I=a.useRef(!1),_=a.useRef(!1),L=a.useRef(\"\"),S=a.useRef(null),G=qe(),V=qe(),d=K(()=>{V.clear(),b.current.insideReactTree=!1}),N=K(A=>{const se=b.current.floatingContext?.nodeId;return(m?He(m.nodesRef.current,se):[]).some(Re=>Re.context?.open&&!Re.context.dataRef.current[A])}),q=K(A=>st(A,c.select(\"floatingElement\"))||st(A,c.select(\"domReferenceElement\"))),te=K(A=>{i()&&c.setOpen(!1,Fe($n,A.nativeEvent))}),j=K(A=>{if(!R||!n||!r||A.key!==\"Escape\"||_.current||!$&&N(\"__escapeKeyBubbles\"))return;const se=fr(A)?A.nativeEvent:A,he=Fe(qn,se);c.setOpen(!1,he),he.isCanceled||A.preventDefault(),!$&&!he.isPropagationAllowed&&A.stopPropagation()}),oe=K(()=>{b.current.insideReactTree=!0,V.start(0,d)}),ye=K(A=>{if(!R||!n||A.button!==0)return;const se=Ce(A.nativeEvent);F(c.select(\"floatingElement\"),se)&&(w.current||(w.current=!0,Z.current=!1))}),Ee=K(A=>{!R||!n||(A.defaultPrevented||A.nativeEvent.defaultPrevented)&&w.current&&(Z.current=!0)});a.useEffect(()=>{if(!R||!n)return;b.current.__escapeKeyBubbles=$,b.current.__outsidePressBubbles=H;const A=new we,se=new we;function he(){A.clear(),_.current=!0}function Re(){A.start(Xn()?5:0,()=>{_.current=!1})}function Ve(){I.current=!0,se.start(0,()=>{I.current=!1})}function P(){w.current=!1,Z.current=!1}function ee(){const f=L.current,g=f===\"pen\"||!f?\"mouse\":f,M=T(),Q=typeof M==\"function\"?M():M;return typeof Q==\"string\"?Q:Q[g]}function ae(f){const g=ee();return g===\"intentional\"&&f.type!==\"click\"||g===\"sloppy\"&&f.type===\"click\"}function Ie(f){const g=b.current.floatingContext?.nodeId,M=m&&He(m.nodesRef.current,g).some(Q=>st(f,Q.context?.elements.floating));return q(f)||M}function C(f){if(ae(f)){f.type!==\"click\"&&!q(f)&&(se.clear(),I.current=!1),d();return}if(b.current.insideReactTree){d();return}const g=Ce(f),M=`[${Ue(\"inert\")}]`,Q=xe(g)?g.getRootNode():null,be=Array.from((ze(Q)?Q:B(c.select(\"floatingElement\"))).querySelectorAll(M)),Nt=c.context.triggerElements;if(g&&(Nt.hasElement(g)||Nt.hasMatchingElement(le=>F(le,g))))return;let Ae=xe(g)?g:null;for(;Ae&&!et(Ae);){const le=Un(Ae);if(et(le)||!xe(le))break;Ae=le}if(!(be.length&&xe(g)&&!lr(g)&&!F(g,c.select(\"floatingElement\"))&&be.every(le=>!F(Ae,le)))){if(ie(g)&&!(\"touches\"in f)){const le=et(g),Ze=wt(g),Dt=/auto|scroll/,Mn=le||Dt.test(Ze.overflowX),Fn=le||Dt.test(Ze.overflowY),Nn=Mn&&g.clientWidth>0&&g.scrollWidth>g.clientWidth,Dn=Fn&&g.clientHeight>0&&g.scrollHeight>g.clientHeight,Hn=Ze.direction===\"rtl\",Ln=Dn&&(Hn?f.offsetX<=g.offsetWidth-g.clientWidth:f.offsetX>g.clientWidth),Wn=Nn&&f.offsetY>g.clientHeight;if(Ln||Wn)return}if(!Ie(f)){if(ee()===\"intentional\"&&I.current){se.clear(),I.current=!1;return}typeof h==\"function\"&&!h(f)||N(\"__outsidePressBubbles\")||(c.setOpen(!1,Fe(tn,f)),d())}}}function X(f){ee()!==\"sloppy\"||f.pointerType===\"touch\"||!c.select(\"open\")||!n||q(f)||C(f)}function z(f){if(ee()!==\"sloppy\"||!c.select(\"open\")||!n||q(f))return;const g=f.touches[0];g&&(S.current={startTime:Date.now(),startX:g.clientX,startY:g.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},G.start(1e3,()=>{S.current&&(S.current.dismissOnTouchEnd=!1,S.current.dismissOnMouseDown=!1)}))}function U(f,g){const M=Ce(f);if(!M)return;const Q=D(M,f.type,()=>{g(f),Q()})}function v(f){L.current=\"touch\",U(f,z)}function k(f){G.clear(),f.type===\"pointerdown\"&&(L.current=f.pointerType),!(f.type===\"mousedown\"&&S.current&&!S.current.dismissOnMouseDown)&&U(f,g=>{g.type===\"pointerdown\"?X(g):C(g)})}function Y(f){if(!w.current)return;const g=Z.current;if(P(),ee()===\"intentional\"){if(f.type===\"pointercancel\"){g&&Ve();return}if(!Ie(f)){if(g){Ve();return}typeof h==\"function\"&&!h(f)||(se.clear(),I.current=!0,d())}}}function O(f){if(ee()!==\"sloppy\"||!S.current||q(f))return;const g=f.touches[0];if(!g)return;const M=Math.abs(g.clientX-S.current.startX),Q=Math.abs(g.clientY-S.current.startY),be=Math.sqrt(M*M+Q*Q);be>5&&(S.current.dismissOnTouchEnd=!0),be>10&&(C(f),G.clear(),S.current=null)}function J(f){U(f,O)}function ne(f){ee()!==\"sloppy\"||!S.current||q(f)||(S.current.dismissOnTouchEnd&&C(f),G.clear(),S.current=null)}function Te(f){U(f,ne)}const re=B(l),Qe=Pe(r&&Pe(D(re,\"keydown\",j),D(re,\"compositionstart\",he),D(re,\"compositionend\",Re)),x&&Pe(D(re,\"click\",k,!0),D(re,\"pointerdown\",k,!0),D(re,\"pointerup\",Y,!0),D(re,\"pointercancel\",Y,!0),D(re,\"mousedown\",k,!0),D(re,\"mouseup\",Y,!0),D(re,\"touchstart\",v,!0),D(re,\"touchmove\",J,!0),D(re,\"touchend\",Te,!0)));return()=>{Qe(),A.clear(),se.clear(),P(),I.current=!1}},[b,l,r,x,h,R,n,$,H,j,d,T,N,q,m,c,G]),a.useEffect(d,[h,d]);const Se=a.useMemo(()=>({onKeyDown:j,[ls[u]]:te,...u!==\"intentional\"&&{onClick:te}}),[j,te,u]),_e=a.useMemo(()=>({onKeyDown:j,onPointerDown:Ee,onMouseDown:Ee,onClickCapture:oe,onMouseDownCapture(A){oe(),ye(A)},onPointerDownCapture(A){oe(),ye(A)},onMouseUpCapture:oe,onTouchEndCapture:oe,onTouchMoveCapture:oe}),[j,oe,ye,Ee]);return a.useMemo(()=>n?{reference:Se,floating:_e,trigger:Se}:{},[n,Se,_e])}const hs={open:Oe(e=>e.open),transitionStatus:Oe(e=>e.transitionStatus),domReferenceElement:Oe(e=>e.domReferenceElement),referenceElement:Oe(e=>e.positionReference??e.referenceElement),floatingElement:Oe(e=>e.floatingElement),floatingId:Oe(e=>e.floatingId)};class gs extends Zr{constructor(t){const{syncOnly:n,nested:r,onOpenChange:s,triggerElements:o,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:s,dataRef:{current:{}},events:In(),nested:r,triggerElements:o},hs),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&gr(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit(\"openchange\",r)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}}function ps(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:s,nested:o,onOpenChange:i}=e,u=t.useState(\"open\"),y=t.useState(\"activeTriggerElement\"),p=t.useState(n?\"popupElement\":\"positionerElement\"),c=t.context.triggerElements,R=i,l=a.useRef(null);r===void 0&&l.current===null&&(l.current=new gs({open:u,transitionStatus:void 0,referenceElement:y,floatingElement:p,triggerElements:c,onOpenChange:R,floatingId:s,syncOnly:!0,nested:o}));const b=r??l.current;return t.useSyncedValue(\"floatingId\",s),W(()=>{const m={open:u,floatingId:s,referenceElement:y,floatingElement:p};xe(y)&&(m.domReferenceElement=y),b.state.positionReference===b.state.referenceElement&&(m.positionReference=y),b.update(m)},[u,s,y,p,b]),b.context.onOpenChange=R,b.context.nested=o,b}const po={tabIndex:-1,[gt]:\"\"};function bo(e,t,n=!1){const r=xt(),s=At()!=null,o=a.useRef(null);e===void 0&&o.current===null&&(o.current=t(r,s));const i=e??o.current;return ps({popupStore:i,treatPopupAsFloatingElement:n,floatingRootContext:i.state.floatingRootContext,floatingId:r,nested:s,onOpenChange:i.setOpen}),{store:i,internalStore:o.current}}function bs(e,t){const n=a.useRef(null),r=a.useRef(null);return a.useCallback(s=>{if(e===void 0)return;let o=!1;if(n.current!==null){const i=n.current,u=r.current,y=t.context.triggerElements.getById(i);u&&y===u&&(t.context.triggerElements.delete(i),o=!0),n.current=null,r.current=null}if(s!==null&&(n.current=e,r.current=s,t.context.triggerElements.add(e,s),o=!0),o){const i=t.context.triggerElements.size;t.select(\"open\")&&t.state.triggerCount!==i&&t.set(\"triggerCount\",i)}},[t,e])}function mo(e,t,n){const r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function yo(e,t,n,r){const s=n.useState(\"isMountedByTrigger\",e),o=bs(e,n),i=K(u=>{if(o(u),!u)return;const y=n.select(\"open\"),p=n.select(\"activeTriggerId\");if(p===e){n.update({activeTriggerElement:u,...y?r:null});return}p==null&&y&&n.update({activeTriggerId:e,activeTriggerElement:u,...r})});return W(()=>{s&&n.update({activeTriggerElement:t.current,...r})},[s,n,t,...Object.values(r)]),{registerTrigger:i,isMountedByThisTrigger:s}}function Eo(e){const t=e.useState(\"open\"),n=e.useState(\"triggerCount\");W(()=>{if(!t){e.state.triggerCount!==0&&e.set(\"triggerCount\",0);return}const r=e.context.triggerElements.size,s={};if(e.state.triggerCount!==r&&(s.triggerCount=r),!e.select(\"activeTriggerId\")&&r===1){const o=e.context.triggerElements.entries().next();if(!o.done){const[i,u]=o.value;s.activeTriggerId=i,s.activeTriggerElement=u}}(s.triggerCount!==void 0||s.activeTriggerId!==void 0)&&e.update(s)},[t,e,n])}function So(e,t,n){const{mounted:r,setMounted:s,transitionStatus:o}=nr(e);t.useSyncedValues({mounted:r,transitionStatus:o});const i=K(()=>{s(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),u=t.useState(\"preventUnmountingOnClose\");return tr({enabled:r&&!e&&!u,open:e,ref:t.context.popupRef,onComplete(){e||i()}}),{forceUnmount:i,transitionStatus:o}}function Ro(e,t){e.useSyncedValues(t),W(()=>()=>{e.update({activeTriggerProps:Ke,inactiveTriggerProps:Ke,popupProps:Ke})},[e])}function To(e,t){W(()=>{!t&&e.state.openMethod!==null&&e.set(\"openMethod\",null)},[t,e]),W(()=>()=>{e.state.openMethod!==null&&e.set(\"openMethod\",null)},[e])}class Co{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}let Ft=(function(e){return e.open=\"data-open\",e.closed=\"data-closed\",e[e.startingStyle=De.startingStyle]=\"startingStyle\",e[e.endingStyle=De.endingStyle]=\"endingStyle\",e.anchorHidden=\"data-anchor-hidden\",e.side=\"data-side\",e.align=\"data-align\",e})({}),Tt=(function(e){return e.popupOpen=\"data-popup-open\",e.pressed=\"data-pressed\",e})({});const ms={[Tt.popupOpen]:\"\"},ys={[Tt.popupOpen]:\"\",[Tt.pressed]:\"\"},Es={[Ft.open]:\"\"},Ss={[Ft.closed]:\"\"},Rs={[Ft.anchorHidden]:\"\"},wo={open(e){return e?ms:null}},Oo={open(e){return e?ys:null}},xo={open(e){return e?Es:Ss},anchorHidden(e){return e?Rs:null}};function Po(e){return Zt(19)?e:e?\"true\":void 0}const ko=a.forwardRef(function(t,n){const{cutout:r,...s}=t;let o;if(r){const i=r.getBoundingClientRect();o=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${i.left}px ${i.top}px,${i.left}px ${i.bottom}px,${i.right}px ${i.bottom}px,${i.right}px ${i.top}px,${i.left}px ${i.top}px)`}return ce.jsx(\"div\",{ref:n,role:\"presentation\",\"data-base-ui-inert\":\"\",...s,style:{position:\"fixed\",inset:0,userSelect:\"none\",WebkitUserSelect:\"none\",clipPath:o}})});let zt={},Jt={},Qt=\"\";function Ts(e){if(typeof document>\"u\")return!1;const t=B(e);return Je(t).innerWidth-t.documentElement.clientWidth>0}function Cs(e){if(!(typeof CSS<\"u\"&&CSS.supports&&CSS.supports(\"scrollbar-gutter\",\"stable\"))||typeof document>\"u\")return!1;const n=B(e),r=n.documentElement,s=n.body,o=Pt(r)?r:s,i=o.style.overflowY,u=r.style.scrollbarGutter;r.style.scrollbarGutter=\"stable\",o.style.overflowY=\"scroll\";const y=o.offsetWidth;o.style.overflowY=\"hidden\";const p=o.offsetWidth;return o.style.overflowY=i,r.style.scrollbarGutter=u,y===p}function ws(e){const t=B(e),n=t.documentElement,r=t.body,s=Pt(n)?n:r,o={overflowY:s.style.overflowY,overflowX:s.style.overflowX};return Object.assign(s.style,{overflowY:\"hidden\",overflowX:\"hidden\"}),()=>{Object.assign(s.style,o)}}function Os(e){const t=B(e),n=t.documentElement,r=t.body,s=Je(n);let o=0,i=0,u=!1;const y=fe.create();if(cn&&(s.visualViewport?.scale??1)!==1)return()=>{};function p(){const b=s.getComputedStyle(n),m=s.getComputedStyle(r),x=(b.scrollbarGutter||\"\").includes(\"both-edges\")?\"stable both-edges\":\"stable\";o=n.scrollTop,i=n.scrollLeft,zt={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Qt=n.style.scrollBehavior,Jt={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const T=n.scrollHeight>n.clientHeight,$=n.scrollWidth>n.clientWidth,H=b.overflowY===\"scroll\"||m.overflowY===\"scroll\",w=b.overflowX===\"scroll\"||m.overflowX===\"scroll\",Z=Math.max(0,s.innerWidth-r.clientWidth),I=Math.max(0,s.innerHeight-r.clientHeight),_=parseFloat(m.marginTop)+parseFloat(m.marginBottom),L=parseFloat(m.marginLeft)+parseFloat(m.marginRight),S=Pt(n)?n:r;if(u=Cs(e),u){n.style.scrollbarGutter=x,S.style.overflowY=\"hidden\",S.style.overflowX=\"hidden\";return}Object.assign(n.style,{scrollbarGutter:x,overflowY:\"hidden\",overflowX:\"hidden\"}),(T||H)&&(n.style.overflowY=\"scroll\"),($||w)&&(n.style.overflowX=\"scroll\"),Object.assign(r.style,{position:\"relative\",height:_||I?`calc(100dvh - ${_+I}px)`:\"100dvh\",width:L||Z?`calc(100vw - ${L+Z}px)`:\"100vw\",boxSizing:\"border-box\",overflow:\"hidden\",scrollBehavior:\"unset\"}),r.scrollTop=o,r.scrollLeft=i,n.setAttribute(\"data-base-ui-scroll-locked\",\"\"),n.style.scrollBehavior=\"unset\"}function c(){Object.assign(n.style,zt),Object.assign(r.style,Jt),u||(n.scrollTop=o,n.scrollLeft=i,n.removeAttribute(\"data-base-ui-scroll-locked\"),n.style.scrollBehavior=Qt)}function R(){c(),y.request(p)}p();const l=D(s,\"resize\",R);return()=>{y.cancel(),c(),typeof s.removeEventListener==\"function\"&&l()}}class xs{lockCount=0;restore=null;timeoutLock=we.create();timeoutUnlock=we.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=B(t).documentElement,s=Je(r).getComputedStyle(r).overflowY;if(s===\"hidden\"||s===\"clip\"){this.restore=Ot;return}const o=rr||!Ts(t);this.restore=o?ws(t):Os(t)}}const Ps=new xs;function Io(e=!0,t=null){W(()=>{if(e)return Ps.acquire(t)},[e,t])}export{Rn as $,fe as A,uo as B,eo as C,io as D,Po as E,ho as F,lo as G,Co as H,ko as I,is as J,Oe as K,Kr as L,to as M,ao as N,Eo as O,co as P,So as Q,Zr as R,ps as S,we as T,go as U,ro as V,po as W,Ro as X,fo as Y,Ne as Z,Qs as _,vs as a,Zs as a0,no as a1,yo as a2,Oo as a3,Xe as a4,so as a5,ns as a6,wo as a7,gs as a8,Ft as a9,rn as aA,ut as aB,Gt as aC,$s as aD,qs as aE,$e as aF,Us as aG,mt as aH,Xs as aI,zs as aJ,ar as aK,nt as aL,rt as aM,Js as aN,ue as aO,dr as aP,hr as aQ,ur as aR,kt as aS,On as aT,Qr as aU,oo as aV,cn as aW,rr as aX,To as aa,Io as ab,mo as ac,bo as ad,Vs as ae,fn as af,Sr as ag,bt as ah,Gs as ai,Bs as aj,Ys as ak,dn as al,pr as am,br as an,Rr as ao,js as ap,Ks as aq,Hs as ar,Er as as,_s as at,yr as au,Ws as av,Ls as aw,ot as ax,Wt as ay,Lt as az,sr as b,D as c,Ue as d,pe as e,F as f,Ms as g,Ce as h,Ds as i,ln as j,Ns as k,nn as l,Pe as m,vt as n,B as o,At as p,Fs as q,He as r,ct as s,nr as t,qe as u,De as v,As as w,er as x,tr as y,xo as z};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/useSuspenseInfiniteQuery-CqnlWZHf.js": {
"content": "import{aT as r,aU as u,aV as n}from\"./index-fAdpxP2M.js\";function a(e,s){return r({...e,enabled:!0,suspense:!0,throwOnError:n},u)}export{a as u};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/useSuspenseQuery-CuN41JNT.js": {
"content": "import{aT as r,b5 as u,aV as s}from\"./index-fAdpxP2M.js\";function t(e,a){return r({...e,enabled:!0,suspense:!0,throwOnError:s,placeholderData:void 0},u)}export{t as u};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/useValueChanged-mcPqATWD.js": {
"content": "import{j as a}from\"./index-fAdpxP2M.js\";import{k as n,l as o}from\"./useButton-ByI90A_n.js\";function f(r,s){const t=a.useRef(r),e=n(s);o(()=>{t.current!==r&&e(t.current)},[r,e]),o(()=>{t.current=r},[r])}export{f as u};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/verified-tokens-3cP7NI6N.js": {
"content": "import{e as O,g as X,a as tn,p as $,b as W,r as P,m as ze,c as We,A as rn,R as an,d as _e,B as sn,f as on,s as cn,h as ln,i as un,u as dn,j as C,W as fn,k as mn,l as gn,n as y,o as hn,q as Pe,t as Ge,v as g,w as x,x as b,y as _,z as v,C as j,D as G,E as yn,F as Re,G as xn,H as Ne,I as He,J as we,K as Ie,L as bn,M as pn,N as vn,O as ee,P as Nn,Q as l,S as U,T as Te,U as ne,V as te,X as wn,Y as jn}from\"./index-fAdpxP2M.js\";import{F as Ae,I as L}from\"./Input-BNichsNk.js\";import{u as kn,C as En,a as Cn}from\"./clipboard-BBKfs2nA.js\";import{S as Sn}from\"./Select-BMgHxVP4.js\";import{T as qn}from\"./Tabs-CVutcaXm.js\";import{P as Un,C as Qe,N as M}from\"./Page-D0rzPo-_.js\";import{C as Pn}from\"./Checkbox-DM06gd1z.js\";import{D as F}from\"./Dialog-BeL2l4xP.js\";import{P as Rn,T as In}from\"./trash-2-DJ_dAK_9.js\";import{E as Tn}from\"./external-link-C2R5db17.js\";import{p as An,f as Mn}from\"./parseUnits-BQsjHBQX.js\";import\"./useButton-ByI90A_n.js\";import\"./useScrollLock-D0Gehqgv.js\";import\"./FormContext-lWysHyLG.js\";import\"./useValueChanged-mcPqATWD.js\";import\"./useOpenInteractionType-97GoxcAN.js\";import\"./useAriaLabelledBy-B6dSNlUI.js\";import\"./DialogTitle-CFzjJ1Ce.js\";async function Ve(e,n){const{abi:s,address:c,args:r,functionName:t,dataSuffix:a=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,...o}=n,i=O({abi:s,args:r,functionName:t});try{return await X(e,tn,\"estimateGas\")({data:`${i}${a?a.replace(\"0x\",\"\"):\"\"}`,to:c,...o})}catch(d){const u=o.account?$(o.account):void 0;throw W(d,{abi:s,address:c,args:r,docsPath:\"/docs/contract/estimateContractGas\",functionName:t,sender:u?.address})}}async function Fn(e,n){const{account:s,authorizationList:c,allowFailure:r=!0,blockHash:t,blockNumber:a,blockOverrides:o,blockTag:i,requireCanonical:d,stateOverride:u}=n,f=n.contracts,m=typeof e.batch?.multicall==\"object\"?e.batch.multicall:{},h=n.batchSize??m.batchSize??1024,q=n.multicallAddress?n.multicallAddress:null,N=[[]];let k=0,B=0;for(let w=0;w0&&B>h&&N[k].length>0&&(k++,B=(R.length-2)/2,N[k]=[]),N[k]=[...N[k],{allowFailure:!0,callData:R,target:A}]}catch(R){const Z=W(R,{abi:E,address:A,args:S,docsPath:\"/docs/contract/multicall\",functionName:D,sender:s});if(!r)throw Z;N[k]=[...N[k],{allowFailure:!0,callData:\"0x\",target:A}]}}const ke=!!e.batch?.multicall,Y=ke?N.flatMap(w=>w.map(E=>[E])):N,Ee=await Promise.allSettled(Y.map(w=>ke?On(e,{account:s,authorizationList:c,batchSize:h,blockHash:t,blockNumber:a,blockOverrides:o,blockTag:i,call:w[0],multicallAddress:q,requireCanonical:d,stateOverride:u}).then(E=>[E]):X(e,P,\"readContract\")({...q===null?{code:We}:{address:q},abi:ze,account:s,args:[w],authorizationList:c,blockHash:t,blockNumber:a,blockOverrides:o,blockTag:i,functionName:\"aggregate3\",requireCanonical:d,stateOverride:u}))),T=[];for(let w=0;wf+(m.length-2)/2,0)>s},fn:d=>X(e,P,\"readContract\")({...r===null?{code:We}:{address:r},...t,abi:ze,args:[d],functionName:\"aggregate3\"})}),[i]=await o(c);return i}async function Je(e,n){const{abi:s,address:c,args:r,functionName:t,dataSuffix:a=typeof e.dataSuffix==\"string\"?e.dataSuffix:e.dataSuffix?.value,...o}=n,i=o.account?$(o.account):e.account,d=O({abi:s,args:r,functionName:t});try{const{data:u}=await X(e,ln,\"call\")({batch:!1,data:`${d}${a?a.replace(\"0x\",\"\"):\"\"}`,to:c,...o,account:i}),f=_e({abi:s,args:r,functionName:t,data:u||\"0x\"}),m=s.filter(h=>\"name\"in h&&h.name===n.functionName);return{result:f,request:{abi:m,address:c,args:r,dataSuffix:a,functionName:t,...o,account:i}}}catch(u){throw W(u,{abi:s,address:c,args:r,docsPath:\"/docs/contract/simulateContract\",functionName:t,sender:i?.address})}}function je(e,n){return{amount:e,decimals:n,formatted:Mn(e,n)}}function K(e,n){if(typeof e==\"bigint\")return e;const s=e.decimals??n;return An(e.formatted,$n(s))}function $n(e){if(e===void 0)throw new Error(\"Token decimals are required. Pass `amount.decimals` or select a declared token.\");return e}function Me(e){return e.state.chainId}function Bn(e,n){const{onChange:s}=n;return e.subscribe(c=>c.chainId,s)}const Dn=\"3.7.7\",Ln=()=>`wagmi@${Dn}`;class Kn extends un{constructor(){super(...arguments),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WagmiError\"})}get docsBaseUrl(){return\"https://wagmi.sh/react\"}get version(){return Ln()}}class zn extends Kn{constructor(){super(\"`useConfig` must be used within `WagmiProvider`.\",{docsPath:\"/api/WagmiProvider\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"WagmiProviderNotFoundError\"})}}function Wn(e){return JSON.stringify(e,(n,s)=>_n(s)?Object.keys(s).sort().reduce((c,r)=>(c[r]=s[r],c),{}):typeof s==\"bigint\"?s.toString():s)}function _n(e){if(!Fe(e))return!1;const n=e.constructor;if(typeof n>\"u\")return!0;const s=n.prototype;return!(!Fe(s)||!s.hasOwnProperty(\"isPrototypeOf\"))}function Fe(e){return Object.prototype.toString.call(e)===\"[object Object]\"}function Gn(e){const n=dn({...e,queryKeyHashFn:Wn});return n.queryKey=e.queryKey,n}function Xe(e={}){const n=e.config??C.useContext(fn);if(!n)throw new zn;return n}function Hn(e={}){const n=Xe(e);return C.useSyncExternalStore(s=>Bn(n,{onChange:s}),()=>Me(n),()=>Me(n))}const Qn={defaultAdmin:\"DEFAULT_ADMIN_ROLE\",pause:\"PAUSE_ROLE\",unpause:\"UNPAUSE_ROLE\",issuer:\"ISSUER_ROLE\",burnBlocked:\"BURN_BLOCKED_ROLE\"};function I(e){return e===\"defaultAdmin\"?\"0x0000000000000000000000000000000000000000000000000000000000000000\":mn(gn(Qn[e]??e))}async function re(e,n){return re.inner(j,e,n)}(function(e){async function n(a,o,i){return await a(o,{...i,...e.call(o,i)})}e.inner=n;function s(...a){const[o,i]=x(a),{amount:d,spender:u,token:f}=i,{address:m,decimals:h}=y(o,{token:f});return b({address:m,abi:g,functionName:\"approve\",args:[u,K(d,h)]})}e.call=s;async function c(a,o){return Ve(a,{..._(o),...e.call(a,o)})}e.estimateGas=c;async function r(a,o){return Je(a,{..._(o),...e.call(a,o)})}e.simulate=r;function t(a){const[o]=v({abi:g,logs:a,eventName:\"Approval\"});if(!o)throw new Error(\"`Approval` event not found.\");return o}e.extractEvent=t})(re||(re={}));async function ae(e,n){return ae.inner(j,e,n)}(function(e){async function n(r,t,a){const{amount:o,from:i,token:d,...u}=a,f=e.call(t,{amount:o,from:i,token:d});return await r(t,{...u,...f})}e.inner=n;function s(...r){const[t,a]=x(r),{from:o,amount:i,token:d}=a,{address:u,decimals:f}=y(t,{token:d});return b({address:u,abi:g,functionName:\"burnBlocked\",args:[o,K(i,f)]})}e.call=s;function c(r){const[t]=v({abi:g,logs:r,eventName:\"BurnBlocked\"});if(!t)throw new Error(\"`BurnBlocked` event not found.\");return t}e.extractEvent=c})(ae||(ae={}));async function se(e,n){return se.inner(j,e,n)}(function(e){async function n(r,t,a){const{amount:o,memo:i,token:d,...u}=a,f=e.call(t,{amount:o,memo:i,token:d});return await r(t,{...u,...f})}e.inner=n;function s(...r){const[t,a]=x(r),{amount:o,memo:i,token:d}=a,{address:u,decimals:f}=y(t,{token:d}),m=K(o,f),h=i?{functionName:\"burnWithMemo\",args:[m,G(i,32)]}:{functionName:\"burn\",args:[m]};return b({address:u,abi:g,...h})}e.call=s;function c(r){const[t]=v({abi:g,logs:r,eventName:\"Burn\"});if(!t)throw new Error(\"`Burn` event not found.\");return t}e.extractEvent=c})(se||(se={}));async function oe(e,n){return oe.inner(j,e,n)}(function(e){async function n(r,t,a){const{policyId:o,token:i,...d}=a,u=e.call(t,{policyId:o,token:i});return await r(t,{...d,...u})}e.inner=n;function s(...r){const[t,a]=x(r),{token:o,policyId:i}=a;return b({address:y(t,{token:o}).address,abi:g,functionName:\"changeTransferPolicyId\",args:[i]})}e.call=s;function c(r){const[t]=v({abi:g,logs:r,eventName:\"TransferPolicyUpdate\"});if(!t)throw new Error(\"`TransferPolicyUpdate` event not found.\");return t}e.extractEvent=c})(oe||(oe={}));async function ce(e,n){return ce.inner(j,e,n)}(function(e){async function n(r,t,a){const{account:o=t.account,admin:i=t.account,chain:d=t.chain,...u}=a,f=i?$(i):void 0;if(!f)throw new Error(\"admin is required.\");const m=e.call(t,{...u,admin:f.address});return await r(t,{...a,account:o,chain:d,...m})}e.inner=n;function s(...r){const[t,a]=x(r),{name:o,symbol:i,currency:d,logoURI:u,quoteToken:f=Ge,admin:m,salt:h=yn(32)}=a;return b({address:xn,abi:Re,args:typeof u==\"string\"?[o,i,d,y(t,{token:f}).address,m,h,u]:[o,i,d,y(t,{token:f}).address,m,h],functionName:\"createToken\"})}e.call=s;function c(r){const[t]=v({abi:Re,logs:r,eventName:\"TokenCreated\",strict:!0});if(!t)throw new Error(\"`TokenCreated` event not found.\");return t}e.extractEvent=c})(ce||(ce={}));async function H(e,n){const{account:s,decimals:c,spender:r,token:t,...a}=n,[o,{decimals:i}]=await Promise.all([P(e,{...a,...H.call(e,{account:s,spender:r,token:t})}),Ne(e,{decimals:c,token:t})]);return je(o,i)}(function(e){function n(...s){const[c,r]=x(s);return b({address:y(c,r).address,abi:g,functionName:\"allowance\",args:[r.account,r.spender]})}e.call=n})(H||(H={}));async function Q(e,n){const{account:s=e.account,decimals:c,token:r,...t}=n;if(!s)throw new He;const a=$(s).address,[o,{decimals:i}]=await Promise.all([P(e,{...t,...Q.call(e,{account:a,token:r})}),Ne(e,{decimals:c,token:r})]);return je(o,i)}(function(e){function n(...s){const[c,r]=x(s),t=r.account??c?.account;if(!t)throw new He;const a=$(t).address;return b({address:y(c,r).address,abi:g,functionName:\"balanceOf\",args:[a]})}e.call=n})(Q||(Q={}));async function Vn(e,n){const{token:s,...c}=n,{address:r}=y(e,{token:s}),t=g,a=hn(e,s),o={...a?.decimals!=null?{decimals:a.decimals}:{},...a?.name!=null?{name:a.name}:{},...a?.symbol!=null?{symbol:a.symbol}:{}};return Pe(r)===Pe(Ge)?Oe(e,{...c,contracts:[{address:r,abi:t,functionName:\"currency\"},{address:r,abi:t,functionName:\"decimals\"},{address:r,abi:t,functionName:\"logoURI\"},{address:r,abi:t,functionName:\"name\"},{address:r,abi:t,functionName:\"symbol\"},{address:r,abi:t,functionName:\"totalSupply\"}]}).then(([i,d,u,f,m,h])=>({name:p(f),symbol:p(m),currency:p(i),decimals:p(d),logoURI:p(u,\"\"),totalSupply:p(h),...o})):Oe(e,{...c,contracts:[{address:r,abi:t,functionName:\"currency\"},{address:r,abi:t,functionName:\"decimals\"},{address:r,abi:t,functionName:\"logoURI\"},{address:r,abi:t,functionName:\"quoteToken\"},{address:r,abi:t,functionName:\"name\"},{address:r,abi:t,functionName:\"paused\"},{address:r,abi:t,functionName:\"supplyCap\"},{address:r,abi:t,functionName:\"symbol\"},{address:r,abi:t,functionName:\"totalSupply\"},{address:r,abi:t,functionName:\"transferPolicyId\"}]}).then(([i,d,u,f,m,h,q,N,k,B])=>({name:p(m),symbol:p(N),currency:p(i),decimals:p(d),logoURI:p(u,\"\"),quoteToken:p(f),totalSupply:p(k),paused:p(h),supplyCap:p(q),transferPolicyId:p(B),...o}))}async function Oe(e,n){if(e.batch?.multicall===void 0)return Fn(e,{...n,allowFailure:!0});const{contracts:s,...c}=n;return(await Promise.allSettled(s.map(t=>P(e,{...c,...t})))).map(t=>t.status===\"fulfilled\"?{result:t.value,status:\"success\"}:{error:t.reason,status:\"failure\"})}function p(e,...n){if(e.status===\"failure\"){if(n.length>0)return n[0];throw e.error}return e.result}async function ie(e,n){const{decimals:s,token:c,...r}=n,[t,{decimals:a}]=await Promise.all([P(e,{...r,...ie.call(e,{token:c})}),Ne(e,{decimals:s,token:c})]);return je(t,a)}(function(e){function n(...s){const[c,r]=x(s);return b({address:y(c,r).address,abi:g,args:[],functionName:\"totalSupply\"})}e.call=n})(ie||(ie={}));async function V(e,n){return P(e,{...n,...V.call(e,n)})}(function(e){function n(...s){const[c,r]=x(s),{role:t,token:a}=r;return b({address:y(c,{token:a}).address,abi:g,functionName:\"getRoleAdmin\",args:[I(t)]})}e.call=n})(V||(V={}));async function J(e,n){const{account:s=e.account}=n,c=s?$(s).address:void 0;if(!c)throw new Error(\"account is required.\");return P(e,{...n,...J.call(e,{...n,account:c})})}(function(e){function n(...s){const[c,r]=x(s),{account:t,role:a,token:o}=r;return b({address:y(c,{token:o}).address,abi:g,functionName:\"hasRole\",args:[t,I(a)]})}e.call=n})(J||(J={}));async function le(e,n){return le.inner(we,e,n)}(function(e){async function n(r,t,a){return await r(t,{...a,calls:a.roles.map(o=>{const i=e.call(t,{...a,role:o});return{...i,data:O(i)}})})}e.inner=n;function s(...r){const[t,a]=x(r),{token:o,to:i,role:d}=a,u=I(d);return b({address:y(t,{token:o}).address,abi:g,functionName:\"grantRole\",args:[u,i]})}e.call=s;function c(r){const t=v({abi:g,logs:r,eventName:\"RoleMembershipUpdated\"});if(t.length===0)throw new Error(\"`RoleMembershipUpdated` events not found.\");return t}e.extractEvents=c})(le||(le={}));async function ue(e,n){return ue.inner(j,e,n)}(function(e){async function n(r,t,a){const{amount:o,memo:i,to:d,token:u,...f}=a,m=e.call(t,{amount:o,memo:i,to:d,token:u});return await r(t,{...f,...m})}e.inner=n;function s(...r){const[t,a]=x(r),{to:o,amount:i,memo:d,token:u}=a,{address:f,decimals:m}=y(t,{token:u}),h=K(i,m),q=d?{functionName:\"mintWithMemo\",args:[o,h,G(d,32)]}:{functionName:\"mint\",args:[o,h]};return b({address:f,abi:g,...q})}e.call=s;function c(r){const[t]=v({abi:g,logs:r,eventName:\"Mint\"});if(!t)throw new Error(\"`Mint` event not found.\");return t}e.extractEvent=c})(ue||(ue={}));async function de(e,n){return de.inner(j,e,n)}(function(e){async function n(r,t,a){const{token:o,...i}=a,d=e.call(t,{token:o});return await r(t,{...i,...d})}e.inner=n;function s(...r){const[t,a]=x(r),{token:o}=a;return b({address:y(t,{token:o}).address,abi:g,functionName:\"pause\",args:[]})}e.call=s;function c(r){const[t]=v({abi:g,logs:r,eventName:\"PauseStateUpdate\"});if(!t)throw new Error(\"`PauseStateUpdate` event not found.\");return t}e.extractEvent=c})(de||(de={}));async function fe(e,n){return fe.inner(we,e,n)}(function(e){async function n(r,t,a){return await r(t,{...a,calls:a.roles.map(o=>{const i=e.call(t,{...a,role:o});return{...i,data:O(i)}})})}e.inner=n;function s(...r){const[t,a]=x(r),{token:o,role:i}=a,d=I(i);return b({address:y(t,{token:o}).address,abi:g,functionName:\"renounceRole\",args:[d]})}e.call=s;function c(r){const t=v({abi:g,logs:r,eventName:\"RoleMembershipUpdated\"});if(t.length===0)throw new Error(\"`RoleMembershipUpdated` events not found.\");return t}e.extractEvents=c})(fe||(fe={}));async function me(e,n){return me.inner(we,e,n)}(function(e){async function n(r,t,a){const{from:o,...i}=a;return await r(t,{...i,calls:a.roles.map(d=>{const u=e.call(t,{...a,role:d});return{...u,data:O(u)}})})}e.inner=n;function s(...r){const[t,a]=x(r),{token:o,from:i,role:d}=a,u=I(d);return b({address:y(t,{token:o}).address,abi:g,functionName:\"revokeRole\",args:[u,i]})}e.call=s;function c(r){const t=v({abi:g,logs:r,eventName:\"RoleMembershipUpdated\"});if(t.length===0)throw new Error(\"`RoleMembershipUpdated` events not found.\");return t}e.extractEvents=c})(me||(me={}));async function ge(e,n){return ge.inner(j,e,n)}(function(e){async function n(r,t,a){const{supplyCap:o,token:i,...d}=a,u=e.call(t,{supplyCap:o,token:i});return await r(t,{...d,...u})}e.inner=n;function s(...r){const[t,a]=x(r),{token:o,supplyCap:i}=a;return b({address:y(t,{token:o}).address,abi:g,functionName:\"setSupplyCap\",args:[i]})}e.call=s;function c(r){const[t]=v({abi:g,logs:r,eventName:\"SupplyCapUpdate\"});if(!t)throw new Error(\"`SupplyCapUpdate` event not found.\");return t}e.extractEvent=c})(ge||(ge={}));async function he(e,n){return he.inner(j,e,n)}(function(e){async function n(r,t,a){const{adminRole:o,role:i,token:d,...u}=a,f=e.call(t,{adminRole:o,role:i,token:d});return await r(t,{...u,...f})}e.inner=n;function s(...r){const[t,a]=x(r),{token:o,role:i,adminRole:d}=a,u=I(i),f=I(d);return b({address:y(t,{token:o}).address,abi:g,functionName:\"setRoleAdmin\",args:[u,f]})}e.call=s;function c(r){const[t]=v({abi:g,logs:r,eventName:\"RoleAdminUpdated\"});if(!t)throw new Error(\"`RoleAdminUpdated` event not found.\");return t}e.extractEvent=c})(he||(he={}));async function ye(e,n){return ye.inner(j,e,n)}(function(e){async function n(a,o,i){return await a(o,{...i,...e.call(o,i)})}e.inner=n;function s(...a){const[o,i]=x(a),{from:d,memo:u,to:f,token:m}=i,{address:h,decimals:q}=y(o,{token:m}),N=K(i.amount,q),k=u&&d?{functionName:\"transferFromWithMemo\",args:[d,f,N,G(u,32)]}:u?{functionName:\"transferWithMemo\",args:[f,N,G(u,32)]}:d?{functionName:\"transferFrom\",args:[d,f,N]}:{functionName:\"transfer\",args:[f,N]};return b({address:h,abi:g,...k})}e.call=s;async function c(a,o){return Ve(a,{..._(o),...e.call(a,o)})}e.estimateGas=c;async function r(a,o){return Je(a,{..._(o),...e.call(a,o)})}e.simulate=r;function t(a){const[o]=v({abi:g,logs:a,eventName:\"Transfer\"});if(!o)throw new Error(\"`Transfer` event not found.\");return o}e.extractEvent=t})(ye||(ye={}));async function xe(e,n){return xe.inner(j,e,n)}(function(e){async function n(r,t,a){const{token:o,...i}=a,d=e.call(t,{token:o});return await r(t,{...i,...d})}e.inner=n;function s(...r){const[t,a]=x(r),{token:o}=a;return b({address:y(t,{token:o}).address,abi:g,functionName:\"unpause\",args:[]})}e.call=s;function c(r){const[t]=v({abi:g,logs:r,eventName:\"PauseStateUpdate\"});if(!t)throw new Error(\"`PauseStateUpdate` event not found.\");return t}e.extractEvent=c})(xe||(xe={}));async function be(e,n){return be.inner(j,e,n)}(function(e){async function n(r,t,a){const{quoteToken:o,token:i,...d}=a,u=e.call(t,{quoteToken:o,token:i});return await r(t,{...d,...u})}e.inner=n;function s(...r){const[t,a]=x(r),{token:o,quoteToken:i}=a;return b({address:y(t,{token:o}).address,abi:g,functionName:\"setNextQuoteToken\",args:[y(t,{token:i}).address]})}e.call=s;function c(r){const[t]=v({abi:g,logs:r,eventName:\"NextQuoteTokenSet\"});if(!t)throw new Error(\"`NextQuoteTokenSet` event not found.\");return t}e.extractEvent=c})(be||(be={}));async function pe(e,n){return pe.inner(j,e,n)}(function(e){async function n(r,t,a){const{token:o,...i}=a,d=e.call(t,{token:o});return await r(t,{...i,...d})}e.inner=n;function s(...r){const[t,a]=x(r),{token:o}=a;return b({address:y(t,{token:o}).address,abi:g,functionName:\"completeQuoteTokenUpdate\",args:[]})}e.call=s;function c(r){const[t]=v({abi:g,logs:r,eventName:\"QuoteTokenUpdate\"});if(!t)throw new Error(\"`QuoteTokenUpdateCompleted` event not found.\");return t}e.extractEvent=c})(pe||(pe={}));function $e(e,n){const{chainId:s,...c}=n,r=e.getClient({chainId:s});return H(r,c)}(function(e){function n(c){return[\"getAllowance\",c]}e.queryKey=n;function s(c,r){const{query:t,...a}=r;return{...t,enabled:!!(a.account&&a.spender&&a.token&&(t?.enabled??!0)),queryKey:n(a),async queryFn(o){const[,i]=o.queryKey;return await e(c,i)}}}e.queryOptions=s})($e||($e={}));function Be(e,n){const{chainId:s,...c}=n,r=e.getClient({chainId:s});return Q(r,c)}(function(e){function n(c){return[\"getBalance\",c]}e.queryKey=n;function s(c,r){const{query:t,...a}=r;return{...t,enabled:!!(a.account&&a.token&&(t?.enabled??!0)),queryKey:n(a),async queryFn(o){const[,i]=o.queryKey;return await e(c,i)??null}}}e.queryOptions=s})(Be||(Be={}));function ve(e,n){const{chainId:s,...c}=n,r=e.getClient({chainId:s});return Vn(r,c)}(function(e){function n(c){return[\"getMetadata\",c]}e.queryKey=n;function s(c,r){const{query:t,...a}=r;return{...t,enabled:!!(a.token&&(t?.enabled??!0)),queryKey:n(a),async queryFn(o){const[,i]=o.queryKey;return await e(c,i)}}}e.queryOptions=s})(ve||(ve={}));function De(e,n){const{chainId:s,...c}=n,r=e.getClient({chainId:s});return V(r,c)}(function(e){function n(c){return[\"getRoleAdmin\",c]}e.queryKey=n;function s(c,r){const{query:t,...a}=r;return{...t,enabled:!!(a.token&&a.role&&(t?.enabled??!0)),queryKey:n(a),async queryFn(o){const[,i]=o.queryKey;return await e(c,i)}}}e.queryOptions=s})(De||(De={}));function Le(e,n){const{chainId:s,...c}=n,r=e.getClient({chainId:s});return J(r,c)}(function(e){function n(c){return[\"hasRole\",c]}e.queryKey=n;function s(c,r){const{query:t,...a}=r;return{...t,enabled:!!(a.token&&a.role&&a.account&&(t?.enabled??!0)),queryKey:n(a),async queryFn(o){const[,i]=o.queryKey;return await e(c,i)}}}e.queryOptions=s})(Le||(Le={}));function Jn(e={}){const n=Xe(e),s=Hn({config:n}),c=ve.queryOptions(n,{...e,chainId:e.chainId??s});return Gn(c)}const Ye=[{id:ne.id,label:\"Mainnet\"},{id:te.id,label:\"Testnet\"}],Xn={[ne.id]:ne.blockExplorers.default.url,[te.id]:te.blockExplorers.default.url};function Ct(){const{tab:e=\"verified\"}=Ie.useSearch(),n=bn({from:Ie.fullPath}),[s,c]=C.useState(pn),[r,t]=C.useState(!1),a=vn.useQuery({chainId:s}),o=ee.list.useQuery(),i=Nn.useMutation(),d=o.data?.pages.flatMap(m=>m.data)??[],u=d.length,f=o.hasNextPage?`${u}+`:String(u);return l.jsx(F.Root,{onOpenChange:t,open:r,children:l.jsxs(Un,{title:\"Verified Tokens\",description:\"Manage the curated verified token list\",action:e===\"verified\"?l.jsxs(\"div\",{className:\"flex items-center gap-2\",children:[l.jsx(Ze,{onChange:c,value:s}),l.jsx(F.Trigger,{render:l.jsxs(U,{variant:\"primary\",children:[l.jsx(Rn,{className:\"size-4\"}),\"Add token\"]})})]}):void 0,children:[l.jsx(qn,{active:e,onChange:m=>{n({search:m===\"verified\"?{}:{tab:m}})},tabs:[{id:\"verified\",label:\"Verified\"},{id:\"pending\",label:u>0?`Pending (${f})`:\"Pending\"}]}),e===\"verified\"?l.jsx(at,{chain:s,error:a.error,loading:a.isPending,tokens:a.data?.data??[]}):l.jsx(Zn,{error:o.isLoadingError?o.error:null,hasNextPage:o.hasNextPage,loadMoreError:o.isFetchNextPageError?o.error:null,loading:o.isPending,loadingMore:o.isFetchingNextPage,onLoadMore:()=>o.fetchNextPage(),requests:d}),l.jsx(F.Popup,{children:l.jsx(tt,{defaultChain:s,onSubmit:m=>i.mutate(m,{onError:h=>alert(h.message),onSuccess:()=>t(!1)}),pending:i.isPending})})]})})}function Yn(e){return Ye.find(n=>n.id===e)?.label??String(e)}function Zn(e){const n=ee.approve.useMutation(),s=ee.deny.useMutation(),[c,r]=C.useState(new Set),[t,a]=C.useState(null),o=e.requests.filter(u=>c.has(u.id));function i(u){r(f=>{const m=new Set(f);return m.has(u)?m.delete(u):m.add(u),m})}async function d(u){if(u===\"approve\"&&!confirm(`Verify ${Ke(o)}?`))return;let f;if(u===\"deny\"){const m=prompt(`Reason for denying ${Ke(o)} (optional):`);if(m===null)return;f=m.trim()||void 0}a(u);try{for(const m of o)u===\"approve\"?await n.mutateAsync({chainId:m.chainId,requestId:m.id}):await s.mutateAsync({requestId:m.id,...f?{reviewNote:f}:{}});r(new Set)}catch(m){alert(m instanceof Error?m.message:String(m))}finally{a(null)}}return l.jsxs(Qe,{children:[e.requests.length>0?l.jsxs(\"div\",{className:\"flex items-center justify-between gap-4 border-b border-border px-5 py-3\",children:[l.jsxs(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:[o.length,\" selected\"]}),l.jsxs(\"div\",{className:\"flex items-center gap-2\",children:[l.jsx(U,{disabled:o.length===0||t!==null,loading:t===\"deny\",onClick:()=>{d(\"deny\")},size:\"small\",children:\"Deny\"}),l.jsx(U,{disabled:o.length===0||t!==null,loading:t===\"approve\",onClick:()=>{d(\"approve\")},size:\"small\",variant:\"primary\",children:\"Approve\"})]})]}):null,e.loading?l.jsx(M,{children:\"Loading requests…\"}):e.error?l.jsx(M,{children:e.error.message}):e.requests.length===0?l.jsx(M,{children:\"No pending requests.\"}):l.jsxs(\"div\",{className:\"flex flex-col gap-4 pb-4\",children:[l.jsx(\"ul\",{className:\"divide-y divide-border\",children:e.requests.map(u=>l.jsx(et,{onToggle:()=>i(u.id),request:u,selected:c.has(u.id)},u.id))}),e.loadMoreError?l.jsxs(\"div\",{className:\"flex items-center justify-center gap-3 text-copy-14 text-negative\",role:\"alert\",children:[l.jsx(\"span\",{children:e.loadMoreError.message}),l.jsx(U,{loading:e.loadingMore,onClick:()=>{e.onLoadMore()},children:\"Retry\"})]}):e.hasNextPage?l.jsx(U,{className:\"self-center\",loading:e.loadingMore,onClick:()=>{e.onLoadMore()},children:\"Load more\"}):null]})]})}function Ke(e){const[n]=e;return e.length===1&&n?`${n.name} (${n.symbol})`:`${e.length} tokens`}function et(e){const{request:n}=e;return l.jsxs(\"li\",{className:\"flex cursor-pointer items-center justify-between gap-4 px-5 py-3 transition-colors hover:bg-surface-hover data-[selected]:bg-surface-hover\",\"data-selected\":e.selected||void 0,onClick:s=>{s.target.closest(\"a, button, input\")||e.onToggle()},children:[l.jsxs(\"div\",{className:\"flex min-w-0 items-center gap-4\",children:[l.jsx(nt,{request:n}),l.jsxs(\"div\",{className:\"flex min-w-0 flex-col gap-1\",children:[l.jsxs(\"span\",{className:\"text-label-14 text-foreground\",children:[n.name,\" \",l.jsx(\"span\",{className:\"text-foreground-secondary\",children:n.symbol}),\" \",l.jsxs(\"span\",{className:\"text-foreground-secondary\",children:[\"· \",Yn(n.chainId)]})]}),l.jsxs(\"div\",{className:\"flex items-center gap-3\",children:[l.jsx(en,{value:n.address}),l.jsxs(\"span\",{className:\"text-label-12 text-foreground-secondary\",children:[n.orgName??n.orgId,\" ·\",\" \",new Intl.DateTimeFormat(void 0,{dateStyle:\"medium\"}).format(new Date(n.createdAt))]})]}),n.note?l.jsx(\"p\",{className:\"truncate text-label-12 text-foreground-secondary\",title:n.note,children:n.note}):null]})]}),l.jsx(Pn,{\"aria-label\":`Select ${n.name}`,checked:e.selected,onCheckedChange:e.onToggle})]})}function nt(e){const{request:n}=e,[s,c]=C.useState(!1),r=n.logo?`data:image/svg+xml;utf8,${encodeURIComponent(n.logo)}`:n.logoUri;return r&&!s?l.jsx(\"img\",{alt:\"\",className:\"size-8 shrink-0 rounded-full bg-secondary\",onError:()=>c(!0),src:r,title:n.logo?\"Uploaded SVG\":n.logoUri}):l.jsx(\"div\",{className:\"flex size-8 shrink-0 items-center justify-center rounded-full bg-secondary text-label-12 text-foreground-secondary\",children:n.symbol.slice(0,2).toUpperCase()})}function Ze(e){return l.jsx(Sn,{className:e.className??\"w-40\",items:Ye.map(n=>({label:n.label,value:String(n.id)})),onChange:n=>e.onChange(Number(n)),value:String(e.value)})}function tt(e){const[n,s]=C.useState(e.defaultChain),[c,r]=C.useState(\"\"),t=Jn({chainId:n,token:c,query:{enabled:Te(c)}}),a=t.data;function o(d){if(d.preventDefault(),!a)return;const u=new FormData(d.currentTarget),f=u.get(\"name\"),m=u.get(\"logo\"),h=m instanceof File&&m.size>0?m:null;e.onSubmit({address:c,chainId:n,currency:a.currency,decimals:a.decimals,name:typeof f==\"string\"?f.trim():\"\",symbol:a.symbol,logo:h,...!h&&a.logoURI?{logoUri:a.logoURI}:{}})}const i=c.length>0&&!Te(c);return l.jsxs(l.Fragment,{children:[l.jsx(F.Title,{children:\"Add Token\"}),l.jsx(F.Description,{children:\"Add a token to the curated verified token list\"}),l.jsxs(\"form\",{className:\"mt-6 flex flex-col gap-8\",onSubmit:o,children:[l.jsxs(Ae,{className:\"gap-6\",variant:\"default\",children:[l.jsxs(\"div\",{className:\"flex flex-col gap-2\",children:[l.jsx(\"span\",{className:\"label-13 text-foreground-secondary\",children:\"Chain\"}),l.jsx(Ze,{className:\"w-full\",onChange:s,value:n})]}),l.jsx(rt,{logoUri:a?.logoURI}),l.jsx(L,{error:i?\"Enter a valid address\":t.isError?\"Token not found\":!1,label:\"Address\",onChange:d=>r(d.target.value.trim()),placeholder:\"0x20c000000000000000000000b9537d11c60e8b50\",required:!0,value:c}),a?l.jsxs(l.Fragment,{children:[l.jsxs(\"div\",{className:\"flex gap-2\",children:[l.jsx(\"div\",{className:\"w-32 shrink-0\",children:l.jsx(L,{disabled:!0,label:\"Symbol\",placeholder:\"USDC\",value:a.symbol})}),l.jsx(\"div\",{className:\"flex-1\",children:l.jsx(L,{defaultValue:a.name,label:\"Name\",name:\"name\",placeholder:\"USD Coin\",required:!0},a.name)})]}),l.jsxs(Ae.Inline,{children:[l.jsx(L,{disabled:!0,label:\"Decimals\",placeholder:\"6\",value:a.decimals}),l.jsx(L,{disabled:!0,label:\"Currency\",placeholder:\"USD\",value:a.currency})]})]}):null]}),l.jsxs(\"div\",{className:\"flex justify-end gap-2\",children:[l.jsx(F.Close,{render:l.jsx(U,{type:\"button\",children:\"Cancel\"})}),l.jsx(U,{disabled:!a,loading:e.pending,type:\"submit\",variant:\"primary\",children:\"Add token\"})]})]})]})}function rt(e){const[n,s]=C.useState(\"\");return l.jsxs(\"div\",{className:\"flex flex-col gap-2\",children:[l.jsx(\"span\",{className:\"label-13 text-foreground-secondary\",children:\"Logo\"}),l.jsxs(\"div\",{className:\"relative flex h-[40px] items-center gap-[10px] rounded-body border-[2px] border-transparent bg-secondary px-[12px] copy-14 text-foreground transition-colors hover:bg-secondary-hover\",children:[e.logoUri&&!n?l.jsx(\"img\",{alt:\"\",className:\"size-6 shrink-0\",src:e.logoUri}):null,l.jsx(\"span\",{className:\"border border-border px-2 py-0.5 text-label-12 text-foreground-secondary\",children:\"Choose SVG\"}),l.jsx(\"span\",{className:\"min-w-0 flex-1 truncate text-label-12 text-foreground-secondary\",children:n||(e.logoUri?\"Using on-chain logo\":\"No file selected\")}),l.jsx(\"input\",{accept:\"image/svg+xml,.svg\",className:\"absolute inset-0 cursor-pointer opacity-0\",name:\"logo\",onChange:c=>s(c.target.files?.[0]?.name??\"\"),type:\"file\"})]})]})}function at(e){return l.jsx(Qe,{children:e.loading?l.jsx(M,{children:\"Loading tokens…\"}):e.error?l.jsx(M,{children:e.error.message}):e.tokens.length===0?l.jsx(M,{children:\"No verified tokens yet.\"}):l.jsx(\"ul\",{className:\"divide-y divide-border\",children:e.tokens.map(n=>l.jsx(st,{chain:e.chain,token:n},n.address))})})}function st(e){const{chain:n,token:s}=e,c=wn.useMutation();function r(){confirm(`Remove ${s.name} (${s.symbol})? This can't be undone.`)&&c.mutate({address:s.address,chainId:n},{onError:t=>alert(t.message)})}return l.jsxs(\"li\",{className:\"flex items-center justify-between gap-4 px-5 py-2.5\",children:[l.jsxs(\"div\",{className:\"flex min-w-0 items-center gap-4\",children:[l.jsx(ct,{chainId:n,token:s}),l.jsxs(\"div\",{className:\"flex min-w-0 flex-col gap-1\",children:[l.jsxs(\"span\",{className:\"text-label-14 text-foreground\",children:[s.name,\" \",l.jsx(\"span\",{className:\"text-foreground-secondary\",children:s.symbol})]}),l.jsx(en,{value:s.address})]})]}),l.jsxs(\"div\",{className:\"flex items-center gap-4\",children:[l.jsxs(\"a\",{className:\"flex items-center gap-1.5 text-label-12 text-foreground-secondary hover:text-foreground\",href:`${Xn[n]}/token/${s.address}`,rel:\"noreferrer\",target:\"_blank\",children:[\"Explorer\",l.jsx(Tn,{className:\"size-3\"})]}),l.jsx(U.Icon,{className:\"text-foreground-secondary hover:text-negative\",disabled:c.isPending,onClick:r,size:\"lg\",title:\"Remove token\",variant:\"plain\",children:l.jsx(In,{})})]})]})}function ot(e){return`${e.slice(0,6)}…${e.slice(-6)}`}function en(e){const{copy:n,notifying:s}=kn();return l.jsxs(\"button\",{\"aria-label\":\"Copy address\",className:\"flex w-fit cursor-pointer items-center gap-1.5 text-label-12 text-foreground-secondary hover:text-foreground\",onClick:()=>n(e.value),title:\"Copy address\",type:\"button\",children:[ot(e.value),s?l.jsx(En,{className:\"size-3\"}):l.jsx(Cn,{className:\"size-3\"})]})}function ct(e){const{chainId:n,token:s}=e,[c,r]=C.useState(!1),t=s.logoUri??jn({address:s.address,chainId:n});return c?l.jsx(\"div\",{className:\"flex size-8 shrink-0 items-center justify-center rounded-full bg-secondary text-label-12 text-foreground-secondary\",children:s.symbol.slice(0,2).toUpperCase()}):l.jsx(\"img\",{alt:\"\",className:\"size-8 shrink-0 rounded-full bg-secondary\",onError:()=>r(!0),src:t})}export{Ct as component};\n",
"contentType": "text/javascript; charset=utf-8"
},
"assets/x-BuvYxEbX.js": {
"content": "import{Z as o}from\"./index-fAdpxP2M.js\";const e=[[\"path\",{d:\"M18 6 6 18\",key:\"1bl5f8\"}],[\"path\",{d:\"m6 6 12 12\",key:\"d8bk6v\"}]],c=o(\"x\",e);export{c as X};\n",
"contentType": "text/javascript; charset=utf-8"
}
}