@tempoxyz/id 0.0.0-pr-192.sha-ae7fe31 → 0.0.0-pr-192.sha-39cb8a0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/app/client/assets/{index-NTHVplEb.js → index-BnxUOCro.js} +4 -4
  2. package/dist/app/client/assets/{index-C5q4rWyl.css → index-C4xfBAjq.css} +1 -1
  3. package/dist/app/client/assets/{resolveError-C_jEFRg5.js → resolveError-CaecrMPm.js} +1 -1
  4. package/dist/app/server/.vite/manifest.json +12 -12
  5. package/dist/app/server/assets/{_tanstack-start-manifest_v-CdWIjaKN.js → _tanstack-start-manifest_v-Bhryu-np.js} +1 -1
  6. package/dist/app/server/assets/{cookie-G7HfmTVT.js → cookie-BImb2qsh.js} +1 -1
  7. package/dist/app/server/assets/{cookie-G7HfmTVT.js.map → cookie-BImb2qsh.js.map} +1 -1
  8. package/dist/app/server/assets/{cookie-Da7JU4o6.css → cookie-CyYRcaQa.css} +1 -1
  9. package/dist/app/server/assets/{router-CHJL2Uas.css → router-C5qZhQf6.css} +1 -1
  10. package/dist/app/server/assets/{router-1hBkF_kI.js → router-bq20IpJ2.js} +4 -4
  11. package/dist/app/server/assets/{router-1hBkF_kI.js.map → router-bq20IpJ2.js.map} +1 -1
  12. package/dist/app/server/index.js +67 -67
  13. package/dist/app/server/index.js.map +1 -1
  14. package/dist/internal/Apps.d.ts +4 -20
  15. package/dist/internal/Apps.d.ts.map +1 -1
  16. package/dist/internal/Apps.js +10 -320
  17. package/dist/internal/Apps.js.map +1 -1
  18. package/dist/internal/Auth.d.ts +3 -7
  19. package/dist/internal/Auth.d.ts.map +1 -1
  20. package/package.json +1 -1
  21. package/src/api/authenticate.ts +0 -10
  22. package/src/api/authorize.ts +0 -10
  23. package/src/app/routes/[_].flows.tsx +2 -2
  24. package/src/app/routes/authorize.tsx +0 -3
  25. package/src/app/routes/login.tsx +0 -1
  26. package/src/app/screens/Approval.tsx +4 -27
  27. package/src/app/screens/SignIn.tsx +27 -38
  28. package/src/internal/Apps.ts +10 -363
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/resolveError-C_jEFRg5.js","assets/call-BehfLPju.js","assets/_u64-m8vR2ONe.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/resolveError-CaecrMPm.js","assets/call-BehfLPju.js","assets/_u64-m8vR2ONe.js"])))=>i.map(i=>d[i]);
2
2
  import{A as e,B as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,J as l,K as u,L as d,M as f,O as p,P as m,Q as h,R as g,S as _,T as v,U as y,V as b,X as x,Y as S,Z as C,_ as w,a as T,b as E,f as D,g as O,h as k,i as A,k as j,m as M,n as N,o as P,p as F,q as I,r as ee,s as L,t as te,v as ne,w as re,x as ie,y as ae,z as oe}from"./_u64-m8vR2ONe.js";import{$t as se,An as ce,At as le,B as R,Bt as ue,C as de,Cn as fe,Ct as pe,D as me,Dn as he,E as ge,En as _e,Et as ve,F as ye,Ft as z,G as be,Gt as xe,H as Se,Ht as Ce,It as we,J as Te,Jt as Ee,Kt as De,L as Oe,Lt as ke,M as Ae,Mn as je,Nn as Me,Nt as Ne,On as Pe,Ot as Fe,Pn as B,Pt as Ie,Qt as Le,R as Re,Rt as ze,S as Be,Sn as Ve,St as He,T as Ue,Tn as We,Tt as Ge,U as Ke,Ut as qe,V as Je,Vt as Ye,W as Xe,Wt as Ze,X as Qe,Xt as $e,Y as et,Yt as tt,Z as nt,Zt as rt,_ as it,_n as at,_t as ot,an as st,at as ct,b as lt,bn as ut,bt as dt,c as ft,cn as pt,ct as mt,d as ht,dn as gt,dt as _t,en as vt,et as yt,f as bt,fn as xt,ft as St,g as Ct,gn as wt,gt as Tt,hn as Et,ht as Dt,i as Ot,in as kt,jn as At,jt,kn as Mt,kt as Nt,l as Pt,ln as Ft,m as It,mn as Lt,mt as Rt,n as zt,nn as Bt,o as Vt,on as V,ot as Ht,p as Ut,pn as H,q as Wt,qt as Gt,r as Kt,rn as qt,s as Jt,sn as Yt,t as Xt,tn as Zt,tt as Qt,un as $t,ut as en,v as tn,vn as nn,vt as rn,w as an,wn as on,wt as sn,x as cn,xn as ln,xt as un,y as dn,yn as fn,yt as pn,z as mn,zt as hn}from"./call-BehfLPju.js";var gn=Object.create,_n=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,yn=Object.getOwnPropertyNames,bn=Object.getPrototypeOf,xn=Object.prototype.hasOwnProperty,Sn=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Cn=(e,t)=>{let n={};for(var r in e)_n(n,r,{get:e[r],enumerable:!0});return t||_n(n,Symbol.toStringTag,{value:`Module`}),n},wn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=yn(t),a=0,o=i.length,s;a<o;a++)s=i[a],!xn.call(e,s)&&s!==n&&_n(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=vn(t,s))||r.enumerable});return e},Tn=(e,t,n)=>(n=e==null?{}:gn(bn(e)),wn(t||!e||!e.__esModule||!xn.call(e,`default`)?_n(n,`default`,{value:e,enumerable:!0}):n,e)),En=Sn((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ee=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function L(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,ee)}catch(e){ee(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function te(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else L(te.bind(null,e))}var ne={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ne,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=te,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=L,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),Dn=Sn(((e,t)=>{t.exports=En()})),On=Sn((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),kn=Sn(((e,t)=>{t.exports=On()})),An=Sn((e=>{var t=Dn();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),jn=Sn(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=An()})),Mn=Sn((e=>{var t=kn(),n=Dn(),r=jn();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function C(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),A=Symbol.for(`react.profiler`),j=Symbol.for(`react.consumer`),M=Symbol.for(`react.context`),N=Symbol.for(`react.forward_ref`),P=Symbol.for(`react.suspense`),F=Symbol.for(`react.suspense_list`),I=Symbol.for(`react.memo`),ee=Symbol.for(`react.lazy`),L=Symbol.for(`react.activity`),te=Symbol.for(`react.legacy_hidden`),ne=Symbol.for(`react.memo_cache_sentinel`),re=Symbol.for(`react.view_transition`),ie=Symbol.for(`react.recoverable`),ae=Symbol.iterator;function oe(e){return typeof e!=`object`||!e?null:(e=ae&&e[ae]||e[`@@iterator`],typeof e==`function`?e:null)}var se=Symbol.for(`react.client.reference`);function ce(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case A:return`Profiler`;case k:return`StrictMode`;case P:return`Suspense`;case F:return`SuspenseList`;case L:return`Activity`;case re:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case M:return e.displayName||`Context`;case j:return(e._context.displayName||`Context`)+`.Consumer`;case N:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case I:return t=e.displayName||null,t===null?ce(e.type)||`Memo`:t;case ee:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var le=Array.isArray,R=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},fe=[],pe=-1;function me(e){return{current:e}}function he(e){0>pe||(e.current=fe[pe],fe[pe]=null,pe--)}function ge(e,t){pe++,fe[pe]=e.current,e.current=t}var _e=me(null),ve=me(null),ye=me(null),z=me(null);function be(e,t){switch(ge(ye,t),ge(ve,e),ge(_e,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=yp(t),e=bp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}he(_e),ge(_e,e)}function xe(){he(_e),he(ve),he(ye)}function Se(e){var t=e.memoizedState;t!==null&&(mh._currentValue=t.memoizedState,ge(z,e)),t=_e.current;var n=bp(t,e.type);t!==n&&(ge(ve,e),ge(_e,n))}function Ce(e){ve.current===e&&(he(_e),he(ve)),z.current===e&&(he(z),mh._currentValue=de)}var we,Te;function Ee(e){if(we===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||``,Te=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+we+e+Te}var De=!1;function Oe(e,t){if(!e||De)return``;De=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
@@ -26,10 +26,10 @@ Error generating stack: `+e.message+`
26
26
  `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`AbiParameters.LengthMismatchError`})}},sP=class extends B{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`AbiParameters.InvalidArrayError`})}},cP=class extends B{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`AbiParameters.InvalidTypeError`})}},lP=`0x20c0`;function uP(e){let t=zM(e);if(!t.toLowerCase().startsWith(lP))throw Error(`invalid tip20 address.`);return Lt(H(t,6))}function dP(e){if(typeof e==`string`){let t=zM(e);return rO(t),t}let t=V(e,{size:18});return Bt(lP,t)}var fP=`0x78`,pP=`0x76`,mP=`tempo`;function hP(e){let{calls:t,chainId:n,maxFeePerGas:r,maxPriorityFeePerGas:i,validBefore:a,validAfter:o}=e;if(!t||t.length===0)throw new CP;if(typeof a==`number`&&typeof o==`number`&&a<=o)throw new wP({validBefore:a,validAfter:o});if(t)for(let e of t)e.to&&rO(e.to,{strict:!1});if(n<=0)throw new vN({chainId:n});if(r&&BigInt(r)>2n**256n-1n)throw new _N({feeCap:r});if(i&&r&&i>r)throw new bN({maxFeePerGas:r,maxPriorityFeePerGas:i})}function gP(e){let t=_O(H(e,1)),[n,r,i,a,o,s,c,l,u,d,f,p,m,h,g]=t,_=Array.isArray(h)?h:void 0,v=_?g:h;if(t.length!==13&&t.length!==14&&t.length!==15)throw new yN({attributes:{authorizationList:m,chainId:n,maxPriorityFeePerGas:r,maxFeePerGas:i,gas:a,calls:o,accessList:s,keyAuthorization:_,nonceKey:c,nonce:l,validBefore:u,validAfter:d,feeToken:f,feePayerSignatureOrSender:p,...t.length>12?{signature:v}:{}},serialized:e,type:mP});let y={chainId:Number(n),type:mP};nn(a)&&a!==`0x`&&(y.gas=BigInt(a)),nn(l)&&(y.nonce=l===`0x`?0n:BigInt(l)),nn(i)&&i!==`0x`&&(y.maxFeePerGas=BigInt(i)),nn(r)&&r!==`0x`&&(y.maxPriorityFeePerGas=BigInt(r)),nn(c)&&(y.nonceKey=c===`0x`?0n:BigInt(c)),nn(u)&&u!==`0x`&&(y.validBefore=Number(u)),nn(d)&&d!==`0x`&&(y.validAfter=Number(d)),nn(f)&&f!==`0x`&&(y.feeToken=f),o&&o!==`0x`&&(y.calls=o.map(e=>{let[t,n,r]=e,i={};return t&&t!==`0x`&&(i.to=t),n&&n!==`0x`&&(i.value=BigInt(n)),r&&r!==`0x`&&(i.data=r),i})),s?.length!==0&&s!==`0x`&&(y.accessList=dN(s)),m?.length!==0&&m!==`0x`&&(y.authorizationList=TN(m)),p!==`0x`&&p!==void 0&&(p===`0x00`||cO(p)?(y.feePayerSignature=null,cO(p)&&(y.from=p)):y.feePayerSignature=gj(p)),_&&(y.keyAuthorization=WM(_));let b=v?TM(v):void 0;if(b&&(y={...y,signature:b}),!y.from&&b)try{y.from=CM({payload:bP(_P(y)),signature:b,root:!0})}catch{}return hP(y),y}function _P(e,t={}){let{feePayerSignature:n,signature:r}=t,i=typeof e==`string`?gP(e):e;return i.from&&=zM(i.from),i.calls&&=i.calls.map(e=>({...e,...e.to?{to:zM(e.to)}:{}})),hP(i),{...i,...r?{signature:DM(r)}:{},...n?{feePayerSignature:pj(n)}:{},type:`tempo`}}function vP(e,t={}){let{accessList:n,authorizationList:r,calls:i,chainId:a,feeToken:o,gas:s,keyAuthorization:c,nonce:l,nonceKey:u,maxFeePerGas:d,maxPriorityFeePerGas:f,validBefore:p,validAfter:m}=e;hP(e);let h=fN(n),g=t.signature||e.signature,_=kN(r),v=i.map(e=>[e.to?zM(e.to):`0x`,e.value?V(e.value):`0x`,e.data??`0x`]),y=!1,b=(()=>{if(t.sender)return t.sender;if(t.format===`feePayer`&&g){let t=DM(g);if(t.type===`keychain`)return t.userAddress;if(t.type===`p256`||t.type===`webAuthn`)return oO(t.publicKey);if(t.type===`secp256k1`)return nj({payload:bP(_P(e)),signature:t.signature})}let n=t.feePayerSignature===void 0?e.feePayerSignature:t.feePayerSignature;return n===null?(y=!0,`0x00`):n?yj(n):`0x`})(),x=[V(a),f?V(f):`0x`,d?V(d):`0x`,s?V(s):`0x`,v,h,u?V(u):`0x`,l?V(l):`0x`,typeof p==`number`?V(p):`0x`,typeof m==`number`?V(m):`0x`,!y&&(typeof o==`bigint`||typeof o==`string`)?dP(o):`0x`,b,_,...c?[XM(c)]:[],...g?[AM(DM(g))]:[]];return Bt(t.format===`feePayer`?fP:pP,CO(x))}function yP(e){return vP({...e,signature:void 0,...e.feePayerSignature===void 0?{}:{feePayerSignature:null}})}function bP(e,t={}){let n=xP(e,{presign:!0});return t.from?HD(Bt(`0x04`,n,zM(t.from))):n}function xP(e,t={}){return HD(t.presign?yP(e):vP(e))}function SP(e,t){let n=zM(t.sender);return HD(vP({...e,signature:void 0},{sender:n,format:`feePayer`}))}var CP=class extends B{constructor(){super(`Calls list cannot be empty.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`TxEnvelopeTempo.CallsEmptyError`})}},wP=class extends B{constructor({validBefore:e,validAfter:t}){super(`validBefore (${e}) must be greater than validAfter (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`TxEnvelopeTempo.InvalidValidityWindowError`})}};function TP(e){let{account:t,config:n}=e;return BO({account:t,config:n,payload:e.type===`transaction`?bP(gP(e.transaction)):GM(KM(e.keyAuthorization))})}function EP(e){try{let t=IO(e.config);if(typeof t.threshold!=`number`||t.owners.some(e=>typeof e.weight!=`number`))throw new LP({reason:`config threshold and owner weights must be numbers`});let n={...e,config:t};if(OP(n,t),n.type===`transaction`)kP(n);else if(n.type===`keyAuthorization`)AP(n,t);else throw new LP({reason:`unknown operation type`});return n}catch(e){throw e instanceof LP?e:new LP({cause:e})}}function DP(e){try{let t=e.config?.version;if(typeof t!=`string`||!nn(t))throw new LP({reason:`config.version must be a hexadecimal quantity`});let n=Lt(t);if(V(n)!==t)throw new LP({reason:`config.version must use canonical quantity encoding`});return EP({...e,config:LO(e.config)})}catch(e){throw e instanceof LP?e:new LP({cause:e})}}function OP(e,t){if(!cO(e.account))throw new LP({reason:`account is invalid`});if(Lt(e.account)===0n)throw new LP({reason:`account cannot be zero`});if(!WD(e.hash))throw new LP({reason:`hash is invalid`});if(FP(e.createdAt,`createdAt`),FP(e.updatedAt,`updatedAt`),e.updatedAt<e.createdAt)throw new LP({reason:`updatedAt cannot precede createdAt`});if(FP(e.signatureCount,`signatureCount`),FP(e.threshold,`threshold`),FP(e.weight,`weight`),e.threshold!==Number(t.threshold))throw new LP({reason:`threshold must equal config.threshold`});if(e.weight>255)throw new LP({reason:`weight exceeds u8 max`});if(e.signatureCount>8)throw new LP({reason:`too many selected signatures`});if(!Array.isArray(e.approvals))throw new LP({reason:`approvals must be an array`});if(e.approvals.length>t.owners.length)throw new LP({reason:`too many retained approvals`});if(e.signatureCount>e.approvals.length)throw new LP({reason:`signatureCount exceeds retained approvals`});if(e.signatureCount===0!=(e.weight===0))throw new LP({reason:`signatureCount and weight must both be zero or nonzero`});let n=new Map(t.owners.map(e=>[e.owner.toLowerCase(),Number(e.weight)])),r=[],i=new Set;for(let a of e.approvals){if(typeof a!=`string`||!nn(a,{strict:!0}))throw new LP({reason:`approval is invalid`});let o=jP(e.account,a,t),s=CM({payload:e.hash,signature:o}).toLowerCase(),c=n.get(s);if(c===void 0)throw new LP({reason:`approval is from a non-owner`});if(i.has(s))throw new LP({reason:e.type===`keyAuthorization`?`key authorization contains duplicate owner approvals`:`duplicate owner approval`});i.add(s),r.push(c)}if(!NP(r,e.signatureCount,e.weight))throw new LP({reason:`weight is not reachable by signatureCount retained owner approvals`})}function kP(e){if(`keyAuthorization`in e&&e.keyAuthorization!==void 0)throw new LP({reason:`transaction operations cannot contain keyAuthorization`});let t=e.expiresAt,n=e.submissionId,r=e.transactionHash;if(e.status===`pending`){if(t!==void 0||n!==void 0||r!==void 0)throw new LP({reason:`pending transactions cannot contain submission fields`})}else if(e.status===`submitting`){if(FP(t,`expiresAt`),!WD(n??``))throw new LP({reason:`submissionId is invalid`});if(n.toLowerCase()===e.hash.toLowerCase())throw new LP({reason:`submissionId must differ from the operation hash`});if(r!==void 0)throw new LP({reason:`submitting transactions cannot contain transactionHash`})}else if(e.status===`success`){if(!WD(r??``))throw new LP({reason:`transactionHash is invalid`});if(t!==void 0||n!==void 0)throw new LP({reason:`successful transactions cannot contain submission fields`})}else throw new LP({reason:`invalid transaction status`});if(e.status!==`pending`&&(e.weight<e.threshold||e.signatureCount===0))throw new LP({reason:`submitted transactions must have quorum`});if(typeof e.transaction!=`string`)throw new LP({reason:`transaction is invalid`});let i=gP(e.transaction);if(i.signature)throw new LP({reason:`transaction must not contain an outer sender signature`});if(i.from&&i.from.toLowerCase()!==e.account.toLowerCase())throw new LP({reason:`transaction sender does not match the operation account`});if(PP(e,bP(i)),vP(i,e.transaction.startsWith(fP)?i.from?{format:`feePayer`,sender:i.from}:{format:`feePayer`}:{}).toLowerCase()!==e.transaction.toLowerCase())throw new LP({reason:`transaction is not canonically serialized`})}function AP(e,t){let n=e;if(n.expiresAt!==void 0||n.submissionId!==void 0||n.transaction!==void 0||n.transactionHash!==void 0)throw new LP({reason:`key authorization operations cannot contain transaction fields`});if(e.status!==`pending`&&e.status!==`success`)throw new LP({reason:`invalid key authorization status`});if(e.status===`success`&&(e.weight<e.threshold||e.signatureCount===0))throw new LP({reason:`successful key authorizations must have quorum`});if(e.status===`pending`&&e.weight>=e.threshold)throw new LP({reason:`pending key authorizations cannot have quorum`});if(typeof e.keyAuthorization!=`string`)throw new LP({reason:`keyAuthorization is invalid`});let r=KM(e.keyAuthorization);if(!r.account||r.account.toLowerCase()!==e.account.toLowerCase())throw new LP({reason:`key authorization account does not match the operation account`});let i=r.signature;if(e.status===`pending`&&i)throw new LP({reason:`pending key authorizations must be unsigned`});if(e.status===`success`){if(i?.type!==`configurable`)throw new LP({reason:`successful key authorizations require a configurable account signature`});if(i.account.toLowerCase()!==e.account.toLowerCase())throw new LP({reason:`key authorization signature account does not match`});if(i.signatures.length!==e.signatureCount)throw new LP({reason:`key authorization signatureCount does not match its signature`});if(MP(e,i.signatures,r),!IP(i.config,t))throw new LP({reason:`key authorization config does not match`})}if(PP(e,GM(r)),JM(r).toLowerCase()!==e.keyAuthorization.toLowerCase())throw new LP({reason:`keyAuthorization is not canonically serialized`})}function jP(e,t,n){let r=TM(t);if(r.type===`keychain`||r.type===`configurable`)throw new LP({reason:`only primitive owner approvals are allowed`});if(bM({account:e,config:n,signatures:[r],type:`configurable`}),AM(r).toLowerCase()!==t.toLowerCase())throw new LP({reason:`approval is not canonical`});return r}function MP(e,t,n){let r=e.approvals.map(e=>TM(e));for(let e of t){let t=r.findIndex(t=>AM(t).toLowerCase()===AM(e).toLowerCase());if(t===-1)throw new LP({reason:`key authorization signature is not a retained approval`});r.splice(t,1)}let i=BO({account:e.account,config:e.config,payload:GM(n)}),a=t.map(e=>CM({payload:i,signature:e}));for(let e=1;e<a.length;e++){let t=Lt(a[e-1]),n=Lt(a[e]);if(t===n)throw new LP({reason:`key authorization contains duplicate owner approvals`});if(t>n)throw new LP({reason:`key authorization approvals are not canonically ordered`})}}function NP(e,t,n){let r=Array.from({length:t+1},()=>new Set);r[0].add(0);for(let n of e)for(let e=t;e>0;e--)for(let t of r[e-1])r[e].add(t+n);return r[t].has(n)}function PP(e,t){if(BO({account:e.account,config:e.config,payload:t}).toLowerCase()!==e.hash.toLowerCase())throw new LP({reason:`hash does not match the operation payload`})}function FP(e,t){if(typeof e!=`number`||!Number.isSafeInteger(e)||e<0)throw new LP({reason:`${t} must be a nonnegative safe integer`})}function IP(e,t){let n=IO(e),r=IO(t);return pt(n.salt??jO,r.salt??jO)&&n.threshold===r.threshold&&n.version===r.version&&n.owners.length===r.owners.length&&n.owners.every((e,t)=>{let n=r.owners[t];return sO(e.owner,n.owner)&&e.weight===n.weight})}var LP=class extends B{constructor(e={}){super(e.reason?`Invalid account operation: ${e.reason}.`:`Invalid account operation.`,{cause:e.cause}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`AccountOperation.InvalidOperationError`})}};function RP(e){let{approvals:t,config:n}=e;return zP(t),{approvals:t.map(({keyData:e,keyType:t,owner:n})=>({...e===void 0?{}:{keyData:VP(e)},...t===void 0?{}:{keyType:t},owner:n})),config:BP(n)}}function zP(e){if(e.some(e=>typeof e!=`object`||!e||`spec`in e||`type`in e))throw new HP({reason:`only untagged primitive owner approvals are allowed`});if(e.length>8)throw new HP({reason:`approval count exceeds 8`})}function BP(e){return CO(VO(e))}function VP(e){let t=xt(e);return t<=4?e:V(t,{size:2})}var HP=class extends B{constructor(e){super(`Invalid account simulation: ${e.reason}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`AccountSimulation.InvalidSimulationError`})}};function UP(e,t={}){return typeof e.chainId==`string`?WP(e):{...e,...t.signature}}function WP(e){let{address:t,chainId:n,nonce:r}=e,i=fj(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...i}}function GP(e){return e.map(WP)}function KP(e){let{address:t,chainId:n,nonce:r,...i}=e;return{address:t,chainId:V(n),nonce:V(r),...vj(i)}}function qP(e){return e.map(KP)}function JP(e,t){return typeof e==`string`?e:V(e,t)}var YP={default:0,sender:2,verify:1},XP={approveExecution:2,approveExecutionAndPayment:3,approvePayment:1,atomicBatch:4,none:0};function ZP(e){let{data:t=`0x`,executionGas:n=0n,flags:r=0,mode:i=0,stateGas:a=0n,value:o=0n}=e,s=typeof i==`string`?YP[i]:i;if(!Number.isInteger(s)||s<0||s>2)throw new tF(`mode must be a supported name or 0, 1, or 2.`);let c=typeof r==`string`?XP[r]:r;if(!Number.isInteger(c)||c<0||c>7)throw new tF(`flags must be a supported name or an integer from 0 to 7.`);if(c&XP.atomicBatch){if(s===YP.verify)throw new tF(`VERIFY frames cannot belong to an atomic batch.`);if(c&XP.approveExecutionAndPayment)throw new tF(`Atomic batch frames cannot approve execution or payment.`)}e.to!==void 0&&rO(e.to,{strict:!1});for(let[e,t]of[[`executionGas`,n],[`stateGas`,a]])if(typeof t!=`bigint`||t<0n||t>=2n**64n)throw new tF(`${e} must be an unsigned 64-bit integer.`);if(n+a>=2n**64n)throw new tF(`Combined frame gas must be less than 2^64.`);if(typeof o!=`bigint`||o<0n||o>=2n**256n)throw new tF(`value must be an unsigned 256-bit integer.`);if(s!==YP.sender&&o!==0n)throw new tF(`Only SENDER frames can transfer value.`);if(Zt(t,{strict:!0}),t.length%2!=0)throw new tF(`data must contain whole bytes.`)}function QP(e){return ZP(e),{...e}}function $P(e){return QP({data:e.data,executionGas:Lt(e.executionGas),flags:Et(e.flags),mode:Et(e.mode),stateGas:Lt(e.stateGas),...e.target==null?{}:{to:e.target},value:Lt(e.value)})}function eF(e){let{flags:t=0,mode:n=0}=e;return{data:e.data??`0x`,executionGas:JP(e.executionGas??0n),flags:V(typeof t==`string`?XP[t]:t),mode:V(typeof n==`string`?YP[n]:n),stateGas:JP(e.stateGas??0n),...e.to===void 0?{}:{target:e.to},value:JP(e.value??0n)}}var tF=class extends B{constructor(e){super(`Invalid frame.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`Frame.InvalidError`})}},nF=115792089210356248762697446949407573529996955224135760342422259061068512044369n,rF=115792089237316195423570985008687907852837564279074904382605163141518161494337n,iF={arbitrary:0,p256:2,secp256k1:1};function aF(e,t={}){let n=typeof e.scheme==`string`?iF[e.scheme]:e.scheme;if(!Number.isInteger(n)||n<0||n>2)throw new dF(`Unsupported signature scheme.`);if(n===0&&e.signer!==void 0)throw new dF(`Arbitrary signatures cannot specify a signer.`);e.signer!==void 0&&rO(e.signer,{strict:!1});let r=e.payload??`0x`;if(Zt(r,{strict:!0}),r!==`0x`&&(r.length!==66||Lt(r)===0n))throw new dF(`payload must be empty or a nonzero 32-byte digest.`);switch(e.scheme){case 0:case`arbitrary`:if(Zt(e.signature,{strict:!0}),e.signature.length%2!=0)throw new dF(`signature must contain whole bytes.`);return}if(e.scheme===2||e.scheme===`p256`){if(e.publicKey!==void 0){GD(e.publicKey,{compressed:!1});for(let t of[e.publicKey.x,e.publicKey.y])if(typeof t!=`bigint`||t<0n||t>=2n**256n)throw new dF(`Public key coordinates must fit in 32 bytes.`)}if(e.signature!==void 0&&e.signature!==`0x`&&e.publicKey===void 0)throw new dF(`P-256 signatures require a public key.`)}if(e.signature===void 0||e.signature===`0x`){if(t.signed)throw new dF(`Signature is required.`);return}typeof e.signature==`string`&&Zt(e.signature,{strict:!0});let i=typeof e.signature==`string`?dj(e.signature):e.signature;if(typeof i.r!=`bigint`||typeof i.s!=`bigint`)throw new dF(`Signature scalars must be bigint.`);if((n===1||i.yParity!==void 0)&&i.yParity!==0&&i.yParity!==1)throw new dF(`Signature parity must be 0 or 1.`);lj(i,{recovered:n===1});let a=i.r,o=i.s,s=n===1?rF:nF;if(a===0n||a>=s||o===0n||o>=s||n===1&&o>s/2n)throw new dF(`Signature scalars must be in range; secp256k1 requires low-s.`)}function oF(e){let t=typeof e==`string`?{payload:`0x`,scheme:`arbitrary`,signature:e}:{...e,payload:e.payload??`0x`,scheme:e.scheme??`arbitrary`};return aF(t),t}function sF(e){return lF([e.scheme===`0x0`?`0x`:V(Et(e.scheme),{size:1}),e.signer??`0x`,e.msg??`0x`,e.signature??`0x`])}function cF(e){let[t,n,r,i]=uF(e);return{msg:r,scheme:t===`0x`?`0x0`:V(Et(t)),...i===`0x`&&t!==`0x`?{}:{signature:i},...n===`0x`?{}:{signer:n}}}function lF(e){if(!Array.isArray(e)||e.length!==4)throw new dF(`Expected [scheme, signer, payload, signature].`);let[t,n,r,i]=e;if(Zt(n,{strict:!0}),Zt(i,{strict:!0}),i.length%2!=0)throw new dF(`signature must contain whole bytes.`);if(t!==`0x`&&t!==`0x01`&&t!==`0x02`)throw new dF(`Expected a canonical scheme encoding: empty bytes, 0x01, or 0x02.`);let a={...n===`0x`?{}:{signer:n},payload:r};if(t===`0x`){if(n!==`0x`)throw new dF(`Arbitrary signatures cannot specify a signer.`);return oF({payload:r,scheme:`arbitrary`,signature:i})}if(i===`0x`)return oF(t===`0x01`?{...a,scheme:`secp256k1`}:{...a,scheme:`p256`});if(xt(i)!==(t===`0x01`?65:128))throw new dF(`Invalid protocol signature length.`);if(t===`0x01`){if(Et(H(i,0,1))>1)throw new dF(`Recovery parity must be 0 or 1.`);return oF({...a,scheme:`secp256k1`,signature:{r:Lt(H(i,1,33)),s:Lt(H(i,33,65)),yParity:Et(H(i,0,1))}})}let o=Lt(H(i,32,64));if(o>115792089210356248762697446949407573529996955224135760342422259061068512044369n/2n)throw new dF(`P-256 wire signatures require low-s.`);return oF({...a,publicKey:{prefix:4,x:Lt(H(i,64,96)),y:Lt(H(i,96,128))},scheme:`p256`,signature:{r:Lt(H(i,0,32)),s:o}})}function uF(e){aF(e);let t=typeof e.scheme==`string`?iF[e.scheme]:e.scheme,n=(()=>{switch(e.scheme){case 0:case`arbitrary`:return e.signature;case 1:case`secp256k1`:{if(e.signature===void 0||e.signature===`0x`)return`0x`;let t=typeof e.signature==`string`?dj(e.signature):e.signature;return Bt(V(t.yParity,{size:1}),V(t.r,{size:32}),V(t.s,{size:32}))}case 2:case`p256`:{if(e.signature===void 0||e.signature===`0x`)return`0x`;let t=e.publicKey,n=typeof e.signature==`string`?dj(e.signature):e.signature,r=n.s;return Bt(V(n.r,{size:32}),V(r>115792089210356248762697446949407573529996955224135760342422259061068512044369n/2n?nF-r:r,{size:32}),V(t.x,{size:32}),V(t.y,{size:32}))}}})();return[t?V(t,{size:1}):`0x`,e.signer??`0x`,e.payload??`0x`,n]}var dF=class extends B{constructor(e){super(`Invalid frame signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`FrameSignature.InvalidError`})}};function fF(e,t){if(!Array.isArray(e)||e.length<1||e.length>16)throw new hF(`Expected between 1 and 16 nonce keys.`);for(let[t,n]of e.entries()){if(typeof n!=`bigint`||n<0n||n>=2n**256n)throw new hF(`Nonce keys must be unsigned 256-bit integers.`);if(t>0&&n<=e[t-1])throw new hF(`Nonce keys must be strictly increasing.`)}if(e.length>1&&e[0]===0n)throw new hF(`The zero nonce key cannot be combined with other keys.`);if(t!==void 0&&(typeof t!=`bigint`||t<0n||t>=2n**64n-1n))throw new hF(`Nonce must be less than 2^64 - 1 and nonnegative.`)}function pF(e,t){if(!Array.isArray(e))throw new hF(`Expected a nonce key list.`);let n=e=>{if(typeof e!=`string`||!/^0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)$/.test(e))throw new hF(`Expected a canonical RPC nonce quantity.`);return Lt(e)},r=e.map(n);return fF(r,t===void 0?void 0:n(t)),r}function mF(e,t){if(!Array.isArray(e))throw new hF(`Expected a nonce key list.`);let n=e.map(e=>JP(e));return pF(n,t===void 0?void 0:JP(t)),n}var hF=class extends B{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`FrameNonce.InvalidError`})}},gF={legacy:`0x0`,eip2930:`0x1`,eip1559:`0x2`,eip4844:`0x3`,eip7702:`0x4`,eip8141:`0x6`},_F={"0x0":`legacy`,"0x1":`eip2930`,"0x2":`eip1559`,"0x3":`eip4844`,"0x4":`eip7702`,"0x6":`eip8141`};function vF(e,t={}){if(!e)return null;let n=e.type===`0x6`?void 0:fj(e),r={...e,...n};if(r.blockNumber=e.blockNumber?BigInt(e.blockNumber):null,`blockTimestamp`in e&&(r.blockTimestamp=e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0),r.data=e.input,r.gas=BigInt(e.gas??0n),r.nonce=BigInt(e.nonce??0n),r.transactionIndex=e.transactionIndex?Number(e.transactionIndex):null,r.value=BigInt(e.value??0n),e.type===`0x6`&&e.nonceKeys!==void 0){if(e.nonce===void 0)throw new hF(`A keyed transaction result requires nonce.`);r.nonceKeys=pF(e.nonceKeys,e.nonce)}return e.frames&&(r.frames=e.frames.map($P)),e.signatures&&(r.signatures=e.signatures.map(sF)),e.authorizationList&&(r.authorizationList=GP(e.authorizationList)),e.chainId&&(r.chainId=e.type===`0x6`&&BigInt(e.chainId)>BigInt(2**53-1)?BigInt(e.chainId):Number(e.chainId)),e.gasPrice&&(r.gasPrice=BigInt(e.gasPrice)),e.maxFeePerBlobGas&&(r.maxFeePerBlobGas=BigInt(e.maxFeePerBlobGas)),e.maxFeePerGas&&(r.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.type&&(r.type=_F[e.type]??e.type),n&&(r.v=xj(n.yParity)),r}var yF={...gF,tempo:`0x76`},bF={..._F,"0x76":`tempo`};function xF(e,t={}){if(!e)return null;let n=vF(e);return n.type=bF[e.type],e.aaAuthorizationList&&(n.authorizationList=CN(e.aaAuthorizationList),delete n.aaAuthorizationList),e.calls&&(n.calls=e.calls.map(e=>({to:e.to,value:e.value&&e.value!==`0x`?BigInt(e.value):void 0,data:e.input||e.data||`0x`}))),e.feeToken&&(n.feeToken=e.feeToken),e.nonceKey&&(n.nonceKey=BigInt(e.nonceKey)),e.signature&&(n.signature=OM(e.signature)),e.validAfter&&(n.validAfter=Number(e.validAfter)),e.validBefore&&(n.validBefore=Number(e.validBefore)),e.keyAuthorization&&(n.keyAuthorization=UM(e.keyAuthorization)),e.feePayerSignature&&(n.feePayerSignature=hj(e.feePayerSignature),n.feePayerSignature.v=xj(n.feePayerSignature.yParity)),n}function SF(e){let{executionGas:t,stateGas:n,...r}=eF(e);return{...r,...e.executionGas===void 0?{}:{executionGas:t},...e.stateGas===void 0?{}:{stateGas:n}}}function CF(e){let t={};return e.accessList!==void 0&&(t.accessList=e.accessList),e.authorizationList!==void 0&&(t.authorizationList=qP(e.authorizationList)),e.blobVersionedHashes!==void 0&&(t.blobVersionedHashes=e.blobVersionedHashes),e.blobs!==void 0&&(t.blobs=e.blobs),e.chainId!==void 0&&(t.chainId=V(e.chainId)),e.data===void 0?e.input!==void 0&&(t.data=e.input,t.input=e.input):(t.data=e.data,t.input=e.data),e.from!==void 0&&(t.from=e.from),e.frames&&(t.frames=e.frames.map(SF)),e.signatures&&(t.signatures=e.signatures.map(cF)),e.gas!==void 0&&(t.gas=V(e.gas)),e.gasPrice!==void 0&&(t.gasPrice=V(e.gasPrice)),e.maxFeePerBlobGas!==void 0&&(t.maxFeePerBlobGas=V(e.maxFeePerBlobGas)),e.maxFeePerGas!==void 0&&(t.maxFeePerGas=V(e.maxFeePerGas)),e.maxPriorityFeePerGas!==void 0&&(t.maxPriorityFeePerGas=V(e.maxPriorityFeePerGas)),e.maxPriorityFeePerGas!==void 0&&(t.maxPriorityFeePerGas=V(e.maxPriorityFeePerGas)),e.nonce!==void 0&&(t.nonce=V(e.nonce)),e.nonceKeys!==void 0&&(t.nonceKeys=mF(e.nonceKeys,e.nonce)),e.to!==void 0&&(t.to=e.to),e.type!==void 0&&(t.type=gF[e.type]||e.type),e.value!==void 0&&(t.value=V(e.value)),t}function wF(e){let t=CF({...e,authorizationList:void 0});e.authorizationList&&(t.authorizationList=DN(e.authorizationList)),e.calls?t.calls=e.calls.map(e=>({to:e.to?zM(e.to):e.to,value:e.value?V(e.value):`0x`,data:e.data??`0x`})):(e.to||e.data||e.value)&&(t.calls=[{to:e.to?zM(e.to):void 0,value:e.value?V(e.value):`0x`,data:e.data??`0x`}]),e.feeToken!==void 0&&(t.feeToken=dP(e.feeToken)),e.keyAuthorization&&(t.keyAuthorization=YM(e.keyAuthorization)),e.keyAuthorizationSimulation&&(t.keyAuthorizationSimulation=RP(e.keyAuthorizationSimulation)),e.accountSimulation&&(t.multisigSimulation=RP(e.accountSimulation)),e.validBefore!==void 0&&(t.validBefore=V(e.validBefore)),e.validAfter!==void 0&&(t.validAfter=V(e.validAfter));let n=(()=>{if(e.nonceKey===`random`)return gt(6);if(typeof e.nonceKey==`bigint`)return V(e.nonceKey)})();return n&&(t.nonceKey=n),(e.accountSimulation!==void 0||e.calls!==void 0||e.feePayer!==void 0||e.feeToken!==void 0||e.keyAuthorization!==void 0||e.nonceKey!==void 0||e.validBefore!==void 0||e.validAfter!==void 0||e.type===`tempo`)&&(t.type=yF.tempo,delete t.data,delete t.input,delete t.to,delete t.value),t}var TF={4217:{base:4217e5,range:100261e4},42431:{base:142431e4,range:723173648}},EF=4217;TF[EF].base;function DF(e,t=EF){let{base:n,range:r}=kF(t);return n+e%r}var OF=class extends B{constructor({sourceId:e}){super(`Source chain ID "${e}" is not supported.`,{metaMessages:[`Supported source chain IDs: 4217, 42431.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`ZoneId.UnsupportedSourceIdError`})}};function kF(e){if(e===4217||e===42431)return TF[e];throw new OF({sourceId:e})}async function AF(e,{address:t,blockHash:n,blockNumber:r,blockTag:i=`latest`,requireCanonical:a}){let o=Ne({blockHash:n,blockNumber:r,blockTag:i,requireCanonical:a}),s=await e.request({method:`eth_getCode`,params:[t,o]},{dedupe:typeof r==`bigint`||n!==void 0});if(s!==`0x`)return s}var jF={"0x0":`legacy`,"0x1":`eip2930`,"0x2":`eip1559`,"0x3":`eip4844`,"0x4":`eip7702`};function MF(e,t){let 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?hn(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?hn(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?jF[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=PF(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)}})(),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}var NF=ot(`transaction`,MF);function PF(e){return e.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))}async function FF(e,{blockHash:t,blockNumber:n,blockTag:r,hash:i,index:a,sender:o,nonce:s}){let c=r||`latest`,l=n===void 0?void 0:z(n),u=null;if(i?u=await e.request({method:`eth_getTransactionByHash`,params:[i]},{dedupe:!0}):t?u=await e.request({method:`eth_getTransactionByBlockHashAndIndex`,params:[t,z(a)]},{dedupe:!0}):(l||c)&&typeof a==`number`?u=await e.request({method:`eth_getTransactionByBlockNumberAndIndex`,params:[l||c,z(a)]},{dedupe:!!l}):o&&typeof s==`number`&&(u=await e.request({method:`eth_getTransactionBySenderAndNonce`,params:[o,z(s)]},{dedupe:!0})),!u)throw new ve({blockHash:t,blockNumber:n,blockTag:c,hash:i,index:a});return(e.chain?.formatters?.transaction?.format||MF)(u,`getTransaction`)}var IF=`0x6492649264926492649264926492649264926492649264926492649264926492`;function LF(e){if(H(e,-32)!==`0x6492649264926492649264926492649264926492649264926492649264926492`)throw new BF(e)}function RF(e){let{data:t,signature:n,to:r}=e;return Bt($N(tP(`address, bytes, bytes`),[r,t,n]),IF)}function zF(e){try{return LF(e),!0}catch{return!1}}var BF=class extends B{constructor(e){super(`Value \`${e}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`SignatureErc6492.InvalidWrappedSignatureError`})}},VF=tP(`(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data`);function HF(e){if(typeof e==`string`){if(H(e,-32)!==`0x8010801080108010801080108010801080108010801080108010801080108010`)throw new GF(e)}else lj(e.authorization)}function UF(e){HF(e);let t=Et(H(e,-64,-32)),n=H(e,-t-64,-64),r=H(e,0,-t-64),[i,a,o]=QN(VF,n);return{authorization:UP({address:i.delegation,chainId:Number(i.chainId),nonce:i.nonce,yParity:i.yParity,r:i.r,s:i.s}),signature:r,...o&&o!==`0x`?{data:o,to:a}:{}}}function WF(e){try{return HF(e),!0}catch{return!1}}var GF=class extends B{constructor(e){super(`Value \`${e}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`SignatureErc8010.InvalidWrappedSignatureError`})}};function KF(e){let t=Wt(`0x${e.substring(4)}`).substring(26);return Je(`0x${t}`)}async function qF({hash:e,signature:t}){let n=Ze(e)?e:we(e),{secp256k1:r}=await rt(async()=>{let{secp256k1:e}=await Promise.resolve().then(()=>KA);return{secp256k1:e}},void 0);return`0x${(()=>{if(typeof t==`object`&&`r`in t&&`s`in t){let{r:e,s:n,v:i,yParity:a}=t,o=JF(Number(a??i));return new r.Signature(ke(e),ke(n)).addRecoveryBit(o)}let e=Ze(t)?t:we(t);if(qe(e)!==65)throw Error(`invalid signature length`);let n=JF(hn(`0x${e.slice(130)}`));return r.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(n)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function JF(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw Error(`Invalid yParityOrV value`)}async function YF({hash:e,signature:t}){return KF(await qF({hash:e,signature:t}))}function XF(e,t=`hex`){let n=ZF(e),r=mn(new Uint8Array(n.length));return n.encode(r),t===`hex`?Ie(r.bytes):r.bytes}function ZF(e){return Array.isArray(e)?QF(e.map(e=>ZF(e))):$F(e)}function QF(e){let t=e.reduce((e,t)=>e+t.length,0),n=eI(t);return{length:t<=55?1+t:1+n+t,encode(r){t<=55?r.pushByte(192+t):(r.pushByte(247+n),n===1?r.pushUint8(t):n===2?r.pushUint16(t):n===3?r.pushUint24(t):r.pushUint32(t));for(let{encode:t}of e)t(r)}}}function $F(e){let t=typeof e==`string`?ue(e):e,n=eI(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(e){t.length===1&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(e.pushByte(183+n),n===1?e.pushUint8(t.length):n===2?e.pushUint16(t.length):n===3?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}function eI(e){if(e<256)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new $e(`Length is too large.`)}function tI(e){let{chainId:t,nonce:n,to:r}=e,i=e.contractAddress??e.address,a=Wt(Re([`0x05`,XF([t?z(t):`0x`,i,n?z(n):`0x`])]));return r===`bytes`?ue(a):a}async function nI(e){let{authorization:t,signature:n}=e;return YF({hash:tI(t),signature:n??t})}async function rI({address:e,authorization:t,signature:n}){return lt(Se(e),await nI({authorization:t,signature:n}))}function iI(e,t,n){let r=e[t.name];if(typeof r==`function`)return r;let i=e[n];return typeof i==`function`?i:n=>t(e,n)}function aI({r:e,s:t,to:n=`hex`,v:r,yParity:i}){let a=(()=>{if(i===0||i===1)return i;if(r&&(r===27n||r===28n||r>=35n))return+(r%2n==0n);throw Error("Invalid `v` or `yParity` value")})(),o=`0x${new tj.Signature(ke(e),ke(t)).toCompactHex()}${a===0?`1b`:`1c`}`;return n===`hex`?o:ue(o)}var oI=-1,sI=class extends $e{constructor(e,{code:t,docsPath:n,metaMessages:r,name:i,shortMessage:a}){super(a,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages,name:i||`RpcError`}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=i||e.name,this.code=e instanceof ht?e.code:t??oI}},cI=class extends sI{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}};Object.defineProperty(class e extends sI{constructor(t){super(t,{code:e.code,name:`ParseRpcError`,shortMessage:`Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),Object.defineProperty(class e extends sI{constructor(t){super(t,{code:e.code,name:`InvalidRequestRpcError`,shortMessage:`JSON is not a valid request object.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),Object.defineProperty(class e extends sI{constructor(t,{method:n}={}){super(t,{code:e.code,name:`MethodNotFoundRpcError`,shortMessage:`The method${n?` "${n}"`:``} does not exist / is not available.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),Object.defineProperty(class e extends sI{constructor(t){super(t,{code:e.code,name:`InvalidParamsRpcError`,shortMessage:[`Invalid parameters were provided to the RPC method.`,`Double check you have provided the correct parameters.`].join(`
27
27
  `)})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});var lI=class e extends sI{constructor(t){super(t,{code:e.code,name:`InternalRpcError`,shortMessage:`An internal error was received.`})}};Object.defineProperty(lI,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});var uI=class e extends sI{constructor(t){super(t,{code:e.code,name:`InvalidInputRpcError`,shortMessage:[`Missing or invalid parameters.`,`Double check you have provided the correct parameters.`].join(`
28
28
  `)})}};Object.defineProperty(uI,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),Object.defineProperty(class e extends sI{constructor(t){super(t,{code:e.code,name:`ResourceNotFoundRpcError`,shortMessage:`Requested resource not found.`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:`ResourceNotFoundRpcError`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),Object.defineProperty(class e extends sI{constructor(t){super(t,{code:e.code,name:`ResourceUnavailableRpcError`,shortMessage:`Requested resource not available.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),Object.defineProperty(class e extends sI{constructor(t){super(t,{code:e.code,name:`TransactionRejectedRpcError`,shortMessage:`Transaction creation failed.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),Object.defineProperty(class e extends sI{constructor(t,{method:n}={}){super(t,{code:e.code,name:`MethodNotSupportedRpcError`,shortMessage:`Method${n?` "${n}"`:``} is not supported.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),Object.defineProperty(class e extends sI{constructor(t){super(t,{code:e.code,name:`LimitExceededRpcError`,shortMessage:`Request exceeds defined limit.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),Object.defineProperty(class e extends sI{constructor(t){super(t,{code:e.code,name:`JsonRpcVersionUnsupportedError`,shortMessage:`Version of JSON-RPC protocol is not supported.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`UserRejectedRequestError`,shortMessage:`User rejected the request.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:4001}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`UnauthorizedProviderError`,shortMessage:`The requested method and/or account has not been authorized by the user.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:4100}),Object.defineProperty(class e extends cI{constructor(t,{method:n}={}){super(t,{code:e.code,name:`UnsupportedProviderMethodError`,shortMessage:`The Provider does not support the requested method${n?` " ${n}"`:``}.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:4200}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`ProviderDisconnectedError`,shortMessage:`The Provider is disconnected from all chains.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:4900}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`ChainDisconnectedError`,shortMessage:`The Provider is not connected to the requested chain.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:4901}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`SwitchChainError`,shortMessage:`An error occurred when attempting to switch chain.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:4902}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`UnsupportedNonOptionalCapabilityError`,shortMessage:`This Wallet does not support a capability that was not marked as optional.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:5700}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`UnsupportedChainIdError`,shortMessage:`This Wallet does not support the requested chain ID.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:5710}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`DuplicateIdError`,shortMessage:`There is already a bundle submitted with this ID.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:5720}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`UnknownBundleIdError`,shortMessage:`This bundle id is unknown / has not been submitted`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:5730}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`BundleTooLargeError`,shortMessage:`The call bundle is too large for the Wallet to process.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:5740}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`AtomicReadyWalletRejectedUpgradeError`,shortMessage:`The Wallet can support atomicity after an upgrade, but the user rejected the upgrade.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:5750}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`AtomicityNotSupportedError`,shortMessage:`The wallet does not support atomic execution but the request requires it.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:5760}),Object.defineProperty(class e extends cI{constructor(t){super(t,{code:e.code,name:`WalletConnectSessionSettlementError`,shortMessage:`WalletConnect session settlement failed.`})}},"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});var dI=3;function fI(e,{abi:t,address:n,args:r,docsPath:i,functionName:a,sender:o}){let s=e instanceof me?e:e instanceof $e?e.walk(e=>typeof e==`object`&&!!e&&`data`in e)||e.walk():{},{code:c,data:l,details:u,message:d,shortMessage:f}=s,p=e instanceof nt?new ge({functionName:a,cause:e}):[dI,lI.code].includes(c)&&(l||u||d||f)||c===uI.code&&u===`execution reverted`&&l?new Ue({abi:t,data:typeof l==`object`?l.data:l,functionName:a,message:s instanceof ht?u:f??d,cause:e}):e;return new an(p,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:a,sender:o})}async function pI(e,t){let{abi:n,address:r,args:i,functionName:a,...o}=t,s=cn({abi:n,args:i,functionName:a});try{let{data:t}=await iI(e,Xt,`call`)({...o,data:s,to:r});return Ct({abi:n,args:i,functionName:a,data:t||`0x`})}catch(e){throw fI(e,{abi:n,address:r,args:i,docsPath:`/docs/contract/readContract`,functionName:a})}}async function mI(e,t){let{address:n,chain:r=e.chain,hash:i,erc6492VerifierAddress:a=t.universalSignatureVerifierAddress??r?.contracts?.erc6492Verifier?.address,multicallAddress:o=t.multicallAddress??r?.contracts?.multicall3?.address,mode:s=`auto`}=t;if(r?.verifyHash)return await r.verifyHash(e,t);let c=(()=>{let e=t.signature;return Ze(e)?e:typeof e==`object`&&`r`in e&&`s`in e?aI(e):Ie(e)})();try{if(s===`eoa`)try{if(lt(Se(n),await YF({hash:i,signature:c})))return!0}catch{}return WF(c)?await hI(e,{...t,multicallAddress:o,signature:c}):await gI(e,{...t,verifierAddress:a,signature:c})}catch(e){if(s!==`eoa`)try{if(lt(Se(n),await YF({hash:i,signature:c})))return!0}catch{}if(e instanceof vI)return!1;throw e}}async function hI(e,t){let{address:n,blockHash:r,blockNumber:i,blockTag:a,hash:o,multicallAddress:s,requireCanonical:c}=t,{authorization:l,data:u,signature:d,to:f}=UF(t.signature);if(await AF(e,{address:n,blockHash:r,blockNumber:i,blockTag:a,requireCanonical:c})===Re([`0xef0100`,l.address]))return await _I(e,{...t,signature:d});let p={address:l.address,chainId:Number(l.chainId),nonce:Number(l.nonce),r:z(l.r,{size:32}),s:z(l.s,{size:32}),yParity:l.yParity};if(!await rI({address:n,authorization:p}))throw new vI;let m=await iI(e,pI,`readContract`)({...s?{address:s}:{code:St},authorizationList:[p],abi:Tt,blockHash:r,blockNumber:i,blockTag:`pending`,functionName:`aggregate3`,requireCanonical:c,args:[[...u?[{allowFailure:!0,target:f??n,callData:u}]:[],{allowFailure:!0,target:n,callData:cn({abi:Rt,functionName:`isValidSignature`,args:[o,d]})}]]});if((m[m.length-1]?.returnData)?.startsWith(`0x1626ba7e`))return!0;throw new vI}async function gI(e,t){let{address:n,factory:r,factoryData:i,hash:a,signature:o,verifierAddress:s,...c}=t,l=await(async()=>!r&&!i||zF(o)?o:RF({data:i,signature:o,to:r}))(),u=s?{to:s,data:cn({abi:Dt,functionName:`isValidSig`,args:[n,a,l]}),...c}:{data:Be({abi:Dt,args:[n,a,l],bytecode:_t}),...c},{data:d}=await iI(e,Xt,`call`)(u).catch(e=>{throw e instanceof de?new vI:e});if(ze(d??`0x0`))return!0;throw new vI}async function _I(e,t){let{address:n,blockHash:r,blockNumber:i,blockTag:a,hash:o,requireCanonical:s,signature:c}=t;if((await iI(e,pI,`readContract`)({address:n,abi:Rt,args:[o,c],blockHash:r,blockNumber:i,blockTag:a,functionName:`isValidSignature`,requireCanonical:s}).catch(e=>{throw e instanceof an?new vI:e})).startsWith(`0x1626ba7e`))return!0;throw new vI}var vI=class extends Error{};function yI(e){let t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(e){return t=>{let r=typeof t==`function`?t(e):t,i={...e,...r};return Object.assign(i,{extend:n(i)})}}return Object.assign(t,{extend:n(t)})}function bI(){return{}}function xI(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}:{}}}var SI={"0x0":`reverted`,"0x1":`success`};function CI(e,t){let 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(e=>xI(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?hn(e.transactionIndex):null,status:e.status?SI[e.status]:null,type:e.type?jF[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}var wI=ot(`transactionReceipt`,CI),TI=`/docs/contract/decodeEventLog`;function EI(e){let{abi:t,data:n,strict:r,topics:i}=e,a=r??!0,[o,...s]=i;if(!o)throw new yt({docsPath:TI});let c=t.find(e=>e.type===`event`&&o===Ae(mt(e)));if(!(c&&`name`in c)||c.type!==`event`)throw new Qt(o,{docsPath:TI});let{name:l,inputs:u}=c,d=u?.some(e=>!(`name`in e&&e.name)),f=d?[]:{},p=u.map((e,t)=>[e,t]).filter(([e])=>`indexed`in e&&e.indexed),m=[];for(let e=0;e<p.length;e++){let[t,n]=p[e],r=s[e];if(r)f[d?n:t.name||n]=DI({param:t,value:r});else{if(a)throw new Ht({abiItem:c,param:t});m.push([t,n])}}let h=u.filter(e=>!(`indexed`in e&&e.indexed)),g=a?h:[...m.map(([e])=>e),...h];if(g.length>0){if(n&&n!==`0x`)try{let e=ye(g,n);if(e){let t=0;if(!a)for(let[n,r]of m)f[d?r:n.name||r]=e[t++];if(d)for(let n=0;n<u.length;n++)f[n]===void 0&&t<e.length&&(f[n]=e[t++]);else for(let n=0;n<h.length;n++)f[h[n].name]=e[t++]}}catch(e){if(a)throw e instanceof Qe||e instanceof R?new ct({abiItem:c,data:n,params:g,size:qe(n)}):e}else if(a)throw new ct({abiItem:c,data:`0x`,params:g,size:0})}return{eventName:l,args:Object.values(f).length>0?f:void 0}}function DI({param:e,value:t}){return e.type===`string`||e.type===`bytes`||e.type===`tuple`||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(ye([e],t)||[])[0]}function OI(e){let{abi:t,args:n,logs:r,strict:i=!0}=e,a=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),o=t.filter(e=>e.type===`event`).map(e=>({abi:e,selector:Ae(e)}));return r.map(e=>{let t=typeof e.blockNumber==`string`?xI(e):e,r=o.filter(e=>t.topics[0]===e.selector);if(r.length===0)return null;let s,c;for(let e of r)try{s=EI({...t,abi:[e.abi],strict:!0}),c=e;break}catch{}if(!s&&!i){c=r[0];try{s=EI({data:t.data,topics:t.topics,abi:[c.abi],strict:!1})}catch{let e=c.abi.inputs?.some(e=>!(`name`in e&&e.name));return{...t,args:e?[]:{},eventName:c.abi.name}}}return!s||!c||a&&!a.includes(s.eventName)||!kI({args:s.args,inputs:c.abi.inputs,matchArgs:n})?null:{...s,...t}}).filter(Boolean)}function kI(e){let{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function i(e,t,n){try{return e.type===`address`?lt(t,n):e.type===`string`||e.type===`bytes`?Wt(Ye(t))===n:t===n}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((e,r)=>{if(e==null)return!0;let a=n[r];return a?(Array.isArray(e)?e:[e]).some(e=>i(a,e,t[r])):!1}):typeof t==`object`&&!Array.isArray(t)&&typeof r==`object`&&!Array.isArray(r)&&Object.entries(r).every(([e,r])=>{if(r==null)return!0;let a=n.find(t=>t.name===e);return a?(Array.isArray(r)?r:[r]).some(n=>i(a,n,t[e])):!1})}var AI=class extends $e{constructor({docsPath:e}={}){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(`
29
- `),{docsPath:e,docsSlug:`account`,name:`AccountNotFoundError`})}},jI=class extends $e{constructor({docsPath:e,metaMessages:t,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:e,metaMessages:t,name:`AccountTypeNotSupportedError`})}};function MI({chain:e,currentChainId:t}){if(!e)throw new tn;if(t!==e.id)throw new it({chain:e,currentChainId:t})}function NI(e,{docsPath:t,...n}){let r=(()=>{let t=Pt(e,n);return t instanceof It?e:t})();return new Ge(r,{docsPath:t,...n})}async function PI(e){let t=await e.request({method:`eth_chainId`},{dedupe:!0});return hn(t)}var FI=class extends $e{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:`BaseFeeScalarError`})}},II=class extends $e{constructor(){super(`Chain does not support EIP-1559 fees.`,{name:`Eip1559FeesNotSupportedError`})}},LI=class extends $e{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Nt(e)} gwei).`,{name:`MaxFeePerGasTooLowError`})}},RI=class extends $e{constructor({blockHash:e,blockNumber:t}){let n=`Block`;e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`,{name:`BlockNotFoundError`})}};function zI(e,t){let n=(e.transactions??[]).map(e=>typeof e==`string`?e:MF(e));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}}async function BI(e,{blockHash:t,blockNumber:n,blockTag:r=e.experimental_blockTag??`latest`,includeTransactions:i}={}){let a=i??!1,o=n===void 0?void 0:z(n),s=null;if(s=t?await e.request({method:`eth_getBlockByHash`,params:[t,a]},{dedupe:!0}):await e.request({method:`eth_getBlockByNumber`,params:[o||r,a]},{dedupe:!!o}),!s)throw new RI({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||zI)(s,`getBlock`)}async function VI(e){let t=await e.request({method:`eth_gasPrice`});return BigInt(t)}async function HI(e,t){let{block:n,chain:r=e.chain,request:i}=t||{};try{let t=r?.fees?.maxPriorityFeePerGas??r?.fees?.defaultPriorityFee;if(typeof t==`function`){let r=await t({block:n||await iI(e,BI,`getBlock`)({}),client:e,request:i});if(r===null)throw Error();return r}if(t!==void 0)return t;let a=await e.request({method:`eth_maxPriorityFeePerGas`});return ke(a)}catch{let[t,r]=await Promise.all([n?Promise.resolve(n):iI(e,BI,`getBlock`)({}),iI(e,VI,`getGasPrice`)({})]);if(typeof t.baseFeePerGas!=`bigint`)throw new II;let i=r-t.baseFeePerGas;return i<0n?0n:i}}async function UI(e,t){let{block:n,chain:r=e.chain,request:i,type:a=`eip1559`}=t||{},o=await(async()=>typeof r?.fees?.baseFeeMultiplier==`function`?r.fees.baseFeeMultiplier({block:n,client:e,request:i}):r?.fees?.baseFeeMultiplier??1.2)();if(o<1)throw new FI;let s=10**(o.toString().split(`.`)[1]?.length??0),c=e=>e*BigInt(Math.round(o*s))/BigInt(s),l=n||await iI(e,BI,`getBlock`)({});if(typeof r?.fees?.estimateFeesPerGas==`function`){let t=await r.fees.estimateFeesPerGas({block:n,client:e,multiply:c,request:i,type:a});if(t!==null)return t}if(a===`eip1559`){if(typeof l.baseFeePerGas!=`bigint`)throw new II;let t=typeof i?.maxPriorityFeePerGas==`bigint`?i.maxPriorityFeePerGas:await HI(e,{block:l,chain:r,request:i}),n=c(l.baseFeePerGas);return{maxFeePerGas:i?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:i?.gasPrice??c(await iI(e,VI,`getGasPrice`)({}))}}var WI=class extends $e{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,to:u,value:d}){let f=Fe({from:t?.address,to:u,value:d!==void 0&&`${le(d)} ${r?.nativeCurrency?.symbol||`ETH`}`,data:i,gas:a,gasPrice:o!==void 0&&`${Nt(o)} gwei`,maxFeePerGas:s!==void 0&&`${Nt(s)} gwei`,maxPriorityFeePerGas:c!==void 0&&`${Nt(c)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages,` `]:[],`Estimate Gas Arguments:`,f].filter(Boolean),name:`EstimateGasExecutionError`}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}};function GI(e,{docsPath:t,...n}){return new WI((()=>{let t=Pt(e,n);return t instanceof It?e:t})(),{docsPath:t,...n})}async function KI(e,t){let{account:n=e.account,prepare:r=!0}=t,i=n?en(n):void 0,a=(()=>{if(Array.isArray(r))return r;if(i?.type!==`local`)return[`blobVersionedHashes`]})();try{let n=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await nI({authorization:t.authorizationList[0]}).catch(()=>{throw new $e("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:o,authorizationList:s,blobs:c,blobVersionedHashes:l,blockNumber:u,blockTag:d,data:f,gas:p,gasPrice:m,maxFeePerBlobGas:h,maxFeePerGas:g,maxPriorityFeePerGas:_,nonce:v,value:y,stateOverride:b,...x}=r?await mL(e,{...t,parameters:a,to:n}):t;if(p&&t.gas!==p)return p;let S=(typeof u==`bigint`?z(u):void 0)||d,C=Ot(b);zt(t);let w=e.chain?.formatters?.transactionRequest?.format,T=(w||Jt)({...ft(x,{format:w}),account:i,accessList:o,authorizationList:s,blobs:c,blobVersionedHashes:l,data:f,gasPrice:m,maxFeePerBlobGas:h,maxFeePerGas:g,maxPriorityFeePerGas:_,nonce:v,to:n,value:y},`estimateGas`);return BigInt(await e.request({method:`eth_estimateGas`,params:C?[T,S??e.experimental_blockTag??`latest`,C]:S?[T,S]:[T]}))}catch(n){throw GI(n,{...t,account:i,chain:e.chain})}}async function qI(e,{address:t,blockHash:n,blockNumber:r,blockTag:i=`latest`,requireCanonical:a}){let o=Ne({blockHash:n,blockNumber:r,blockTag:i,requireCanonical:a}),s=await e.request({method:`eth_getTransactionCount`,params:[t,o]},{dedupe:typeof r==`bigint`||n!==void 0});return hn(s)}function JI(e){let{kzg:t}=e,n=e.to??(typeof e.blobs[0]==`string`?`hex`:`bytes`),r=typeof e.blobs[0]==`string`?e.blobs.map(e=>ue(e)):e.blobs,i=[];for(let e of r)i.push(Uint8Array.from(t.blobToKzgCommitment(e)));return n===`bytes`?i:i.map(e=>Ie(e))}function YI(e){let{kzg:t}=e,n=e.to??(typeof e.blobs[0]==`string`?`hex`:`bytes`),r=typeof e.blobs[0]==`string`?e.blobs.map(e=>ue(e)):e.blobs,i=typeof e.commitments[0]==`string`?e.commitments.map(e=>ue(e)):e.commitments,a=[];for(let e=0;e<r.length;e++){let n=r[e],o=i[e];a.push(Uint8Array.from(t.computeBlobKzgProof(n,o)))}return n===`bytes`?a:a.map(e=>Ie(e))}function XI(e,t){let n=t||`hex`,r=VD(Ze(e,{strict:!1})?Ye(e):e);return n===`bytes`?r:we(r)}function ZI(e){let{commitment:t,version:n=1}=e,r=e.to??(typeof t==`string`?`hex`:`bytes`),i=XI(t,`bytes`);return i.set([n],0),r===`bytes`?i:Ie(i)}function QI(e){let{commitments:t,version:n}=e,r=e.to??(typeof t[0]==`string`?`hex`:`bytes`),i=[];for(let e of t)i.push(ZI({commitment:e,to:r,version:n}));return i}var $I=6,eL=4096,tL=32*eL,nL=tL*$I-1-1*eL*$I,rL=class extends $e{constructor({maxSize:e,size:t}){super(`Blob size is too large.`,{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:`BlobSizeTooLargeError`})}},iL=class extends $e{constructor(){super(`Blob data must not be empty.`,{name:`EmptyBlobError`})}},aL=class extends $e{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:[`Expected: 32`,`Received: ${t}`],name:`InvalidVersionedHashSizeError`})}},oL=class extends $e{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: 1`,`Received: ${t}`],name:`InvalidVersionedHashVersionError`})}};function sL(e){let t=e.to??(typeof e.data==`string`?`hex`:`bytes`),n=typeof e.data==`string`?ue(e.data):e.data,r=qe(n);if(!r)throw new iL;if(r>761855)throw new rL({maxSize:nL,size:r});let i=[],a=!0,o=0;for(;a;){let e=mn(new Uint8Array(tL)),t=0;for(;t<eL;){let r=n.slice(o,o+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),a=!1;break}t++,o+=31}i.push(e)}return t===`bytes`?i.map(e=>e.bytes):i.map(e=>Ie(e.bytes))}function cL(e){let{data:t,kzg:n,to:r}=e,i=e.blobs??sL({data:t,to:r}),a=e.commitments??JI({blobs:i,kzg:n,to:r}),o=e.proofs??YI({blobs:i,commitments:a,kzg:n,to:r}),s=[];for(let e=0;e<i.length;e++)s.push({blob:i[e],commitment:a[e],proof:o[e]});return s}function lL(e){if(e.type)return e.type;if(e.authorizationList!==void 0)return`eip7702`;if(e.blobs!==void 0||e.blobVersionedHashes!==void 0||e.maxFeePerBlobGas!==void 0||e.sidecars!==void 0)return`eip4844`;if(e.maxFeePerGas!==void 0||e.maxPriorityFeePerGas!==void 0)return`eip1559`;if(e.gasPrice!==void 0)return e.accessList===void 0?`legacy`:`eip2930`;throw new dt({transaction:e})}async function uL(e,t){let{account:n=e.account,accessList:r,authorizationList:i,chain:a=e.chain,blobVersionedHashes:o,blobs:s,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:m,nonceManager:h,to:g,type:_,value:v,...y}=t,b=await(async()=>{if(!n||!h||m!==void 0)return m;let t=en(n),r=a?a.id:await iI(e,PI,`getChainId`)({});return await h.consume({address:t.address,chainId:r,client:e})})();zt(t);let x=a?.formatters?.transactionRequest?.format,S=(x||Jt)({...ft(y,{format:x}),account:n?en(n):void 0,accessList:r,authorizationList:i,blobs:s,blobVersionedHashes:o,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:b,to:g,type:_,value:v},`fillTransaction`);try{let n=await e.request({method:`eth_fillTransaction`,params:[S]}),r=(a?.formatters?.transaction?.format||MF)(n.tx);delete r.blockHash,delete r.blockNumber,delete r.r,delete r.s,delete r.transactionIndex,delete r.v,delete r.yParity,r.data=r.input;let i=r.feePayerSignature!==void 0&&r.feePayerSignature!==null;if(i&&b!==void 0&&r.nonce!==b)throw new rn({filledNonce:r.nonce,requestedNonce:b});if(!i){r.gas&&=t.gas??r.gas,r.gasPrice&&=t.gasPrice??r.gasPrice,r.maxFeePerBlobGas&&=t.maxFeePerBlobGas??r.maxFeePerBlobGas,r.maxFeePerGas&&=t.maxFeePerGas??r.maxFeePerGas,r.maxPriorityFeePerGas&&=t.maxPriorityFeePerGas??r.maxPriorityFeePerGas,r.nonce!==void 0&&(r.nonce=t.nonce??r.nonce);let n=await(async()=>{if(typeof a?.fees?.baseFeeMultiplier==`function`){let n=await iI(e,BI,`getBlock`)({});return a.fees.baseFeeMultiplier({block:n,client:e,request:t})}return a?.fees?.baseFeeMultiplier??1.2})();if(n<1)throw new FI;let i=10**(n.toString().split(`.`)[1]?.length??0),o=e=>e*BigInt(Math.round(n*i))/BigInt(i);r.maxFeePerGas&&!t.maxFeePerGas&&(r.maxFeePerGas=o(r.maxFeePerGas)),r.gasPrice&&!t.gasPrice&&(r.gasPrice=o(r.gasPrice))}return{raw:n.raw,transaction:{from:S.from,...r},...n.capabilities?{capabilities:n.capabilities}:{}}}catch(n){throw NI(n,{...t,chain:e.chain})}}var dL=[`blobVersionedHashes`,`chainId`,`fees`,`gas`,`nonce`,`type`],fL=new Map,pL=new Xe(128);async function mL(e,t){let n=t;n.account??=e.account,n.parameters??=dL;let{account:r,chain:i=e.chain,nonceManager:a,parameters:o}=n,s=(()=>{if(typeof i?.prepareTransactionRequest==`function`)return{fn:i.prepareTransactionRequest,runAt:[`beforeFillTransaction`]};if(Array.isArray(i?.prepareTransactionRequest))return{fn:i.prepareTransactionRequest[0],runAt:i.prepareTransactionRequest[1].runAt}})(),c;async function l(){return c||(n.chainId===void 0?i?i.id:(c=await iI(e,PI,`getChainId`)({}),c):n.chainId)}let u=r&&en(r),d=n.nonce;if(s?.fn&&s.runAt?.includes(`beforeFillTransaction`)){n=await s.fn({...n,chain:i},{client:e,phase:`beforeFillTransaction`}),d??=n.nonce;let t=n.account??n.from;u=t?en(t):void 0}if(o.includes(`nonce`)&&d===void 0&&u&&a){let t=await l();d=await a.consume({address:u.address,chainId:t,client:e})}let f=!((o.includes(`blobVersionedHashes`)||o.includes(`sidecars`))&&n.kzg&&n.blobs)&&(o.length>0&&`feePayer`in n&&n.feePayer&&!(`feePayerSignature`in n&&n.feePayerSignature)||pL.get(e.uid)!==!1&&[`fees`,`gas`].some(e=>o.includes(e))&&(o.includes(`chainId`)&&typeof n.chainId!=`number`||o.includes(`nonce`)&&typeof d!=`number`||o.includes(`fees`)&&typeof n.gasPrice!=`bigint`&&(typeof n.maxFeePerGas!=`bigint`||typeof n.maxPriorityFeePerGas!=`bigint`)||o.includes(`gas`)&&typeof n.gas!=`bigint`))?await iI(e,uL,`fillTransaction`)({...n,nonce:d}).then(t=>{let{chainId:r,from:i,gas:a,gasPrice:o,nonce:s,maxFeePerBlobGas:c,maxFeePerGas:l,maxPriorityFeePerGas:u,type:d,...f}=t.transaction,p=`feeToken`in f?f.feeToken:void 0,m=`feePayerSignature`in f&&f.feePayerSignature!==null&&f.feePayerSignature!==void 0,h=p!=null&&(!(`feeToken`in n)||m);return pL.set(e.uid,!0),{...n,...i?{from:i}:{},...d&&!n.type?{type:d}:{},...r===void 0?{}:{chainId:r},...a===void 0?{}:{gas:a},...o===void 0?{}:{gasPrice:o},...s===void 0?{}:{nonce:s},...c!==void 0&&n.type!==`legacy`&&n.type!==`eip2930`?{maxFeePerBlobGas:c}:{},...l!==void 0&&n.type!==`legacy`&&n.type!==`eip2930`?{maxFeePerGas:l}:{},...u!==void 0&&n.type!==`legacy`&&n.type!==`eip2930`?{maxPriorityFeePerGas:u}:{},...`nonceKey`in f&&f.nonceKey!==void 0?{nonceKey:f.nonceKey}:{},...`validBefore`in f&&f.validBefore!==null&&f.validBefore!==void 0?{validBefore:f.validBefore}:{},...`validAfter`in f&&f.validAfter!==null&&f.validAfter!==void 0?{validAfter:f.validAfter}:{},...`keyAuthorization`in f&&f.keyAuthorization!==void 0&&f.keyAuthorization!==null&&!(`keyAuthorization`in n)?{keyAuthorization:f.keyAuthorization}:{},...`feePayerSignature`in f&&f.feePayerSignature!==void 0&&f.feePayerSignature!==null?{feePayerSignature:f.feePayerSignature}:{},...h?{feeToken:p}:{},...t.capabilities?{_capabilities:t.capabilities}:{}}}).catch(t=>{let r=t;if(r.name!==`TransactionExecutionError`)return n;if(r.walk?.(e=>e instanceof rn)||r.walk?.(e=>e.name===`ExecutionRevertedError`))throw t;return r.walk?.(e=>{let t=e;return t.name===`MethodNotFoundRpcError`||t.name===`MethodNotSupportedRpcError`||t.message?.includes(`eth_fillTransaction is not available`)})&&pL.set(e.uid,!1),n}):n;d??=f.nonce,n={...f,...u?{from:u?.address}:{},...d===void 0?{}:{nonce:d}};let{blobs:p,gas:m,kzg:h,type:g}=n;s?.fn&&s.runAt?.includes(`beforeFillParameters`)&&(n=await s.fn({...n,chain:i},{client:e,phase:`beforeFillParameters`}));let _;async function v(){return _||(_=await iI(e,BI,`getBlock`)({blockTag:`latest`}),_)}if(o.includes(`nonce`)&&d===void 0&&u&&!a&&(n.nonce=await iI(e,qI,`getTransactionCount`)({address:u.address,blockTag:`pending`})),(o.includes(`blobVersionedHashes`)||o.includes(`sidecars`))&&p&&h){let e=JI({blobs:p,kzg:h});if(o.includes(`blobVersionedHashes`)){let t=QI({commitments:e,to:`hex`});n.blobVersionedHashes=t}if(o.includes(`sidecars`)){let t=cL({blobs:p,commitments:e,proofs:YI({blobs:p,commitments:e,kzg:h}),to:`hex`});n.sidecars=t}}if(o.includes(`chainId`)&&(n.chainId=await l()),(o.includes(`fees`)||o.includes(`type`))&&g===void 0)try{n.type=lL(n)}catch{let t=fL.get(e.uid);t===void 0&&(t=typeof(await v())?.baseFeePerGas==`bigint`,fL.set(e.uid,t)),n.type=t?`eip1559`:`legacy`}if(o.includes(`fees`)){if(n.type!==`legacy`&&n.type!==`eip2930`){if(n.maxFeePerGas===void 0||n.maxPriorityFeePerGas===void 0){let{maxFeePerGas:t,maxPriorityFeePerGas:r}=await UI(e,{block:await v(),chain:i,request:n});if(n.maxPriorityFeePerGas===void 0&&n.maxFeePerGas&&n.maxFeePerGas<r)throw new LI({maxPriorityFeePerGas:r});n.maxPriorityFeePerGas=r,n.maxFeePerGas=t}}else{if(n.maxFeePerGas!==void 0||n.maxPriorityFeePerGas!==void 0)throw new II;if(n.gasPrice===void 0){let{gasPrice:t}=await UI(e,{block:await v(),chain:i,request:n,type:`legacy`});n.gasPrice=t}}}return o.includes(`gas`)&&m===void 0&&(n.gas=await iI(e,KI,`estimateGas`)({...n,account:u,prepare:u?.type===`local`?[]:[`blobVersionedHashes`]})),s?.fn&&s.runAt?.includes(`afterFillParameters`)&&(n=await s.fn({...n,chain:i},{client:e,phase:`afterFillParameters`})),zt(n),delete n.parameters,n}async function hL(e,{serializedTransaction:t}){return e.request({method:`eth_sendRawTransaction`,params:[t]},{retryCount:0})}var gL=new Xe(128);async function _L(e,t){let{account:n=e.account,assertChainId:r=!0,chain:i=e.chain,accessList:a,authorizationList:o,blobs:s,data:c,dataSuffix:l=typeof e.dataSuffix==`string`?e.dataSuffix:e.dataSuffix?.value,gas:u,gasPrice:d,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:h,type:g,value:_,...v}=t;if(n===void 0)throw new AI({docsPath:`/docs/actions/wallet/sendTransaction`});let y=n?en(n):null,b;try{zt(t);let n=await(async()=>{if(t.to)return t.to;if(t.to!==null&&o&&o.length>0)return await nI({authorization:o[0]}).catch(()=>{throw new $e("`to` is required. Could not infer from `authorizationList`.")})})();if(y?.type===`json-rpc`||y===null){let t;i!==null&&(t=await iI(e,PI,`getChainId`)({}),r&&MI({currentChainId:t,chain:i}));let b=e.chain?.formatters?.transactionRequest?.format,x=(b||Jt)({...ft(v,{format:b}),accessList:a,account:y,authorizationList:o,blobs:s,chainId:t,data:l?Oe([c??`0x`,l]):c,gas:u,gasPrice:d,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:h,to:n,type:g,value:_},`sendTransaction`),S=gL.get(e.uid),C=S?`wallet_sendTransaction`:`eth_sendTransaction`;try{return await e.request({method:C,params:[x]},{retryCount:0})}catch(t){if(S===!1)throw t;let n=t;if(n.name===`InvalidInputRpcError`||n.name===`InvalidParamsRpcError`||n.name===`MethodNotFoundRpcError`||n.name===`MethodNotSupportedRpcError`)return await e.request({method:`wallet_sendTransaction`,params:[x]},{retryCount:0}).then(t=>(gL.set(e.uid,!0),t)).catch(t=>{let r=t;throw r.name===`MethodNotFoundRpcError`||r.name===`MethodNotSupportedRpcError`?(gL.set(e.uid,!1),n):r});throw n}}if(y?.type===`local`){let t=(()=>{if(!y.nonceManager||h!==void 0)return y.nonceManager;let e=y.nonceManager;return{consume(t){return b={address:t.address,chainId:t.chainId},e.consume(t)},get(t){return e.get(t)},increment(t){return e.increment(t)},reset(t){return e.reset(t)}}})(),r=await iI(e,mL,`prepareTransactionRequest`)({account:y,accessList:a,authorizationList:o,blobs:s,chain:i,data:l?Oe([c??`0x`,l]):c,gas:u,gasPrice:d,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:h,nonceManager:t,parameters:[...dL,`sidecars`],type:g,value:_,...v,to:n}),x=i?.serializers?.transaction,S=await y.signTransaction(r,{serializer:x}),C=(i??e.chain)?.serializers?.transactionEnvelope,w=C?await C({serializedTransaction:S,transaction:r}):S;return await iI(e,hL,`sendRawTransaction`)({serializedTransaction:w})}throw y?.type===`smart`?new jI({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:`/docs/actions/bundler/sendUserOperation`,type:`smart`}):new jI({docsPath:`/docs/actions/wallet/sendTransaction`,type:y?.type})}catch(e){throw e instanceof jI?e:(b&&y?.nonceManager?.reset(b),NI(e,{...t,account:y,chain:t.chain||void 0}))}}async function vL(e,t){return vL.internal(e,_L,`sendTransaction`,t)}(function(e){async function t(e,t,n,r){let{abi:i,account:a=e.account,address:o,args:s,functionName:c,...l}=r;if(a===void 0)throw new AI({docsPath:`/docs/contract/writeContract`});let u=a?en(a):null,d=cn({abi:i,args:s,functionName:c});try{return await iI(e,t,n)({data:d,to:o,account:u,...l})}catch(e){throw fI(e,{abi:i,address:o,args:s,docsPath:`/docs/contract/writeContract`,functionName:c,sender:u?.address})}}e.internal=t})(vL||={});var yL=[{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`}]}],bL=[{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:[]}],xL=[{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:[]}],SL=[{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:[]}],CL=[{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:[]}],wL=[{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:[]}],TL=[{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:[]}],EL=[{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:[]}],DL=[{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:[]}],OL=[{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:[]}],kL=[{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:[]}],AL=[{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:[]}],jL=[{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`}]}],ML=[{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:`burnAt`,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:`BURN_AT_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:`BurnAt`,type:`event`,inputs:[{type:`address`,name:`burner`,indexed:!0},{type:`address`,name:`from`,indexed:!0},{type:`uint256`,name:`amount`,indexed:!0}]},{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:[]}],NL=[{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:[]}],PL=[{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:[]}],FL=[{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`}]}],IL=[{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`}]}],LL=[{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_UNPROCESSED_DEPOSITS`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`MAX_UNPROCESSED_TOKEN_ENABLEMENTS`,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:`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:`tuple`,name:`tokenEnablementTransition`,components:[{type:`uint64`,name:`prevProcessedTokenCount`},{type:`uint64`,name:`nextProcessedTokenCount`}]},{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:`lastProcessedEnabledTokenCount`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`tokenEnablementCursorInitialized`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`bool`}]},{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:`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`},{type:`uint64`,name:`lastProcessedEnabledTokenCount`}]},{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:`TokenEnablementCursorNotInitialized`,type:`error`,inputs:[]},{name:`InvalidDepositTransition`,type:`error`,inputs:[]},{name:`InvalidTokenEnablementTransition`,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`}]}],RL=[{name:`verify`,type:`function`,stateMutability:`view`,inputs:[{type:`uint32`,name:`zoneId`},{type:`uint64`,name:`tempoBlockNumber`},{type:`uint64`,name:`anchorBlockNumber`},{type:`bytes32`,name:`anchorBlockHash`},{type:`uint64`,name:`expectedWithdrawalBatchIndex`},{type:`uint256`,name:`nextZoneHeight`},{type:`tuple`,name:`blockTransition`,components:[{type:`bytes32`,name:`prevBlockHash`},{type:`bytes32`,name:`nextBlockHash`}]},{type:`tuple`,name:`depositQueueTransition`,components:[{type:`bytes32`,name:`prevProcessedHash`},{type:`bytes32`,name:`nextProcessedHash`},{type:`uint64`,name:`prevDepositNumber`},{type:`uint64`,name:`nextDepositNumber`}]},{type:`tuple`,name:`tokenEnablementTransition`,components:[{type:`uint64`,name:`prevProcessedTokenCount`},{type:`uint64`,name:`nextProcessedTokenCount`}]},{type:`bytes32`,name:`withdrawalQueueHash`},{type:`bytes`,name:`verifierConfig`},{type:`bytes`,name:`proof`}],outputs:[{type:`bool`}]}],zL=[{type:`constructor`,inputs:[{name:`earnVault_`,type:`address`},{name:`owner_`,type:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`acceptOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`active`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`asset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`executeFunding`,inputs:[{name:`funder`,type:`address`},{name:`requestedAssets`,type:`uint256`},{name:`maxEarnShareSupply`,type:`uint256`}],outputs:[{name:`fundedAssets`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`fund`,inputs:[{name:`funder`,type:`address`},{name:`requestedAssets`,type:`uint256`},{name:`maxEarnShareSupply`,type:`uint256`}],outputs:[{name:`fundedAssets`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`fundBatchExact`,inputs:[{name:`funders`,type:`address[]`},{name:`requestedAssets`,type:`uint256[]`},{name:`maxEarnShareSupply`,type:`uint256`}],outputs:[{name:`totalFundedAssets`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`owner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`pendingOwner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`renounceOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setActive`,inputs:[{name:`active_`,type:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`transferOwnership`,inputs:[{name:`newOwner`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`event`,name:`ActiveSet`,inputs:[{name:`active`,type:`bool`,indexed:!1}],anonymous:!1},{type:`event`,name:`Funded`,inputs:[{name:`funder`,type:`address`,indexed:!0},{name:`requestedAssets`,type:`uint256`,indexed:!1},{name:`fundedAssets`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`OwnershipTransferStarted`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OwnershipTransferred`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`error`,name:`EarnShareSupplyOutOfBounds`,inputs:[{name:`earnShareSupply`,type:`uint256`},{name:`maxEarnShareSupply`,type:`uint256`}]},{type:`error`,name:`Inactive`,inputs:[]},{type:`error`,name:`InvalidArrayLengths`,inputs:[]},{type:`error`,name:`NotSelf`,inputs:[]},{type:`error`,name:`OwnableInvalidOwner`,inputs:[{name:`owner`,type:`address`}]},{type:`error`,name:`OwnableUnauthorizedAccount`,inputs:[{name:`account`,type:`address`}]},{type:`error`,name:`ReentrantCall`,inputs:[]},{type:`error`,name:`TokenCallFailed`,inputs:[]},{type:`error`,name:`TokenCallFalse`,inputs:[]},{type:`error`,name:`ZeroAddress`,inputs:[]},{type:`error`,name:`ZeroAmount`,inputs:[]}],BL=[{type:`function`,name:`asset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`deposit`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`name`,inputs:[],outputs:[{name:``,type:`string`}],stateMutability:`view`},{type:`function`,name:`shareScale`,inputs:[],outputs:[{name:`scale`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`supportsInterface`,inputs:[{name:`interfaceId`,type:`bytes4`}],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`symbol`,inputs:[],outputs:[{name:``,type:`string`}],stateMutability:`view`},{type:`function`,name:`totalAssets`,inputs:[],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`totalShares`,inputs:[],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`valueOf`,inputs:[{name:`engineShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`previewWithdraw`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`withdraw`,inputs:[{name:`assets`,type:`uint256`},{name:`receiver`,type:`address`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`isFeeValuationFresh`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`previewRedeem`,inputs:[{name:`engineShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`redeem`,inputs:[{name:`engineShares`,type:`uint256`},{name:`receiver`,type:`address`},{name:`minAssets`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`nonpayable`}],VL=[{type:`function`,name:`cancelRedeem`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`requestRedeem`,inputs:[{name:`engineShares`,type:`uint256`},{name:`requestData`,type:`bytes`}],outputs:[{name:`requestId`,type:`bytes32`}],stateMutability:`nonpayable`}],HL=[{type:`function`,name:`depositInKind`,inputs:[{name:`venueShares`,type:`uint256`},{name:`from`,type:`address`}],outputs:[{name:`engineSharesReceived`,type:`uint256`}],stateMutability:`nonpayable`}],UL=[{type:`constructor`,inputs:[{name:`tip20Factory_`,type:`address`},{name:`earnVaultImplementation_`,type:`address`},{name:`earnFeesImplementation_`,type:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`DEFAULT_ADMIN_ROLE`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`EARN_SHARE_SALT_DOMAIN`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`FEES_SALT_DOMAIN`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`computeEarnShareSalt`,inputs:[{name:`params`,type:`tuple`,components:[{name:`deploymentId`,type:`bytes32`},{name:`engine`,type:`address`},{name:`owner`,type:`address`},{name:`controls`,type:`tuple`,components:[{name:`emergencyGuardian`,type:`address`},{name:`asyncJanitor`,type:`address`},{name:`maxManagedAssets`,type:`uint256`},{name:`migrationMode`,type:`uint8`}]},{name:`distributorConfig`,type:`tuple`,components:[{name:`distributor`,type:`address`},{name:`updateDelay`,type:`uint40`}]},{name:`fees`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]},{name:`transferPolicyId`,type:`uint64`}]}],outputs:[{name:``,type:`bytes32`}],stateMutability:`pure`},{type:`function`,name:`deploy`,inputs:[{name:`params`,type:`tuple`,components:[{name:`deploymentId`,type:`bytes32`},{name:`engine`,type:`address`},{name:`owner`,type:`address`},{name:`controls`,type:`tuple`,components:[{name:`emergencyGuardian`,type:`address`},{name:`asyncJanitor`,type:`address`},{name:`maxManagedAssets`,type:`uint256`},{name:`migrationMode`,type:`uint8`}]},{name:`distributorConfig`,type:`tuple`,components:[{name:`distributor`,type:`address`},{name:`updateDelay`,type:`uint40`}]},{name:`fees`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]},{name:`transferPolicyId`,type:`uint64`}]}],outputs:[{name:`earnShare`,type:`address`},{name:`earnVault`,type:`address`},{name:`earnFees`,type:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`earnFeesImplementation`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`earnVaultImplementation`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`predictEarnFees`,inputs:[{name:`params`,type:`tuple`,components:[{name:`deploymentId`,type:`bytes32`},{name:`engine`,type:`address`},{name:`owner`,type:`address`},{name:`controls`,type:`tuple`,components:[{name:`emergencyGuardian`,type:`address`},{name:`asyncJanitor`,type:`address`},{name:`maxManagedAssets`,type:`uint256`},{name:`migrationMode`,type:`uint8`}]},{name:`distributorConfig`,type:`tuple`,components:[{name:`distributor`,type:`address`},{name:`updateDelay`,type:`uint40`}]},{name:`fees`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]},{name:`transferPolicyId`,type:`uint64`}]}],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`predictEarnShare`,inputs:[{name:`params`,type:`tuple`,components:[{name:`deploymentId`,type:`bytes32`},{name:`engine`,type:`address`},{name:`owner`,type:`address`},{name:`controls`,type:`tuple`,components:[{name:`emergencyGuardian`,type:`address`},{name:`asyncJanitor`,type:`address`},{name:`maxManagedAssets`,type:`uint256`},{name:`migrationMode`,type:`uint8`}]},{name:`distributorConfig`,type:`tuple`,components:[{name:`distributor`,type:`address`},{name:`updateDelay`,type:`uint40`}]},{name:`fees`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]},{name:`transferPolicyId`,type:`uint64`}]}],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`tip20Factory`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`event`,name:`EarnStackDeployed`,inputs:[{name:`earnVault`,type:`address`,indexed:!0},{name:`earnShare`,type:`address`,indexed:!0},{name:`earnFees`,type:`address`,indexed:!0},{name:`engine`,type:`address`,indexed:!1},{name:`asset`,type:`address`,indexed:!1},{name:`owner`,type:`address`,indexed:!1},{name:`deploymentId`,type:`bytes32`,indexed:!1},{name:`emergencyGuardian`,type:`address`,indexed:!1},{name:`asyncJanitor`,type:`address`,indexed:!1},{name:`maxManagedAssets`,type:`uint256`,indexed:!1},{name:`migrationMode`,type:`uint8`,indexed:!1},{name:`transferPolicyId`,type:`uint64`,indexed:!1},{name:`earnShareSalt`,type:`bytes32`,indexed:!1},{name:`controlConfigHash`,type:`bytes32`,indexed:!1},{name:`feeConfigHash`,type:`bytes32`,indexed:!1},{name:`earnFeesSalt`,type:`bytes32`,indexed:!1}],anonymous:!1},{type:`error`,name:`AdminRelinquishmentFailed`,inputs:[]},{type:`error`,name:`EarnShareAlreadyExists`,inputs:[{name:`earnShare`,type:`address`}]},{type:`error`,name:`EarnShareSupplyNotZero`,inputs:[]},{type:`error`,name:`EmptyDeploymentId`,inputs:[]},{type:`error`,name:`EmptyEarnShareMetadata`,inputs:[]},{type:`error`,name:`EngineAlreadyBound`,inputs:[{name:`earnVault`,type:`address`}]},{type:`error`,name:`FactoryCannotBeFinalOwner`,inputs:[]},{type:`error`,name:`FailedDeployment`,inputs:[]},{type:`error`,name:`InsufficientBalance`,inputs:[{name:`balance`,type:`uint256`},{name:`needed`,type:`uint256`}]},{type:`error`,name:`InvalidDistributorConfig`,inputs:[]},{type:`error`,name:`InvalidEarnFeesImplementation`,inputs:[]},{type:`error`,name:`InvalidEarnVaultImplementation`,inputs:[]},{type:`error`,name:`InvalidEngine`,inputs:[]},{type:`error`,name:`InvalidTransferPolicy`,inputs:[{name:`policyId`,type:`uint64`}]},{type:`error`,name:`IssuerGrantFailed`,inputs:[]},{type:`error`,name:`TransferPolicyMismatch`,inputs:[{name:`expected`,type:`uint64`},{name:`actual`,type:`uint64`}]},{type:`error`,name:`UnsupportedTransferPolicy`,inputs:[{name:`policyId`,type:`uint64`},{name:`policyType`,type:`uint8`}]},{type:`error`,name:`ZeroAddress`,inputs:[]}],WL=[{type:`constructor`,inputs:[],stateMutability:`nonpayable`},{type:`function`,name:`accrueFees`,inputs:[],outputs:[{name:`result`,type:`tuple`,components:[{name:`activeAssets`,type:`uint256`},{name:`positiveAccrualAssets`,type:`uint256`},{name:`fixedFeeAssets`,type:`uint256`},{name:`excessFeeAssets`,type:`uint256`},{name:`totalFeeAssets`,type:`uint256`},{name:`totalFeeEarnShares`,type:`uint256`},{name:`preFeeValuePerEarnShare`,type:`uint256`},{name:`postFeeValuePerEarnShare`,type:`uint256`},{name:`targetValuePerEarnShare`,type:`uint256`},{name:`allocationCount`,type:`uint8`},{name:`allocations`,type:`tuple[5]`,components:[{name:`account`,type:`address`},{name:`feeAssets`,type:`uint256`},{name:`feeEarnShares`,type:`uint256`}]}]}],stateMutability:`nonpayable`},{type:`function`,name:`claim`,inputs:[{name:`to`,type:`address`},{name:`earnShares`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`claimableEarnShares`,inputs:[{name:`recipient`,type:`address`}],outputs:[{name:`earnShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`closeRedeemRequest`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`currentFeeConfigId`,inputs:[],outputs:[{name:``,type:`uint64`}],stateMutability:`view`},{type:`function`,name:`disableFees`,inputs:[{name:`operator`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`earnShare`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`earnShareScale`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`feeBaselinesPending`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`feeConfig`,inputs:[{name:`configId`,type:`uint64`}],outputs:[{name:``,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]}],stateMutability:`view`},{type:`function`,name:`feeRemainder`,inputs:[{name:`configId`,type:`uint64`},{name:`slot`,type:`uint8`}],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`feesActive`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`feesDisabled`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`highWaterMark`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`initialize`,inputs:[{name:`earnVault_`,type:`address`},{name:`earnShare_`,type:`address`},{name:`initialConfig`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`initializeBaselines`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`pendingFeeSnapshot`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:``,type:`tuple`,components:[{name:`burnedEarnShares`,type:`uint256`},{name:`requestValue`,type:`uint256`},{name:`highWaterValue`,type:`uint256`},{name:`targetValue`,type:`uint256`},{name:`feeConfigId`,type:`uint64`},{name:`requestedAt`,type:`uint40`},{name:`open`,type:`bool`}]}],stateMutability:`view`},{type:`function`,name:`previewAccruedFees`,inputs:[],outputs:[{name:`result`,type:`tuple`,components:[{name:`activeAssets`,type:`uint256`},{name:`positiveAccrualAssets`,type:`uint256`},{name:`fixedFeeAssets`,type:`uint256`},{name:`excessFeeAssets`,type:`uint256`},{name:`totalFeeAssets`,type:`uint256`},{name:`totalFeeEarnShares`,type:`uint256`},{name:`preFeeValuePerEarnShare`,type:`uint256`},{name:`postFeeValuePerEarnShare`,type:`uint256`},{name:`targetValuePerEarnShare`,type:`uint256`},{name:`allocationCount`,type:`uint8`},{name:`allocations`,type:`tuple[5]`,components:[{name:`account`,type:`address`},{name:`feeAssets`,type:`uint256`},{name:`feeEarnShares`,type:`uint256`}]}]}],stateMutability:`view`},{type:`function`,name:`recordRedeemRequest`,inputs:[{name:`requestId`,type:`bytes32`},{name:`burnedEarnShares`,type:`uint256`},{name:`requestValue`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setFeeConfig`,inputs:[{name:`config`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]}],outputs:[{name:`configId`,type:`uint64`}],stateMutability:`nonpayable`},{type:`function`,name:`settleCancelledRedeem`,inputs:[{name:`requestId`,type:`bytes32`},{name:`returnedValue`,type:`uint256`},{name:`activeSupply`,type:`uint256`},{name:`activeAssets`,type:`uint256`},{name:`totalReentryEarnShares`,type:`uint256`}],outputs:[{name:`feeEarnShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`shouldChargeRedeem`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`targetBase`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`targetStartedAt`,inputs:[],outputs:[{name:``,type:`uint40`}],stateMutability:`view`},{type:`function`,name:`totalClaimableEarnShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`validateFeeConfig`,inputs:[{name:`config`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]}],outputs:[],stateMutability:`view`},{type:`event`,name:`FeeBaselinesInitialized`,inputs:[{name:`highWaterMark`,type:`uint256`,indexed:!1},{name:`targetBase`,type:`uint256`,indexed:!1},{name:`targetStartedAt`,type:`uint40`,indexed:!1}],anonymous:!1},{type:`event`,name:`FeeConfigurationSet`,inputs:[{name:`configId`,type:`uint64`,indexed:!0},{name:`configHash`,type:`bytes32`,indexed:!0},{name:`reactivated`,type:`bool`,indexed:!1}],anonymous:!1},{type:`event`,name:`FeeDustWaived`,inputs:[{name:`configId`,type:`uint64`,indexed:!0},{name:`slot`,type:`uint8`,indexed:!0},{name:`remainder`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`FeeEarnSharesAllocated`,inputs:[{name:`configId`,type:`uint64`,indexed:!0},{name:`recipient`,type:`address`,indexed:!0},{name:`feeAssets`,type:`uint256`,indexed:!1},{name:`feeEarnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`FeeEarnSharesClaimed`,inputs:[{name:`recipient`,type:`address`,indexed:!0},{name:`to`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`FeesAccrued`,inputs:[{name:`configId`,type:`uint64`,indexed:!0},{name:`activeAssets`,type:`uint256`,indexed:!1},{name:`positiveAccrualAssets`,type:`uint256`,indexed:!1},{name:`feeAssets`,type:`uint256`,indexed:!1},{name:`feeEarnShares`,type:`uint256`,indexed:!1},{name:`highWaterMark`,type:`uint256`,indexed:!1},{name:`targetValuePerEarnShare`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`FeesDisabled`,inputs:[{name:`operator`,type:`address`,indexed:!0}],anonymous:!1},{type:`error`,name:`AlreadyInitialized`,inputs:[]},{type:`error`,name:`InsufficientClaimableEarnShares`,inputs:[]},{type:`error`,name:`InvalidFeeClaimReceiver`,inputs:[]},{type:`error`,name:`InvalidFeeConfiguration`,inputs:[]},{type:`error`,name:`NotEarnVault`,inputs:[]},{type:`error`,name:`ReentrantCall`,inputs:[]},{type:`error`,name:`ZeroAddress`,inputs:[]},{type:`error`,name:`ZeroAmount`,inputs:[]}],GL=[{type:`constructor`,inputs:[{name:`earnVault_`,type:`address`},{name:`treasury_`,type:`address`},{name:`campaignId_`,type:`bytes32`},{name:`claimDeadline_`,type:`uint40`},{name:`owner_`,type:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`acceptOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`asset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`campaignId`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`claim`,inputs:[{name:`recipient`,type:`address`},{name:`cumulativeAmount`,type:`uint256`},{name:`proof`,type:`bytes32[]`}],outputs:[{name:`amount`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`claimDeadline`,inputs:[],outputs:[{name:``,type:`uint40`}],stateMutability:`view`},{type:`function`,name:`consumedSettlements`,inputs:[{name:`settlementId`,type:`bytes32`}],outputs:[{name:`consumed`,type:`bool`}],stateMutability:`view`},{type:`function`,name:`cumulativePaid`,inputs:[{name:`recipient`,type:`address`}],outputs:[{name:`cumulativeAmount`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`earnShare`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`fundAndPublishRoot`,inputs:[{name:`settlementId`,type:`bytes32`},{name:`expectedRootVersion`,type:`uint64`},{name:`funder`,type:`address`},{name:`assets`,type:`uint256`},{name:`minEarnShares`,type:`uint256`},{name:`root`,type:`bytes32`},{name:`totalEntitlement`,type:`uint256`},{name:`statementHash_`,type:`bytes32`}],outputs:[{name:`earnShares`,type:`uint256`},{name:`version`,type:`uint64`}],stateMutability:`nonpayable`},{type:`function`,name:`leaf`,inputs:[{name:`recipient`,type:`address`},{name:`cumulativeAmount`,type:`uint256`}],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`merkleRoot`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`owner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`paused`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`pendingOwner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`publishRoot`,inputs:[{name:`expectedRootVersion`,type:`uint64`},{name:`root`,type:`bytes32`},{name:`totalEntitlement`,type:`uint256`},{name:`statementHash_`,type:`bytes32`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`pushBatch`,inputs:[{name:`expectedRootVersion`,type:`uint64`},{name:`recipients`,type:`address[]`},{name:`cumulativeAmounts`,type:`uint256[]`},{name:`multiproof`,type:`bytes32[]`},{name:`proofFlags`,type:`bool[]`}],outputs:[{name:`paidCount`,type:`uint256`},{name:`paidEarnShares`,type:`uint256`},{name:`skippedCount`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`renounceOwnership`,inputs:[],outputs:[],stateMutability:`pure`},{type:`function`,name:`returnUnspent`,inputs:[],outputs:[{name:`earnShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`rootTotalEntitlement`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`rootVersion`,inputs:[],outputs:[{name:``,type:`uint64`}],stateMutability:`view`},{type:`function`,name:`setPaused`,inputs:[{name:`paused_`,type:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`statementHash`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`totalPaid`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`transferOwnership`,inputs:[{name:`newOwner`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`treasury`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`event`,name:`AssetsFunded`,inputs:[{name:`funder`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`BatchPushed`,inputs:[{name:`version`,type:`uint64`,indexed:!0},{name:`batchHash`,type:`bytes32`,indexed:!0},{name:`attemptedCount`,type:`uint256`,indexed:!1},{name:`paidCount`,type:`uint256`,indexed:!1},{name:`paidEarnShares`,type:`uint256`,indexed:!1},{name:`skippedCount`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`OwnershipTransferStarted`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OwnershipTransferred`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`PausedSet`,inputs:[{name:`paused`,type:`bool`,indexed:!1}],anonymous:!1},{type:`event`,name:`PayoutSkipped`,inputs:[{name:`recipient`,type:`address`,indexed:!0},{name:`cumulativeAmount`,type:`uint256`,indexed:!1},{name:`reason`,type:`uint8`,indexed:!1}],anonymous:!1},{type:`event`,name:`RewardClaimed`,inputs:[{name:`recipient`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1},{name:`cumulativeAmount`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`RootPublished`,inputs:[{name:`version`,type:`uint64`,indexed:!0},{name:`root`,type:`bytes32`,indexed:!0},{name:`statementHash`,type:`bytes32`,indexed:!0},{name:`totalEntitlement`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`UnspentReturned`,inputs:[{name:`treasury`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`error`,name:`ClaimsExpired`,inputs:[]},{type:`error`,name:`ClaimsNotExpired`,inputs:[]},{type:`error`,name:`DepositsPaused`,inputs:[]},{type:`error`,name:`InsufficientFunding`,inputs:[{name:`requiredBalance`,type:`uint256`},{name:`actualBalance`,type:`uint256`}]},{type:`error`,name:`InvalidArrayLengths`,inputs:[]},{type:`error`,name:`InvalidEarnVault`,inputs:[]},{type:`error`,name:`InvalidMultiproof`,inputs:[]},{type:`error`,name:`MerkleProofInvalidMultiproof`,inputs:[]},{type:`error`,name:`NothingOwed`,inputs:[]},{type:`error`,name:`OwnableInvalidOwner`,inputs:[{name:`owner`,type:`address`}]},{type:`error`,name:`OwnableUnauthorizedAccount`,inputs:[{name:`account`,type:`address`}]},{type:`error`,name:`OwnershipRenunciationDisabled`,inputs:[]},{type:`error`,name:`Paused`,inputs:[]},{type:`error`,name:`PausedLiabilityIncrease`,inputs:[]},{type:`error`,name:`ReentrancyGuardReentrantCall`,inputs:[]},{type:`error`,name:`RootTotalDecreased`,inputs:[{name:`previousTotal`,type:`uint256`},{name:`nextTotal`,type:`uint256`}]},{type:`error`,name:`RootTotalExceeded`,inputs:[{name:`requestedAmount`,type:`uint256`},{name:`remainingEntitlement`,type:`uint256`}]},{type:`error`,name:`SettlementAlreadyConsumed`,inputs:[{name:`settlementId`,type:`bytes32`}]},{type:`error`,name:`StaleRootVersion`,inputs:[{name:`expected`,type:`uint64`},{name:`actual`,type:`uint64`}]},{type:`error`,name:`TokenCallFailed`,inputs:[]},{type:`error`,name:`TokenCallFalse`,inputs:[]},{type:`error`,name:`UnexpectedEarnShares`,inputs:[{name:`reported`,type:`uint256`},{name:`measured`,type:`uint256`}]},{type:`error`,name:`UnexpectedRetainedAssets`,inputs:[{name:`beforeBalance`,type:`uint256`},{name:`afterBalance`,type:`uint256`}]},{type:`error`,name:`ZeroAddress`,inputs:[]},{type:`error`,name:`ZeroAmount`,inputs:[]},{type:`error`,name:`ZeroCampaignId`,inputs:[]},{type:`error`,name:`ZeroDeadline`,inputs:[]},{type:`error`,name:`ZeroMinimumEarnShares`,inputs:[]},{type:`error`,name:`ZeroRoot`,inputs:[]},{type:`error`,name:`ZeroSettlementId`,inputs:[]},{type:`error`,name:`ZeroStatementHash`,inputs:[]}],KL=[{type:`function`,name:`campaignId`,inputs:[{name:`earnVault`,type:`address`}],outputs:[{name:``,type:`bytes32`}],stateMutability:`pure`},{type:`function`,name:`install`,inputs:[{name:`earnVault`,type:`address`},{name:`owner`,type:`address`},{name:`treasury`,type:`address`},{name:`claimDeadline`,type:`uint40`},{name:`targetYield`,type:`bool`},{name:`boostRewards`,type:`bool`}],outputs:[{name:`result`,type:`tuple`,components:[{name:`contributionController`,type:`address`},{name:`merkleDistributor`,type:`address`}]}],stateMutability:`nonpayable`},{type:`function`,name:`predictContributionController`,inputs:[{name:`earnVault`,type:`address`},{name:`owner`,type:`address`}],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`predictMerkleDistributor`,inputs:[{name:`earnVault`,type:`address`},{name:`owner`,type:`address`},{name:`treasury`,type:`address`},{name:`claimDeadline`,type:`uint40`}],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`event`,name:`ContributionControllerInstalled`,inputs:[{name:`earnVault`,type:`address`,indexed:!0},{name:`owner`,type:`address`,indexed:!0},{name:`contributionController`,type:`address`,indexed:!1}],anonymous:!1},{type:`event`,name:`MerkleDistributorInstalled`,inputs:[{name:`earnVault`,type:`address`,indexed:!0},{name:`owner`,type:`address`,indexed:!0},{name:`treasury`,type:`address`,indexed:!0},{name:`merkleDistributor`,type:`address`,indexed:!1},{name:`campaignId`,type:`bytes32`,indexed:!1},{name:`claimDeadline`,type:`uint40`,indexed:!1}],anonymous:!1},{type:`error`,name:`EmptyInstallation`,inputs:[]},{type:`error`,name:`InvalidExistingDeployment`,inputs:[{name:`component`,type:`address`}]},{type:`error`,name:`InvalidRewardConfiguration`,inputs:[]},{type:`error`,name:`ZeroAddress`,inputs:[]}],qL=[{type:`constructor`,inputs:[{name:`allowedZoneId_`,type:`uint32`},{name:`earnVault_`,type:`address`},{name:`privateAsset_`,type:`address`},{name:`tokenAuthority_`,type:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`allowedZoneId`,inputs:[],outputs:[{name:``,type:`uint32`}],stateMutability:`view`},{type:`function`,name:`earnShare`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`onWithdrawalReceived`,inputs:[{name:`sourceZoneId`,type:`uint32`},{name:`sourcePortal`,type:`address`},{name:``,type:`bytes32`},{name:`token`,type:`address`},{name:`amount`,type:`uint128`},{name:`callbackData`,type:`bytes`}],outputs:[{name:``,type:`bytes4`}],stateMutability:`nonpayable`},{type:`function`,name:`privateAsset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`reserveToken`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`supportsFlow`,inputs:[{name:`flow`,type:`uint8`}],outputs:[{name:``,type:`bool`}],stateMutability:`pure`},{type:`function`,name:`tokenAuthority`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`transactionLimit`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`vaultAsset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`event`,name:`EarnDeposit`,inputs:[{name:`actionId`,type:`bytes32`,indexed:!0},{name:`earnVault`,type:`address`,indexed:!0},{name:`inputToken`,type:`address`,indexed:!0},{name:`inputAmount`,type:`uint256`,indexed:!1},{name:`vaultAssets`,type:`uint256`,indexed:!1},{name:`earnShares`,type:`uint256`,indexed:!1},{name:`zoneDepositHash`,type:`bytes32`,indexed:!1}],anonymous:!1},{type:`event`,name:`EarnRedeem`,inputs:[{name:`actionId`,type:`bytes32`,indexed:!0},{name:`earnVault`,type:`address`,indexed:!0},{name:`outputToken`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1},{name:`vaultAssets`,type:`uint256`,indexed:!1},{name:`outputAmount`,type:`uint256`,indexed:!1},{name:`zoneDepositHash`,type:`bytes32`,indexed:!1}],anonymous:!1},{type:`error`,name:`AmountExceedsLimit`,inputs:[]},{type:`error`,name:`AmountOverflow`,inputs:[]},{type:`error`,name:`BadFlow`,inputs:[]},{type:`error`,name:`InsufficientOutput`,inputs:[]},{type:`error`,name:`InvalidAuthority`,inputs:[]},{type:`error`,name:`InvalidEarnVault`,inputs:[]},{type:`error`,name:`InvalidPrivateAsset`,inputs:[]},{type:`error`,name:`InvalidReturnToken`,inputs:[]},{type:`error`,name:`InvalidRoutePair`,inputs:[]},{type:`error`,name:`InvalidSourcePortal`,inputs:[]},{type:`error`,name:`InvalidTransactionLimit`,inputs:[]},{type:`error`,name:`NotZoneMessenger`,inputs:[]},{type:`error`,name:`ReentrantCall`,inputs:[]},{type:`error`,name:`ResidualBalance`,inputs:[]},{type:`error`,name:`TokenCallFailed`,inputs:[]},{type:`error`,name:`TokenCallFalse`,inputs:[]},{type:`error`,name:`WrongInputToken`,inputs:[]},{type:`error`,name:`WrongSourceZone`,inputs:[]},{type:`error`,name:`ZeroAddress`,inputs:[]},{type:`error`,name:`ZeroAmount`,inputs:[]}],JL=[{type:`constructor`,inputs:[],stateMutability:`nonpayable`},{type:`function`,name:`MAX_REWARD_RATE_MULTIPLIER`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`absorbEngineShareSurplus`,inputs:[{name:`engineShares_`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`acceptDistributor`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`acceptOperator`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`accrueFees`,inputs:[],outputs:[{name:`feeAssets`,type:`uint256`},{name:`feeEarnShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`anchorEarnShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`anchorEngineShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`asset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`asyncJanitor`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`cancelDistributorFeeUpdate`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`cancelDistributorTransfer`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`cancelOperatorTransfer`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`cancelRedeem`,inputs:[{name:`requestId`,type:`bytes32`},{name:`minReceiverEarnShares`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`contribute`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`receivedEngineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`convertEngineSharesToEarnShares`,inputs:[{name:`engineShares_`,type:`uint256`}],outputs:[{name:`earnShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`convertToEngineShares`,inputs:[{name:`earnShares`,type:`uint256`}],outputs:[{name:`engineShares_`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`deposit`,inputs:[{name:`assets`,type:`uint256`},{name:`receiver`,type:`address`},{name:`minEarnShares`,type:`uint256`}],outputs:[{name:`earnShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`depositVenueShares`,inputs:[{name:`venueShares`,type:`uint256`},{name:`receiver`,type:`address`},{name:`minEarnShares`,type:`uint256`}],outputs:[{name:`earnShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`depositsPaused`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`disableFees`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`distributor`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`distributorFee`,inputs:[],outputs:[{name:`recipient`,type:`address`},{name:`rateBps`,type:`uint16`}],stateMutability:`view`},{type:`function`,name:`distributorUpdateDelay`,inputs:[],outputs:[{name:``,type:`uint40`}],stateMutability:`view`},{type:`function`,name:`earnFees`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`earnShare`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`emergencyGuardian`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`engine`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`engineMigrationMode`,inputs:[],outputs:[{name:``,type:`uint8`}],stateMutability:`view`},{type:`function`,name:`engineShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`executeDistributorFeeUpdate`,inputs:[],outputs:[{name:`feeConfigId`,type:`uint64`}],stateMutability:`nonpayable`},{type:`function`,name:`finalizeRedeem`,inputs:[{name:`requestId`,type:`bytes32`},{name:`asset_`,type:`address`},{name:`amount`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`initialize`,inputs:[{name:`engine_`,type:`address`},{name:`earnShare_`,type:`address`},{name:`earnFees_`,type:`address`},{name:`operator_`,type:`address`},{name:`controlInit_`,type:`tuple`,components:[{name:`emergencyGuardian`,type:`address`},{name:`asyncJanitor`,type:`address`},{name:`maxManagedAssets`,type:`uint256`},{name:`migrationMode`,type:`uint8`}]},{name:`distributorInit_`,type:`tuple`,components:[{name:`distributor`,type:`address`},{name:`updateDelay`,type:`uint40`}]}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`isAccountingAligned`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`isFeeValuationFresh`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`maxManagedAssets`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`migrateEngine`,inputs:[{name:`newEngine`,type:`address`},{name:`minNewEngineShares`,type:`uint256`},{name:`minAssetsRetained`,type:`uint256`}],outputs:[{name:`newEngineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`normalizedRewardRate`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`openRedeemRequestCount`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`operator`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`pendingDistributor`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`pendingDistributorFeeUpdate`,inputs:[],outputs:[{name:``,type:`tuple`,components:[{name:`recipient`,type:`address`},{name:`rateBps`,type:`uint16`},{name:`executableAt`,type:`uint40`},{name:`pending`,type:`bool`}]}],stateMutability:`view`},{type:`function`,name:`pendingOperator`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`pendingRedeem`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:``,type:`tuple`,components:[{name:`receiver`,type:`address`},{name:`requester`,type:`address`},{name:`burnedEarnShares`,type:`uint256`},{name:`engineShares`,type:`uint256`},{name:`open`,type:`bool`}]}],stateMutability:`view`},{type:`function`,name:`previewRedeem`,inputs:[{name:`earnShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`previewWithdraw`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`earnShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`rawEngineShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`redeem`,inputs:[{name:`earnShares`,type:`uint256`},{name:`receiver`,type:`address`},{name:`minAssets`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`remainingDepositCapacity`,inputs:[],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`requestRedeem`,inputs:[{name:`earnShares`,type:`uint256`},{name:`engineData`,type:`bytes`},{name:`receiver`,type:`address`}],outputs:[{name:`requestId`,type:`bytes32`}],stateMutability:`nonpayable`},{type:`function`,name:`rewardRateBaseline`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`scheduleDistributorFeeUpdate`,inputs:[{name:`recipient`,type:`address`},{name:`rateBps`,type:`uint16`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setDepositsPaused`,inputs:[{name:`paused`,type:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setEmergencyRoles`,inputs:[{name:`newGuardian`,type:`address`},{name:`newJanitor`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setFeeConfig`,inputs:[{name:`config`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]}],outputs:[{name:`configId`,type:`uint64`}],stateMutability:`nonpayable`},{type:`function`,name:`setMaxManagedAssets`,inputs:[{name:`newMaxManagedAssets`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`surplusEngineShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`totalAssets`,inputs:[],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`totalEarnShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`transferDistributor`,inputs:[{name:`newDistributor`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`transferOperator`,inputs:[{name:`newOperator`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`withdrawExact`,inputs:[{name:`assets`,type:`uint256`},{name:`receiver`,type:`address`},{name:`maxEarnShares`,type:`uint256`}],outputs:[{name:`earnSharesBurned`,type:`uint256`}],stateMutability:`nonpayable`},{type:`event`,name:`Contributed`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`engineShares`,type:`uint256`,indexed:!1},{name:`anchorEngineShares`,type:`uint256`,indexed:!1},{name:`anchorEarnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`DepositPauseChanged`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`paused`,type:`bool`,indexed:!1}],anonymous:!1},{type:`event`,name:`Deposited`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`DistributorFeeUpdateCancelled`,inputs:[{name:`distributor`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`DistributorFeeUpdateScheduled`,inputs:[{name:`distributor`,type:`address`,indexed:!0},{name:`recipient`,type:`address`,indexed:!0},{name:`rateBps`,type:`uint16`,indexed:!1},{name:`executableAt`,type:`uint40`,indexed:!1}],anonymous:!1},{type:`event`,name:`DistributorFeeUpdated`,inputs:[{name:`recipient`,type:`address`,indexed:!0},{name:`rateBps`,type:`uint16`,indexed:!1},{name:`feeConfigId`,type:`uint64`,indexed:!0}],anonymous:!1},{type:`event`,name:`DistributorTransferCancelled`,inputs:[{name:`distributor`,type:`address`,indexed:!0},{name:`pendingDistributor`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`DistributorTransferStarted`,inputs:[{name:`distributor`,type:`address`,indexed:!0},{name:`pendingDistributor`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`DistributorTransferred`,inputs:[{name:`previousDistributor`,type:`address`,indexed:!0},{name:`newDistributor`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`EarnVaultInitialized`,inputs:[{name:`engine`,type:`address`,indexed:!0},{name:`earnShare`,type:`address`,indexed:!0},{name:`earnFees`,type:`address`,indexed:!0},{name:`operator`,type:`address`,indexed:!1},{name:`emergencyGuardian`,type:`address`,indexed:!1},{name:`asyncJanitor`,type:`address`,indexed:!1},{name:`maxManagedAssets`,type:`uint256`,indexed:!1},{name:`migrationMode`,type:`uint8`,indexed:!1},{name:`distributor`,type:`address`,indexed:!1},{name:`distributorUpdateDelay`,type:`uint40`,indexed:!1},{name:`distributorFeeRecipient`,type:`address`,indexed:!1},{name:`distributorFeeRateBps`,type:`uint16`,indexed:!1}],anonymous:!1},{type:`event`,name:`EmergencyRolesChanged`,inputs:[{name:`emergencyGuardian`,type:`address`,indexed:!0},{name:`asyncJanitor`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`EngineMigrated`,inputs:[{name:`oldEngine`,type:`address`,indexed:!0},{name:`newEngine`,type:`address`,indexed:!0},{name:`oldEngineShares`,type:`uint256`,indexed:!1},{name:`assetsMoved`,type:`uint256`,indexed:!1},{name:`newEngineShares`,type:`uint256`,indexed:!1},{name:`totalEarnShares`,type:`uint256`,indexed:!1},{name:`anchorEngineShares`,type:`uint256`,indexed:!1},{name:`anchorEarnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`EngineShareShortfallReconciled`,inputs:[{name:`engine`,type:`address`,indexed:!0},{name:`previousManagedEngineShares`,type:`uint256`,indexed:!1},{name:`observedRawEngineShares`,type:`uint256`,indexed:!1},{name:`shortfallEngineShares`,type:`uint256`,indexed:!1},{name:`totalEarnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`EngineShareSurplusAbsorbed`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`engineShares`,type:`uint256`,indexed:!1},{name:`anchorEngineShares`,type:`uint256`,indexed:!1},{name:`anchorEarnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`MaxManagedAssetsChanged`,inputs:[{name:`previousMaxManagedAssets`,type:`uint256`,indexed:!1},{name:`newMaxManagedAssets`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`OperatorTransferCancelled`,inputs:[{name:`operator`,type:`address`,indexed:!0},{name:`pendingOperator`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OperatorTransferStarted`,inputs:[{name:`operator`,type:`address`,indexed:!0},{name:`pendingOperator`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OperatorTransferred`,inputs:[{name:`previousOperator`,type:`address`,indexed:!0},{name:`newOperator`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`RedeemCancelled`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`RedeemFinalized`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1},{name:`asset`,type:`address`,indexed:!1},{name:`assets`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`RedeemRequested`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`requester`,type:`address`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`Redeemed`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1},{name:`assets`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`VenueSharesDeposited`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`requestedVenueShares`,type:`uint256`,indexed:!1},{name:`receivedEngineShares`,type:`uint256`,indexed:!1},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`WithdrewExact`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`earnSharesBurned`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`error`,name:`ActiveSupplyWithoutBacking`,inputs:[]},{type:`error`,name:`AlreadyInitialized`,inputs:[]},{type:`error`,name:`DepositsPaused`,inputs:[]},{type:`error`,name:`DistributorFeeUpdateNotPending`,inputs:[]},{type:`error`,name:`DistributorFeeUpdateNotReady`,inputs:[{name:`executableAt`,type:`uint40`}]},{type:`error`,name:`DistributorTransferNotPending`,inputs:[]},{type:`error`,name:`DuplicateRequest`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`EngineAssetMismatch`,inputs:[]},{type:`error`,name:`EngineCapabilityUnsupported`,inputs:[{name:`interfaceId`,type:`bytes4`}]},{type:`error`,name:`EngineEarnVaultMismatch`,inputs:[]},{type:`error`,name:`EngineExitUnsupported`,inputs:[]},{type:`error`,name:`ExceedsMaxEarnShares`,inputs:[]},{type:`error`,name:`ExcessiveConversionLoss`,inputs:[{name:`inputShares`,type:`uint256`},{name:`representedShares`,type:`uint256`}]},{type:`error`,name:`ExcessiveMigrationClassificationError`,inputs:[{name:`expectedManagedAssets`,type:`uint256`},{name:`actualManagedAssets`,type:`uint256`}]},{type:`error`,name:`FeeValuationStale`,inputs:[]},{type:`error`,name:`FinalizedAssetMismatch`,inputs:[{name:`finalizedAsset`,type:`address`}]},{type:`error`,name:`GlobalFeeDisableUnavailable`,inputs:[]},{type:`error`,name:`InitialEarnShareSupplyNotZero`,inputs:[]},{type:`error`,name:`InsufficientEngineShareSurplus`,inputs:[{name:`available`,type:`uint256`},{name:`requested`,type:`uint256`}]},{type:`error`,name:`InsufficientOutput`,inputs:[]},{type:`error`,name:`InvalidDistributorConfiguration`,inputs:[]},{type:`error`,name:`InvalidDistributorFeeConfiguration`,inputs:[]},{type:`error`,name:`InvalidEarnDecimals`,inputs:[]},{type:`error`,name:`InvalidEngineShareScale`,inputs:[]},{type:`error`,name:`MaxManagedAssetsExceeded`,inputs:[{name:`maximum`,type:`uint256`},{name:`actual`,type:`uint256`}]},{type:`error`,name:`MinimumAssetsNotMet`,inputs:[{name:`minimumAssets`,type:`uint256`},{name:`actualAssets`,type:`uint256`}]},{type:`error`,name:`MinimumEarnSharesNotMet`,inputs:[{name:`minimumEarnShares`,type:`uint256`},{name:`actualEarnShares`,type:`uint256`}]},{type:`error`,name:`MinimumEngineSharesNotMet`,inputs:[{name:`minimumEngineShares`,type:`uint256`},{name:`actualEngineShares`,type:`uint256`}]},{type:`error`,name:`NoEarnShares`,inputs:[]},{type:`error`,name:`NotDistributor`,inputs:[]},{type:`error`,name:`NotEmergencyGuardianOrOperator`,inputs:[]},{type:`error`,name:`NotEngine`,inputs:[]},{type:`error`,name:`NotOperator`,inputs:[]},{type:`error`,name:`NotPendingDistributor`,inputs:[]},{type:`error`,name:`NotPendingOperator`,inputs:[]},{type:`error`,name:`NotRequesterOrJanitor`,inputs:[]},{type:`error`,name:`OperatorMigrationDisabled`,inputs:[]},{type:`error`,name:`OperatorTransferNotPending`,inputs:[]},{type:`error`,name:`PendingRedeemsOpen`,inputs:[]},{type:`error`,name:`ReentrantCall`,inputs:[]},{type:`error`,name:`RequestNotOpen`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`ResidualBacking`,inputs:[]},{type:`error`,name:`RewardRateLimitExceeded`,inputs:[{name:`normalizedRate`,type:`uint256`},{name:`baselineRate`,type:`uint256`}]},{type:`error`,name:`SameEngine`,inputs:[]},{type:`error`,name:`TokenCallFailed`,inputs:[]},{type:`error`,name:`TokenCallFalse`,inputs:[]},{type:`error`,name:`ZeroAddress`,inputs:[]},{type:`error`,name:`ZeroAmount`,inputs:[]},{type:`error`,name:`ZeroMinimumAssets`,inputs:[]},{type:`error`,name:`ZeroMinimumEarnShares`,inputs:[]},{type:`error`,name:`ZeroMinimumEngineShares`,inputs:[]}],YL=[{type:`constructor`,inputs:[{name:`vault_`,type:`address`},{name:`owner_`,type:`address`},{name:`nameOverride_`,type:`string`},{name:`symbolOverride_`,type:`string`}],stateMutability:`nonpayable`},{type:`function`,name:`acceptOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`asset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`baseAsset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`deposit`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`depositInKind`,inputs:[{name:`venueShares`,type:`uint256`},{name:`from`,type:`address`}],outputs:[{name:`engineSharesReceived`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`initializeEarnVault`,inputs:[{name:`earnVault_`,type:`address`},{name:`finalOwner_`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`initializeEarnVault`,inputs:[{name:`earnVault_`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`name`,inputs:[],outputs:[{name:``,type:`string`}],stateMutability:`view`},{type:`function`,name:`owner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`pendingOwner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`previewRedeem`,inputs:[{name:`engineShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`previewWithdraw`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`redeem`,inputs:[{name:`engineShares`,type:`uint256`},{name:`receiver`,type:`address`},{name:`minAssets`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`renounceOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`shareScale`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`supportsInterface`,inputs:[{name:`interfaceId`,type:`bytes4`}],outputs:[{name:``,type:`bool`}],stateMutability:`pure`},{type:`function`,name:`symbol`,inputs:[],outputs:[{name:``,type:`string`}],stateMutability:`view`},{type:`function`,name:`totalAssets`,inputs:[],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`totalShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`transferOwnership`,inputs:[{name:`newOwner`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`valueOf`,inputs:[{name:`engineShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`vault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`withdraw`,inputs:[{name:`assets`,type:`uint256`},{name:`receiver`,type:`address`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`event`,name:`Deposited`,inputs:[{name:`earnVault`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`engineShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`EarnVaultInitialized`,inputs:[{name:`earnVault`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OwnershipTransferStarted`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OwnershipTransferred`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`Redeemed`,inputs:[{name:`receiver`,type:`address`,indexed:!0},{name:`engineShares`,type:`uint256`,indexed:!1},{name:`assets`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`VenueSharesDeposited`,inputs:[{name:`from`,type:`address`,indexed:!0},{name:`requestedVenueShares`,type:`uint256`,indexed:!1},{name:`receivedEngineShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`WithdrewExact`,inputs:[{name:`receiver`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`engineSharesBurned`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`error`,name:`AlreadyInitialized`,inputs:[]},{type:`error`,name:`EarnVaultNotSet`,inputs:[]},{type:`error`,name:`EmptyMetadata`,inputs:[]},{type:`error`,name:`InsufficientAssetsReceived`,inputs:[{name:`minimumAssets`,type:`uint256`},{name:`actualAssets`,type:`uint256`}]},{type:`error`,name:`InvalidVenueShareDecimals`,inputs:[]},{type:`error`,name:`NoVenueSharesReceived`,inputs:[]},{type:`error`,name:`NotEarnVault`,inputs:[{name:`caller`,type:`address`}]},{type:`error`,name:`OwnableInvalidOwner`,inputs:[{name:`owner`,type:`address`}]},{type:`error`,name:`OwnableUnauthorizedAccount`,inputs:[{name:`account`,type:`address`}]},{type:`error`,name:`ReentrantCall`,inputs:[]},{type:`error`,name:`TransferFailed`,inputs:[]},{type:`error`,name:`UnexpectedAssetsReceived`,inputs:[{name:`expectedAssets`,type:`uint256`},{name:`actualAssets`,type:`uint256`}]},{type:`error`,name:`UnexpectedVenueSharesBurned`,inputs:[{name:`expectedShares`,type:`uint256`},{name:`actualShares`,type:`uint256`}]},{type:`error`,name:`ZeroAddress`,inputs:[]}],XL=[{type:`function`,name:`ENGINE_SALT_DOMAIN`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`computeEngineSalt`,inputs:[{name:`deploymentId`,type:`bytes32`},{name:`vault`,type:`address`},{name:`owner`,type:`address`},{name:`nameOverride`,type:`string`},{name:`symbolOverride`,type:`string`}],outputs:[{name:``,type:`bytes32`}],stateMutability:`pure`},{type:`function`,name:`deploy`,inputs:[{name:`deploymentId`,type:`bytes32`},{name:`vault`,type:`address`},{name:`owner`,type:`address`},{name:`nameOverride`,type:`string`},{name:`symbolOverride`,type:`string`}],outputs:[{name:`engine`,type:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`predictEngine`,inputs:[{name:`deploymentId`,type:`bytes32`},{name:`vault`,type:`address`},{name:`owner`,type:`address`},{name:`nameOverride`,type:`string`},{name:`symbolOverride`,type:`string`}],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`event`,name:`ERC4626EngineDeployed`,inputs:[{name:`engine`,type:`address`,indexed:!0},{name:`vault`,type:`address`,indexed:!0},{name:`owner`,type:`address`,indexed:!0},{name:`asset`,type:`address`,indexed:!1},{name:`deploymentId`,type:`bytes32`,indexed:!1},{name:`engineSalt`,type:`bytes32`,indexed:!1}],anonymous:!1},{type:`error`,name:`EmptyDeploymentId`,inputs:[]},{type:`error`,name:`EngineAlreadyExists`,inputs:[{name:`engine`,type:`address`}]},{type:`error`,name:`FactoryCannotBeFinalOwner`,inputs:[]}],ZL=[{type:`constructor`,inputs:[{name:`peripheryRegistry_`,type:`address`},{name:`owner_`,type:`address`},{name:`maxRateAge_`,type:`uint64`},{name:`name_`,type:`string`},{name:`symbol_`,type:`string`}],stateMutability:`nonpayable`},{type:`function`,name:`acceptOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`accountant`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`accountantRateUpdatedAt`,inputs:[],outputs:[{name:``,type:`uint64`}],stateMutability:`view`},{type:`function`,name:`asset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`authorizedForwarder`,inputs:[{name:`forwarder`,type:`address`}],outputs:[{name:`authorized`,type:`bool`}],stateMutability:`view`},{type:`function`,name:`baseAsset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`cancelRedeem`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`claimQueue`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`claimRedeem`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:`amount`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`deposit`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`finalizeOneExternal`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`forwardSolved`,inputs:[{name:`requestIds`,type:`bytes32[]`},{name:`asset_`,type:`address`},{name:`delta`,type:`uint256`}],outputs:[{name:`claimed`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`getClaim`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:`status`,type:`uint8`},{name:`request`,type:`tuple`,components:[{name:`nonce`,type:`uint96`},{name:`user`,type:`address`},{name:`assetOut`,type:`address`},{name:`amountOfShares`,type:`uint128`},{name:`amountOfAssets`,type:`uint128`},{name:`creationTime`,type:`uint40`},{name:`secondsToMaturity`,type:`uint24`},{name:`secondsToDeadline`,type:`uint24`}]}],stateMutability:`view`},{type:`function`,name:`initializeEarnVault`,inputs:[{name:`earnVault_`,type:`address`},{name:`finalOwner_`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`initializeEarnVault`,inputs:[{name:`earnVault_`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`isFeeValuationFresh`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`maxRateAge`,inputs:[],outputs:[{name:``,type:`uint64`}],stateMutability:`view`},{type:`function`,name:`name`,inputs:[],outputs:[{name:``,type:`string`}],stateMutability:`view`},{type:`function`,name:`openClaimsByQueue`,inputs:[{name:`requestQueue`,type:`address`}],outputs:[{name:`count`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`owner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`pendingOwner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`peripheryRegistry`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`peripheryVersion`,inputs:[],outputs:[{name:``,type:`uint64`}],stateMutability:`view`},{type:`function`,name:`previewRedeem`,inputs:[{name:`engineShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`previewWithdraw`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`queue`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`rate`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`recoverExternalSettlement`,inputs:[{name:`requestIds`,type:`bytes32[]`}],outputs:[{name:`claimed`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`redeem`,inputs:[{name:`engineShares`,type:`uint256`},{name:`receiver`,type:`address`},{name:`minAssets`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`renounceOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`requestRedeem`,inputs:[{name:`engineShares`,type:`uint256`},{name:`requestData`,type:`bytes`}],outputs:[{name:`requestId`,type:`bytes32`}],stateMutability:`nonpayable`},{type:`function`,name:`setAuthorizedForwarder`,inputs:[{name:`account`,type:`address`},{name:`authorized`,type:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setMaxRateAge`,inputs:[{name:`newMaxRateAge`,type:`uint64`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`settled`,inputs:[{name:`asset`,type:`address`}],outputs:[{name:`amount`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`shareScale`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`supportsInterface`,inputs:[{name:`interfaceId`,type:`bytes4`}],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`sweepDust`,inputs:[{name:`token`,type:`address`},{name:`to`,type:`address`},{name:`amount`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`symbol`,inputs:[],outputs:[{name:``,type:`string`}],stateMutability:`view`},{type:`function`,name:`syncVedaPeriphery`,inputs:[{name:`minRate`,type:`uint256`},{name:`maxRate`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`teller`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`totalAssets`,inputs:[],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`totalShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`transferOwnership`,inputs:[{name:`newOwner`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`unresolvedClaimCount`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`valueOf`,inputs:[{name:`engineShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`vault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`withdraw`,inputs:[{name:`assets`,type:`uint256`},{name:`receiver`,type:`address`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`event`,name:`AuthorizedForwarderChanged`,inputs:[{name:`account`,type:`address`,indexed:!0},{name:`authorized`,type:`bool`,indexed:!1}],anonymous:!1},{type:`event`,name:`Deposited`,inputs:[{name:`earnVault`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`engineShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`DustSwept`,inputs:[{name:`token`,type:`address`,indexed:!0},{name:`to`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`EarnVaultInitialized`,inputs:[{name:`earnVault`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`ExternalSettlementRecovered`,inputs:[{name:`requestCount`,type:`uint256`,indexed:!1},{name:`recoveredAssets`,type:`uint256`,indexed:!1},{name:`claimed`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`FinalizeFailed`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`asset`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`Finalized`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`asset`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`MaxRateAgeUpdated`,inputs:[{name:`oldMaxRateAge`,type:`uint64`,indexed:!1},{name:`newMaxRateAge`,type:`uint64`,indexed:!1}],anonymous:!1},{type:`event`,name:`OwnershipTransferStarted`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OwnershipTransferred`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`RedeemCancelledOnQueue`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`engineShares`,type:`uint128`,indexed:!1}],anonymous:!1},{type:`event`,name:`RedeemClaimed`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`asset`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`RedeemRequested`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`assetOut`,type:`address`,indexed:!0},{name:`engineShares`,type:`uint128`,indexed:!1}],anonymous:!1},{type:`event`,name:`Redeemed`,inputs:[{name:`receiver`,type:`address`,indexed:!0},{name:`engineShares`,type:`uint256`,indexed:!1},{name:`assets`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`Settled`,inputs:[{name:`asset`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1},{name:`newTotal`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`Unearmarked`,inputs:[{name:`asset`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1},{name:`newTotal`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`VedaEngineInitialized`,inputs:[{name:`teller`,type:`address`,indexed:!0},{name:`queue`,type:`address`,indexed:!0},{name:`accountant`,type:`address`,indexed:!0},{name:`peripheryVersion`,type:`uint64`,indexed:!1},{name:`maxRateAge`,type:`uint64`,indexed:!1}],anonymous:!1},{type:`event`,name:`VedaPeripheryUpdated`,inputs:[{name:`registryVersion`,type:`uint64`,indexed:!0},{name:`oldTeller`,type:`address`,indexed:!0},{name:`oldQueue`,type:`address`,indexed:!0},{name:`oldAccountant`,type:`address`,indexed:!1},{name:`newTeller`,type:`address`,indexed:!1},{name:`newQueue`,type:`address`,indexed:!1},{name:`newAccountant`,type:`address`,indexed:!1},{name:`validatedRate`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`WithdrewExact`,inputs:[{name:`receiver`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`engineSharesBurned`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`error`,name:`AlreadyInitialized`,inputs:[]},{type:`error`,name:`AssetsNotArrived`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`BaseAssetSweepBlocked`,inputs:[{name:`unresolvedClaims`,type:`uint256`}]},{type:`error`,name:`CannotSweepEngineBacking`,inputs:[]},{type:`error`,name:`ClaimNotClaimable`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`ClaimNotOpen`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`CreditExceedsBalance`,inputs:[{name:`asset`,type:`address`},{name:`have`,type:`uint256`},{name:`wantTotal`,type:`uint256`}]},{type:`error`,name:`DepositsNotPaused`,inputs:[]},{type:`error`,name:`DuplicateRequest`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`EarnVaultNotSet`,inputs:[]},{type:`error`,name:`EmptyMetadata`,inputs:[]},{type:`error`,name:`EngineSharesTooLarge`,inputs:[{name:`engineShares`,type:`uint256`}]},{type:`error`,name:`InsufficientAssetsReceived`,inputs:[{name:`minimumAssets`,type:`uint256`},{name:`actualAssets`,type:`uint256`}]},{type:`error`,name:`InvalidAsset`,inputs:[{name:`expected`,type:`address`},{name:`actual`,type:`address`}]},{type:`error`,name:`InvalidMaxRateAge`,inputs:[]},{type:`error`,name:`InvalidRateTimestamp`,inputs:[{name:`updatedAt`,type:`uint256`},{name:`currentTime`,type:`uint256`}]},{type:`error`,name:`InvalidTrackedRequest`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`InvalidVedaPeriphery`,inputs:[{name:`account`,type:`address`}]},{type:`error`,name:`InvalidVedaPeripheryWiring`,inputs:[{name:`component`,type:`address`},{name:`expected`,type:`address`},{name:`actual`,type:`address`}]},{type:`error`,name:`InvalidVedaRateBounds`,inputs:[{name:`minRate`,type:`uint256`},{name:`maxRate`,type:`uint256`}]},{type:`error`,name:`InvalidVenueShareDecimals`,inputs:[]},{type:`error`,name:`NoPublishedVedaPeriphery`,inputs:[]},{type:`error`,name:`NoRecoverableClaims`,inputs:[]},{type:`error`,name:`NoVenueSharesReceived`,inputs:[]},{type:`error`,name:`NotAuthorizedForwarder`,inputs:[{name:`caller`,type:`address`}]},{type:`error`,name:`NotEarnVault`,inputs:[{name:`caller`,type:`address`}]},{type:`error`,name:`NotSelf`,inputs:[]},{type:`error`,name:`OwnableInvalidOwner`,inputs:[{name:`owner`,type:`address`}]},{type:`error`,name:`OwnableUnauthorizedAccount`,inputs:[{name:`account`,type:`address`}]},{type:`error`,name:`QueueTrackingDisabled`,inputs:[{name:`queue`,type:`address`}]},{type:`error`,name:`QueueUnavailable`,inputs:[]},{type:`error`,name:`QueuedAssetsBelowMinimum`,inputs:[{name:`minimumAssets`,type:`uint256`},{name:`actualAssets`,type:`uint256`}]},{type:`error`,name:`RateChangedWithinTransaction`,inputs:[{name:`expected`,type:`uint256`},{name:`actual`,type:`uint256`}]},{type:`error`,name:`ReentrantCall`,inputs:[]},{type:`error`,name:`RegistryEngineMismatch`,inputs:[{name:`expected`,type:`address`},{name:`actual`,type:`address`}]},{type:`error`,name:`SolveUnderfunded`,inputs:[{name:`asset`,type:`address`},{name:`delivered`,type:`uint256`},{name:`required`,type:`uint256`}]},{type:`error`,name:`StaleAccountantRate`,inputs:[{name:`updatedAt`,type:`uint256`},{name:`currentTime`,type:`uint256`},{name:`maxAge`,type:`uint256`}]},{type:`error`,name:`SweepExceedsAvailableBalance`,inputs:[{name:`token`,type:`address`},{name:`available`,type:`uint256`},{name:`requested`,type:`uint256`}]},{type:`error`,name:`TransferFailed`,inputs:[]},{type:`error`,name:`UnexpectedAssetsReceived`,inputs:[{name:`expectedAssets`,type:`uint256`},{name:`actualAssets`,type:`uint256`}]},{type:`error`,name:`UnexpectedVenueSharesBurned`,inputs:[{name:`expectedShares`,type:`uint256`},{name:`actualShares`,type:`uint256`}]},{type:`error`,name:`UnexpectedVenueSharesQueued`,inputs:[{name:`expectedShares`,type:`uint256`},{name:`actualShares`,type:`uint256`}]},{type:`error`,name:`UnsupportedAccountantFreshness`,inputs:[{name:`accountant`,type:`address`}]},{type:`error`,name:`VedaRateOutOfBounds`,inputs:[{name:`rate`,type:`uint256`},{name:`minRate`,type:`uint256`},{name:`maxRate`,type:`uint256`}]},{type:`error`,name:`ZeroAddress`,inputs:[]},{type:`error`,name:`ZeroMinimumQueuedAssets`,inputs:[]}],QL=[{name:`MAX_DEPOSITS_PER_TEMPO_BLOCK`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`MAX_TOKENS_ENABLED_PER_TEMPO_BLOCK`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{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:`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`}]}],$L=[{name:`tempoGasRate`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint128`}]},{name:`maxWithdrawalsPerBlock`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint32`}]},{name:`lastBatch`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`tuple`,components:[{type:`bytes32`,name:`withdrawalQueueHash`},{type:`uint64`,name:`withdrawalBatchIndex`}]}]},{name:`lastFinalizedTimestamp`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`nextWithdrawalIndex`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`lastFallbackNonce`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`pendingWithdrawalsCount`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint256`}]},{name:`getPendingWithdrawals`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`tuple[]`,components:[{type:`address`,name:`token`},{type:`address`,name:`sender`},{type:`bytes32`,name:`txHash`},{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:`revealTo`}]}]},{name:`consumeFallbackRecipient`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`uint64`,name:`fallbackNonce`}],outputs:[{type:`address`,name:`recipient`}]},{name:`calculateWithdrawalFee`,type:`function`,stateMutability:`view`,inputs:[{type:`uint64`,name:`gasLimit`}],outputs:[{type:`uint128`,name:`fee`}]},{name:`MAX_CALLBACK_DATA_SIZE`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint256`}]},{name:`MAX_WITHDRAWAL_GAS_LIMIT`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`WITHDRAWAL_BASE_GAS`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`REVEAL_TO_KEY_LENGTH`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint256`}]},{name:`AUTHENTICATED_WITHDRAWAL_CIPHERTEXT_LENGTH`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint256`}]},{name:`setTempoGasRate`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`uint128`,name:`_tempoGasRate`}],outputs:[]},{name:`setMaxWithdrawalsPerBlock`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`uint32`,name:`_maxWithdrawalsPerBlock`}],outputs:[]},{name:`requestWithdrawal`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`address`,name:`token`},{type:`address`,name:`to`},{type:`uint128`,name:`amount`},{type:`bytes32`,name:`memo`},{type:`uint64`,name:`gasLimit`},{type:`address`,name:`zoneFallbackRecipient`},{type:`bytes`,name:`data`},{type:`bytes`,name:`revealTo`}],outputs:[]},{name:`enqueueDepositBounceBack`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`address`,name:`token`},{type:`uint128`,name:`amount`},{type:`address`,name:`tempoRefundRecipient`}],outputs:[]},{name:`finalizeWithdrawalBatch`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`uint256`,name:`count`},{type:`uint64`,name:`blockNumber`},{type:`bytes[]`,name:`encryptedSenders`}],outputs:[{type:`bytes32`,name:`withdrawalQueueHash`}]},{name:`WithdrawalRequested`,type:`event`,inputs:[{type:`uint64`,name:`withdrawalIndex`,indexed:!0},{type:`address`,name:`sender`,indexed:!0},{type:`address`,name:`token`},{type:`address`,name:`to`},{type:`uint128`,name:`amount`},{type:`uint128`,name:`fee`},{type:`bytes32`,name:`memo`},{type:`uint64`,name:`gasLimit`},{type:`uint64`,name:`fallbackNonce`},{type:`bytes`,name:`data`},{type:`bytes`,name:`revealTo`}]},{name:`BatchFinalized`,type:`event`,inputs:[{type:`bytes32`,name:`withdrawalQueueHash`,indexed:!0},{type:`uint64`,name:`withdrawalBatchIndex`}]},{name:`TempoGasRateUpdated`,type:`event`,inputs:[{type:`uint128`,name:`tempoGasRate`}]},{name:`MaxWithdrawalsPerBlockUpdated`,type:`event`,inputs:[{type:`uint32`,name:`maxWithdrawalsPerBlock`}]},{name:`OnlySequencer`,type:`error`,inputs:[]},{name:`GasLimitTooHigh`,type:`error`,inputs:[]},{name:`OnlyZoneInbox`,type:`error`,inputs:[]},{name:`InvalidWithdrawalCount`,type:`error`,inputs:[{type:`uint256`,name:`actual`},{type:`uint256`,name:`expected`}]},{name:`InvalidEncryptedSenderCount`,type:`error`,inputs:[{type:`uint256`,name:`actual`},{type:`uint256`,name:`expected`}]},{name:`InvalidEncryptedSenderLength`,type:`error`,inputs:[{type:`uint256`,name:`actual`},{type:`uint256`,name:`expected`}]},{name:`InvalidFallbackRecipient`,type:`error`,inputs:[]},{name:`CallbackDataTooLarge`,type:`error`,inputs:[]},{name:`GasFeeRateTooHigh`,type:`error`,inputs:[]},{name:`TransferFailed`,type:`error`,inputs:[]},{name:`InvalidBlockNumber`,type:`error`,inputs:[]},{name:`TooManyWithdrawalsThisBlock`,type:`error`,inputs:[]},{name:`InvalidRevealTo`,type:`error`,inputs:[]},{name:`InvalidCurrentTxHash`,type:`error`,inputs:[]},{name:`ZeroAmountWithdrawal`,type:`error`,inputs:[]},{name:`StaticCallNotAllowed`,type:`error`,inputs:[]}],eR=[{name:`relayMessage`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`uint32`,name:`zoneId`},{type:`address`,name:`token`},{type:`bytes32`,name:`senderTag`},{type:`address`,name:`target`},{type:`uint128`,name:`amount`},{type:`uint64`,name:`gasLimit`},{type:`bytes`,name:`data`}],outputs:[]}],tR=[{name:`processedDepositQueueHash`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`bytes32`}]},{name:`processedDepositNumber`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`processedTokenEnablementHash`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`bytes32`}]},{name:`processedEnabledTokenCount`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`tempoPortal`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`address`}]},{name:`tempoState`,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:`claimRefund`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`address`,name:`token`}],outputs:[{type:`uint128`,name:`amount`}]},{name:`advanceTempo`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`bytes`,name:`header`},{type:`tuple[]`,name:`deposits`,components:[{type:`uint8`,name:`depositType`},{type:`bytes`,name:`depositData`},{type:`bool`,name:`rejected`}]},{type:`tuple[]`,name:`decryptions`,components:[{type:`bytes32`,name:`sharedSecret`},{type:`uint8`,name:`sharedSecretYParity`},{type:`tuple`,name:`cpProof`,components:[{type:`bytes32`,name:`s`},{type:`bytes32`,name:`c`}]}]},{type:`tuple[]`,name:`enabledTokens`,components:[{type:`address`,name:`token`},{type:`string`,name:`name`},{type:`string`,name:`symbol`},{type:`string`,name:`currency`}]}],outputs:[]},{name:`advanceTempoHeaders`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`bytes[]`,name:`headers`}],outputs:[]},{name:`TempoAdvanced`,type:`event`,inputs:[{type:`bytes32`,name:`tempoBlockHash`,indexed:!0},{type:`uint64`,name:`tempoBlockNumber`,indexed:!0},{type:`uint256`,name:`depositsProcessed`},{type:`bytes32`,name:`newProcessedDepositQueueHash`},{type:`uint64`,name:`lastProcessedDepositNumber`}]},{name:`TempoAdvanced`,type:`event`,inputs:[{type:`bytes32`,name:`tempoBlockHash`,indexed:!0},{type:`uint64`,name:`tempoBlockNumber`,indexed:!0},{type:`uint256`,name:`depositsProcessed`},{type:`bytes32`,name:`newProcessedDepositQueueHash`},{type:`uint64`,name:`lastProcessedDepositNumber`},{type:`uint64`,name:`lastProcessedEnabledTokenCount`}]},{name:`DepositProcessed`,type:`event`,inputs:[{type:`bytes32`,name:`depositHash`,indexed:!0},{type:`address`,name:`sender`,indexed:!0},{type:`address`,name:`to`,indexed:!0},{type:`address`,name:`token`},{type:`uint128`,name:`amount`},{type:`bytes32`,name:`memo`}]},{name:`DepositFailed`,type:`event`,inputs:[{type:`bytes32`,name:`depositHash`,indexed:!0},{type:`address`,name:`sender`,indexed:!0},{type:`address`,name:`token`},{type:`uint128`,name:`amount`}]},{name:`DepositRejected`,type:`event`,inputs:[{type:`bytes32`,name:`depositHash`,indexed:!0},{type:`address`,name:`sender`,indexed:!0},{type:`uint8`,name:`depositType`},{type:`address`,name:`token`},{type:`uint128`,name:`amount`},{type:`address`,name:`tempoRefundRecipient`}]},{name:`WithdrawalBounceBackProcessed`,type:`event`,inputs:[{type:`address`,name:`zoneFallbackRecipient`,indexed:!0},{type:`address`,name:`token`},{type:`uint128`,name:`amount`}]},{name:`WithdrawalBounceBackPending`,type:`event`,inputs:[{type:`address`,name:`zoneFallbackRecipient`,indexed:!0},{type:`address`,name:`token`},{type:`uint128`,name:`amount`}]},{name:`RefundClaimed`,type:`event`,inputs:[{type:`address`,name:`recipient`,indexed:!0},{type:`address`,name:`token`,indexed:!0},{type:`uint128`,name:`amount`}]},{name:`TokenEnabled`,type:`event`,inputs:[{type:`address`,name:`token`,indexed:!0},{type:`string`,name:`name`},{type:`string`,name:`symbol`},{type:`string`,name:`currency`}]},{name:`OnlySequencer`,type:`error`,inputs:[]},{name:`InvalidDepositQueueHash`,type:`error`,inputs:[]},{name:`InvalidWithdrawalBounceBack`,type:`error`,inputs:[]},{name:`InvalidTokenEnablementHash`,type:`error`,inputs:[]},{name:`MissingDecryptionData`,type:`error`,inputs:[]},{name:`ExtraDecryptionData`,type:`error`,inputs:[]},{name:`InvalidSharedSecretProof`,type:`error`,inputs:[]},{name:`Unauthorized`,type:`error`,inputs:[]}],nR=[{type:`constructor`,inputs:[{name:`baseToken_`,type:`address`,internalType:`contract ITIP20`},{name:`quoteToken_`,type:`address`,internalType:`contract ITIP20`},{name:`oracle_`,type:`address`,internalType:`contract IPriceOracle`},{name:`addressRegistry_`,type:`address`,internalType:`contract IAddressRegistry`},{name:`owner_`,type:`address`,internalType:`address`},{name:`guardian_`,type:`address`,internalType:`address`},{name:`maxOracleAge_`,type:`uint256`,internalType:`uint256`},{name:`maxPriceDeviationBps_`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`BPS`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`acceptOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`addressRegistry`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IAddressRegistry`}],stateMutability:`view`},{type:`function`,name:`baseDecimals`,inputs:[],outputs:[{name:``,type:`uint8`,internalType:`uint8`}],stateMutability:`view`},{type:`function`,name:`baseToQuotePriceAnchor`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`baseToken`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract ITIP20`}],stateMutability:`view`},{type:`function`,name:`fund`,inputs:[{name:`token`,type:`address`,internalType:`address`},{name:`amount`,type:`uint256`,internalType:`uint256`},{name:`memo`,type:`bytes32`,internalType:`bytes32`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`guardian`,inputs:[],outputs:[{name:``,type:`address`,internalType:`address`}],stateMutability:`view`},{type:`function`,name:`maxOracleAge`,inputs:[],outputs:[{name:``,type:`uint80`,internalType:`uint80`}],stateMutability:`view`},{type:`function`,name:`maxPriceDeviationBps`,inputs:[],outputs:[{name:``,type:`uint16`,internalType:`uint16`}],stateMutability:`view`},{type:`function`,name:`oracle`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IPriceOracle`}],stateMutability:`view`},{type:`function`,name:`oracleDecimals`,inputs:[],outputs:[{name:``,type:`uint8`,internalType:`uint8`}],stateMutability:`view`},{type:`function`,name:`owner`,inputs:[],outputs:[{name:``,type:`address`,internalType:`address`}],stateMutability:`view`},{type:`function`,name:`pause`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`paused`,inputs:[],outputs:[{name:``,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`pendingOwner`,inputs:[],outputs:[{name:``,type:`address`,internalType:`address`}],stateMutability:`view`},{type:`function`,name:`priceAnchor`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`}],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`priceScale`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoteDecimals`,inputs:[],outputs:[{name:``,type:`uint8`,internalType:`uint8`}],stateMutability:`view`},{type:`function`,name:`quoteExactInput`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`amountIn`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`amountOut`,type:`uint256`,internalType:`uint256`},{name:`price`,type:`uint256`,internalType:`uint256`},{name:`updatedAt`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoteExactInputFor`,inputs:[{name:`taker`,type:`address`,internalType:`address`},{name:`recipient`,type:`address`,internalType:`address`},{name:`customerId`,type:`bytes32`,internalType:`bytes32`},{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`amountIn`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`amountOut`,type:`uint256`,internalType:`uint256`},{name:`price`,type:`uint256`,internalType:`uint256`},{name:`updatedAt`,type:`uint256`,internalType:`uint256`},{name:`creditAfter`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoteExactOutput`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`amountOut`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`amountIn`,type:`uint256`,internalType:`uint256`},{name:`price`,type:`uint256`,internalType:`uint256`},{name:`updatedAt`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoteExactOutputFor`,inputs:[{name:`taker`,type:`address`,internalType:`address`},{name:`recipient`,type:`address`,internalType:`address`},{name:`customerId`,type:`bytes32`,internalType:`bytes32`},{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`amountOut`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`amountIn`,type:`uint256`,internalType:`uint256`},{name:`price`,type:`uint256`,internalType:`uint256`},{name:`updatedAt`,type:`uint256`,internalType:`uint256`},{name:`creditAfter`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoteToBasePriceAnchor`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoteToken`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract ITIP20`}],stateMutability:`view`},{type:`function`,name:`recipientAllowed`,inputs:[{name:`recipient`,type:`address`,internalType:`address`}],outputs:[{name:`allowed`,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`resetPriceAnchor`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`resolveRecipient`,inputs:[{name:`recipient`,type:`address`,internalType:`address`}],outputs:[{name:`resolved`,type:`address`,internalType:`address`}],stateMutability:`view`},{type:`function`,name:`roundingCredit`,inputs:[{name:`routeKey`,type:`bytes32`,internalType:`bytes32`}],outputs:[{name:`credit`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`roundingRouteKey`,inputs:[{name:`taker`,type:`address`,internalType:`address`},{name:`recipient`,type:`address`,internalType:`address`},{name:`customerId`,type:`bytes32`,internalType:`bytes32`}],outputs:[{name:``,type:`bytes32`,internalType:`bytes32`}],stateMutability:`view`},{type:`function`,name:`setGuardian`,inputs:[{name:`newGuardian`,type:`address`,internalType:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setMaxOracleAge`,inputs:[{name:`newMaxOracleAge`,type:`uint256`,internalType:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setMaxPriceDeviationBps`,inputs:[{name:`newMaxPriceDeviationBps`,type:`uint256`,internalType:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setOracle`,inputs:[{name:`newOracle`,type:`address`,internalType:`contract IPriceOracle`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setRecipientAllowed`,inputs:[{name:`recipient`,type:`address`,internalType:`address`},{name:`allowed`,type:`bool`,internalType:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setTakerAllowed`,inputs:[{name:`taker`,type:`address`,internalType:`address`},{name:`allowed`,type:`bool`,internalType:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`swapExactInput`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`amountIn`,type:`uint256`,internalType:`uint256`},{name:`minAmountOut`,type:`uint256`,internalType:`uint256`},{name:`recipient`,type:`address`,internalType:`address`},{name:`customerId`,type:`bytes32`,internalType:`bytes32`},{name:`tradeId`,type:`bytes32`,internalType:`bytes32`},{name:`deadline`,type:`uint256`,internalType:`uint256`},{name:`expectedOraclePrice`,type:`uint256`,internalType:`uint256`},{name:`oraclePriceToleranceBps`,type:`uint256`,internalType:`uint256`},{name:`minimumOracleUpdatedAt`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`amountOut`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`swapExactOutput`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`amountOut`,type:`uint256`,internalType:`uint256`},{name:`maxAmountIn`,type:`uint256`,internalType:`uint256`},{name:`recipient`,type:`address`,internalType:`address`},{name:`customerId`,type:`bytes32`,internalType:`bytes32`},{name:`tradeId`,type:`bytes32`,internalType:`bytes32`},{name:`deadline`,type:`uint256`,internalType:`uint256`},{name:`expectedOraclePrice`,type:`uint256`,internalType:`uint256`},{name:`oraclePriceToleranceBps`,type:`uint256`,internalType:`uint256`},{name:`minimumOracleUpdatedAt`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`amountIn`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`takerAllowed`,inputs:[{name:`taker`,type:`address`,internalType:`address`}],outputs:[{name:`allowed`,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`transferOwnership`,inputs:[{name:`newOwner`,type:`address`,internalType:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`unpause`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`withdraw`,inputs:[{name:`token`,type:`address`,internalType:`address`},{name:`recipient`,type:`address`,internalType:`address`},{name:`amount`,type:`uint256`,internalType:`uint256`},{name:`memo`,type:`bytes32`,internalType:`bytes32`}],outputs:[],stateMutability:`nonpayable`},{type:`event`,name:`Funded`,inputs:[{name:`token`,type:`address`,indexed:!0,internalType:`address`},{name:`amount`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`memo`,type:`bytes32`,indexed:!0,internalType:`bytes32`}],anonymous:!1},{type:`event`,name:`GuardianUpdated`,inputs:[{name:`oldGuardian`,type:`address`,indexed:!0,internalType:`address`},{name:`newGuardian`,type:`address`,indexed:!0,internalType:`address`}],anonymous:!1},{type:`event`,name:`MaxOracleAgeUpdated`,inputs:[{name:`oldMaxAge`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`newMaxAge`,type:`uint256`,indexed:!1,internalType:`uint256`}],anonymous:!1},{type:`event`,name:`MaxPriceDeviationBpsUpdated`,inputs:[{name:`oldMaxPriceDeviationBps`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`newMaxPriceDeviationBps`,type:`uint256`,indexed:!1,internalType:`uint256`}],anonymous:!1},{type:`event`,name:`OracleUpdated`,inputs:[{name:`oldOracle`,type:`address`,indexed:!0,internalType:`address`},{name:`newOracle`,type:`address`,indexed:!0,internalType:`address`},{name:`decimals`,type:`uint8`,indexed:!1,internalType:`uint8`}],anonymous:!1},{type:`event`,name:`OwnershipTransferStarted`,inputs:[{name:`oldOwner`,type:`address`,indexed:!0,internalType:`address`},{name:`pendingOwner`,type:`address`,indexed:!0,internalType:`address`}],anonymous:!1},{type:`event`,name:`OwnershipTransferred`,inputs:[{name:`oldOwner`,type:`address`,indexed:!0,internalType:`address`},{name:`newOwner`,type:`address`,indexed:!0,internalType:`address`}],anonymous:!1},{type:`event`,name:`PausedStateChanged`,inputs:[{name:`paused`,type:`bool`,indexed:!1,internalType:`bool`}],anonymous:!1},{type:`event`,name:`PriceAnchorUpdated`,inputs:[{name:`baseToQuote`,type:`bool`,indexed:!0,internalType:`bool`},{name:`oldAnchor`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`newAnchor`,type:`uint256`,indexed:!1,internalType:`uint256`}],anonymous:!1},{type:`event`,name:`RecipientPermissionUpdated`,inputs:[{name:`recipient`,type:`address`,indexed:!0,internalType:`address`},{name:`allowed`,type:`bool`,indexed:!1,internalType:`bool`}],anonymous:!1},{type:`event`,name:`RoundingCreditUpdated`,inputs:[{name:`routeKey`,type:`bytes32`,indexed:!0,internalType:`bytes32`},{name:`previousCredit`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`newCredit`,type:`uint256`,indexed:!1,internalType:`uint256`}],anonymous:!1},{type:`event`,name:`TakerPermissionUpdated`,inputs:[{name:`taker`,type:`address`,indexed:!0,internalType:`address`},{name:`allowed`,type:`bool`,indexed:!1,internalType:`bool`}],anonymous:!1},{type:`event`,name:`TradeExecuted`,inputs:[{name:`taker`,type:`address`,indexed:!0,internalType:`address`},{name:`recipient`,type:`address`,indexed:!0,internalType:`address`},{name:`customerId`,type:`bytes32`,indexed:!0,internalType:`bytes32`},{name:`tradeId`,type:`bytes32`,indexed:!1,internalType:`bytes32`},{name:`tokenIn`,type:`address`,indexed:!1,internalType:`address`},{name:`tokenOut`,type:`address`,indexed:!1,internalType:`address`},{name:`amountIn`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`amountOut`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`oraclePrice`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`oracleUpdatedAt`,type:`uint256`,indexed:!1,internalType:`uint256`}],anonymous:!1},{type:`event`,name:`Withdrawn`,inputs:[{name:`token`,type:`address`,indexed:!0,internalType:`address`},{name:`recipient`,type:`address`,indexed:!0,internalType:`address`},{name:`amount`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`memo`,type:`bytes32`,indexed:!1,internalType:`bytes32`}],anonymous:!1},{type:`error`,name:`AmountIsZero`,inputs:[]},{type:`error`,name:`CustomerIdIsZero`,inputs:[]},{type:`error`,name:`DeadlineExpired`,inputs:[{name:`deadline`,type:`uint256`,internalType:`uint256`},{name:`currentTimestamp`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`ExactBalanceDeltaFailed`,inputs:[{name:`token`,type:`address`,internalType:`address`},{name:`expected`,type:`uint256`,internalType:`uint256`},{name:`actual`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`FutureOracleTimestamp`,inputs:[{name:`updatedAt`,type:`uint256`,internalType:`uint256`},{name:`currentTime`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`InsufficientInventory`,inputs:[{name:`token`,type:`address`,internalType:`address`},{name:`available`,type:`uint256`,internalType:`uint256`},{name:`required`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`InvalidAddress`,inputs:[]},{type:`error`,name:`InvalidMaxOracleAge`,inputs:[]},{type:`error`,name:`InvalidMaxPriceDeviationBps`,inputs:[{name:`supplied`,type:`uint256`,internalType:`uint256`},{name:`maximum`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`InvalidOraclePriceToleranceBps`,inputs:[{name:`supplied`,type:`uint256`,internalType:`uint256`},{name:`maximum`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`InvalidPrice`,inputs:[]},{type:`error`,name:`NotGuardianOrOwner`,inputs:[]},{type:`error`,name:`NotOwner`,inputs:[]},{type:`error`,name:`NotPaused`,inputs:[]},{type:`error`,name:`NotPendingOwner`,inputs:[]},{type:`error`,name:`OracleDecimalsChanged`,inputs:[{name:`currentDecimals`,type:`uint8`,internalType:`uint8`},{name:`proposedDecimals`,type:`uint8`,internalType:`uint8`}]},{type:`error`,name:`OraclePriceToleranceExceeded`,inputs:[{name:`expectedPrice`,type:`uint256`,internalType:`uint256`},{name:`actualPrice`,type:`uint256`,internalType:`uint256`},{name:`toleranceBps`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`OracleTimestampTooOld`,inputs:[{name:`minimumUpdatedAt`,type:`uint256`,internalType:`uint256`},{name:`actualUpdatedAt`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`Paused`,inputs:[]},{type:`error`,name:`PriceAnchorNotInitialized`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`}]},{type:`error`,name:`PriceDeviationExceeded`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`price`,type:`uint256`,internalType:`uint256`},{name:`anchor`,type:`uint256`,internalType:`uint256`},{name:`maxDeviationBps`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`RecipientNotAllowed`,inputs:[{name:`recipient`,type:`address`,internalType:`address`}]},{type:`error`,name:`ReentrancyGuardReentrantCall`,inputs:[]},{type:`error`,name:`SameToken`,inputs:[]},{type:`error`,name:`SlippageExceeded`,inputs:[{name:`limit`,type:`uint256`,internalType:`uint256`},{name:`actual`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`StaleOraclePrice`,inputs:[{name:`updatedAt`,type:`uint256`,internalType:`uint256`},{name:`maxAge`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`TakerNotAllowed`,inputs:[{name:`taker`,type:`address`,internalType:`address`}]},{type:`error`,name:`TokenTransferFailed`,inputs:[{name:`token`,type:`address`,internalType:`address`}]},{type:`error`,name:`UnsupportedDecimals`,inputs:[{name:`baseDecimals`,type:`uint8`,internalType:`uint8`},{name:`quoteDecimals`,type:`uint8`,internalType:`uint8`},{name:`oracleDecimals`,type:`uint8`,internalType:`uint8`}]},{type:`error`,name:`UnsupportedToken`,inputs:[{name:`token`,type:`address`,internalType:`address`}]}],rR=[...yL,...bL,...SL,...kL,...OL,...xL,...CL,...wL,...TL,...EL,...DL,...ML,...AL,...jL,...NL,...FL,...PL,...IL,...LL,...RL],iR=[...zL,...BL,...VL,...HL,...UL,...WL,...GL,...KL,...qL,...JL,...YL,...XL,...ZL],aR=[...tR,...eR,...$L,...QL],oR=[...nR];[...rR,...iR,...aR,...oR];var sR=[{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`}]},{name:`MasterIdCollision`,type:`error`,inputs:[{type:`address`,name:`master`}]},{name:`InvalidMasterAddress`,type:`error`,inputs:[]},{name:`ProofOfWorkFailed`,type:`error`,inputs:[]},{name:`VirtualAddressUnregistered`,type:`error`,inputs:[]},{name:`Unauthorized`,type:`error`,inputs:[]},{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:[]},{name:`InsufficientFeeTokenBalance`,type:`error`,inputs:[]},{name:`CannotChangeWithinBlock`,type:`error`,inputs:[]},{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:[]},{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:[]},{name:`InvalidReceipt`,type:`error`,inputs:[]},{name:`InvalidClaimAddress`,type:`error`,inputs:[]},{name:`UnauthorizedClaimer`,type:`error`,inputs:[]},{name:`AddressReserved`,type:`error`,inputs:[]},{name:`InvalidFormat`,type:`error`,inputs:[]},{name:`InvalidSignature`,type:`error`,inputs:[]},{name:`PairDoesNotExist`,type:`error`,inputs:[]},{name:`PairAlreadyExists`,type:`error`,inputs:[]},{name:`OrderDoesNotExist`,type:`error`,inputs:[]},{name:`IdenticalTokens`,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:`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:[]},{name:`InvalidMode`,type:`error`,inputs:[]},{name:`OnlyDirectCall`,type:`error`,inputs:[]},{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:`NoOptedInSupply`,type:`error`,inputs:[]},{name:`ProtectedAddress`,type:`error`,inputs:[]},{name:`Uninitialized`,type:`error`,inputs:[]},{name:`InvalidTransferPolicyId`,type:`error`,inputs:[]},{name:`PermitExpired`,type:`error`,inputs:[]},{name:`LogoURITooLong`,type:`error`,inputs:[]},{name:`InvalidLogoURI`,type:`error`,inputs:[]},{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:`AmountExceedsDeposit`,type:`error`,inputs:[]},{name:`AmountNotIncreasing`,type:`error`,inputs:[]},{name:`CaptureAmountInvalid`,type:`error`,inputs:[]},{name:`CloseNotReady`,type:`error`,inputs:[]},{name:`DepositOverflow`,type:`error`,inputs:[]},{name:`AddressNotReserved`,type:`error`,inputs:[]},{name:`TokenAlreadyExists`,type:`error`,inputs:[{type:`address`,name:`token`}]},{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:[]},{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`}]},{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:`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:`AddressAlreadyHasValidator`,type:`error`,inputs:[]},{name:`ValidatorAlreadyDeactivated`,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:`TokenMetadataTooLong`,type:`error`,inputs:[]},{name:`DuplicateAllowedAccount`,type:`error`,inputs:[]},{name:`DuplicateZoneGateway`,type:`error`,inputs:[]},{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:`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:`GasFeeRateTooHigh`,type:`error`,inputs:[]},{name:`DepositsNotActive`,type:`error`,inputs:[]},{name:`TokenAlreadyEnabled`,type:`error`,inputs:[]},{name:`TokenEnablementCursorNotInitialized`,type:`error`,inputs:[]},{name:`InvalidDepositTransition`,type:`error`,inputs:[]},{name:`InvalidTokenEnablementTransition`,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`}]}];DF(0),DF(0,42431);var cR=`0xaAAAaaAA00000000000000000000000000000000`,lR=`0xfeec000000000000000000000000000000000000`,uR=`0xAACC000000000000000000000000000000000000`,dR=`0x7171717171717171717171717171717171717171`,fR=`0x4e4F4E4345000000000000000000000000000000`,pR=`0x20c0000000000000000000000000000000000000`,mR=`0x5165300000000000000000000000000000000000`,hR=`0xdec0000000000000000000000000000000000000`,gR=`0x4d50500000000000000000000000000000000000`,_R=`0x20fc000000000000000000000000000000000000`,vR=`0x403c000000000000000000000000000000000000`;function yR(e){let t=DM(e);if(t.type===`configurable`||t.type===`keychain`)throw Error(`Configurable account owners must use primitive signatures.`);return t}var bR=1024;function xR(e,t=`hex`){let n=(()=>{if(typeof e==`string`){if(e.length>3&&e.length%2!=0)throw new De(e);return ue(e)}return e})(),r=mn(n,{recursiveReadLimit:1/0}),i=SR(r,t);if(r.position<r.bytes.length)throw new tt({count:r.bytes.length-r.position});return i}function SR(e,t=`hex`,n=0){if(n>=bR)throw new Gt({limit:bR});if(e.bytes.length===0)return t===`hex`?Ie(e.bytes):e.bytes;let r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){let n=CR(e,r,128),i=e.readBytes(n);return t===`hex`?Ie(i):i}return wR(e,CR(e,r,192),t,n+1)}function CR(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 $e(`Invalid RLP prefix`)}function wR(e,t,n,r){let i=e.position,a=[];for(;e.position-i<t;)a.push(SR(e,n,r));if(e.position-i!==t)throw new Ee({consumed:e.position-i,declared:t});return a}function TR(e){return Ze(e)&&e.length===66}function ER(e){let{authorizationList:t}=e;if(t)for(let e of t){let{chainId:t}=e,n=e.address;if(!Ke(n))throw new be({address:n});if(t<0)throw new dn({chainId:t})}OR(e)}function DR(e){let{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new iL;for(let e of t){let t=qe(e),n=hn(Te(e,0,1));if(t!==32)throw new aL({hash:e,size:t});if(n!==1)throw new oL({hash:e,version:n})}}OR(e)}function OR(e){let{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new dn({chainId:t});if(i&&!Ke(i))throw new be({address:i});if(r&&r>Kt)throw new bt({maxFeePerGas:r});if(n&&r&&n>r)throw new Ut({maxFeePerGas:r,maxPriorityFeePerGas:n})}function kR(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a}=e;if(t<=0)throw new dn({chainId:t});if(a&&!Ke(a))throw new be({address:a});if(n||i)throw new $e("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>Kt)throw new bt({maxFeePerGas:r})}function AR(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a}=e;if(a&&!Ke(a))throw new be({address:a});if(t!==void 0&&t<=0)throw new dn({chainId:t});if(n||i)throw new $e("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>Kt)throw new bt({maxFeePerGas:r})}function jR(e){let t=et(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`&&hn(t)>=192)return`legacy`;throw new He({serializedType:t})}function MR(e){let t=jR(e);return t===`eip1559`?FR(e):t===`eip2930`?IR(e):t===`eip4844`?PR(e):t===`eip7702`?NR(e):LR(e)}function NR(e){let t=RR(e),[n,r,i,a,o,s,c,l,u,d,f,p,m]=t;if(t.length!==10&&t.length!==13)throw new un({attributes:{chainId:n,nonce:r,maxPriorityFeePerGas:i,maxFeePerGas:a,gas:o,to:s,value:c,data:l,accessList:u,authorizationList:d,...t.length>9?{v:f,r:p,s:m}:{}},serializedTransaction:e,type:`eip7702`});let h={chainId:hn(n),type:`eip7702`};return Ze(s)&&s!==`0x`&&(h.to=s),Ze(o)&&o!==`0x`&&(h.gas=ke(o)),Ze(l)&&l!==`0x`&&(h.data=l),Ze(r)&&(h.nonce=r===`0x`?0:hn(r)),Ze(c)&&c!==`0x`&&(h.value=ke(c)),Ze(a)&&a!==`0x`&&(h.maxFeePerGas=ke(a)),Ze(i)&&i!==`0x`&&(h.maxPriorityFeePerGas=ke(i)),u.length!==0&&u!==`0x`&&(h.accessList=zR(u)),d.length!==0&&d!==`0x`&&(h.authorizationList=BR(d)),ER(h),{...t.length===13?VR(t):void 0,...h}}function PR(e){let t=RR(e),n=t.length===4,r=n?t[0]:t,i=n?t.slice(1):[],[a,o,s,c,l,u,d,f,p,m,h,g,_,v]=r,[y,b,x]=i;if(r.length!==11&&r.length!==14)throw new un({attributes:{chainId:a,nonce:o,maxPriorityFeePerGas:s,maxFeePerGas:c,gas:l,to:u,value:d,data:f,accessList:p,...r.length>9?{v:g,r:_,s:v}:{}},serializedTransaction:e,type:`eip4844`});let S={blobVersionedHashes:h,chainId:hn(a),to:u,type:`eip4844`};return Ze(l)&&l!==`0x`&&(S.gas=ke(l)),Ze(f)&&f!==`0x`&&(S.data=f),Ze(o)&&(S.nonce=o===`0x`?0:hn(o)),Ze(d)&&d!==`0x`&&(S.value=ke(d)),Ze(m)&&m!==`0x`&&(S.maxFeePerBlobGas=ke(m)),Ze(c)&&c!==`0x`&&(S.maxFeePerGas=ke(c)),Ze(s)&&s!==`0x`&&(S.maxPriorityFeePerGas=ke(s)),p.length!==0&&p!==`0x`&&(S.accessList=zR(p)),y&&b&&x&&(S.sidecars=cL({blobs:y,commitments:b,proofs:x})),DR(S),{...r.length===14?VR(r):void 0,...S}}function FR(e){let t=RR(e),[n,r,i,a,o,s,c,l,u,d,f,p]=t;if(t.length!==9&&t.length!==12)throw new un({attributes:{chainId:n,nonce:r,maxPriorityFeePerGas:i,maxFeePerGas:a,gas:o,to:s,value:c,data:l,accessList:u,...t.length>9?{v:d,r:f,s:p}:{}},serializedTransaction:e,type:`eip1559`});let m={chainId:hn(n),type:`eip1559`};return Ze(s)&&s!==`0x`&&(m.to=s),Ze(o)&&o!==`0x`&&(m.gas=ke(o)),Ze(l)&&l!==`0x`&&(m.data=l),Ze(r)&&(m.nonce=r===`0x`?0:hn(r)),Ze(c)&&c!==`0x`&&(m.value=ke(c)),Ze(a)&&a!==`0x`&&(m.maxFeePerGas=ke(a)),Ze(i)&&i!==`0x`&&(m.maxPriorityFeePerGas=ke(i)),u.length!==0&&u!==`0x`&&(m.accessList=zR(u)),OR(m),{...t.length===12?VR(t):void 0,...m}}function IR(e){let t=RR(e),[n,r,i,a,o,s,c,l,u,d,f]=t;if(t.length!==8&&t.length!==11)throw new un({attributes:{chainId:n,nonce:r,gasPrice:i,gas:a,to:o,value:s,data:c,accessList:l,...t.length>8?{v:u,r:d,s:f}:{}},serializedTransaction:e,type:`eip2930`});let p={chainId:hn(n),type:`eip2930`};return Ze(o)&&o!==`0x`&&(p.to=o),Ze(a)&&a!==`0x`&&(p.gas=ke(a)),Ze(c)&&c!==`0x`&&(p.data=c),Ze(r)&&(p.nonce=r===`0x`?0:hn(r)),Ze(s)&&s!==`0x`&&(p.value=ke(s)),Ze(i)&&i!==`0x`&&(p.gasPrice=ke(i)),l.length!==0&&l!==`0x`&&(p.accessList=zR(l)),kR(p),{...t.length===11?VR(t):void 0,...p}}function LR(e){let t=xR(e,`hex`),[n,r,i,a,o,s,c,l,u]=t;if(t.length!==6&&t.length!==9)throw new un({attributes:{nonce:n,gasPrice:r,gas:i,to:a,value:o,data:s,...t.length>6?{v:c,r:l,s:u}:{}},serializedTransaction:e,type:`legacy`});let d={type:`legacy`};if(Ze(a)&&a!==`0x`&&(d.to=a),Ze(i)&&i!==`0x`&&(d.gas=ke(i)),Ze(s)&&s!==`0x`&&(d.data=s),Ze(n)&&(d.nonce=n===`0x`?0:hn(n)),Ze(o)&&o!==`0x`&&(d.value=ke(o)),Ze(r)&&r!==`0x`&&(d.gasPrice=ke(r)),AR(d),t.length===6)return d;let f=Ze(c)&&c!==`0x`?ke(c):0n;if(u===`0x`&&l===`0x`)return f>0&&(d.chainId=Number(f)),d;let p=f,m=Number((p-35n)/2n);if(m>0)d.chainId=m;else if(p!==27n&&p!==28n)throw new pn({v:p});return d.v=p,d.s=u,d.r=l,d.yParity=+(p%2n==0n),d}function RR(e){return xR(`0x${e.slice(4)}`,`hex`)}function zR(e){let t=[];for(let n=0;n<e.length;n++){let[r,i]=e[n];if(!Ke(r,{strict:!1}))throw new be({address:r});t.push({address:r,storageKeys:i.map(e=>TR(e)?e:Ce(e))})}return t}function BR(e){let t=[];for(let n=0;n<e.length;n++){let[r,i,a,o,s,c]=e[n];t.push({address:i,chainId:r===`0x`?0:hn(r),nonce:a===`0x`?0:hn(a),...VR([o,s,c])})}return t}function VR(e){let t=e.slice(-3),n=t[0]===`0x`?0n:ke(t[0]);if(n!==0n&&n!==1n)throw new sn({yParity:n});let r=n===0n?27n:28n;return{r:xe(t[1],{size:32}),s:xe(t[2],{size:32}),v:r,yParity:r===27n?0:1}}function HR(e){if(!e||e.length===0)return[];let t=[];for(let n of e){let{chainId:e,nonce:r,...i}=n,a=n.address;t.push([e?we(e):`0x`,a,r?we(r):`0x`,...XR({},i)])}return t}function UR(e){if(!e||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let{address:r,storageKeys:i}=e[n];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new pe({storageKey:i[e]});if(!Ke(r,{strict:!1}))throw new be({address:r});t.push([r,i])}return t}function WR(e,t){let n=lL(e);return n===`eip1559`?qR(e,t):n===`eip2930`?JR(e,t):n===`eip4844`?KR(e,t):n===`eip7702`?GR(e,t):YR(e,t)}function GR(e,t){let{authorizationList:n,chainId:r,gas:i,nonce:a,to:o,value:s,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;ER(e);let f=UR(u),p=HR(n);return Re([`0x04`,XF([z(r),a?z(a):`0x`,l?z(l):`0x`,c?z(c):`0x`,i?z(i):`0x`,o??`0x`,s?z(s):`0x`,d??`0x`,f,p,...XR(e,t)])])}function KR(e,t){let{chainId:n,gas:r,nonce:i,to:a,value:o,maxFeePerBlobGas:s,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;DR(e);let f=e.blobVersionedHashes,p=e.sidecars;if(e.blobs&&(f===void 0||p===void 0)){let t=typeof e.blobs[0]==`string`?e.blobs:e.blobs.map(e=>Ie(e)),n=e.kzg,r=JI({blobs:t,kzg:n});f===void 0&&(f=QI({commitments:r})),p===void 0&&(p=cL({blobs:t,commitments:r,proofs:YI({blobs:t,commitments:r,kzg:n})}))}let m=UR(u),h=[z(n),i?z(i):`0x`,l?z(l):`0x`,c?z(c):`0x`,r?z(r):`0x`,a??`0x`,o?z(o):`0x`,d??`0x`,m,s?z(s):`0x`,f??[],...XR(e,t)],g=[],_=[],v=[];if(p)for(let e=0;e<p.length;e++){let{blob:t,commitment:n,proof:r}=p[e];g.push(t),_.push(n),v.push(r)}return Re([`0x03`,XF(p?[h,g,_,v]:h)])}function qR(e,t){let{chainId:n,gas:r,nonce:i,to:a,value:o,maxFeePerGas:s,maxPriorityFeePerGas:c,accessList:l,data:u}=e;OR(e);let d=UR(l),f=[z(n),i?z(i):`0x`,c?z(c):`0x`,s?z(s):`0x`,r?z(r):`0x`,a??`0x`,o?z(o):`0x`,u??`0x`,d,...XR(e,t)];return Re([`0x02`,XF(f)])}function JR(e,t){let{chainId:n,gas:r,data:i,nonce:a,to:o,value:s,accessList:c,gasPrice:l}=e;kR(e);let u=UR(c),d=[z(n),a?z(a):`0x`,l?z(l):`0x`,r?z(r):`0x`,o??`0x`,s?z(s):`0x`,i??`0x`,u,...XR(e,t)];return Re([`0x01`,XF(d)])}function YR(e,t){let{chainId:n=0,gas:r,data:i,nonce:a,to:o,value:s,gasPrice:c}=e;AR(e);let l=[a?z(a):`0x`,c?z(c):`0x`,r?z(r):`0x`,o??`0x`,s?z(s):`0x`,i??`0x`];if(t){let e=(()=>{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);let e=27n+(t.v===27n?0n:1n);if(t.v!==e)throw new pn({v:t.v});return e})(),r=Ce(t.r),i=Ce(t.s);l=[...l,z(e),r===`0x00`?`0x`:r,i===`0x00`?`0x`:i]}else n>0&&(l=[...l,z(n),`0x`,`0x`]);return XF(l)}function XR(e,t){let n=t??e,{v:r,yParity:i}=n;if(n.r===void 0||n.s===void 0||r===void 0&&i===void 0)return[];let a=Ce(n.r),o=Ce(n.s);return[typeof i==`number`?i?z(1):`0x`:r===0n?`0x`:r===1n?z(1):r===27n?`0x`:z(1),a===`0x00`?`0x`:a,o===`0x00`?`0x`:o]}function ZR(e){let t=e.account;return t?.keyType&&t.keyType!==`secp256k1`||t?.source===`accessKey`||t?.source===`configurable`||e.calls!==void 0||e.feePayer!==void 0||e.feePayerSignature!==void 0||e.feeToken!==void 0||e.keyAuthorization!==void 0||e.accountSimulation!==void 0||e.nonceKey!==void 0||e.owner!==void 0||e.signature!==void 0||e.signatures!==void 0||e.validBefore!==void 0||e.validAfter!==void 0?`tempo`:e.type?e.type:lL(e)}function QR(e){try{return ZR(e)===`tempo`}catch{return!1}}function $R(e){let t=H(e,0,1);return t===`0x76`||t===`0x78`?tz(e):MR(e)}async function ez(e,t){if(!QR(e)){if(t&&`type`in t&&t.type!==`secp256k1`)throw Error("Unsupported signature type. Expected `secp256k1` but got `"+t.type+"`.");if(t&&`type`in t){let{r:n,s:r,yParity:i}=t?.signature;return WR(e,{r:V(n,{size:32}),s:V(r,{size:32}),yParity:i})}return WR(e,t)}if(ZR(e)===`tempo`)return nz(e,t);throw Error(`Unsupported transaction type`)}function tz(e){let{feePayerSignature:t,nonce:n,...r}=gP(e);return{...r,nonce:Number(n??0n),feePayerSignature:t&&{r:V(t.r,{size:32}),s:V(t.s,{size:32}),yParity:t.yParity}}}async function nz(e,t){let n=(()=>{if(e.signature)return e.signature;if(t&&`type`in t)return t;if(t)return DM({r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)})})(),{chainId:r,feePayer:i,accountSimulation:a,nonce:o,owner:s,...c}=e,l=(()=>{let t=e.feePayerSignature;if(t)return{r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)};if(t===null||i)return null})(),u=e.feePayerSignature!==void 0&&e.feePayerSignature!==null,d=n!==void 0||!!(a&&e.signatures),f=i===!0&&(!d||!l)||typeof i==`object`&&!d||!d&&u,p={...c,calls:c.calls?.length?c.calls:[{to:c.to||(!c.data||c.data===`0x`?`0x0000000000000000000000000000000000000000`:void 0),value:c.value,data:c.data}],chainId:Number(r),feePayerSignature:l,type:`tempo`,...o?{nonce:BigInt(o)}:{}},m={...p};f&&delete m.feeToken;let h=(()=>{if(n)return n;if(!a||!e.signatures)return;let t=bP(_P(m)),r=e.signatures.map(e=>yR(e)),i=IO(a.config),o=e.from;if(!o)throw Error(`A configurable account sender is required for signing.`);return DM({account:o,config:i,signatures:jM({account:o,config:i,payload:t,signatures:r})})})();if(h&&typeof e.feePayer==`object`){let t=_P(p,{signature:h}),n=SP(t,{sender:e.from??CM({payload:bP(t),root:!0,signature:h})});return vP(t,{feePayerSignature:pj(await e.feePayer.sign({hash:n}))})}return i===!0||!h&&u?h&&l?vP(m,{signature:h}):h?vP(m,{format:`feePayer`,sender:e.from,signature:h}):vP(m,{feePayerSignature:null}):vP(m,{feePayerSignature:void 0,signature:h})}function rz(e){let t=(()=>{if(typeof e==`string`)return;let{address:t,...n}=e;return n})(),n=(()=>{if(!t)return;let e=t.owners.map(e=>typeof e==`string`||`address`in e?{owner:e,weight:1}:e);return IO({...t,owners:e.map(({owner:e,weight:t})=>({owner:typeof e==`string`?e:e.address,weight:t})),threshold:t.threshold??1})})();if(typeof e!=`string`){if((e.address===void 0||e.address===`infer`)&&n.version!==0n)throw Error(`An initial account config must have version zero.`);if(e.address!==void 0&&e.address!==`infer`&&n.version===0n)throw Error(`A current account config must have a version.`)}let r=iO(typeof e==`string`?e:e.address===void 0||e.address===`infer`?zO(n,{factory:dR}):e.address),i=t?t.owners.flatMap(e=>{let t=typeof e==`string`||`address`in e?e:e.owner;return typeof t==`string`?[]:[en(t)]}):[];if(i.some(e=>e.source===`configurable`||oz(e)))throw Error(`Configurable account owners must use primitive signatures.`);let a=n?.owners.flatMap(({owner:e})=>{let t=i.find(t=>sO(t.address,e));return t?[t]:[]})??[],o={address:r,config:n,owners:a,publicKey:`0x`,source:`configurable`,type:`local`,async sign({hash:e}){return AM(await az(o,{payload:e}))},async signMessage(){throw Error("`signMessage` is not supported for configurable accounts.")},async signTransaction(e,t){let{serializer:n=ez}=t??{},i=e;if(i.owner){let e=en(i.owner);if(e.type!==`local`)throw Error(`A local owner account is required to approve a configurable account transaction.`);if(e.source!==`root`)throw Error(`A Tempo owner account is required to approve a configurable account transaction.`);let{owner:n,...r}=i;return await e.signTransaction(r,t)}if(a.length===0)return await n(e);let s={...i,signatures:void 0,...i.feePayerSignature===void 0?{}:{feePayerSignature:null}},c=Wt(await n(s)),l=i.accountSimulation;if(i.from&&!sO(i.from,r))throw Error(`Configurable account does not match the transaction sender.`);return await n(e,await az(o,{config:l?.config,payload:c,signatures:i.signatures?.map(e=>yR(e))}))},async signTypedData(){throw Error("`signTypedData` is not supported for configurable accounts.")}};return o}function iz(e){return e.source===`configurable`}async function az(e,t){let{config:n,payload:r,signatures:i=[]}=t,a=n??e.config;if(!a)throw Error(`A current account config is required for local signing.`);let o=BO({account:e.address,config:a,payload:r}),s=[...i],c=new Set,l=0;for(let e of i){let t=CM({payload:o,signature:e}).toLowerCase(),n=a.owners.find(e=>sO(e.owner,t));n&&!c.has(t)&&(c.add(t),l+=Number(n.weight))}let u=[...a.owners].sort((e,t)=>Number(t.weight)-Number(e.weight)||e.owner.toLowerCase().localeCompare(t.owner.toLowerCase()));for(let t of u){if(l>=Number(a.threshold))break;let n=t.owner.toLowerCase();if(c.has(n))continue;let r=e.owners.find(e=>sO(e.address,t.owner));if(r){if(!r.sign)throw Error(`Configurable account owner account cannot sign.`);if(s.push(yR(await r.sign({hash:o}))),c.add(n),l+=Number(t.weight),l>=Number(a.threshold))break}}if(l<Number(a.threshold))throw Error(`Local owners do not meet the threshold.`);return DM({account:e.address,config:a,signatures:jM({account:e.address,config:a,payload:r,signatures:s})})}function oz(e){return e.source===`accessKey`&&`accessKeyAddress`in e}function sz(e,t){let{admin:n,chainId:r,expiry:i,key:a,limits:o,scopes:s,witness:c}=t,{accessKeyAddress:l,keyType:u}=lz(a),d=oz(e)||iz(e)?{account:e.address}:{},f=n?{}:{expiry:i,limits:o,scopes:s};return GM({address:l,chainId:r,type:u,witness:c,...n?{isAdmin:!0}:{},...d,...f})}async function cz(e,t){let{admin:n,chainId:r,expiry:i,key:a,limits:o,configurable:s,scopes:c,signatures:l,witness:u}=t,{accessKeyAddress:d,keyType:f}=lz(a),p=oz(e),m=iz(e),h=p||m?{account:e.address}:{},g=n?{}:{expiry:i,limits:o,scopes:c},_=sz(e,t);return HM({address:d,chainId:r,signature:DM(await(async()=>{if(p)return e.sign({hash:_,raw:!0});if(m){if(!s)throw Error(`Configurable account state is required to sign a key authorization.`);return AM(await az(e,{config:s.config,payload:_,signatures:l?.map(e=>yR(e))}))}return e.sign({hash:_})})()),type:f,...u?{witness:u}:{},...n?{isAdmin:!0}:{},...h,...g})}function lz(e){return`accessKeyAddress`in e?{accessKeyAddress:e.accessKeyAddress,keyType:e.keyType}:`publicKey`in e&&e.publicKey?{accessKeyAddress:oO(JD(e.publicKey)),keyType:e.type}:{accessKeyAddress:e.address,keyType:e.type}}var uz=class extends $e{constructor({cause:e,error:t,hints:n},{details:r,docsPath:i,name:a=`TempoExecutionError`,shortMessage:o=t.message}={}){let s=e.metaMessages?.findIndex(e=>/^(Contract Call|Request Arguments):/.test(e));super(o,{cause:e,docsPath:i,metaMessages:[...r?[Fe(r),` `]:[],...n.length?[`How to fix:`,...n.map(e=>`- ${e}`),` `]:[],...s!==void 0&&s>=0?e.metaMessages.slice(s):[]],name:a}),Object.defineProperty(this,"abiItem",{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,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"errorName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"hints",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t.abiItem,this.args=t.args,this.data=t.data,this.errorName=t.errorName,this.hints=n}},dz=[`genesis`,`t0`,`t1`,`t1a`,`t1b`,`t1c`,`t2`,`t3`,`t4`,`t5`,`t6`];function fz(e,t){return dz.indexOf(e)<dz.indexOf(t)}function pz(e,t){return jt(e,t)}function mz(e,t={}){return(async(n,r)=>{try{return await e(n,r)}catch(e){let{toExecutionError:i}=await rt(async()=>{let{toExecutionError:e}=await import(`./resolveError-C_jEFRg5.js`);return{toExecutionError:e}},__vite__mapDeps([0,1,2]));throw await i(e,{...t,client:n,parameters:r})}})}function hz(e){let t=e.parameters.feeToken??e.client.chain?.feeToken;return t==null?void 0:dP(t)}function gz(e){return!!e?.toLowerCase().startsWith(`0x20c0`)}function _z(e,t){if(e!==void 0)return t===void 0?e.toString():`${pz(e,t)} (${e})`}function vz(e){if(!e)return;let t=Number(e)*1e3;return Math.abs(t)<=864e13?new Date(t).toISOString():e.toString()}function yz(e,t){let{decimals:n,token:r}=t;if(e&&typeof r==`string`){let t=bz(e,r);if(t)return{address:t.address,decimals:n??t.decimals}}let i=dP(r);return{address:i,decimals:n??(e?Sz(e,i):void 0)}}function bz(e,t){let n=e.tokens,r=e.chain?.id;if(!n||r===void 0)return;let i=t.toLowerCase();for(let e of n)if(e.symbol?.toLowerCase()===i)return xz(e,r)}function xz(e,t){let n=e.addresses[t];if(n)return{address:n,currency:e.currency,decimals:e.decimals,name:e.name,popular:e.popular,symbol:e.symbol}}function Sz(e,t){let n=e.tokens,r=e.chain?.id;if(n&&r!==void 0)for(let e of n){let n=xz(e,r);if(n&&lt(n.address,t))return n.decimals}}async function Cz(e,t){let{address:n,decimals:r}=yz(e,t);return r===void 0?{address:n,decimals:await pI(e,{abi:ML,address:n,functionName:`decimals`})}:{address:n,decimals:r}}function wz(e){let{account:t,chain:n,feePayer:r,feeToken:i,gas:a,keyAuthorization:o,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,nonceKey:u,owner:d,validAfter:f,validBefore:p}=e;return{account:t,chain:n,feePayer:r,feeToken:i,gas:a,keyAuthorization:o,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,nonceKey:u,owner:d,validAfter:f,validBefore:p}}function Tz(e){return e.length===2?e:[void 0,e[0]]}function Ez(e){return{...e,abi:[...e.abi,...sR],data:cn(e),to:e.address}}async function Dz(e,t){let n=await e.request({method:`account_getConfig`,params:[{address:t.address}]});return n?LO(n):null}async function Oz(e,t){let{account:n,...r}=t;return mz(pI)(e,{...r,...Oz.call({account:n})})}(function(e){function t(e){return Ez({address:uR,abi:xL,args:[e.account],functionName:`getConfigCommitment`})}e.call=t})(Oz||={});async function kz(e,t){return kz.inner(vL,e,t)}(function(e){async function t(t,n,r){let{account:i,currentConfig:a,nextConfig:o,...s}=r,c=i??n.account,l=(()=>{if(typeof c==`object`&&c.source===`configurable`)return c})(),u=(()=>{if(a)return a;if(l?.config)return l.config})(),d=(()=>{if(l)return l.address;if(typeof c==`string`)return c;if(c)return c.address})(),f=await(async()=>{if(u)return IO(u);if(!d)throw Error(`A configurable account address or current config is required.`);let e=await Dz(n,{address:d});if(!e)throw Error(`No current account config is cached for account ${d}. Provide the current config.`);return e})(),p=(()=>{if(l)return{...l,config:f};if(typeof c==`object`)return c;if(d)return rz({address:d,...f})})();return await mz(t)(n,{...s,...p?{account:p}:{},...e.call({currentConfig:f,nextConfig:o})})}e.inner=t;function n(e){let t=IO(e.currentConfig),n=HO(t,e.nextConfig);return Ez({address:uR,abi:xL,args:[t,n.threshold,n.owners],functionName:`updateConfig`})}e.call=n;function r(e){let[t]=OI({abi:xL,logs:e,eventName:`MultisigConfigUpdated`,strict:!0});if(!t)throw Error("`MultisigConfigUpdated` event not found.");return t}e.extractEvent=r})(kz||={});var Az={0:`secp256k1`,1:`p256`,2:`webAuthn`},jz={true:`limited`,false:`unlimited`};async function Mz(e,t){return Mz.inner(_L,e,t)}(function(e){async function t(e,t,n){let{accessKey:r,admin:i,chainId:a=t.chain?.id,expiry:o,limits:s,scopes:c,witness:l,...u}=n,d=u.account??t.account;if(!d)throw Error(`account is required.`);if(!a)throw Error(`chainId is required.`);let f=await Bz(t,{account:d,accessKey:r,chainId:a,admin:i,expiry:o,limits:s,scopes:c,witness:l});return await mz(e,{hints:{KeyAlreadyExists:[`This access key is already authorized. Update its spending limits instead.`]}})(t,{...u,keyAuthorization:f})}e.inner=t;function n(e){let[t]=OI({abi:yL,logs:e,eventName:`KeyAuthorized`,strict:!0});if(!t)throw Error("`KeyAuthorized` event not found.");return t}e.extractEvent=n})(Mz||={});async function Nz(e,t){return Nz.inner(vL,e,t)}(function(e){async function t(t,n,r){let{witness:i,...a}=r,o=e.call({witness:i});return await mz(t)(n,{...a,...o})}e.inner=t;function n(e){let{witness:t}=e;return Ez({address:cR,abi:yL,functionName:`burnKeyAuthorizationWitness`,args:[t]})}e.call=n;function r(e){let[t]=OI({abi:yL,logs:e,eventName:`KeyAuthorizationWitnessBurned`,strict:!0});if(!t)throw Error("`KeyAuthorizationWitnessBurned` event not found.");return t}e.extractEvent=r})(Nz||={});async function Pz(e,t){let{account:n=e.account,accessKey:r,...i}=t;if(!n)throw Error(`account is required.`);let a=en(n),o=await mz(pI)(e,{...i,account:null,...Pz.call({account:a.address,accessKey:r})});return{address:o.keyId,keyType:Az[o.signatureType]??`secp256k1`,expiry:o.expiry,spendPolicy:jz[`${o.enforceLimits}`],isRevoked:o.isRevoked}}(function(e){function t(e){let{account:t,accessKey:n}=e;return Ez({address:cR,abi:yL,functionName:`getKey`,args:[t,Uz(n)]})}e.call=t})(Pz||={});async function Fz(e,t){let{account:n=e.account,accessKey:r,token:i,...a}=t;if(!n)throw Error(`account is required.`);let o=en(n),s=e.chain?.hardfork;if(s&&fz(s,`t3`))return{remaining:await mz(pI)(e,{...a,...Fz.call({account:o.address,accessKey:r,token:i})}),periodEnd:void 0};let[c,l]=await mz(pI)(e,{...a,...Fz.callWithPeriod({account:o.address,accessKey:r,token:i})});return{remaining:c,periodEnd:l}}(function(e){function t(e){let{account:t,accessKey:n,token:r}=e;return Ez({address:cR,abi:yL,functionName:`getRemainingLimit`,args:[t,Uz(n),r]})}e.call=t;function n(e){let{account:t,accessKey:n,token:r}=e;return Ez({address:cR,abi:yL,functionName:`getRemainingLimitWithPeriod`,args:[t,Uz(n),r]})}e.callWithPeriod=n})(Fz||={});async function Iz(e,t){let{account:n=e.account,accessKey:r,...i}=t;if(!n)throw Error(`account is required.`);let a=en(n);return mz(pI)(e,{...i,account:null,...Iz.call({account:a.address,accessKey:r})})}(function(e){function t(e){let{account:t,accessKey:n}=e;return Ez({address:cR,abi:yL,functionName:`isAdminKey`,args:[t,Uz(n)]})}e.call=t})(Iz||={});async function Lz(e,t){let{account:n=e.account,witness:r,...i}=t;if(!n)throw Error(`account is required.`);let a=en(n);return mz(pI)(e,{...i,account:null,...Lz.call({account:a.address,witness:r})})}(function(e){function t(e){let{account:t,witness:n}=e;return Ez({address:cR,abi:yL,functionName:`isKeyAuthorizationWitnessBurned`,args:[t,n]})}e.call=t})(Lz||={});async function Rz(e,t){return Rz.inner(vL,e,t)}(function(e){async function t(t,n,r){let{accessKey:i,...a}=r,o=e.call({accessKey:i});return await mz(t)(n,{...a,...o})}e.inner=t;function n(e){let{accessKey:t}=e;return Ez({address:cR,abi:yL,functionName:`revokeKey`,args:[Uz(t)]})}e.call=n;function r(e){let[t]=OI({abi:yL,logs:e,eventName:`KeyRevoked`,strict:!0});if(!t)throw Error("`KeyRevoked` event not found.");return t}e.extractEvent=r})(Rz||={});async function zz(e,t){let{chainId:n=e.chain?.id}=t,r=t.account??e.account;if(!r)throw Error(`account is required.`);if(!n)throw Error(`chainId is required.`);let i=en(r),a=await(async()=>{if(`configurable`in t)return t.configurable;if(i.source!==`configurable`)return;let e=i;if(!e.config)throw Error(`An account config is required to prepare a key authorization.`);return{config:e.config}})(),o=sz(i,{...t,chainId:BigInt(n),key:t.accessKey}),s=i.source===`configurable`&&a?BO({account:i.address,config:a.config,payload:o}):o;return{...t,account:i,chainId:n,configurable:a,signPayload:s}}async function Bz(e,t){let{accessKey:n,account:r,chainId:i,configurable:a,signPayload:o,...s}=`signPayload`in t?t:await zz(e,t);return cz(r,{chainId:BigInt(i),key:n,configurable:a,...s})}async function Vz(e,t){return Vz.inner(vL,e,t)}(function(e){async function t(t,n,r){let{accessKey:i,token:a,limit:o,...s}=r,c=e.call({accessKey:i,token:a,limit:o});return await mz(t)(n,{...s,...c})}e.inner=t;function n(e){let{accessKey:t,token:n,limit:r}=e;return Ez({address:cR,abi:yL,functionName:`updateSpendingLimit`,args:[Uz(t),n,r]})}e.call=n;function r(e){let[t]=OI({abi:yL,logs:e,eventName:`SpendingLimitUpdated`,strict:!0});if(!t)throw Error("`SpendingLimitUpdated` event not found.");return t}e.extractEvent=r})(Vz||={});async function Hz(e,t){let{account:n,admin:r,hash:i,signature:a,...o}=t;return mz(pI)(e,{...o,...Hz.call({account:n,admin:r,hash:i,signature:a})})}(function(e){function t(e){let{account:t,admin:n=!0,hash:r,signature:i}=e;return Ez({address:mR,abi:TL,functionName:n?`verifyKeychainAdmin`:`verifyKeychain`,args:[t,r,i]})}e.call=t})(Hz||={});function Uz(e){return typeof e==`string`?e:e.accessKeyAddress}var Wz=class extends uz{constructor(e,t={}){let{account:n,accessKey:r}=e;super(e,{shortMessage:`Access key "${r}" failed: ${e.error.message}`,...t,details:{account:n,"access key":r,...t.details},docsPath:`/tempo/guides/access-keys/manage`,name:t.name??`AccessKeyError`}),Object.defineProperty(this,"account",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"accessKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.account=n,this.accessKey=r}},Gz=class extends Wz{constructor(e){let{amount:t,decimals:n,fee:r,periodEnd:i,remaining:a,token:o}=e;super(e,{details:{token:o,amount:_z(t,n),remaining:_z(a,n),"exceeded by":t!==void 0&&a!==void 0?_z(t-a,n):void 0,"resets at":vz(i)},name:`AccessKeySpendingLimitExceededError`,shortMessage:`Access key "${e.accessKey}" exceeded its spending limit${o?` for token "${o}"`:``}${r?` while paying fees`:``}.`}),Object.defineProperty(this,"amount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"decimals",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fee",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"periodEnd",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"remaining",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.amount=t,this.decimals=n,this.fee=r,this.periodEnd=i,this.remaining=a,this.token=o}},Kz=class extends Wz{constructor(e){super(e,{details:{"expired at":vz(e.expiry)},name:`AccessKeyExpiredError`,shortMessage:`Access key "${e.accessKey}" has expired.`}),Object.defineProperty(this,"expiry",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.expiry=e.expiry}},qz=class extends Wz{constructor(e){let{selector:t,target:n}=e;super(e,{details:{target:n,selector:t},name:`AccessKeyCallNotAllowedError`,shortMessage:`Access key "${e.accessKey}" is not allowed to make this call.`}),Object.defineProperty(this,"selector",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.selector=t,this.target=n}},Jz=class extends Wz{constructor(e){let{expiry:t,limited:n}=e;super(e,{details:{expires:vz(t),"spending limits":n===void 0?void 0:n?`enforced`:`none`},name:`AccessKeyAlreadyExistsError`,shortMessage:`Access key "${e.accessKey}" is already authorized on account "${e.account}".`}),Object.defineProperty(this,"expiry",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"limited",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.expiry=t,this.limited=n}},Yz=class extends Wz{constructor(e){let[t,n]=(e.error.args??[]).map(e=>Az[Number(e)]);super(e,{details:{expected:t,actual:n},name:`AccessKeySignatureTypeMismatchError`,shortMessage:`Access key "${e.accessKey}" signed with a ${n??`different`} key, but was authorized as a ${t??`different`} key.`}),Object.defineProperty(this,"expected",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"actual",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.expected=t,this.actual=n}},Xz=class extends Wz{constructor(e){let{expiry:t,minimum:n}=e;super(e,{details:{expiry:vz(t),minimum:vz(n)},name:`AccessKeyExpiryInPastError`,shortMessage:`Access key "${e.accessKey}" expiry must be later${n?` than ${vz(n)}`:``}.`}),Object.defineProperty(this,"expiry",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"minimum",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.expiry=t,this.minimum=n}},Zz={address:cR,abi:yL};function Qz(e){let{call:t,parameters:n,signer:r}=e;if(!r?.accessKey||t&&lt(t.address,`0xaAAAaaAA00000000000000000000000000000000`))return;let i=n.keyAuthorization?.address;if(!i||lt(i,r.accessKey))return{...e.base,account:r.address,accessKey:r.accessKey}}function $z(e){let{feePayer:t}=e.parameters;if(typeof t!=`object`)return;let n=en(t);if(n.source===`accessKey`&&`accessKeyAddress`in n)return{...e.base,account:n.address,accessKey:n.accessKeyAddress}}function eB(e){let{call:t,parameters:n,signer:r}=e,i=n.keyAuthorization?.address??t?.arg(`keyId`);if(r&&i)return{...e.base,account:r.address,accessKey:i}}var tB={...Object.fromEntries(yL.flatMap(e=>e.type===`error`?[[mt(e),e=>{let t=Qz(e);return t&&new Wz(t)}]]:[])),"CallNotAllowed()":e=>{let t=Qz(e);if(t)return new qz({...t,selector:e.parameters.data?.slice(0,10),target:e.call?.address??e.parameters.to})},"ExpiryInPast()":e=>{let t=eB(e);if(!t)return;let[,n,r]=/expiry (\d+) <= min allowed (\d+)/.exec(e.details)??[],i=e.parameters.keyAuthorization?.expiry??e.call?.arg(`expiry`)??e.call?.arg(`config`)?.expiry;return new Xz({...t,expiry:n?BigInt(n):i==null?void 0:BigInt(i),minimum:r?BigInt(r):void 0})},"KeyAlreadyExists()":async e=>{let t=eB(e);if(!t)return;let[n]=await e.read([{...Zz,functionName:`getKey`,args:[t.account,t.accessKey]}]);return new Jz({...t,expiry:n?.result?.expiry,limited:n?.result?.enforceLimits})},"KeyExpired()":async e=>{let t=Qz(e);if(!t)return;let[n]=await e.read([{...Zz,functionName:`getKey`,args:[t.account,t.accessKey]}]);return new Kz({...t,expiry:n?.result?.expiry})},"SignatureTypeMismatch(uint8,uint8)":e=>{let t=Qz(e)??eB(e);return t&&new Yz(t)},"SpendingLimitExceeded()":async e=>{let t=e.validation,n=t&&e.parameters.feePayer?$z(e):Qz(e);if(!n)return;let r=t?hz(e):gz(e.call?.address)?e.call.address:void 0;if(!r)return new Gz({...n,fee:t,hints:t?[...n.hints,`Pay fees with another token.`]:n.hints});let i=[n.account,n.accessKey,r],[a,o,s]=await e.read([{...Zz,functionName:`getRemainingLimitWithPeriod`,args:i},{...Zz,functionName:`getRemainingLimit`,args:i},{address:r,abi:ML,functionName:`decimals`}]);return new Gz({...n,amount:t?void 0:e.call?.arg(`amount`),decimals:s?.result,fee:t,periodEnd:a?.result?.[1]||void 0,remaining:a?.result?.[0]??o?.result,token:r})}};function nB(e){if(!QR(e))return MF(e);let t=e.blockTimestamp==null?void 0:BigInt(e.blockTimestamp),n=e.operation,{feePayerSignature:r,gasPrice:i,nonce:a,...o}=xF(e);return{...o,accessList:o.accessList,...t!==void 0&&{blockTimestamp:t},feePayerSignature:r?{r:V(r.r,{size:32}),s:V(r.s,{size:32}),v:BigInt(r.v??27),yParity:r.yParity}:void 0,nonce:Number(a),operation:iB(n),typeHex:yF[o.type],type:o.type}}function rB(e){return{...CI(e),operation:iB(e.operation),...e.status===`pending`?{status:`pending`,type:`tempo`}:{}}}function iB(e){if(!e)return;let t=DP(e);if(t.type!==`transaction`)throw Error(`Expected an account transaction operation.`);return t}function aB(e,t){let n=e,r=n.account?en(n.account):void 0,i=n.owner?en(n.owner):void 0;if(i?.type===`json-rpc`)throw Error(`A local owner account is required to approve a configurable account transaction.`);if(!QR(n))return Jt(e,t);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;let{owner:a,signatures:o,...s}=n,c=wF({...s,type:`tempo`});t===`estimateGas`&&(c.maxFeePerGas=void 0,c.maxPriorityFeePerGas=void 0),c.to=void 0,c.data=void 0,c.value=void 0;let l=i??r,[u,d]=(()=>{let e=l&&`keyType`in l?l.keyType:l?.source;return e?e===`webAuthn`?[`webAuthn`,`0x0578`]:[`p256`,`secp256k1`].includes(e)?[e,void 0]:[n.keyType,oB(n.keyData)]:[n.keyType,oB(n.keyData)]})(),f=l&&`accessKeyAddress`in l?l.accessKeyAddress:n.keyId;return r&&(c.from=r.address),{...c,...n.capabilities?{capabilities:n.capabilities}:{},...d?{keyData:d}:{},...f?{keyId:f}:{},...u?{keyType:u}:{},...n.accountSimulation?{accountSimulation:void 0}:{},...n.owner?{owner:void 0}:{},...n.feePayer===void 0?{}:{feePayer:typeof n.feePayer==`object`?en(n.feePayer):n.feePayer},...`feePayerSignature`in n&&n.feePayerSignature!==void 0?{feePayerSignature:n.feePayerSignature}:{}}}function oB(e){if(!e)return e;let t=(e.length-2)/2;return t<=4?e:V(t,{size:2})}var sB=new Map;async function cB(e){sB.set(e,(sB.get(e)??0)+1),await Promise.resolve();let t=(sB.get(e)??0)>1;return queueMicrotask(()=>{let t=sB.get(e)??0;t<=1?sB.delete(e):sB.set(e,t-1)}),t}var lB=25,uB=((e,t)=>ez(e,t)),dB={blockTime:1e3,extendSchema:bI(),formatters:{transaction:NF({exclude:[`aaAuthorizationList`],format:nB}),transactionReceipt:wI({format:rB}),transactionRequest:Vt({format:aB})},prepareTransactionRequest:[async(e,{client:t,phase:n})=>{let r=e;if(r.hash){if(!r.account||typeof r.account==`string`||r.account.source!==`configurable`)throw Error(`A local configurable account is required to approve a stored configurable account transaction.`);if(!r.owner||typeof r.owner==`string`)throw Error(`A local owner account is required to approve a stored configurable account transaction.`);if(r.owner.source!==`root`)throw Error(`A Tempo owner account is required to approve a stored configurable account transaction.`);let e=await iI(t,FF,`getTransaction`)({hash:r.hash}),n=`operation`in e?e.operation:void 0;if(!n)throw Error(`Expected an account operation transaction.`);if(!lt(n.account,r.account.address))throw Error(`Account operation account does not match the requested account.`);let i=$R(n.transaction);if(TP({account:n.account,config:n.config,transaction:n.transaction,type:`transaction`}).toLowerCase()!==r.hash.toLowerCase())throw Error(`Account operation hash does not match transaction.`);return{...i,gas:i.gas??0n,maxFeePerGas:i.maxFeePerGas??0n,maxPriorityFeePerGas:i.maxPriorityFeePerGas??0n,account:r.account,from:n.account,accountSimulation:fB({config:n.config,local:r.account}),owner:r.owner}}if(n===`afterFillParameters`)return r.gas!==void 0&&r.feePayer&&!r.feePayerSignature&&(r.keyAuthorization?.signature.type===`webAuthn`?r.gas=(r.gas??0n)+20000n:r.account?.source===`accessKey`&&(r.gas=(r.gas??0n)+10000n)),r;let i=(()=>{if(r.account?.source===`configurable`)return{account:r.account.address,config:r.account.config,local:r.account}})();if(r.owner&&!i)throw Error(`A configurable account is required when an owner is provided.`);if(r.owner&&typeof r.owner==`string`)throw Error(`A local owner account is required to approve a configurable account transaction.`);if(r.owner&&r.owner.source!==`root`)throw Error(`A Tempo owner account is required to approve a configurable account transaction.`);let a=!!i&&!!r.owner&&t.transport.accounts===!0;if(i){let{account:e,local:n}=i;if(!e)throw Error(`A configurable account address is required with a current config.`);let o=await(async()=>{if(i.config)return i.config;if(!a)return;let n=await iI(t,Dz,`getConfig`)({address:e});if(!n)throw Error(`No current account config is cached for account ${e}. Provide the current config.`);return n})();if(!o)throw Error(`An account config is required to prepare a transaction.`);r.from=e,r.accountSimulation=fB({config:o,local:n})}let o=await(async()=>{if(r.nonceKey===`expiring`||r.nonceKey===Kt)return!0;if(r.nonceKey!==void 0||i)return!1;if(r.feePayer&&r.nonceKey===void 0)return!0;let e=r.account,t=typeof e==`string`?e:e?.address;return t&&r.nonceKey===void 0?await cB(t.toLowerCase()):!1})();if(a&&r.nonceKey===void 0?(r.nonceKey=Lt(gt(31))+1n,r.nonce=0):o?(r.nonceKey=Kt,r.nonce??=0,r.validAfter===void 0&&(r.validAfter=mB()),r.validBefore===void 0&&(r.validBefore=Math.floor(Date.now()/1e3)+lB)):r.nonceKey!==void 0&&(r.nonce=typeof r.nonce==`number`?r.nonce:0),!r.keyAuthorization&&r.account?.source===`accessKey`){let e=r.account.keyAuthorizationManager;if(e){let n=r.chainId??r.chain?.id;if(n!==void 0){let i=r.account.address,a=r.account.accessKeyAddress,o={address:i,accessKey:a,chainId:n},s=await e.get(o);if(s){let n=BigInt(Math.floor(Date.now()/1e3));if(s.expiry!=null&&BigInt(s.expiry)<=n)await e.remove(o);else{let c=await iI(t,Pz,`getMetadata`)({account:i,accessKey:a});lt(c.address,a)&&!c.isRevoked&&c.expiry>n?await e.remove(o):r.keyAuthorization=s}}}}}return!r.feeToken&&r.chain?.feeToken&&(r.feeToken=r.chain.feeToken),r},{runAt:[`beforeFillTransaction`,`afterFillParameters`]}],serializers:{transaction:uB,async transactionEnvelope({serializedTransaction:e,transaction:t}){let n=t;if(!n.accountSimulation)return e;try{TM(e)}catch{if($R(e).signature?.type===`configurable`)return e;throw Error(`A Tempo owner account is required to approve a configurable account transaction.`)}return await uB({...n,signatures:[...n.signatures??[],e]})}},async verifyHash(e,t){let{address:n,hash:r,signature:i,mode:a}=t,o=(()=>{if(typeof i==`string`)try{return TM(i)}catch{return}})();if(o){if(o?.type===`keychain`&&a===`allowAccessKey`){let i=o.version===`v2`?Wt(Bt(`0x04`,r,n)):r,a=(()=>{try{return CM({payload:i,signature:o.inner})}catch{return}})();if(!a)return!1;let s=await Pz(e,{account:n,accessKey:a,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});return s.isRevoked||s.expiry<=BigInt(Math.floor(Date.now()/1e3))?!1:NM(o.inner,{address:a,payload:i})}if(o.type===`p256`||o.type===`webAuthn`){let i=await AF(e,{address:n,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});if(!i||i===`0xef01007702c00000000000000000000000000000000000`)return NM(o,{address:n,payload:r})}}return await iI(e,mI,`verifyHash`)({...t,chain:null})}};function fB(e){let{config:t,local:n}=e;return{approvals:hB(t).map(e=>{let t=n?.owners.find(t=>lt(t.address,e.owner));return{...pB(t),owner:e.owner}}),config:t}}function pB(e){let 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 mB(){let e=BigInt(Math.floor(Date.now()/1e3))-60n;return e<=0n?0:Number(BigInt(gt(8))%e)}function hB(e){let t=[...e.owners].sort((e,t)=>Number(t.weight)-Number(e.weight)||e.owner.toLowerCase().localeCompare(t.owner.toLowerCase())),n=[],r=0;for(let i of t.slice(0,8)){if(r>=Number(e.threshold))break;n.push(i),r+=Number(i.weight)}return n.sort((e,t)=>e.owner.toLowerCase().localeCompare(t.owner.toLowerCase()))}var gB=yI({...dB,id:4217,blockExplorers:{default:{name:`Tempo Explorer`,url:`https://explore.tempo.xyz`}},contracts:{earnFactory:{address:`0x3085A8003f340CD51C72D9e1a1298CDafB171B02`},erc4626EngineFactory:{address:`0xd43D00981222a8db444A528E69f19E3cE5A7D2Ff`}},name:`Tempo Mainnet`,nativeCurrency:{name:`USD`,symbol:`USD`,decimals:6},rpcUrls:{default:{http:[`https://rpc.tempo.xyz`],webSocket:[`wss://rpc.tempo.xyz`]}}}),_B=yI({...dB,id:42431,hardfork:`t5`,blockExplorers:{default:{name:`Tempo Explorer`,url:`https://explore.testnet.tempo.xyz`}},contracts:{earnFactory:{address:`0x1de6B233984583F4d936ae4265f3b60282b70cc6`},erc4626EngineFactory:{address:`0x0d57c10249eb3a92b7d81bBA6221F80F2865448A`}},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});function vB(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function yB(e,t=`|`){return e.map(e=>PB(e)).join(t)}function bB(e,t){return typeof t==`bigint`?t.toString():t}function xB(e){return e==null}function SB(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function CB(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function wB(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function TB(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}var EB=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function DB(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function OB(e){if(DB(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return DB(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function kB(e){return OB(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var AB=new Set([`string`,`number`,`symbol`]);function jB(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function MB(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function NB(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function PB(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}var FB={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},IB={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function LB(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function RB(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function zB(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function BB(e){return typeof e==`string`?e:e?.message}function VB(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function HB(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function UB(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:BB(e.inst?._zod.def?.error?.(e))??BB(a?.(e))??BB(t?.error?.(e))??BB(n.customError?.(e))??BB(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var WB=/[\uD800-\uDBFF]/;function GB(e){let t=e.length;if(!WB.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function KB(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function qB(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function JB(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function YB(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):QB(e,n,r.value)}}function XB(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function ZB(e,t,n){return XB(e,t,n,!1)}function QB(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:XB(this,t,n.bind(this))},set(e){XB(this,t,e)}})}var $B,eV=!1,tV={configurable:!0,get(){eV=!0}};function nV(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&$B!==e._zod?$B=void 0:($B=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,tV);let e=eV;eV=!1;try{let r=n(this);return eV?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),eV||=e,r}catch(n){throw delete this[t],eV||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}var rV=`~constantCatch`;function iV(e){let t=()=>e;return t[rV]=!0,t}var aV,oV={value:void 0,enumerable:!1},sV=`captureStackTrace`in Error?Error:null;function cV(e){let t=sV;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return sV=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function lV(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){oV.value=new a(r);try{Object.defineProperty(n,"_zod",oV)}finally{oV.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),YB(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?cV(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var uV=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},dV=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(aV=globalThis).__zod_globalConfig??(aV.__zod_globalConfig={});var fV=globalThis.__zod_globalConfig;function pV(e){return e&&Object.assign(fV,e),fV}function mV(){let e=this._zod;return e.message??=JSON.stringify(e.def,bB,2),e.message}function hV(e){this._zod.message=e}var gV={get:mV,set:hV,enumerable:!0,configurable:!0},_V={value:void 0,enumerable:!1},vV=new WeakSet([Object.prototype,Error.prototype]),yV=(e,t)=>{e.name=`$ZodError`,_V.value=t,Object.defineProperty(e,"issues",_V),_V.value=void 0,Object.defineProperty(e,"message",gV);let n=Object.getPrototypeOf(e);vV.has(n)||(vV.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},bV=lV(`$ZodError`,yV);lV(`$ZodError`,yV,void 0,{Parent:Error});function xV(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function SV(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?xV(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function CV(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function wV(e,t){return{callee:t?.callee??e,Err:t?.Err}}var TV=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new uV;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>UB(e,o,pV())));throw EB(n,a?.callee??t),n}return s.value};return t},EV=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>UB(e,o,pV())));throw EB(n,a?.callee??t),n}return s.value};return t},DV=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new uV;return a.issues.length?OV(e,a.issues,i):{success:!0,data:a.value}};function OV(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>UB(e,n,pV()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var kV=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?OV(e,a.issues,i):{success:!0,data:a.value}},AV=Symbol.for(`zod.compile.invalid`),jV=Symbol.for(`zod.compile.fallback`),MV=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==AV)return!0;if(r.definite===!0&&n===void 0)return!1}return NV(e,t,n)});function NV(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[jV]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new uV;return a.issues.length===0}var PV=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},FV=e=>{let t=TV(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,wV(n,a))};return n},IV=e=>{let t=TV(e),n=(e,r,i,a)=>t(e,r,i,wV(n,a));return n},LV=e=>{let t=EV(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,wV(n,a))};return n},RV=e=>{let t=EV(e),n=async(e,r,i,a)=>await t(e,r,i,wV(n,a));return n},zV=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return DV(e)(t,n,i)},BV=e=>(t,n,r)=>DV(e)(t,n,r),VV=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return kV(e)(t,n,i)},HV=e=>async(t,n,r)=>kV(e)(t,n,r),UV=lV(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),WV=e=>{let t=e.value;return!xB(t)&&t.length!==void 0},GV=lV(`$ZodCheckMaxLength`,(e,t)=>{var n;UV.init(e,t),(n=e._zod.def).when??(n.when=WV),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?GB(r):i)<=t.maximum)return;let a=KB(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),KV=lV(`$ZodCheckMinLength`,(e,t)=>{var n;UV.init(e,t),(n=e._zod.def).when??(n.when=WV),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?GB(r):i)>=t.minimum)return;let a=KB(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),qV=lV(`$ZodCheckLengthEquals`,(e,t)=>{var n;UV.init(e,t),(n=e._zod.def).when??(n.when=WV),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?GB(r):i;if(a===t.length)return;let o=KB(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),JV=lV(`$ZodCheckOverwrite`,(e,t)=>{UV.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),YV={major:4,minor:6,patch:7},XV=lV(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=YV;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=LB(t),a;for(let o of n){if(o._zod.def.when){if(RB(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new uV;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(HB(t.issues,n,e),i||=LB(t,n))});else{if(t.issues.length===n)continue;HB(t.issues,n,e),i||=LB(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(LB(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new uV;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new uV;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return ZB(this,`~standard`,$V(this))},set"~standard"(e){XB(this,`~standard`,e)}}),ZV=(e,t)=>e.issues.length?{issues:e.issues.map(e=>UB(e,t,pV()))}:{value:e.value};async function QV(e,t){let n={async:!0};return ZV(await e._zod.run({value:t,issues:[]},n),n)}function $V(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return ZV(r,n)}catch{}return QV(e,t)},vendor:`zod`,version:1}}function eH(e,t){let n=VB(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,a)=>{let o=t(n.value);if(o>r&&!a?.skipChecks&&a?.direction!==`backward`){for(let[t,r]of VB(e._zod.def.checks))if(o>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=!1,HB(n.issues,t,e),n}}return i(n,a)}}var tH=e=>Array.isArray(e)?e.length:-1;function nH(e,t,n){e.issues.length&&t.issues.push(...zB(n,e.issues)),t.value[n]=e.value}var rH=lV(`$ZodArray`,(e,t)=>{XV.init(e,t);let n=fV.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>nH(t,r,e)));else if(nH(c,r,e),s&&c.issues.length!==0&&LB(c))break}return o.length?Promise.all(o).then(()=>r):r},eH(e,tH)});function iH(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!LB(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>UB(e,r,pV())))}),t)}var aH=lV(`$ZodUnion`,(e,t)=>{XV.init(e,t),nV(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),nV(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),nV(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),nV(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>SB(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>iH(t,r,e,i)):iH(o,r,e,i)}}),oH=lV(`$ZodIntersection`,(e,t)=>{XV.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>cH(e,t,n)):cH(e,i,a)}});function sH(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(OB(e)&&OB(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=sH(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=sH(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function cH(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=sH(t.value,n.value);if(!c.valid){if(LB(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var lH=lV(`$ZodEnum`,(e,t)=>{XV.init(e,t);let n=vB(t.entries),r=new Set(n);e._zod.values=r,nV(e,`pattern`,e=>{let t=vB(e.def.entries).filter(e=>AB.has(typeof e));return RegExp(t.length?`^(${t.map(e=>jB(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),uH=lV(`$ZodTransform`,(e,t)=>{XV.init(e,t),e._zod.optin=`optional`,fV.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new dV(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new uV;return n.value=i,n}});function dH(e,t){return e.value=t.issues.length?void 0:t.value,e}var fH=lV(`$ZodOptional`,(e,t)=>{XV.init(e,t),nV(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,nV(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),nV(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${SB(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>dH(e,t)):dH(e,r)}return t.innerType._zod.run(e,n)}}),pH=lV(`$ZodExactOptional`,(e,t)=>{fH.init(e,t),nV(e,`values`,e=>e.def.innerType._zod.values),nV(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),mH=lV(`$ZodNullable`,(e,t)=>{XV.init(e,t),nV(e,`optin`,e=>e.def.innerType._zod.optin),nV(e,`optout`,e=>e.def.innerType._zod.optout),nV(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${SB(t.source)}|null)$`):void 0}),nV(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),hH=lV(`$ZodDefault`,(e,t)=>{XV.init(e,t),e._zod.optin=`defaulted`,nV(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>gH(e,t)):gH(r,t)}});function gH(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var _H=lV(`$ZodPrefault`,(e,t)=>{XV.init(e,t),e._zod.optin=`defaulted`,nV(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),vH=lV(`$ZodNonOptional`,(e,t)=>{XV.init(e,t),nV(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>yH(t,e)):yH(i,e)}});function yH(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function bH(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>UB(e,r,pV()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var xH=lV(`$ZodCatch`,(e,t)=>{XV.init(e,t),nV(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),nV(e,`optout`,e=>e.def.innerType._zod.optout),nV(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>bH(e,r,t,n)):bH(e,r,t,n)}}),SH=lV(`$ZodPipe`,(e,t)=>{XV.init(e,t),nV(e,`values`,e=>e.def.in._zod.values),nV(e,`optin`,e=>e.def.in._zod.optin),nV(e,`optout`,e=>e.def.out._zod.optout),nV(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>CH(e,t.in,n)):CH(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>CH(e,t.out,n)):CH(r,t.out,n)}});function CH(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var wH=lV(`$ZodReadonly`,(e,t)=>{XV.init(e,t),nV(e,`propValues`,e=>e.def.innerType._zod.propValues),nV(e,`values`,e=>e.def.innerType._zod.values),nV(e,`optin`,e=>e.def.innerType?._zod?.optin),nV(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(TH):TH(r)}});function TH(e){return e.memo||(e.value=Object.freeze(e.value)),e}var EH=lV(`$ZodCustom`,(e,t)=>{UV.init(e,t),XV.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>DH(t,n,r,e));DH(i,n,r,e)}});function DH(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(JB(e))}}var OH=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},kH=`~memo`,AH=[];function jH(e){return typeof e==`object`&&!!e}function MH(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var NH=new WeakMap,PH=0,FH=1,IH=2;function LH(e,t,n){let r=NH.get(e);if(r!==void 0)return r?IH:PH;if(t.has(e))return IH;t.add(e);let i=PH,a=e=>{if(i!==IH&&e?._zod){let r=LH(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=PH;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?FH:o.value?._zod?LH(o.value,t,n):PH;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=wB(c);s(e?o(e,!0):FH),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?LH(r,t,!1):FH);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),RH(e,i)}function RH(e,t){return t!==FH&&NH.set(e,t===IH),t}function zH(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var BH,VH=[],HH={alloc(e,t,n){let r=BH;if(!r)return n;BH=void 0;let i={value:n,issues:null};return r.set(t.value,i),VH.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&WH(n,e.value))throw new OH;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=LH(e,new Set,!1);if(i===PH)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===IH||r?n=!0:r=!0}let l=s.value;if(!jH(l))return t(s,c);let u=c[kH];u||(u={buckets:new WeakMap,backEdges:void 0},c[kH]=u);let d;i===c?d=a:(d=zH(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...MH(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;BH=d;let p=VH.length,m=t(s,c);BH=void 0;let h=VH.length>p?VH.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?MH(e.issues):AH),e)):(h&&(h.issues=m.issues.length?MH(m.issues):AH),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function UH(){return HH}function WH(e,t){let n=e[kH]?.backEdges;return n!==void 0&&jH(t)&&n.has(t)}var GH=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(qB(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${PB(e.values[0])}`:`Invalid option: expected one of ${yB(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${yB(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function KH(){return{localeError:GH()}}var qH,JH=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function YH(){return new JH}(qH=globalThis).__zod_globalRegistry??(qH.__zod_globalRegistry=YH());var XH=globalThis.__zod_globalRegistry;function ZH(e,t){return new GV({check:`max_length`,...NB(t),maximum:e})}function QH(e,t){return new KV({check:`min_length`,...NB(t),minimum:e})}function $H(e,t){return new qV({check:`length_equals`,...NB(t),length:e})}function eU(e){return new JV({check:`overwrite`,tx:e})}function tU(e,t,n){return new e({type:`array`,element:t,...NB(n)})}function nU(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...NB(n)})}function rU(e,t){let n=iU(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(JB(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(JB(r))}},e(t.value,t)),t);return n}function iU(e,t){let n=new UV({check:`custom`,...NB(t)});return n._zod.check=e,n}function aU(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&CB(e,t,n[t]);return e}function oU(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??XH,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function sU(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function cU(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,cU(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&aU(o.schema,c),t.io===`input`&&vU(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function lU(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function uU(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${lU(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+lU(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
29
+ `),{docsPath:e,docsSlug:`account`,name:`AccountNotFoundError`})}},jI=class extends $e{constructor({docsPath:e,metaMessages:t,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:e,metaMessages:t,name:`AccountTypeNotSupportedError`})}};function MI({chain:e,currentChainId:t}){if(!e)throw new tn;if(t!==e.id)throw new it({chain:e,currentChainId:t})}function NI(e,{docsPath:t,...n}){let r=(()=>{let t=Pt(e,n);return t instanceof It?e:t})();return new Ge(r,{docsPath:t,...n})}async function PI(e){let t=await e.request({method:`eth_chainId`},{dedupe:!0});return hn(t)}var FI=class extends $e{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:`BaseFeeScalarError`})}},II=class extends $e{constructor(){super(`Chain does not support EIP-1559 fees.`,{name:`Eip1559FeesNotSupportedError`})}},LI=class extends $e{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Nt(e)} gwei).`,{name:`MaxFeePerGasTooLowError`})}},RI=class extends $e{constructor({blockHash:e,blockNumber:t}){let n=`Block`;e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`,{name:`BlockNotFoundError`})}};function zI(e,t){let n=(e.transactions??[]).map(e=>typeof e==`string`?e:MF(e));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}}async function BI(e,{blockHash:t,blockNumber:n,blockTag:r=e.experimental_blockTag??`latest`,includeTransactions:i}={}){let a=i??!1,o=n===void 0?void 0:z(n),s=null;if(s=t?await e.request({method:`eth_getBlockByHash`,params:[t,a]},{dedupe:!0}):await e.request({method:`eth_getBlockByNumber`,params:[o||r,a]},{dedupe:!!o}),!s)throw new RI({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||zI)(s,`getBlock`)}async function VI(e){let t=await e.request({method:`eth_gasPrice`});return BigInt(t)}async function HI(e,t){let{block:n,chain:r=e.chain,request:i}=t||{};try{let t=r?.fees?.maxPriorityFeePerGas??r?.fees?.defaultPriorityFee;if(typeof t==`function`){let r=await t({block:n||await iI(e,BI,`getBlock`)({}),client:e,request:i});if(r===null)throw Error();return r}if(t!==void 0)return t;let a=await e.request({method:`eth_maxPriorityFeePerGas`});return ke(a)}catch{let[t,r]=await Promise.all([n?Promise.resolve(n):iI(e,BI,`getBlock`)({}),iI(e,VI,`getGasPrice`)({})]);if(typeof t.baseFeePerGas!=`bigint`)throw new II;let i=r-t.baseFeePerGas;return i<0n?0n:i}}async function UI(e,t){let{block:n,chain:r=e.chain,request:i,type:a=`eip1559`}=t||{},o=await(async()=>typeof r?.fees?.baseFeeMultiplier==`function`?r.fees.baseFeeMultiplier({block:n,client:e,request:i}):r?.fees?.baseFeeMultiplier??1.2)();if(o<1)throw new FI;let s=10**(o.toString().split(`.`)[1]?.length??0),c=e=>e*BigInt(Math.round(o*s))/BigInt(s),l=n||await iI(e,BI,`getBlock`)({});if(typeof r?.fees?.estimateFeesPerGas==`function`){let t=await r.fees.estimateFeesPerGas({block:n,client:e,multiply:c,request:i,type:a});if(t!==null)return t}if(a===`eip1559`){if(typeof l.baseFeePerGas!=`bigint`)throw new II;let t=typeof i?.maxPriorityFeePerGas==`bigint`?i.maxPriorityFeePerGas:await HI(e,{block:l,chain:r,request:i}),n=c(l.baseFeePerGas);return{maxFeePerGas:i?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:i?.gasPrice??c(await iI(e,VI,`getGasPrice`)({}))}}var WI=class extends $e{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:a,gasPrice:o,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,to:u,value:d}){let f=Fe({from:t?.address,to:u,value:d!==void 0&&`${le(d)} ${r?.nativeCurrency?.symbol||`ETH`}`,data:i,gas:a,gasPrice:o!==void 0&&`${Nt(o)} gwei`,maxFeePerGas:s!==void 0&&`${Nt(s)} gwei`,maxPriorityFeePerGas:c!==void 0&&`${Nt(c)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages,` `]:[],`Estimate Gas Arguments:`,f].filter(Boolean),name:`EstimateGasExecutionError`}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}};function GI(e,{docsPath:t,...n}){return new WI((()=>{let t=Pt(e,n);return t instanceof It?e:t})(),{docsPath:t,...n})}async function KI(e,t){let{account:n=e.account,prepare:r=!0}=t,i=n?en(n):void 0,a=(()=>{if(Array.isArray(r))return r;if(i?.type!==`local`)return[`blobVersionedHashes`]})();try{let n=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await nI({authorization:t.authorizationList[0]}).catch(()=>{throw new $e("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:o,authorizationList:s,blobs:c,blobVersionedHashes:l,blockNumber:u,blockTag:d,data:f,gas:p,gasPrice:m,maxFeePerBlobGas:h,maxFeePerGas:g,maxPriorityFeePerGas:_,nonce:v,value:y,stateOverride:b,...x}=r?await mL(e,{...t,parameters:a,to:n}):t;if(p&&t.gas!==p)return p;let S=(typeof u==`bigint`?z(u):void 0)||d,C=Ot(b);zt(t);let w=e.chain?.formatters?.transactionRequest?.format,T=(w||Jt)({...ft(x,{format:w}),account:i,accessList:o,authorizationList:s,blobs:c,blobVersionedHashes:l,data:f,gasPrice:m,maxFeePerBlobGas:h,maxFeePerGas:g,maxPriorityFeePerGas:_,nonce:v,to:n,value:y},`estimateGas`);return BigInt(await e.request({method:`eth_estimateGas`,params:C?[T,S??e.experimental_blockTag??`latest`,C]:S?[T,S]:[T]}))}catch(n){throw GI(n,{...t,account:i,chain:e.chain})}}async function qI(e,{address:t,blockHash:n,blockNumber:r,blockTag:i=`latest`,requireCanonical:a}){let o=Ne({blockHash:n,blockNumber:r,blockTag:i,requireCanonical:a}),s=await e.request({method:`eth_getTransactionCount`,params:[t,o]},{dedupe:typeof r==`bigint`||n!==void 0});return hn(s)}function JI(e){let{kzg:t}=e,n=e.to??(typeof e.blobs[0]==`string`?`hex`:`bytes`),r=typeof e.blobs[0]==`string`?e.blobs.map(e=>ue(e)):e.blobs,i=[];for(let e of r)i.push(Uint8Array.from(t.blobToKzgCommitment(e)));return n===`bytes`?i:i.map(e=>Ie(e))}function YI(e){let{kzg:t}=e,n=e.to??(typeof e.blobs[0]==`string`?`hex`:`bytes`),r=typeof e.blobs[0]==`string`?e.blobs.map(e=>ue(e)):e.blobs,i=typeof e.commitments[0]==`string`?e.commitments.map(e=>ue(e)):e.commitments,a=[];for(let e=0;e<r.length;e++){let n=r[e],o=i[e];a.push(Uint8Array.from(t.computeBlobKzgProof(n,o)))}return n===`bytes`?a:a.map(e=>Ie(e))}function XI(e,t){let n=t||`hex`,r=VD(Ze(e,{strict:!1})?Ye(e):e);return n===`bytes`?r:we(r)}function ZI(e){let{commitment:t,version:n=1}=e,r=e.to??(typeof t==`string`?`hex`:`bytes`),i=XI(t,`bytes`);return i.set([n],0),r===`bytes`?i:Ie(i)}function QI(e){let{commitments:t,version:n}=e,r=e.to??(typeof t[0]==`string`?`hex`:`bytes`),i=[];for(let e of t)i.push(ZI({commitment:e,to:r,version:n}));return i}var $I=6,eL=4096,tL=32*eL,nL=tL*$I-1-1*eL*$I,rL=class extends $e{constructor({maxSize:e,size:t}){super(`Blob size is too large.`,{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:`BlobSizeTooLargeError`})}},iL=class extends $e{constructor(){super(`Blob data must not be empty.`,{name:`EmptyBlobError`})}},aL=class extends $e{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:[`Expected: 32`,`Received: ${t}`],name:`InvalidVersionedHashSizeError`})}},oL=class extends $e{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: 1`,`Received: ${t}`],name:`InvalidVersionedHashVersionError`})}};function sL(e){let t=e.to??(typeof e.data==`string`?`hex`:`bytes`),n=typeof e.data==`string`?ue(e.data):e.data,r=qe(n);if(!r)throw new iL;if(r>761855)throw new rL({maxSize:nL,size:r});let i=[],a=!0,o=0;for(;a;){let e=mn(new Uint8Array(tL)),t=0;for(;t<eL;){let r=n.slice(o,o+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),a=!1;break}t++,o+=31}i.push(e)}return t===`bytes`?i.map(e=>e.bytes):i.map(e=>Ie(e.bytes))}function cL(e){let{data:t,kzg:n,to:r}=e,i=e.blobs??sL({data:t,to:r}),a=e.commitments??JI({blobs:i,kzg:n,to:r}),o=e.proofs??YI({blobs:i,commitments:a,kzg:n,to:r}),s=[];for(let e=0;e<i.length;e++)s.push({blob:i[e],commitment:a[e],proof:o[e]});return s}function lL(e){if(e.type)return e.type;if(e.authorizationList!==void 0)return`eip7702`;if(e.blobs!==void 0||e.blobVersionedHashes!==void 0||e.maxFeePerBlobGas!==void 0||e.sidecars!==void 0)return`eip4844`;if(e.maxFeePerGas!==void 0||e.maxPriorityFeePerGas!==void 0)return`eip1559`;if(e.gasPrice!==void 0)return e.accessList===void 0?`legacy`:`eip2930`;throw new dt({transaction:e})}async function uL(e,t){let{account:n=e.account,accessList:r,authorizationList:i,chain:a=e.chain,blobVersionedHashes:o,blobs:s,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:m,nonceManager:h,to:g,type:_,value:v,...y}=t,b=await(async()=>{if(!n||!h||m!==void 0)return m;let t=en(n),r=a?a.id:await iI(e,PI,`getChainId`)({});return await h.consume({address:t.address,chainId:r,client:e})})();zt(t);let x=a?.formatters?.transactionRequest?.format,S=(x||Jt)({...ft(y,{format:x}),account:n?en(n):void 0,accessList:r,authorizationList:i,blobs:s,blobVersionedHashes:o,data:c,gas:l,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:b,to:g,type:_,value:v},`fillTransaction`);try{let n=await e.request({method:`eth_fillTransaction`,params:[S]}),r=(a?.formatters?.transaction?.format||MF)(n.tx);delete r.blockHash,delete r.blockNumber,delete r.r,delete r.s,delete r.transactionIndex,delete r.v,delete r.yParity,r.data=r.input;let i=r.feePayerSignature!==void 0&&r.feePayerSignature!==null;if(i&&b!==void 0&&r.nonce!==b)throw new rn({filledNonce:r.nonce,requestedNonce:b});if(!i){r.gas&&=t.gas??r.gas,r.gasPrice&&=t.gasPrice??r.gasPrice,r.maxFeePerBlobGas&&=t.maxFeePerBlobGas??r.maxFeePerBlobGas,r.maxFeePerGas&&=t.maxFeePerGas??r.maxFeePerGas,r.maxPriorityFeePerGas&&=t.maxPriorityFeePerGas??r.maxPriorityFeePerGas,r.nonce!==void 0&&(r.nonce=t.nonce??r.nonce);let n=await(async()=>{if(typeof a?.fees?.baseFeeMultiplier==`function`){let n=await iI(e,BI,`getBlock`)({});return a.fees.baseFeeMultiplier({block:n,client:e,request:t})}return a?.fees?.baseFeeMultiplier??1.2})();if(n<1)throw new FI;let i=10**(n.toString().split(`.`)[1]?.length??0),o=e=>e*BigInt(Math.round(n*i))/BigInt(i);r.maxFeePerGas&&!t.maxFeePerGas&&(r.maxFeePerGas=o(r.maxFeePerGas)),r.gasPrice&&!t.gasPrice&&(r.gasPrice=o(r.gasPrice))}return{raw:n.raw,transaction:{from:S.from,...r},...n.capabilities?{capabilities:n.capabilities}:{}}}catch(n){throw NI(n,{...t,chain:e.chain})}}var dL=[`blobVersionedHashes`,`chainId`,`fees`,`gas`,`nonce`,`type`],fL=new Map,pL=new Xe(128);async function mL(e,t){let n=t;n.account??=e.account,n.parameters??=dL;let{account:r,chain:i=e.chain,nonceManager:a,parameters:o}=n,s=(()=>{if(typeof i?.prepareTransactionRequest==`function`)return{fn:i.prepareTransactionRequest,runAt:[`beforeFillTransaction`]};if(Array.isArray(i?.prepareTransactionRequest))return{fn:i.prepareTransactionRequest[0],runAt:i.prepareTransactionRequest[1].runAt}})(),c;async function l(){return c||(n.chainId===void 0?i?i.id:(c=await iI(e,PI,`getChainId`)({}),c):n.chainId)}let u=r&&en(r),d=n.nonce;if(s?.fn&&s.runAt?.includes(`beforeFillTransaction`)){n=await s.fn({...n,chain:i},{client:e,phase:`beforeFillTransaction`}),d??=n.nonce;let t=n.account??n.from;u=t?en(t):void 0}if(o.includes(`nonce`)&&d===void 0&&u&&a){let t=await l();d=await a.consume({address:u.address,chainId:t,client:e})}let f=!((o.includes(`blobVersionedHashes`)||o.includes(`sidecars`))&&n.kzg&&n.blobs)&&(o.length>0&&`feePayer`in n&&n.feePayer&&!(`feePayerSignature`in n&&n.feePayerSignature)||pL.get(e.uid)!==!1&&[`fees`,`gas`].some(e=>o.includes(e))&&(o.includes(`chainId`)&&typeof n.chainId!=`number`||o.includes(`nonce`)&&typeof d!=`number`||o.includes(`fees`)&&typeof n.gasPrice!=`bigint`&&(typeof n.maxFeePerGas!=`bigint`||typeof n.maxPriorityFeePerGas!=`bigint`)||o.includes(`gas`)&&typeof n.gas!=`bigint`))?await iI(e,uL,`fillTransaction`)({...n,nonce:d}).then(t=>{let{chainId:r,from:i,gas:a,gasPrice:o,nonce:s,maxFeePerBlobGas:c,maxFeePerGas:l,maxPriorityFeePerGas:u,type:d,...f}=t.transaction,p=`feeToken`in f?f.feeToken:void 0,m=`feePayerSignature`in f&&f.feePayerSignature!==null&&f.feePayerSignature!==void 0,h=p!=null&&(!(`feeToken`in n)||m);return pL.set(e.uid,!0),{...n,...i?{from:i}:{},...d&&!n.type?{type:d}:{},...r===void 0?{}:{chainId:r},...a===void 0?{}:{gas:a},...o===void 0?{}:{gasPrice:o},...s===void 0?{}:{nonce:s},...c!==void 0&&n.type!==`legacy`&&n.type!==`eip2930`?{maxFeePerBlobGas:c}:{},...l!==void 0&&n.type!==`legacy`&&n.type!==`eip2930`?{maxFeePerGas:l}:{},...u!==void 0&&n.type!==`legacy`&&n.type!==`eip2930`?{maxPriorityFeePerGas:u}:{},...`nonceKey`in f&&f.nonceKey!==void 0?{nonceKey:f.nonceKey}:{},...`validBefore`in f&&f.validBefore!==null&&f.validBefore!==void 0?{validBefore:f.validBefore}:{},...`validAfter`in f&&f.validAfter!==null&&f.validAfter!==void 0?{validAfter:f.validAfter}:{},...`keyAuthorization`in f&&f.keyAuthorization!==void 0&&f.keyAuthorization!==null&&!(`keyAuthorization`in n)?{keyAuthorization:f.keyAuthorization}:{},...`feePayerSignature`in f&&f.feePayerSignature!==void 0&&f.feePayerSignature!==null?{feePayerSignature:f.feePayerSignature}:{},...h?{feeToken:p}:{},...t.capabilities?{_capabilities:t.capabilities}:{}}}).catch(t=>{let r=t;if(r.name!==`TransactionExecutionError`)return n;if(r.walk?.(e=>e instanceof rn)||r.walk?.(e=>e.name===`ExecutionRevertedError`))throw t;return r.walk?.(e=>{let t=e;return t.name===`MethodNotFoundRpcError`||t.name===`MethodNotSupportedRpcError`||t.message?.includes(`eth_fillTransaction is not available`)})&&pL.set(e.uid,!1),n}):n;d??=f.nonce,n={...f,...u?{from:u?.address}:{},...d===void 0?{}:{nonce:d}};let{blobs:p,gas:m,kzg:h,type:g}=n;s?.fn&&s.runAt?.includes(`beforeFillParameters`)&&(n=await s.fn({...n,chain:i},{client:e,phase:`beforeFillParameters`}));let _;async function v(){return _||(_=await iI(e,BI,`getBlock`)({blockTag:`latest`}),_)}if(o.includes(`nonce`)&&d===void 0&&u&&!a&&(n.nonce=await iI(e,qI,`getTransactionCount`)({address:u.address,blockTag:`pending`})),(o.includes(`blobVersionedHashes`)||o.includes(`sidecars`))&&p&&h){let e=JI({blobs:p,kzg:h});if(o.includes(`blobVersionedHashes`)){let t=QI({commitments:e,to:`hex`});n.blobVersionedHashes=t}if(o.includes(`sidecars`)){let t=cL({blobs:p,commitments:e,proofs:YI({blobs:p,commitments:e,kzg:h}),to:`hex`});n.sidecars=t}}if(o.includes(`chainId`)&&(n.chainId=await l()),(o.includes(`fees`)||o.includes(`type`))&&g===void 0)try{n.type=lL(n)}catch{let t=fL.get(e.uid);t===void 0&&(t=typeof(await v())?.baseFeePerGas==`bigint`,fL.set(e.uid,t)),n.type=t?`eip1559`:`legacy`}if(o.includes(`fees`)){if(n.type!==`legacy`&&n.type!==`eip2930`){if(n.maxFeePerGas===void 0||n.maxPriorityFeePerGas===void 0){let{maxFeePerGas:t,maxPriorityFeePerGas:r}=await UI(e,{block:await v(),chain:i,request:n});if(n.maxPriorityFeePerGas===void 0&&n.maxFeePerGas&&n.maxFeePerGas<r)throw new LI({maxPriorityFeePerGas:r});n.maxPriorityFeePerGas=r,n.maxFeePerGas=t}}else{if(n.maxFeePerGas!==void 0||n.maxPriorityFeePerGas!==void 0)throw new II;if(n.gasPrice===void 0){let{gasPrice:t}=await UI(e,{block:await v(),chain:i,request:n,type:`legacy`});n.gasPrice=t}}}return o.includes(`gas`)&&m===void 0&&(n.gas=await iI(e,KI,`estimateGas`)({...n,account:u,prepare:u?.type===`local`?[]:[`blobVersionedHashes`]})),s?.fn&&s.runAt?.includes(`afterFillParameters`)&&(n=await s.fn({...n,chain:i},{client:e,phase:`afterFillParameters`})),zt(n),delete n.parameters,n}async function hL(e,{serializedTransaction:t}){return e.request({method:`eth_sendRawTransaction`,params:[t]},{retryCount:0})}var gL=new Xe(128);async function _L(e,t){let{account:n=e.account,assertChainId:r=!0,chain:i=e.chain,accessList:a,authorizationList:o,blobs:s,data:c,dataSuffix:l=typeof e.dataSuffix==`string`?e.dataSuffix:e.dataSuffix?.value,gas:u,gasPrice:d,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:h,type:g,value:_,...v}=t;if(n===void 0)throw new AI({docsPath:`/docs/actions/wallet/sendTransaction`});let y=n?en(n):null,b;try{zt(t);let n=await(async()=>{if(t.to)return t.to;if(t.to!==null&&o&&o.length>0)return await nI({authorization:o[0]}).catch(()=>{throw new $e("`to` is required. Could not infer from `authorizationList`.")})})();if(y?.type===`json-rpc`||y===null){let t;i!==null&&(t=await iI(e,PI,`getChainId`)({}),r&&MI({currentChainId:t,chain:i}));let b=e.chain?.formatters?.transactionRequest?.format,x=(b||Jt)({...ft(v,{format:b}),accessList:a,account:y,authorizationList:o,blobs:s,chainId:t,data:l?Oe([c??`0x`,l]):c,gas:u,gasPrice:d,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:h,to:n,type:g,value:_},`sendTransaction`),S=gL.get(e.uid),C=S?`wallet_sendTransaction`:`eth_sendTransaction`;try{return await e.request({method:C,params:[x]},{retryCount:0})}catch(t){if(S===!1)throw t;let n=t;if(n.name===`InvalidInputRpcError`||n.name===`InvalidParamsRpcError`||n.name===`MethodNotFoundRpcError`||n.name===`MethodNotSupportedRpcError`)return await e.request({method:`wallet_sendTransaction`,params:[x]},{retryCount:0}).then(t=>(gL.set(e.uid,!0),t)).catch(t=>{let r=t;throw r.name===`MethodNotFoundRpcError`||r.name===`MethodNotSupportedRpcError`?(gL.set(e.uid,!1),n):r});throw n}}if(y?.type===`local`){let t=(()=>{if(!y.nonceManager||h!==void 0)return y.nonceManager;let e=y.nonceManager;return{consume(t){return b={address:t.address,chainId:t.chainId},e.consume(t)},get(t){return e.get(t)},increment(t){return e.increment(t)},reset(t){return e.reset(t)}}})(),r=await iI(e,mL,`prepareTransactionRequest`)({account:y,accessList:a,authorizationList:o,blobs:s,chain:i,data:l?Oe([c??`0x`,l]):c,gas:u,gasPrice:d,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:h,nonceManager:t,parameters:[...dL,`sidecars`],type:g,value:_,...v,to:n}),x=i?.serializers?.transaction,S=await y.signTransaction(r,{serializer:x}),C=(i??e.chain)?.serializers?.transactionEnvelope,w=C?await C({serializedTransaction:S,transaction:r}):S;return await iI(e,hL,`sendRawTransaction`)({serializedTransaction:w})}throw y?.type===`smart`?new jI({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:`/docs/actions/bundler/sendUserOperation`,type:`smart`}):new jI({docsPath:`/docs/actions/wallet/sendTransaction`,type:y?.type})}catch(e){throw e instanceof jI?e:(b&&y?.nonceManager?.reset(b),NI(e,{...t,account:y,chain:t.chain||void 0}))}}async function vL(e,t){return vL.internal(e,_L,`sendTransaction`,t)}(function(e){async function t(e,t,n,r){let{abi:i,account:a=e.account,address:o,args:s,functionName:c,...l}=r;if(a===void 0)throw new AI({docsPath:`/docs/contract/writeContract`});let u=a?en(a):null,d=cn({abi:i,args:s,functionName:c});try{return await iI(e,t,n)({data:d,to:o,account:u,...l})}catch(e){throw fI(e,{abi:i,address:o,args:s,docsPath:`/docs/contract/writeContract`,functionName:c,sender:u?.address})}}e.internal=t})(vL||={});var yL=[{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`}]}],bL=[{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:[]}],xL=[{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:[]}],SL=[{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:[]}],CL=[{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:[]}],wL=[{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:[]}],TL=[{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:[]}],EL=[{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:[]}],DL=[{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:[]}],OL=[{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:[]}],kL=[{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:[]}],AL=[{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:[]}],jL=[{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`}]}],ML=[{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:`burnAt`,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:`BURN_AT_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:`BurnAt`,type:`event`,inputs:[{type:`address`,name:`burner`,indexed:!0},{type:`address`,name:`from`,indexed:!0},{type:`uint256`,name:`amount`,indexed:!0}]},{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:[]}],NL=[{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:[]}],PL=[{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:[]}],FL=[{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`}]}],IL=[{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`}]}],LL=[{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_UNPROCESSED_DEPOSITS`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`MAX_UNPROCESSED_TOKEN_ENABLEMENTS`,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:`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:`tuple`,name:`tokenEnablementTransition`,components:[{type:`uint64`,name:`prevProcessedTokenCount`},{type:`uint64`,name:`nextProcessedTokenCount`}]},{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:`lastProcessedEnabledTokenCount`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`tokenEnablementCursorInitialized`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`bool`}]},{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:`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`},{type:`uint64`,name:`lastProcessedEnabledTokenCount`}]},{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:`TokenEnablementCursorNotInitialized`,type:`error`,inputs:[]},{name:`InvalidDepositTransition`,type:`error`,inputs:[]},{name:`InvalidTokenEnablementTransition`,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`}]}],RL=[{name:`verify`,type:`function`,stateMutability:`view`,inputs:[{type:`uint32`,name:`zoneId`},{type:`uint64`,name:`tempoBlockNumber`},{type:`uint64`,name:`anchorBlockNumber`},{type:`bytes32`,name:`anchorBlockHash`},{type:`uint64`,name:`expectedWithdrawalBatchIndex`},{type:`uint256`,name:`nextZoneHeight`},{type:`tuple`,name:`blockTransition`,components:[{type:`bytes32`,name:`prevBlockHash`},{type:`bytes32`,name:`nextBlockHash`}]},{type:`tuple`,name:`depositQueueTransition`,components:[{type:`bytes32`,name:`prevProcessedHash`},{type:`bytes32`,name:`nextProcessedHash`},{type:`uint64`,name:`prevDepositNumber`},{type:`uint64`,name:`nextDepositNumber`}]},{type:`tuple`,name:`tokenEnablementTransition`,components:[{type:`uint64`,name:`prevProcessedTokenCount`},{type:`uint64`,name:`nextProcessedTokenCount`}]},{type:`bytes32`,name:`withdrawalQueueHash`},{type:`bytes`,name:`verifierConfig`},{type:`bytes`,name:`proof`}],outputs:[{type:`bool`}]}],zL=[{type:`constructor`,inputs:[{name:`earnVault_`,type:`address`},{name:`owner_`,type:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`acceptOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`active`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`asset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`executeFunding`,inputs:[{name:`funder`,type:`address`},{name:`requestedAssets`,type:`uint256`},{name:`maxEarnShareSupply`,type:`uint256`}],outputs:[{name:`fundedAssets`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`fund`,inputs:[{name:`funder`,type:`address`},{name:`requestedAssets`,type:`uint256`},{name:`maxEarnShareSupply`,type:`uint256`}],outputs:[{name:`fundedAssets`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`fundBatchExact`,inputs:[{name:`funders`,type:`address[]`},{name:`requestedAssets`,type:`uint256[]`},{name:`maxEarnShareSupply`,type:`uint256`}],outputs:[{name:`totalFundedAssets`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`owner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`pendingOwner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`renounceOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setActive`,inputs:[{name:`active_`,type:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`transferOwnership`,inputs:[{name:`newOwner`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`event`,name:`ActiveSet`,inputs:[{name:`active`,type:`bool`,indexed:!1}],anonymous:!1},{type:`event`,name:`Funded`,inputs:[{name:`funder`,type:`address`,indexed:!0},{name:`requestedAssets`,type:`uint256`,indexed:!1},{name:`fundedAssets`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`OwnershipTransferStarted`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OwnershipTransferred`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`error`,name:`EarnShareSupplyOutOfBounds`,inputs:[{name:`earnShareSupply`,type:`uint256`},{name:`maxEarnShareSupply`,type:`uint256`}]},{type:`error`,name:`Inactive`,inputs:[]},{type:`error`,name:`InvalidArrayLengths`,inputs:[]},{type:`error`,name:`NotSelf`,inputs:[]},{type:`error`,name:`OwnableInvalidOwner`,inputs:[{name:`owner`,type:`address`}]},{type:`error`,name:`OwnableUnauthorizedAccount`,inputs:[{name:`account`,type:`address`}]},{type:`error`,name:`ReentrantCall`,inputs:[]},{type:`error`,name:`TokenCallFailed`,inputs:[]},{type:`error`,name:`TokenCallFalse`,inputs:[]},{type:`error`,name:`ZeroAddress`,inputs:[]},{type:`error`,name:`ZeroAmount`,inputs:[]}],BL=[{type:`function`,name:`asset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`deposit`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`name`,inputs:[],outputs:[{name:``,type:`string`}],stateMutability:`view`},{type:`function`,name:`shareScale`,inputs:[],outputs:[{name:`scale`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`supportsInterface`,inputs:[{name:`interfaceId`,type:`bytes4`}],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`symbol`,inputs:[],outputs:[{name:``,type:`string`}],stateMutability:`view`},{type:`function`,name:`totalAssets`,inputs:[],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`totalShares`,inputs:[],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`valueOf`,inputs:[{name:`engineShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`previewWithdraw`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`withdraw`,inputs:[{name:`assets`,type:`uint256`},{name:`receiver`,type:`address`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`isFeeValuationFresh`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`previewRedeem`,inputs:[{name:`engineShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`redeem`,inputs:[{name:`engineShares`,type:`uint256`},{name:`receiver`,type:`address`},{name:`minAssets`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`nonpayable`}],VL=[{type:`function`,name:`cancelRedeem`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`requestRedeem`,inputs:[{name:`engineShares`,type:`uint256`},{name:`requestData`,type:`bytes`}],outputs:[{name:`requestId`,type:`bytes32`}],stateMutability:`nonpayable`}],HL=[{type:`function`,name:`depositInKind`,inputs:[{name:`venueShares`,type:`uint256`},{name:`from`,type:`address`}],outputs:[{name:`engineSharesReceived`,type:`uint256`}],stateMutability:`nonpayable`}],UL=[{type:`constructor`,inputs:[{name:`tip20Factory_`,type:`address`},{name:`earnVaultImplementation_`,type:`address`},{name:`earnFeesImplementation_`,type:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`DEFAULT_ADMIN_ROLE`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`EARN_SHARE_SALT_DOMAIN`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`FEES_SALT_DOMAIN`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`computeEarnShareSalt`,inputs:[{name:`params`,type:`tuple`,components:[{name:`deploymentId`,type:`bytes32`},{name:`engine`,type:`address`},{name:`owner`,type:`address`},{name:`controls`,type:`tuple`,components:[{name:`emergencyGuardian`,type:`address`},{name:`asyncJanitor`,type:`address`},{name:`maxManagedAssets`,type:`uint256`},{name:`migrationMode`,type:`uint8`}]},{name:`distributorConfig`,type:`tuple`,components:[{name:`distributor`,type:`address`},{name:`updateDelay`,type:`uint40`}]},{name:`fees`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]},{name:`transferPolicyId`,type:`uint64`}]}],outputs:[{name:``,type:`bytes32`}],stateMutability:`pure`},{type:`function`,name:`deploy`,inputs:[{name:`params`,type:`tuple`,components:[{name:`deploymentId`,type:`bytes32`},{name:`engine`,type:`address`},{name:`owner`,type:`address`},{name:`controls`,type:`tuple`,components:[{name:`emergencyGuardian`,type:`address`},{name:`asyncJanitor`,type:`address`},{name:`maxManagedAssets`,type:`uint256`},{name:`migrationMode`,type:`uint8`}]},{name:`distributorConfig`,type:`tuple`,components:[{name:`distributor`,type:`address`},{name:`updateDelay`,type:`uint40`}]},{name:`fees`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]},{name:`transferPolicyId`,type:`uint64`}]}],outputs:[{name:`earnShare`,type:`address`},{name:`earnVault`,type:`address`},{name:`earnFees`,type:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`earnFeesImplementation`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`earnVaultImplementation`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`predictEarnFees`,inputs:[{name:`params`,type:`tuple`,components:[{name:`deploymentId`,type:`bytes32`},{name:`engine`,type:`address`},{name:`owner`,type:`address`},{name:`controls`,type:`tuple`,components:[{name:`emergencyGuardian`,type:`address`},{name:`asyncJanitor`,type:`address`},{name:`maxManagedAssets`,type:`uint256`},{name:`migrationMode`,type:`uint8`}]},{name:`distributorConfig`,type:`tuple`,components:[{name:`distributor`,type:`address`},{name:`updateDelay`,type:`uint40`}]},{name:`fees`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]},{name:`transferPolicyId`,type:`uint64`}]}],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`predictEarnShare`,inputs:[{name:`params`,type:`tuple`,components:[{name:`deploymentId`,type:`bytes32`},{name:`engine`,type:`address`},{name:`owner`,type:`address`},{name:`controls`,type:`tuple`,components:[{name:`emergencyGuardian`,type:`address`},{name:`asyncJanitor`,type:`address`},{name:`maxManagedAssets`,type:`uint256`},{name:`migrationMode`,type:`uint8`}]},{name:`distributorConfig`,type:`tuple`,components:[{name:`distributor`,type:`address`},{name:`updateDelay`,type:`uint40`}]},{name:`fees`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]},{name:`transferPolicyId`,type:`uint64`}]}],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`tip20Factory`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`event`,name:`EarnStackDeployed`,inputs:[{name:`earnVault`,type:`address`,indexed:!0},{name:`earnShare`,type:`address`,indexed:!0},{name:`earnFees`,type:`address`,indexed:!0},{name:`engine`,type:`address`,indexed:!1},{name:`asset`,type:`address`,indexed:!1},{name:`owner`,type:`address`,indexed:!1},{name:`deploymentId`,type:`bytes32`,indexed:!1},{name:`emergencyGuardian`,type:`address`,indexed:!1},{name:`asyncJanitor`,type:`address`,indexed:!1},{name:`maxManagedAssets`,type:`uint256`,indexed:!1},{name:`migrationMode`,type:`uint8`,indexed:!1},{name:`transferPolicyId`,type:`uint64`,indexed:!1},{name:`earnShareSalt`,type:`bytes32`,indexed:!1},{name:`controlConfigHash`,type:`bytes32`,indexed:!1},{name:`feeConfigHash`,type:`bytes32`,indexed:!1},{name:`earnFeesSalt`,type:`bytes32`,indexed:!1}],anonymous:!1},{type:`error`,name:`AdminRelinquishmentFailed`,inputs:[]},{type:`error`,name:`EarnShareAlreadyExists`,inputs:[{name:`earnShare`,type:`address`}]},{type:`error`,name:`EarnShareSupplyNotZero`,inputs:[]},{type:`error`,name:`EmptyDeploymentId`,inputs:[]},{type:`error`,name:`EmptyEarnShareMetadata`,inputs:[]},{type:`error`,name:`EngineAlreadyBound`,inputs:[{name:`earnVault`,type:`address`}]},{type:`error`,name:`FactoryCannotBeFinalOwner`,inputs:[]},{type:`error`,name:`FailedDeployment`,inputs:[]},{type:`error`,name:`InsufficientBalance`,inputs:[{name:`balance`,type:`uint256`},{name:`needed`,type:`uint256`}]},{type:`error`,name:`InvalidDistributorConfig`,inputs:[]},{type:`error`,name:`InvalidEarnFeesImplementation`,inputs:[]},{type:`error`,name:`InvalidEarnVaultImplementation`,inputs:[]},{type:`error`,name:`InvalidEngine`,inputs:[]},{type:`error`,name:`InvalidTransferPolicy`,inputs:[{name:`policyId`,type:`uint64`}]},{type:`error`,name:`IssuerGrantFailed`,inputs:[]},{type:`error`,name:`TransferPolicyMismatch`,inputs:[{name:`expected`,type:`uint64`},{name:`actual`,type:`uint64`}]},{type:`error`,name:`UnsupportedTransferPolicy`,inputs:[{name:`policyId`,type:`uint64`},{name:`policyType`,type:`uint8`}]},{type:`error`,name:`ZeroAddress`,inputs:[]}],WL=[{type:`constructor`,inputs:[],stateMutability:`nonpayable`},{type:`function`,name:`accrueFees`,inputs:[],outputs:[{name:`result`,type:`tuple`,components:[{name:`activeAssets`,type:`uint256`},{name:`positiveAccrualAssets`,type:`uint256`},{name:`fixedFeeAssets`,type:`uint256`},{name:`excessFeeAssets`,type:`uint256`},{name:`totalFeeAssets`,type:`uint256`},{name:`totalFeeEarnShares`,type:`uint256`},{name:`preFeeValuePerEarnShare`,type:`uint256`},{name:`postFeeValuePerEarnShare`,type:`uint256`},{name:`targetValuePerEarnShare`,type:`uint256`},{name:`allocationCount`,type:`uint8`},{name:`allocations`,type:`tuple[5]`,components:[{name:`account`,type:`address`},{name:`feeAssets`,type:`uint256`},{name:`feeEarnShares`,type:`uint256`}]}]}],stateMutability:`nonpayable`},{type:`function`,name:`claim`,inputs:[{name:`to`,type:`address`},{name:`earnShares`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`claimableEarnShares`,inputs:[{name:`recipient`,type:`address`}],outputs:[{name:`earnShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`closeRedeemRequest`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`currentFeeConfigId`,inputs:[],outputs:[{name:``,type:`uint64`}],stateMutability:`view`},{type:`function`,name:`disableFees`,inputs:[{name:`operator`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`earnShare`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`earnShareScale`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`feeBaselinesPending`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`feeConfig`,inputs:[{name:`configId`,type:`uint64`}],outputs:[{name:``,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]}],stateMutability:`view`},{type:`function`,name:`feeRemainder`,inputs:[{name:`configId`,type:`uint64`},{name:`slot`,type:`uint8`}],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`feesActive`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`feesDisabled`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`highWaterMark`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`initialize`,inputs:[{name:`earnVault_`,type:`address`},{name:`earnShare_`,type:`address`},{name:`initialConfig`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`initializeBaselines`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`pendingFeeSnapshot`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:``,type:`tuple`,components:[{name:`burnedEarnShares`,type:`uint256`},{name:`requestValue`,type:`uint256`},{name:`highWaterValue`,type:`uint256`},{name:`targetValue`,type:`uint256`},{name:`feeConfigId`,type:`uint64`},{name:`requestedAt`,type:`uint40`},{name:`open`,type:`bool`}]}],stateMutability:`view`},{type:`function`,name:`previewAccruedFees`,inputs:[],outputs:[{name:`result`,type:`tuple`,components:[{name:`activeAssets`,type:`uint256`},{name:`positiveAccrualAssets`,type:`uint256`},{name:`fixedFeeAssets`,type:`uint256`},{name:`excessFeeAssets`,type:`uint256`},{name:`totalFeeAssets`,type:`uint256`},{name:`totalFeeEarnShares`,type:`uint256`},{name:`preFeeValuePerEarnShare`,type:`uint256`},{name:`postFeeValuePerEarnShare`,type:`uint256`},{name:`targetValuePerEarnShare`,type:`uint256`},{name:`allocationCount`,type:`uint8`},{name:`allocations`,type:`tuple[5]`,components:[{name:`account`,type:`address`},{name:`feeAssets`,type:`uint256`},{name:`feeEarnShares`,type:`uint256`}]}]}],stateMutability:`view`},{type:`function`,name:`recordRedeemRequest`,inputs:[{name:`requestId`,type:`bytes32`},{name:`burnedEarnShares`,type:`uint256`},{name:`requestValue`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setFeeConfig`,inputs:[{name:`config`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]}],outputs:[{name:`configId`,type:`uint64`}],stateMutability:`nonpayable`},{type:`function`,name:`settleCancelledRedeem`,inputs:[{name:`requestId`,type:`bytes32`},{name:`returnedValue`,type:`uint256`},{name:`activeSupply`,type:`uint256`},{name:`activeAssets`,type:`uint256`},{name:`totalReentryEarnShares`,type:`uint256`}],outputs:[{name:`feeEarnShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`shouldChargeRedeem`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`targetBase`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`targetStartedAt`,inputs:[],outputs:[{name:``,type:`uint40`}],stateMutability:`view`},{type:`function`,name:`totalClaimableEarnShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`validateFeeConfig`,inputs:[{name:`config`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]}],outputs:[],stateMutability:`view`},{type:`event`,name:`FeeBaselinesInitialized`,inputs:[{name:`highWaterMark`,type:`uint256`,indexed:!1},{name:`targetBase`,type:`uint256`,indexed:!1},{name:`targetStartedAt`,type:`uint40`,indexed:!1}],anonymous:!1},{type:`event`,name:`FeeConfigurationSet`,inputs:[{name:`configId`,type:`uint64`,indexed:!0},{name:`configHash`,type:`bytes32`,indexed:!0},{name:`reactivated`,type:`bool`,indexed:!1}],anonymous:!1},{type:`event`,name:`FeeDustWaived`,inputs:[{name:`configId`,type:`uint64`,indexed:!0},{name:`slot`,type:`uint8`,indexed:!0},{name:`remainder`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`FeeEarnSharesAllocated`,inputs:[{name:`configId`,type:`uint64`,indexed:!0},{name:`recipient`,type:`address`,indexed:!0},{name:`feeAssets`,type:`uint256`,indexed:!1},{name:`feeEarnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`FeeEarnSharesClaimed`,inputs:[{name:`recipient`,type:`address`,indexed:!0},{name:`to`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`FeesAccrued`,inputs:[{name:`configId`,type:`uint64`,indexed:!0},{name:`activeAssets`,type:`uint256`,indexed:!1},{name:`positiveAccrualAssets`,type:`uint256`,indexed:!1},{name:`feeAssets`,type:`uint256`,indexed:!1},{name:`feeEarnShares`,type:`uint256`,indexed:!1},{name:`highWaterMark`,type:`uint256`,indexed:!1},{name:`targetValuePerEarnShare`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`FeesDisabled`,inputs:[{name:`operator`,type:`address`,indexed:!0}],anonymous:!1},{type:`error`,name:`AlreadyInitialized`,inputs:[]},{type:`error`,name:`InsufficientClaimableEarnShares`,inputs:[]},{type:`error`,name:`InvalidFeeClaimReceiver`,inputs:[]},{type:`error`,name:`InvalidFeeConfiguration`,inputs:[]},{type:`error`,name:`NotEarnVault`,inputs:[]},{type:`error`,name:`ReentrantCall`,inputs:[]},{type:`error`,name:`ZeroAddress`,inputs:[]},{type:`error`,name:`ZeroAmount`,inputs:[]}],GL=[{type:`constructor`,inputs:[{name:`earnVault_`,type:`address`},{name:`treasury_`,type:`address`},{name:`campaignId_`,type:`bytes32`},{name:`claimDeadline_`,type:`uint40`},{name:`owner_`,type:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`acceptOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`asset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`campaignId`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`claim`,inputs:[{name:`recipient`,type:`address`},{name:`cumulativeAmount`,type:`uint256`},{name:`proof`,type:`bytes32[]`}],outputs:[{name:`amount`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`claimDeadline`,inputs:[],outputs:[{name:``,type:`uint40`}],stateMutability:`view`},{type:`function`,name:`consumedSettlements`,inputs:[{name:`settlementId`,type:`bytes32`}],outputs:[{name:`consumed`,type:`bool`}],stateMutability:`view`},{type:`function`,name:`cumulativePaid`,inputs:[{name:`recipient`,type:`address`}],outputs:[{name:`cumulativeAmount`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`earnShare`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`fundAndPublishRoot`,inputs:[{name:`settlementId`,type:`bytes32`},{name:`expectedRootVersion`,type:`uint64`},{name:`funder`,type:`address`},{name:`assets`,type:`uint256`},{name:`minEarnShares`,type:`uint256`},{name:`root`,type:`bytes32`},{name:`totalEntitlement`,type:`uint256`},{name:`statementHash_`,type:`bytes32`}],outputs:[{name:`earnShares`,type:`uint256`},{name:`version`,type:`uint64`}],stateMutability:`nonpayable`},{type:`function`,name:`leaf`,inputs:[{name:`recipient`,type:`address`},{name:`cumulativeAmount`,type:`uint256`}],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`merkleRoot`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`owner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`paused`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`pendingOwner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`publishRoot`,inputs:[{name:`expectedRootVersion`,type:`uint64`},{name:`root`,type:`bytes32`},{name:`totalEntitlement`,type:`uint256`},{name:`statementHash_`,type:`bytes32`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`pushBatch`,inputs:[{name:`expectedRootVersion`,type:`uint64`},{name:`recipients`,type:`address[]`},{name:`cumulativeAmounts`,type:`uint256[]`},{name:`multiproof`,type:`bytes32[]`},{name:`proofFlags`,type:`bool[]`}],outputs:[{name:`paidCount`,type:`uint256`},{name:`paidEarnShares`,type:`uint256`},{name:`skippedCount`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`renounceOwnership`,inputs:[],outputs:[],stateMutability:`pure`},{type:`function`,name:`returnUnspent`,inputs:[],outputs:[{name:`earnShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`rootTotalEntitlement`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`rootVersion`,inputs:[],outputs:[{name:``,type:`uint64`}],stateMutability:`view`},{type:`function`,name:`setPaused`,inputs:[{name:`paused_`,type:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`statementHash`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`totalPaid`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`transferOwnership`,inputs:[{name:`newOwner`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`treasury`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`event`,name:`AssetsFunded`,inputs:[{name:`funder`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`BatchPushed`,inputs:[{name:`version`,type:`uint64`,indexed:!0},{name:`batchHash`,type:`bytes32`,indexed:!0},{name:`attemptedCount`,type:`uint256`,indexed:!1},{name:`paidCount`,type:`uint256`,indexed:!1},{name:`paidEarnShares`,type:`uint256`,indexed:!1},{name:`skippedCount`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`OwnershipTransferStarted`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OwnershipTransferred`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`PausedSet`,inputs:[{name:`paused`,type:`bool`,indexed:!1}],anonymous:!1},{type:`event`,name:`PayoutSkipped`,inputs:[{name:`recipient`,type:`address`,indexed:!0},{name:`cumulativeAmount`,type:`uint256`,indexed:!1},{name:`reason`,type:`uint8`,indexed:!1}],anonymous:!1},{type:`event`,name:`RewardClaimed`,inputs:[{name:`recipient`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1},{name:`cumulativeAmount`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`RootPublished`,inputs:[{name:`version`,type:`uint64`,indexed:!0},{name:`root`,type:`bytes32`,indexed:!0},{name:`statementHash`,type:`bytes32`,indexed:!0},{name:`totalEntitlement`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`UnspentReturned`,inputs:[{name:`treasury`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`error`,name:`ClaimsExpired`,inputs:[]},{type:`error`,name:`ClaimsNotExpired`,inputs:[]},{type:`error`,name:`DepositsPaused`,inputs:[]},{type:`error`,name:`InsufficientFunding`,inputs:[{name:`requiredBalance`,type:`uint256`},{name:`actualBalance`,type:`uint256`}]},{type:`error`,name:`InvalidArrayLengths`,inputs:[]},{type:`error`,name:`InvalidEarnVault`,inputs:[]},{type:`error`,name:`InvalidMultiproof`,inputs:[]},{type:`error`,name:`MerkleProofInvalidMultiproof`,inputs:[]},{type:`error`,name:`NothingOwed`,inputs:[]},{type:`error`,name:`OwnableInvalidOwner`,inputs:[{name:`owner`,type:`address`}]},{type:`error`,name:`OwnableUnauthorizedAccount`,inputs:[{name:`account`,type:`address`}]},{type:`error`,name:`OwnershipRenunciationDisabled`,inputs:[]},{type:`error`,name:`Paused`,inputs:[]},{type:`error`,name:`PausedLiabilityIncrease`,inputs:[]},{type:`error`,name:`ReentrancyGuardReentrantCall`,inputs:[]},{type:`error`,name:`RootTotalDecreased`,inputs:[{name:`previousTotal`,type:`uint256`},{name:`nextTotal`,type:`uint256`}]},{type:`error`,name:`RootTotalExceeded`,inputs:[{name:`requestedAmount`,type:`uint256`},{name:`remainingEntitlement`,type:`uint256`}]},{type:`error`,name:`SettlementAlreadyConsumed`,inputs:[{name:`settlementId`,type:`bytes32`}]},{type:`error`,name:`StaleRootVersion`,inputs:[{name:`expected`,type:`uint64`},{name:`actual`,type:`uint64`}]},{type:`error`,name:`TokenCallFailed`,inputs:[]},{type:`error`,name:`TokenCallFalse`,inputs:[]},{type:`error`,name:`UnexpectedEarnShares`,inputs:[{name:`reported`,type:`uint256`},{name:`measured`,type:`uint256`}]},{type:`error`,name:`UnexpectedRetainedAssets`,inputs:[{name:`beforeBalance`,type:`uint256`},{name:`afterBalance`,type:`uint256`}]},{type:`error`,name:`ZeroAddress`,inputs:[]},{type:`error`,name:`ZeroAmount`,inputs:[]},{type:`error`,name:`ZeroCampaignId`,inputs:[]},{type:`error`,name:`ZeroDeadline`,inputs:[]},{type:`error`,name:`ZeroMinimumEarnShares`,inputs:[]},{type:`error`,name:`ZeroRoot`,inputs:[]},{type:`error`,name:`ZeroSettlementId`,inputs:[]},{type:`error`,name:`ZeroStatementHash`,inputs:[]}],KL=[{type:`function`,name:`campaignId`,inputs:[{name:`earnVault`,type:`address`}],outputs:[{name:``,type:`bytes32`}],stateMutability:`pure`},{type:`function`,name:`install`,inputs:[{name:`earnVault`,type:`address`},{name:`owner`,type:`address`},{name:`treasury`,type:`address`},{name:`claimDeadline`,type:`uint40`},{name:`targetYield`,type:`bool`},{name:`boostRewards`,type:`bool`}],outputs:[{name:`result`,type:`tuple`,components:[{name:`contributionController`,type:`address`},{name:`merkleDistributor`,type:`address`}]}],stateMutability:`nonpayable`},{type:`function`,name:`predictContributionController`,inputs:[{name:`earnVault`,type:`address`},{name:`owner`,type:`address`}],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`predictMerkleDistributor`,inputs:[{name:`earnVault`,type:`address`},{name:`owner`,type:`address`},{name:`treasury`,type:`address`},{name:`claimDeadline`,type:`uint40`}],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`event`,name:`ContributionControllerInstalled`,inputs:[{name:`earnVault`,type:`address`,indexed:!0},{name:`owner`,type:`address`,indexed:!0},{name:`contributionController`,type:`address`,indexed:!1}],anonymous:!1},{type:`event`,name:`MerkleDistributorInstalled`,inputs:[{name:`earnVault`,type:`address`,indexed:!0},{name:`owner`,type:`address`,indexed:!0},{name:`treasury`,type:`address`,indexed:!0},{name:`merkleDistributor`,type:`address`,indexed:!1},{name:`campaignId`,type:`bytes32`,indexed:!1},{name:`claimDeadline`,type:`uint40`,indexed:!1}],anonymous:!1},{type:`error`,name:`EmptyInstallation`,inputs:[]},{type:`error`,name:`InvalidExistingDeployment`,inputs:[{name:`component`,type:`address`}]},{type:`error`,name:`InvalidRewardConfiguration`,inputs:[]},{type:`error`,name:`ZeroAddress`,inputs:[]}],qL=[{type:`constructor`,inputs:[{name:`allowedZoneId_`,type:`uint32`},{name:`earnVault_`,type:`address`},{name:`privateAsset_`,type:`address`},{name:`tokenAuthority_`,type:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`allowedZoneId`,inputs:[],outputs:[{name:``,type:`uint32`}],stateMutability:`view`},{type:`function`,name:`earnShare`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`onWithdrawalReceived`,inputs:[{name:`sourceZoneId`,type:`uint32`},{name:`sourcePortal`,type:`address`},{name:``,type:`bytes32`},{name:`token`,type:`address`},{name:`amount`,type:`uint128`},{name:`callbackData`,type:`bytes`}],outputs:[{name:``,type:`bytes4`}],stateMutability:`nonpayable`},{type:`function`,name:`privateAsset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`reserveToken`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`supportsFlow`,inputs:[{name:`flow`,type:`uint8`}],outputs:[{name:``,type:`bool`}],stateMutability:`pure`},{type:`function`,name:`tokenAuthority`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`transactionLimit`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`vaultAsset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`event`,name:`EarnDeposit`,inputs:[{name:`actionId`,type:`bytes32`,indexed:!0},{name:`earnVault`,type:`address`,indexed:!0},{name:`inputToken`,type:`address`,indexed:!0},{name:`inputAmount`,type:`uint256`,indexed:!1},{name:`vaultAssets`,type:`uint256`,indexed:!1},{name:`earnShares`,type:`uint256`,indexed:!1},{name:`zoneDepositHash`,type:`bytes32`,indexed:!1}],anonymous:!1},{type:`event`,name:`EarnRedeem`,inputs:[{name:`actionId`,type:`bytes32`,indexed:!0},{name:`earnVault`,type:`address`,indexed:!0},{name:`outputToken`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1},{name:`vaultAssets`,type:`uint256`,indexed:!1},{name:`outputAmount`,type:`uint256`,indexed:!1},{name:`zoneDepositHash`,type:`bytes32`,indexed:!1}],anonymous:!1},{type:`error`,name:`AmountExceedsLimit`,inputs:[]},{type:`error`,name:`AmountOverflow`,inputs:[]},{type:`error`,name:`BadFlow`,inputs:[]},{type:`error`,name:`InsufficientOutput`,inputs:[]},{type:`error`,name:`InvalidAuthority`,inputs:[]},{type:`error`,name:`InvalidEarnVault`,inputs:[]},{type:`error`,name:`InvalidPrivateAsset`,inputs:[]},{type:`error`,name:`InvalidReturnToken`,inputs:[]},{type:`error`,name:`InvalidRoutePair`,inputs:[]},{type:`error`,name:`InvalidSourcePortal`,inputs:[]},{type:`error`,name:`InvalidTransactionLimit`,inputs:[]},{type:`error`,name:`NotZoneMessenger`,inputs:[]},{type:`error`,name:`ReentrantCall`,inputs:[]},{type:`error`,name:`ResidualBalance`,inputs:[]},{type:`error`,name:`TokenCallFailed`,inputs:[]},{type:`error`,name:`TokenCallFalse`,inputs:[]},{type:`error`,name:`WrongInputToken`,inputs:[]},{type:`error`,name:`WrongSourceZone`,inputs:[]},{type:`error`,name:`ZeroAddress`,inputs:[]},{type:`error`,name:`ZeroAmount`,inputs:[]}],JL=[{type:`constructor`,inputs:[],stateMutability:`nonpayable`},{type:`function`,name:`MAX_REWARD_RATE_MULTIPLIER`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`absorbEngineShareSurplus`,inputs:[{name:`engineShares_`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`acceptDistributor`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`acceptOperator`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`accrueFees`,inputs:[],outputs:[{name:`feeAssets`,type:`uint256`},{name:`feeEarnShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`anchorEarnShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`anchorEngineShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`asset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`asyncJanitor`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`cancelDistributorFeeUpdate`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`cancelDistributorTransfer`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`cancelOperatorTransfer`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`cancelRedeem`,inputs:[{name:`requestId`,type:`bytes32`},{name:`minReceiverEarnShares`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`contribute`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`receivedEngineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`convertEngineSharesToEarnShares`,inputs:[{name:`engineShares_`,type:`uint256`}],outputs:[{name:`earnShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`convertToEngineShares`,inputs:[{name:`earnShares`,type:`uint256`}],outputs:[{name:`engineShares_`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`deposit`,inputs:[{name:`assets`,type:`uint256`},{name:`receiver`,type:`address`},{name:`minEarnShares`,type:`uint256`}],outputs:[{name:`earnShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`depositVenueShares`,inputs:[{name:`venueShares`,type:`uint256`},{name:`receiver`,type:`address`},{name:`minEarnShares`,type:`uint256`}],outputs:[{name:`earnShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`depositsPaused`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`disableFees`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`distributor`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`distributorFee`,inputs:[],outputs:[{name:`recipient`,type:`address`},{name:`rateBps`,type:`uint16`}],stateMutability:`view`},{type:`function`,name:`distributorUpdateDelay`,inputs:[],outputs:[{name:``,type:`uint40`}],stateMutability:`view`},{type:`function`,name:`earnFees`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`earnShare`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`emergencyGuardian`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`engine`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`engineMigrationMode`,inputs:[],outputs:[{name:``,type:`uint8`}],stateMutability:`view`},{type:`function`,name:`engineShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`executeDistributorFeeUpdate`,inputs:[],outputs:[{name:`feeConfigId`,type:`uint64`}],stateMutability:`nonpayable`},{type:`function`,name:`finalizeRedeem`,inputs:[{name:`requestId`,type:`bytes32`},{name:`asset_`,type:`address`},{name:`amount`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`initialize`,inputs:[{name:`engine_`,type:`address`},{name:`earnShare_`,type:`address`},{name:`earnFees_`,type:`address`},{name:`operator_`,type:`address`},{name:`controlInit_`,type:`tuple`,components:[{name:`emergencyGuardian`,type:`address`},{name:`asyncJanitor`,type:`address`},{name:`maxManagedAssets`,type:`uint256`},{name:`migrationMode`,type:`uint8`}]},{name:`distributorInit_`,type:`tuple`,components:[{name:`distributor`,type:`address`},{name:`updateDelay`,type:`uint40`}]}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`isAccountingAligned`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`isFeeValuationFresh`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`maxManagedAssets`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`migrateEngine`,inputs:[{name:`newEngine`,type:`address`},{name:`minNewEngineShares`,type:`uint256`},{name:`minAssetsRetained`,type:`uint256`}],outputs:[{name:`newEngineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`normalizedRewardRate`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`openRedeemRequestCount`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`operator`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`pendingDistributor`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`pendingDistributorFeeUpdate`,inputs:[],outputs:[{name:``,type:`tuple`,components:[{name:`recipient`,type:`address`},{name:`rateBps`,type:`uint16`},{name:`executableAt`,type:`uint40`},{name:`pending`,type:`bool`}]}],stateMutability:`view`},{type:`function`,name:`pendingOperator`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`pendingRedeem`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:``,type:`tuple`,components:[{name:`receiver`,type:`address`},{name:`requester`,type:`address`},{name:`burnedEarnShares`,type:`uint256`},{name:`engineShares`,type:`uint256`},{name:`open`,type:`bool`}]}],stateMutability:`view`},{type:`function`,name:`previewRedeem`,inputs:[{name:`earnShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`previewWithdraw`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`earnShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`rawEngineShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`redeem`,inputs:[{name:`earnShares`,type:`uint256`},{name:`receiver`,type:`address`},{name:`minAssets`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`remainingDepositCapacity`,inputs:[],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`requestRedeem`,inputs:[{name:`earnShares`,type:`uint256`},{name:`engineData`,type:`bytes`},{name:`receiver`,type:`address`}],outputs:[{name:`requestId`,type:`bytes32`}],stateMutability:`nonpayable`},{type:`function`,name:`rewardRateBaseline`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`scheduleDistributorFeeUpdate`,inputs:[{name:`recipient`,type:`address`},{name:`rateBps`,type:`uint16`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setDepositsPaused`,inputs:[{name:`paused`,type:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setEmergencyRoles`,inputs:[{name:`newGuardian`,type:`address`},{name:`newJanitor`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setFeeConfig`,inputs:[{name:`config`,type:`tuple`,components:[{name:`fixedFeeCount`,type:`uint8`},{name:`fixedFees`,type:`tuple[4]`,components:[{name:`account`,type:`address`},{name:`rateBps`,type:`uint16`}]},{name:`excess`,type:`tuple`,components:[{name:`enabled`,type:`bool`},{name:`account`,type:`address`},{name:`annualTargetRateBps`,type:`uint16`},{name:`excessFeeRateBps`,type:`uint16`}]}]}],outputs:[{name:`configId`,type:`uint64`}],stateMutability:`nonpayable`},{type:`function`,name:`setMaxManagedAssets`,inputs:[{name:`newMaxManagedAssets`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`surplusEngineShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`totalAssets`,inputs:[],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`totalEarnShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`transferDistributor`,inputs:[{name:`newDistributor`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`transferOperator`,inputs:[{name:`newOperator`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`withdrawExact`,inputs:[{name:`assets`,type:`uint256`},{name:`receiver`,type:`address`},{name:`maxEarnShares`,type:`uint256`}],outputs:[{name:`earnSharesBurned`,type:`uint256`}],stateMutability:`nonpayable`},{type:`event`,name:`Contributed`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`engineShares`,type:`uint256`,indexed:!1},{name:`anchorEngineShares`,type:`uint256`,indexed:!1},{name:`anchorEarnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`DepositPauseChanged`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`paused`,type:`bool`,indexed:!1}],anonymous:!1},{type:`event`,name:`Deposited`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`DistributorFeeUpdateCancelled`,inputs:[{name:`distributor`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`DistributorFeeUpdateScheduled`,inputs:[{name:`distributor`,type:`address`,indexed:!0},{name:`recipient`,type:`address`,indexed:!0},{name:`rateBps`,type:`uint16`,indexed:!1},{name:`executableAt`,type:`uint40`,indexed:!1}],anonymous:!1},{type:`event`,name:`DistributorFeeUpdated`,inputs:[{name:`recipient`,type:`address`,indexed:!0},{name:`rateBps`,type:`uint16`,indexed:!1},{name:`feeConfigId`,type:`uint64`,indexed:!0}],anonymous:!1},{type:`event`,name:`DistributorTransferCancelled`,inputs:[{name:`distributor`,type:`address`,indexed:!0},{name:`pendingDistributor`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`DistributorTransferStarted`,inputs:[{name:`distributor`,type:`address`,indexed:!0},{name:`pendingDistributor`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`DistributorTransferred`,inputs:[{name:`previousDistributor`,type:`address`,indexed:!0},{name:`newDistributor`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`EarnVaultInitialized`,inputs:[{name:`engine`,type:`address`,indexed:!0},{name:`earnShare`,type:`address`,indexed:!0},{name:`earnFees`,type:`address`,indexed:!0},{name:`operator`,type:`address`,indexed:!1},{name:`emergencyGuardian`,type:`address`,indexed:!1},{name:`asyncJanitor`,type:`address`,indexed:!1},{name:`maxManagedAssets`,type:`uint256`,indexed:!1},{name:`migrationMode`,type:`uint8`,indexed:!1},{name:`distributor`,type:`address`,indexed:!1},{name:`distributorUpdateDelay`,type:`uint40`,indexed:!1},{name:`distributorFeeRecipient`,type:`address`,indexed:!1},{name:`distributorFeeRateBps`,type:`uint16`,indexed:!1}],anonymous:!1},{type:`event`,name:`EmergencyRolesChanged`,inputs:[{name:`emergencyGuardian`,type:`address`,indexed:!0},{name:`asyncJanitor`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`EngineMigrated`,inputs:[{name:`oldEngine`,type:`address`,indexed:!0},{name:`newEngine`,type:`address`,indexed:!0},{name:`oldEngineShares`,type:`uint256`,indexed:!1},{name:`assetsMoved`,type:`uint256`,indexed:!1},{name:`newEngineShares`,type:`uint256`,indexed:!1},{name:`totalEarnShares`,type:`uint256`,indexed:!1},{name:`anchorEngineShares`,type:`uint256`,indexed:!1},{name:`anchorEarnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`EngineShareShortfallReconciled`,inputs:[{name:`engine`,type:`address`,indexed:!0},{name:`previousManagedEngineShares`,type:`uint256`,indexed:!1},{name:`observedRawEngineShares`,type:`uint256`,indexed:!1},{name:`shortfallEngineShares`,type:`uint256`,indexed:!1},{name:`totalEarnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`EngineShareSurplusAbsorbed`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`engineShares`,type:`uint256`,indexed:!1},{name:`anchorEngineShares`,type:`uint256`,indexed:!1},{name:`anchorEarnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`MaxManagedAssetsChanged`,inputs:[{name:`previousMaxManagedAssets`,type:`uint256`,indexed:!1},{name:`newMaxManagedAssets`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`OperatorTransferCancelled`,inputs:[{name:`operator`,type:`address`,indexed:!0},{name:`pendingOperator`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OperatorTransferStarted`,inputs:[{name:`operator`,type:`address`,indexed:!0},{name:`pendingOperator`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OperatorTransferred`,inputs:[{name:`previousOperator`,type:`address`,indexed:!0},{name:`newOperator`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`RedeemCancelled`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`RedeemFinalized`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1},{name:`asset`,type:`address`,indexed:!1},{name:`assets`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`RedeemRequested`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`requester`,type:`address`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`Redeemed`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`earnShares`,type:`uint256`,indexed:!1},{name:`assets`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`VenueSharesDeposited`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`requestedVenueShares`,type:`uint256`,indexed:!1},{name:`receivedEngineShares`,type:`uint256`,indexed:!1},{name:`earnShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`WithdrewExact`,inputs:[{name:`caller`,type:`address`,indexed:!0},{name:`receiver`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`earnSharesBurned`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`error`,name:`ActiveSupplyWithoutBacking`,inputs:[]},{type:`error`,name:`AlreadyInitialized`,inputs:[]},{type:`error`,name:`DepositsPaused`,inputs:[]},{type:`error`,name:`DistributorFeeUpdateNotPending`,inputs:[]},{type:`error`,name:`DistributorFeeUpdateNotReady`,inputs:[{name:`executableAt`,type:`uint40`}]},{type:`error`,name:`DistributorTransferNotPending`,inputs:[]},{type:`error`,name:`DuplicateRequest`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`EngineAssetMismatch`,inputs:[]},{type:`error`,name:`EngineCapabilityUnsupported`,inputs:[{name:`interfaceId`,type:`bytes4`}]},{type:`error`,name:`EngineEarnVaultMismatch`,inputs:[]},{type:`error`,name:`EngineExitUnsupported`,inputs:[]},{type:`error`,name:`ExceedsMaxEarnShares`,inputs:[]},{type:`error`,name:`ExcessiveConversionLoss`,inputs:[{name:`inputShares`,type:`uint256`},{name:`representedShares`,type:`uint256`}]},{type:`error`,name:`ExcessiveMigrationClassificationError`,inputs:[{name:`expectedManagedAssets`,type:`uint256`},{name:`actualManagedAssets`,type:`uint256`}]},{type:`error`,name:`FeeValuationStale`,inputs:[]},{type:`error`,name:`FinalizedAssetMismatch`,inputs:[{name:`finalizedAsset`,type:`address`}]},{type:`error`,name:`GlobalFeeDisableUnavailable`,inputs:[]},{type:`error`,name:`InitialEarnShareSupplyNotZero`,inputs:[]},{type:`error`,name:`InsufficientEngineShareSurplus`,inputs:[{name:`available`,type:`uint256`},{name:`requested`,type:`uint256`}]},{type:`error`,name:`InsufficientOutput`,inputs:[]},{type:`error`,name:`InvalidDistributorConfiguration`,inputs:[]},{type:`error`,name:`InvalidDistributorFeeConfiguration`,inputs:[]},{type:`error`,name:`InvalidEarnDecimals`,inputs:[]},{type:`error`,name:`InvalidEngineShareScale`,inputs:[]},{type:`error`,name:`MaxManagedAssetsExceeded`,inputs:[{name:`maximum`,type:`uint256`},{name:`actual`,type:`uint256`}]},{type:`error`,name:`MinimumAssetsNotMet`,inputs:[{name:`minimumAssets`,type:`uint256`},{name:`actualAssets`,type:`uint256`}]},{type:`error`,name:`MinimumEarnSharesNotMet`,inputs:[{name:`minimumEarnShares`,type:`uint256`},{name:`actualEarnShares`,type:`uint256`}]},{type:`error`,name:`MinimumEngineSharesNotMet`,inputs:[{name:`minimumEngineShares`,type:`uint256`},{name:`actualEngineShares`,type:`uint256`}]},{type:`error`,name:`NoEarnShares`,inputs:[]},{type:`error`,name:`NotDistributor`,inputs:[]},{type:`error`,name:`NotEmergencyGuardianOrOperator`,inputs:[]},{type:`error`,name:`NotEngine`,inputs:[]},{type:`error`,name:`NotOperator`,inputs:[]},{type:`error`,name:`NotPendingDistributor`,inputs:[]},{type:`error`,name:`NotPendingOperator`,inputs:[]},{type:`error`,name:`NotRequesterOrJanitor`,inputs:[]},{type:`error`,name:`OperatorMigrationDisabled`,inputs:[]},{type:`error`,name:`OperatorTransferNotPending`,inputs:[]},{type:`error`,name:`PendingRedeemsOpen`,inputs:[]},{type:`error`,name:`ReentrantCall`,inputs:[]},{type:`error`,name:`RequestNotOpen`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`ResidualBacking`,inputs:[]},{type:`error`,name:`RewardRateLimitExceeded`,inputs:[{name:`normalizedRate`,type:`uint256`},{name:`baselineRate`,type:`uint256`}]},{type:`error`,name:`SameEngine`,inputs:[]},{type:`error`,name:`TokenCallFailed`,inputs:[]},{type:`error`,name:`TokenCallFalse`,inputs:[]},{type:`error`,name:`ZeroAddress`,inputs:[]},{type:`error`,name:`ZeroAmount`,inputs:[]},{type:`error`,name:`ZeroMinimumAssets`,inputs:[]},{type:`error`,name:`ZeroMinimumEarnShares`,inputs:[]},{type:`error`,name:`ZeroMinimumEngineShares`,inputs:[]}],YL=[{type:`constructor`,inputs:[{name:`vault_`,type:`address`},{name:`owner_`,type:`address`},{name:`nameOverride_`,type:`string`},{name:`symbolOverride_`,type:`string`}],stateMutability:`nonpayable`},{type:`function`,name:`acceptOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`asset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`baseAsset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`deposit`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`depositInKind`,inputs:[{name:`venueShares`,type:`uint256`},{name:`from`,type:`address`}],outputs:[{name:`engineSharesReceived`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`initializeEarnVault`,inputs:[{name:`earnVault_`,type:`address`},{name:`finalOwner_`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`initializeEarnVault`,inputs:[{name:`earnVault_`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`name`,inputs:[],outputs:[{name:``,type:`string`}],stateMutability:`view`},{type:`function`,name:`owner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`pendingOwner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`previewRedeem`,inputs:[{name:`engineShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`previewWithdraw`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`redeem`,inputs:[{name:`engineShares`,type:`uint256`},{name:`receiver`,type:`address`},{name:`minAssets`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`renounceOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`shareScale`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`supportsInterface`,inputs:[{name:`interfaceId`,type:`bytes4`}],outputs:[{name:``,type:`bool`}],stateMutability:`pure`},{type:`function`,name:`symbol`,inputs:[],outputs:[{name:``,type:`string`}],stateMutability:`view`},{type:`function`,name:`totalAssets`,inputs:[],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`totalShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`transferOwnership`,inputs:[{name:`newOwner`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`valueOf`,inputs:[{name:`engineShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`vault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`withdraw`,inputs:[{name:`assets`,type:`uint256`},{name:`receiver`,type:`address`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`event`,name:`Deposited`,inputs:[{name:`earnVault`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`engineShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`EarnVaultInitialized`,inputs:[{name:`earnVault`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OwnershipTransferStarted`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OwnershipTransferred`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`Redeemed`,inputs:[{name:`receiver`,type:`address`,indexed:!0},{name:`engineShares`,type:`uint256`,indexed:!1},{name:`assets`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`VenueSharesDeposited`,inputs:[{name:`from`,type:`address`,indexed:!0},{name:`requestedVenueShares`,type:`uint256`,indexed:!1},{name:`receivedEngineShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`WithdrewExact`,inputs:[{name:`receiver`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`engineSharesBurned`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`error`,name:`AlreadyInitialized`,inputs:[]},{type:`error`,name:`EarnVaultNotSet`,inputs:[]},{type:`error`,name:`EmptyMetadata`,inputs:[]},{type:`error`,name:`InsufficientAssetsReceived`,inputs:[{name:`minimumAssets`,type:`uint256`},{name:`actualAssets`,type:`uint256`}]},{type:`error`,name:`InvalidVenueShareDecimals`,inputs:[]},{type:`error`,name:`NoVenueSharesReceived`,inputs:[]},{type:`error`,name:`NotEarnVault`,inputs:[{name:`caller`,type:`address`}]},{type:`error`,name:`OwnableInvalidOwner`,inputs:[{name:`owner`,type:`address`}]},{type:`error`,name:`OwnableUnauthorizedAccount`,inputs:[{name:`account`,type:`address`}]},{type:`error`,name:`ReentrantCall`,inputs:[]},{type:`error`,name:`TransferFailed`,inputs:[]},{type:`error`,name:`UnexpectedAssetsReceived`,inputs:[{name:`expectedAssets`,type:`uint256`},{name:`actualAssets`,type:`uint256`}]},{type:`error`,name:`UnexpectedVenueSharesBurned`,inputs:[{name:`expectedShares`,type:`uint256`},{name:`actualShares`,type:`uint256`}]},{type:`error`,name:`ZeroAddress`,inputs:[]}],XL=[{type:`function`,name:`ENGINE_SALT_DOMAIN`,inputs:[],outputs:[{name:``,type:`bytes32`}],stateMutability:`view`},{type:`function`,name:`computeEngineSalt`,inputs:[{name:`deploymentId`,type:`bytes32`},{name:`vault`,type:`address`},{name:`owner`,type:`address`},{name:`nameOverride`,type:`string`},{name:`symbolOverride`,type:`string`}],outputs:[{name:``,type:`bytes32`}],stateMutability:`pure`},{type:`function`,name:`deploy`,inputs:[{name:`deploymentId`,type:`bytes32`},{name:`vault`,type:`address`},{name:`owner`,type:`address`},{name:`nameOverride`,type:`string`},{name:`symbolOverride`,type:`string`}],outputs:[{name:`engine`,type:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`predictEngine`,inputs:[{name:`deploymentId`,type:`bytes32`},{name:`vault`,type:`address`},{name:`owner`,type:`address`},{name:`nameOverride`,type:`string`},{name:`symbolOverride`,type:`string`}],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`event`,name:`ERC4626EngineDeployed`,inputs:[{name:`engine`,type:`address`,indexed:!0},{name:`vault`,type:`address`,indexed:!0},{name:`owner`,type:`address`,indexed:!0},{name:`asset`,type:`address`,indexed:!1},{name:`deploymentId`,type:`bytes32`,indexed:!1},{name:`engineSalt`,type:`bytes32`,indexed:!1}],anonymous:!1},{type:`error`,name:`EmptyDeploymentId`,inputs:[]},{type:`error`,name:`EngineAlreadyExists`,inputs:[{name:`engine`,type:`address`}]},{type:`error`,name:`FactoryCannotBeFinalOwner`,inputs:[]}],ZL=[{type:`constructor`,inputs:[{name:`peripheryRegistry_`,type:`address`},{name:`owner_`,type:`address`},{name:`maxRateAge_`,type:`uint64`},{name:`name_`,type:`string`},{name:`symbol_`,type:`string`}],stateMutability:`nonpayable`},{type:`function`,name:`acceptOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`accountant`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`accountantRateUpdatedAt`,inputs:[],outputs:[{name:``,type:`uint64`}],stateMutability:`view`},{type:`function`,name:`asset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`authorizedForwarder`,inputs:[{name:`forwarder`,type:`address`}],outputs:[{name:`authorized`,type:`bool`}],stateMutability:`view`},{type:`function`,name:`baseAsset`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`cancelRedeem`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`claimQueue`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`claimRedeem`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:`amount`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`deposit`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`earnVault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`finalizeOneExternal`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`forwardSolved`,inputs:[{name:`requestIds`,type:`bytes32[]`},{name:`asset_`,type:`address`},{name:`delta`,type:`uint256`}],outputs:[{name:`claimed`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`getClaim`,inputs:[{name:`requestId`,type:`bytes32`}],outputs:[{name:`status`,type:`uint8`},{name:`request`,type:`tuple`,components:[{name:`nonce`,type:`uint96`},{name:`user`,type:`address`},{name:`assetOut`,type:`address`},{name:`amountOfShares`,type:`uint128`},{name:`amountOfAssets`,type:`uint128`},{name:`creationTime`,type:`uint40`},{name:`secondsToMaturity`,type:`uint24`},{name:`secondsToDeadline`,type:`uint24`}]}],stateMutability:`view`},{type:`function`,name:`initializeEarnVault`,inputs:[{name:`earnVault_`,type:`address`},{name:`finalOwner_`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`initializeEarnVault`,inputs:[{name:`earnVault_`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`isFeeValuationFresh`,inputs:[],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`maxRateAge`,inputs:[],outputs:[{name:``,type:`uint64`}],stateMutability:`view`},{type:`function`,name:`name`,inputs:[],outputs:[{name:``,type:`string`}],stateMutability:`view`},{type:`function`,name:`openClaimsByQueue`,inputs:[{name:`requestQueue`,type:`address`}],outputs:[{name:`count`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`owner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`pendingOwner`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`peripheryRegistry`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`peripheryVersion`,inputs:[],outputs:[{name:``,type:`uint64`}],stateMutability:`view`},{type:`function`,name:`previewRedeem`,inputs:[{name:`engineShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`previewWithdraw`,inputs:[{name:`assets`,type:`uint256`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`queue`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`rate`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`recoverExternalSettlement`,inputs:[{name:`requestIds`,type:`bytes32[]`}],outputs:[{name:`claimed`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`redeem`,inputs:[{name:`engineShares`,type:`uint256`},{name:`receiver`,type:`address`},{name:`minAssets`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`renounceOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`requestRedeem`,inputs:[{name:`engineShares`,type:`uint256`},{name:`requestData`,type:`bytes`}],outputs:[{name:`requestId`,type:`bytes32`}],stateMutability:`nonpayable`},{type:`function`,name:`setAuthorizedForwarder`,inputs:[{name:`account`,type:`address`},{name:`authorized`,type:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setMaxRateAge`,inputs:[{name:`newMaxRateAge`,type:`uint64`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`settled`,inputs:[{name:`asset`,type:`address`}],outputs:[{name:`amount`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`shareScale`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`supportsInterface`,inputs:[{name:`interfaceId`,type:`bytes4`}],outputs:[{name:``,type:`bool`}],stateMutability:`view`},{type:`function`,name:`sweepDust`,inputs:[{name:`token`,type:`address`},{name:`to`,type:`address`},{name:`amount`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`symbol`,inputs:[],outputs:[{name:``,type:`string`}],stateMutability:`view`},{type:`function`,name:`syncVedaPeriphery`,inputs:[{name:`minRate`,type:`uint256`},{name:`maxRate`,type:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`teller`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`totalAssets`,inputs:[],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`totalShares`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`transferOwnership`,inputs:[{name:`newOwner`,type:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`unresolvedClaimCount`,inputs:[],outputs:[{name:``,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`valueOf`,inputs:[{name:`engineShares`,type:`uint256`}],outputs:[{name:`assets`,type:`uint256`}],stateMutability:`view`},{type:`function`,name:`vault`,inputs:[],outputs:[{name:``,type:`address`}],stateMutability:`view`},{type:`function`,name:`withdraw`,inputs:[{name:`assets`,type:`uint256`},{name:`receiver`,type:`address`}],outputs:[{name:`engineShares`,type:`uint256`}],stateMutability:`nonpayable`},{type:`event`,name:`AuthorizedForwarderChanged`,inputs:[{name:`account`,type:`address`,indexed:!0},{name:`authorized`,type:`bool`,indexed:!1}],anonymous:!1},{type:`event`,name:`Deposited`,inputs:[{name:`earnVault`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`engineShares`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`DustSwept`,inputs:[{name:`token`,type:`address`,indexed:!0},{name:`to`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`EarnVaultInitialized`,inputs:[{name:`earnVault`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`ExternalSettlementRecovered`,inputs:[{name:`requestCount`,type:`uint256`,indexed:!1},{name:`recoveredAssets`,type:`uint256`,indexed:!1},{name:`claimed`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`FinalizeFailed`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`asset`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`Finalized`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`asset`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`MaxRateAgeUpdated`,inputs:[{name:`oldMaxRateAge`,type:`uint64`,indexed:!1},{name:`newMaxRateAge`,type:`uint64`,indexed:!1}],anonymous:!1},{type:`event`,name:`OwnershipTransferStarted`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`OwnershipTransferred`,inputs:[{name:`previousOwner`,type:`address`,indexed:!0},{name:`newOwner`,type:`address`,indexed:!0}],anonymous:!1},{type:`event`,name:`RedeemCancelledOnQueue`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`engineShares`,type:`uint128`,indexed:!1}],anonymous:!1},{type:`event`,name:`RedeemClaimed`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`asset`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`RedeemRequested`,inputs:[{name:`requestId`,type:`bytes32`,indexed:!0},{name:`assetOut`,type:`address`,indexed:!0},{name:`engineShares`,type:`uint128`,indexed:!1}],anonymous:!1},{type:`event`,name:`Redeemed`,inputs:[{name:`receiver`,type:`address`,indexed:!0},{name:`engineShares`,type:`uint256`,indexed:!1},{name:`assets`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`Settled`,inputs:[{name:`asset`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1},{name:`newTotal`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`Unearmarked`,inputs:[{name:`asset`,type:`address`,indexed:!0},{name:`amount`,type:`uint256`,indexed:!1},{name:`newTotal`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`VedaEngineInitialized`,inputs:[{name:`teller`,type:`address`,indexed:!0},{name:`queue`,type:`address`,indexed:!0},{name:`accountant`,type:`address`,indexed:!0},{name:`peripheryVersion`,type:`uint64`,indexed:!1},{name:`maxRateAge`,type:`uint64`,indexed:!1}],anonymous:!1},{type:`event`,name:`VedaPeripheryUpdated`,inputs:[{name:`registryVersion`,type:`uint64`,indexed:!0},{name:`oldTeller`,type:`address`,indexed:!0},{name:`oldQueue`,type:`address`,indexed:!0},{name:`oldAccountant`,type:`address`,indexed:!1},{name:`newTeller`,type:`address`,indexed:!1},{name:`newQueue`,type:`address`,indexed:!1},{name:`newAccountant`,type:`address`,indexed:!1},{name:`validatedRate`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`event`,name:`WithdrewExact`,inputs:[{name:`receiver`,type:`address`,indexed:!0},{name:`assets`,type:`uint256`,indexed:!1},{name:`engineSharesBurned`,type:`uint256`,indexed:!1}],anonymous:!1},{type:`error`,name:`AlreadyInitialized`,inputs:[]},{type:`error`,name:`AssetsNotArrived`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`BaseAssetSweepBlocked`,inputs:[{name:`unresolvedClaims`,type:`uint256`}]},{type:`error`,name:`CannotSweepEngineBacking`,inputs:[]},{type:`error`,name:`ClaimNotClaimable`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`ClaimNotOpen`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`CreditExceedsBalance`,inputs:[{name:`asset`,type:`address`},{name:`have`,type:`uint256`},{name:`wantTotal`,type:`uint256`}]},{type:`error`,name:`DepositsNotPaused`,inputs:[]},{type:`error`,name:`DuplicateRequest`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`EarnVaultNotSet`,inputs:[]},{type:`error`,name:`EmptyMetadata`,inputs:[]},{type:`error`,name:`EngineSharesTooLarge`,inputs:[{name:`engineShares`,type:`uint256`}]},{type:`error`,name:`InsufficientAssetsReceived`,inputs:[{name:`minimumAssets`,type:`uint256`},{name:`actualAssets`,type:`uint256`}]},{type:`error`,name:`InvalidAsset`,inputs:[{name:`expected`,type:`address`},{name:`actual`,type:`address`}]},{type:`error`,name:`InvalidMaxRateAge`,inputs:[]},{type:`error`,name:`InvalidRateTimestamp`,inputs:[{name:`updatedAt`,type:`uint256`},{name:`currentTime`,type:`uint256`}]},{type:`error`,name:`InvalidTrackedRequest`,inputs:[{name:`requestId`,type:`bytes32`}]},{type:`error`,name:`InvalidVedaPeriphery`,inputs:[{name:`account`,type:`address`}]},{type:`error`,name:`InvalidVedaPeripheryWiring`,inputs:[{name:`component`,type:`address`},{name:`expected`,type:`address`},{name:`actual`,type:`address`}]},{type:`error`,name:`InvalidVedaRateBounds`,inputs:[{name:`minRate`,type:`uint256`},{name:`maxRate`,type:`uint256`}]},{type:`error`,name:`InvalidVenueShareDecimals`,inputs:[]},{type:`error`,name:`NoPublishedVedaPeriphery`,inputs:[]},{type:`error`,name:`NoRecoverableClaims`,inputs:[]},{type:`error`,name:`NoVenueSharesReceived`,inputs:[]},{type:`error`,name:`NotAuthorizedForwarder`,inputs:[{name:`caller`,type:`address`}]},{type:`error`,name:`NotEarnVault`,inputs:[{name:`caller`,type:`address`}]},{type:`error`,name:`NotSelf`,inputs:[]},{type:`error`,name:`OwnableInvalidOwner`,inputs:[{name:`owner`,type:`address`}]},{type:`error`,name:`OwnableUnauthorizedAccount`,inputs:[{name:`account`,type:`address`}]},{type:`error`,name:`QueueTrackingDisabled`,inputs:[{name:`queue`,type:`address`}]},{type:`error`,name:`QueueUnavailable`,inputs:[]},{type:`error`,name:`QueuedAssetsBelowMinimum`,inputs:[{name:`minimumAssets`,type:`uint256`},{name:`actualAssets`,type:`uint256`}]},{type:`error`,name:`RateChangedWithinTransaction`,inputs:[{name:`expected`,type:`uint256`},{name:`actual`,type:`uint256`}]},{type:`error`,name:`ReentrantCall`,inputs:[]},{type:`error`,name:`RegistryEngineMismatch`,inputs:[{name:`expected`,type:`address`},{name:`actual`,type:`address`}]},{type:`error`,name:`SolveUnderfunded`,inputs:[{name:`asset`,type:`address`},{name:`delivered`,type:`uint256`},{name:`required`,type:`uint256`}]},{type:`error`,name:`StaleAccountantRate`,inputs:[{name:`updatedAt`,type:`uint256`},{name:`currentTime`,type:`uint256`},{name:`maxAge`,type:`uint256`}]},{type:`error`,name:`SweepExceedsAvailableBalance`,inputs:[{name:`token`,type:`address`},{name:`available`,type:`uint256`},{name:`requested`,type:`uint256`}]},{type:`error`,name:`TransferFailed`,inputs:[]},{type:`error`,name:`UnexpectedAssetsReceived`,inputs:[{name:`expectedAssets`,type:`uint256`},{name:`actualAssets`,type:`uint256`}]},{type:`error`,name:`UnexpectedVenueSharesBurned`,inputs:[{name:`expectedShares`,type:`uint256`},{name:`actualShares`,type:`uint256`}]},{type:`error`,name:`UnexpectedVenueSharesQueued`,inputs:[{name:`expectedShares`,type:`uint256`},{name:`actualShares`,type:`uint256`}]},{type:`error`,name:`UnsupportedAccountantFreshness`,inputs:[{name:`accountant`,type:`address`}]},{type:`error`,name:`VedaRateOutOfBounds`,inputs:[{name:`rate`,type:`uint256`},{name:`minRate`,type:`uint256`},{name:`maxRate`,type:`uint256`}]},{type:`error`,name:`ZeroAddress`,inputs:[]},{type:`error`,name:`ZeroMinimumQueuedAssets`,inputs:[]}],QL=[{name:`MAX_DEPOSITS_PER_TEMPO_BLOCK`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`MAX_TOKENS_ENABLED_PER_TEMPO_BLOCK`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{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:`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`}]}],$L=[{name:`tempoGasRate`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint128`}]},{name:`maxWithdrawalsPerBlock`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint32`}]},{name:`lastBatch`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`tuple`,components:[{type:`bytes32`,name:`withdrawalQueueHash`},{type:`uint64`,name:`withdrawalBatchIndex`}]}]},{name:`lastFinalizedTimestamp`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`nextWithdrawalIndex`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`lastFallbackNonce`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`pendingWithdrawalsCount`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint256`}]},{name:`getPendingWithdrawals`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`tuple[]`,components:[{type:`address`,name:`token`},{type:`address`,name:`sender`},{type:`bytes32`,name:`txHash`},{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:`revealTo`}]}]},{name:`consumeFallbackRecipient`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`uint64`,name:`fallbackNonce`}],outputs:[{type:`address`,name:`recipient`}]},{name:`calculateWithdrawalFee`,type:`function`,stateMutability:`view`,inputs:[{type:`uint64`,name:`gasLimit`}],outputs:[{type:`uint128`,name:`fee`}]},{name:`MAX_CALLBACK_DATA_SIZE`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint256`}]},{name:`MAX_WITHDRAWAL_GAS_LIMIT`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`WITHDRAWAL_BASE_GAS`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`REVEAL_TO_KEY_LENGTH`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint256`}]},{name:`AUTHENTICATED_WITHDRAWAL_CIPHERTEXT_LENGTH`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint256`}]},{name:`setTempoGasRate`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`uint128`,name:`_tempoGasRate`}],outputs:[]},{name:`setMaxWithdrawalsPerBlock`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`uint32`,name:`_maxWithdrawalsPerBlock`}],outputs:[]},{name:`requestWithdrawal`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`address`,name:`token`},{type:`address`,name:`to`},{type:`uint128`,name:`amount`},{type:`bytes32`,name:`memo`},{type:`uint64`,name:`gasLimit`},{type:`address`,name:`zoneFallbackRecipient`},{type:`bytes`,name:`data`},{type:`bytes`,name:`revealTo`}],outputs:[]},{name:`enqueueDepositBounceBack`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`address`,name:`token`},{type:`uint128`,name:`amount`},{type:`address`,name:`tempoRefundRecipient`}],outputs:[]},{name:`finalizeWithdrawalBatch`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`uint256`,name:`count`},{type:`uint64`,name:`blockNumber`},{type:`bytes[]`,name:`encryptedSenders`}],outputs:[{type:`bytes32`,name:`withdrawalQueueHash`}]},{name:`WithdrawalRequested`,type:`event`,inputs:[{type:`uint64`,name:`withdrawalIndex`,indexed:!0},{type:`address`,name:`sender`,indexed:!0},{type:`address`,name:`token`},{type:`address`,name:`to`},{type:`uint128`,name:`amount`},{type:`uint128`,name:`fee`},{type:`bytes32`,name:`memo`},{type:`uint64`,name:`gasLimit`},{type:`uint64`,name:`fallbackNonce`},{type:`bytes`,name:`data`},{type:`bytes`,name:`revealTo`}]},{name:`BatchFinalized`,type:`event`,inputs:[{type:`bytes32`,name:`withdrawalQueueHash`,indexed:!0},{type:`uint64`,name:`withdrawalBatchIndex`}]},{name:`TempoGasRateUpdated`,type:`event`,inputs:[{type:`uint128`,name:`tempoGasRate`}]},{name:`MaxWithdrawalsPerBlockUpdated`,type:`event`,inputs:[{type:`uint32`,name:`maxWithdrawalsPerBlock`}]},{name:`OnlySequencer`,type:`error`,inputs:[]},{name:`GasLimitTooHigh`,type:`error`,inputs:[]},{name:`OnlyZoneInbox`,type:`error`,inputs:[]},{name:`InvalidWithdrawalCount`,type:`error`,inputs:[{type:`uint256`,name:`actual`},{type:`uint256`,name:`expected`}]},{name:`InvalidEncryptedSenderCount`,type:`error`,inputs:[{type:`uint256`,name:`actual`},{type:`uint256`,name:`expected`}]},{name:`InvalidEncryptedSenderLength`,type:`error`,inputs:[{type:`uint256`,name:`actual`},{type:`uint256`,name:`expected`}]},{name:`InvalidFallbackRecipient`,type:`error`,inputs:[]},{name:`CallbackDataTooLarge`,type:`error`,inputs:[]},{name:`GasFeeRateTooHigh`,type:`error`,inputs:[]},{name:`TransferFailed`,type:`error`,inputs:[]},{name:`InvalidBlockNumber`,type:`error`,inputs:[]},{name:`TooManyWithdrawalsThisBlock`,type:`error`,inputs:[]},{name:`InvalidRevealTo`,type:`error`,inputs:[]},{name:`InvalidCurrentTxHash`,type:`error`,inputs:[]},{name:`ZeroAmountWithdrawal`,type:`error`,inputs:[]},{name:`StaticCallNotAllowed`,type:`error`,inputs:[]}],eR=[{name:`relayMessage`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`uint32`,name:`zoneId`},{type:`address`,name:`token`},{type:`bytes32`,name:`senderTag`},{type:`address`,name:`target`},{type:`uint128`,name:`amount`},{type:`uint64`,name:`gasLimit`},{type:`bytes`,name:`data`}],outputs:[]}],tR=[{name:`processedDepositQueueHash`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`bytes32`}]},{name:`processedDepositNumber`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`processedTokenEnablementHash`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`bytes32`}]},{name:`processedEnabledTokenCount`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`uint64`}]},{name:`tempoPortal`,type:`function`,stateMutability:`view`,inputs:[],outputs:[{type:`address`}]},{name:`tempoState`,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:`claimRefund`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`address`,name:`token`}],outputs:[{type:`uint128`,name:`amount`}]},{name:`advanceTempo`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`bytes`,name:`header`},{type:`tuple[]`,name:`deposits`,components:[{type:`uint8`,name:`depositType`},{type:`bytes`,name:`depositData`},{type:`bool`,name:`rejected`}]},{type:`tuple[]`,name:`decryptions`,components:[{type:`bytes32`,name:`sharedSecret`},{type:`uint8`,name:`sharedSecretYParity`},{type:`tuple`,name:`cpProof`,components:[{type:`bytes32`,name:`s`},{type:`bytes32`,name:`c`}]}]},{type:`tuple[]`,name:`enabledTokens`,components:[{type:`address`,name:`token`},{type:`string`,name:`name`},{type:`string`,name:`symbol`},{type:`string`,name:`currency`}]}],outputs:[]},{name:`advanceTempoHeaders`,type:`function`,stateMutability:`nonpayable`,inputs:[{type:`bytes[]`,name:`headers`}],outputs:[]},{name:`TempoAdvanced`,type:`event`,inputs:[{type:`bytes32`,name:`tempoBlockHash`,indexed:!0},{type:`uint64`,name:`tempoBlockNumber`,indexed:!0},{type:`uint256`,name:`depositsProcessed`},{type:`bytes32`,name:`newProcessedDepositQueueHash`},{type:`uint64`,name:`lastProcessedDepositNumber`}]},{name:`TempoAdvanced`,type:`event`,inputs:[{type:`bytes32`,name:`tempoBlockHash`,indexed:!0},{type:`uint64`,name:`tempoBlockNumber`,indexed:!0},{type:`uint256`,name:`depositsProcessed`},{type:`bytes32`,name:`newProcessedDepositQueueHash`},{type:`uint64`,name:`lastProcessedDepositNumber`},{type:`uint64`,name:`lastProcessedEnabledTokenCount`}]},{name:`DepositProcessed`,type:`event`,inputs:[{type:`bytes32`,name:`depositHash`,indexed:!0},{type:`address`,name:`sender`,indexed:!0},{type:`address`,name:`to`,indexed:!0},{type:`address`,name:`token`},{type:`uint128`,name:`amount`},{type:`bytes32`,name:`memo`}]},{name:`DepositFailed`,type:`event`,inputs:[{type:`bytes32`,name:`depositHash`,indexed:!0},{type:`address`,name:`sender`,indexed:!0},{type:`address`,name:`token`},{type:`uint128`,name:`amount`}]},{name:`DepositRejected`,type:`event`,inputs:[{type:`bytes32`,name:`depositHash`,indexed:!0},{type:`address`,name:`sender`,indexed:!0},{type:`uint8`,name:`depositType`},{type:`address`,name:`token`},{type:`uint128`,name:`amount`},{type:`address`,name:`tempoRefundRecipient`}]},{name:`WithdrawalBounceBackProcessed`,type:`event`,inputs:[{type:`address`,name:`zoneFallbackRecipient`,indexed:!0},{type:`address`,name:`token`},{type:`uint128`,name:`amount`}]},{name:`WithdrawalBounceBackPending`,type:`event`,inputs:[{type:`address`,name:`zoneFallbackRecipient`,indexed:!0},{type:`address`,name:`token`},{type:`uint128`,name:`amount`}]},{name:`RefundClaimed`,type:`event`,inputs:[{type:`address`,name:`recipient`,indexed:!0},{type:`address`,name:`token`,indexed:!0},{type:`uint128`,name:`amount`}]},{name:`TokenEnabled`,type:`event`,inputs:[{type:`address`,name:`token`,indexed:!0},{type:`string`,name:`name`},{type:`string`,name:`symbol`},{type:`string`,name:`currency`}]},{name:`OnlySequencer`,type:`error`,inputs:[]},{name:`InvalidDepositQueueHash`,type:`error`,inputs:[]},{name:`InvalidWithdrawalBounceBack`,type:`error`,inputs:[]},{name:`InvalidTokenEnablementHash`,type:`error`,inputs:[]},{name:`MissingDecryptionData`,type:`error`,inputs:[]},{name:`ExtraDecryptionData`,type:`error`,inputs:[]},{name:`InvalidSharedSecretProof`,type:`error`,inputs:[]},{name:`Unauthorized`,type:`error`,inputs:[]}],nR=[{type:`constructor`,inputs:[{name:`baseToken_`,type:`address`,internalType:`contract ITIP20`},{name:`quoteToken_`,type:`address`,internalType:`contract ITIP20`},{name:`oracle_`,type:`address`,internalType:`contract IPriceOracle`},{name:`addressRegistry_`,type:`address`,internalType:`contract IAddressRegistry`},{name:`owner_`,type:`address`,internalType:`address`},{name:`guardian_`,type:`address`,internalType:`address`},{name:`maxOracleAge_`,type:`uint256`,internalType:`uint256`},{name:`maxPriceDeviationBps_`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`BPS`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`acceptOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`addressRegistry`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IAddressRegistry`}],stateMutability:`view`},{type:`function`,name:`baseDecimals`,inputs:[],outputs:[{name:``,type:`uint8`,internalType:`uint8`}],stateMutability:`view`},{type:`function`,name:`baseToQuotePriceAnchor`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`baseToken`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract ITIP20`}],stateMutability:`view`},{type:`function`,name:`fund`,inputs:[{name:`token`,type:`address`,internalType:`address`},{name:`amount`,type:`uint256`,internalType:`uint256`},{name:`memo`,type:`bytes32`,internalType:`bytes32`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`guardian`,inputs:[],outputs:[{name:``,type:`address`,internalType:`address`}],stateMutability:`view`},{type:`function`,name:`maxOracleAge`,inputs:[],outputs:[{name:``,type:`uint80`,internalType:`uint80`}],stateMutability:`view`},{type:`function`,name:`maxPriceDeviationBps`,inputs:[],outputs:[{name:``,type:`uint16`,internalType:`uint16`}],stateMutability:`view`},{type:`function`,name:`oracle`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IPriceOracle`}],stateMutability:`view`},{type:`function`,name:`oracleDecimals`,inputs:[],outputs:[{name:``,type:`uint8`,internalType:`uint8`}],stateMutability:`view`},{type:`function`,name:`owner`,inputs:[],outputs:[{name:``,type:`address`,internalType:`address`}],stateMutability:`view`},{type:`function`,name:`pause`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`paused`,inputs:[],outputs:[{name:``,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`pendingOwner`,inputs:[],outputs:[{name:``,type:`address`,internalType:`address`}],stateMutability:`view`},{type:`function`,name:`priceAnchor`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`}],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`priceScale`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoteDecimals`,inputs:[],outputs:[{name:``,type:`uint8`,internalType:`uint8`}],stateMutability:`view`},{type:`function`,name:`quoteExactInput`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`amountIn`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`amountOut`,type:`uint256`,internalType:`uint256`},{name:`price`,type:`uint256`,internalType:`uint256`},{name:`updatedAt`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoteExactInputFor`,inputs:[{name:`taker`,type:`address`,internalType:`address`},{name:`recipient`,type:`address`,internalType:`address`},{name:`customerId`,type:`bytes32`,internalType:`bytes32`},{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`amountIn`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`amountOut`,type:`uint256`,internalType:`uint256`},{name:`price`,type:`uint256`,internalType:`uint256`},{name:`updatedAt`,type:`uint256`,internalType:`uint256`},{name:`creditAfter`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoteExactOutput`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`amountOut`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`amountIn`,type:`uint256`,internalType:`uint256`},{name:`price`,type:`uint256`,internalType:`uint256`},{name:`updatedAt`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoteExactOutputFor`,inputs:[{name:`taker`,type:`address`,internalType:`address`},{name:`recipient`,type:`address`,internalType:`address`},{name:`customerId`,type:`bytes32`,internalType:`bytes32`},{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`amountOut`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`amountIn`,type:`uint256`,internalType:`uint256`},{name:`price`,type:`uint256`,internalType:`uint256`},{name:`updatedAt`,type:`uint256`,internalType:`uint256`},{name:`creditAfter`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoteToBasePriceAnchor`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`quoteToken`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract ITIP20`}],stateMutability:`view`},{type:`function`,name:`recipientAllowed`,inputs:[{name:`recipient`,type:`address`,internalType:`address`}],outputs:[{name:`allowed`,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`resetPriceAnchor`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`resolveRecipient`,inputs:[{name:`recipient`,type:`address`,internalType:`address`}],outputs:[{name:`resolved`,type:`address`,internalType:`address`}],stateMutability:`view`},{type:`function`,name:`roundingCredit`,inputs:[{name:`routeKey`,type:`bytes32`,internalType:`bytes32`}],outputs:[{name:`credit`,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`roundingRouteKey`,inputs:[{name:`taker`,type:`address`,internalType:`address`},{name:`recipient`,type:`address`,internalType:`address`},{name:`customerId`,type:`bytes32`,internalType:`bytes32`}],outputs:[{name:``,type:`bytes32`,internalType:`bytes32`}],stateMutability:`view`},{type:`function`,name:`setGuardian`,inputs:[{name:`newGuardian`,type:`address`,internalType:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setMaxOracleAge`,inputs:[{name:`newMaxOracleAge`,type:`uint256`,internalType:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setMaxPriceDeviationBps`,inputs:[{name:`newMaxPriceDeviationBps`,type:`uint256`,internalType:`uint256`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setOracle`,inputs:[{name:`newOracle`,type:`address`,internalType:`contract IPriceOracle`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setRecipientAllowed`,inputs:[{name:`recipient`,type:`address`,internalType:`address`},{name:`allowed`,type:`bool`,internalType:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`setTakerAllowed`,inputs:[{name:`taker`,type:`address`,internalType:`address`},{name:`allowed`,type:`bool`,internalType:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`swapExactInput`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`amountIn`,type:`uint256`,internalType:`uint256`},{name:`minAmountOut`,type:`uint256`,internalType:`uint256`},{name:`recipient`,type:`address`,internalType:`address`},{name:`customerId`,type:`bytes32`,internalType:`bytes32`},{name:`tradeId`,type:`bytes32`,internalType:`bytes32`},{name:`deadline`,type:`uint256`,internalType:`uint256`},{name:`expectedOraclePrice`,type:`uint256`,internalType:`uint256`},{name:`oraclePriceToleranceBps`,type:`uint256`,internalType:`uint256`},{name:`minimumOracleUpdatedAt`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`amountOut`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`swapExactOutput`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`amountOut`,type:`uint256`,internalType:`uint256`},{name:`maxAmountIn`,type:`uint256`,internalType:`uint256`},{name:`recipient`,type:`address`,internalType:`address`},{name:`customerId`,type:`bytes32`,internalType:`bytes32`},{name:`tradeId`,type:`bytes32`,internalType:`bytes32`},{name:`deadline`,type:`uint256`,internalType:`uint256`},{name:`expectedOraclePrice`,type:`uint256`,internalType:`uint256`},{name:`oraclePriceToleranceBps`,type:`uint256`,internalType:`uint256`},{name:`minimumOracleUpdatedAt`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`amountIn`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`takerAllowed`,inputs:[{name:`taker`,type:`address`,internalType:`address`}],outputs:[{name:`allowed`,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`transferOwnership`,inputs:[{name:`newOwner`,type:`address`,internalType:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`unpause`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`withdraw`,inputs:[{name:`token`,type:`address`,internalType:`address`},{name:`recipient`,type:`address`,internalType:`address`},{name:`amount`,type:`uint256`,internalType:`uint256`},{name:`memo`,type:`bytes32`,internalType:`bytes32`}],outputs:[],stateMutability:`nonpayable`},{type:`event`,name:`Funded`,inputs:[{name:`token`,type:`address`,indexed:!0,internalType:`address`},{name:`amount`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`memo`,type:`bytes32`,indexed:!0,internalType:`bytes32`}],anonymous:!1},{type:`event`,name:`GuardianUpdated`,inputs:[{name:`oldGuardian`,type:`address`,indexed:!0,internalType:`address`},{name:`newGuardian`,type:`address`,indexed:!0,internalType:`address`}],anonymous:!1},{type:`event`,name:`MaxOracleAgeUpdated`,inputs:[{name:`oldMaxAge`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`newMaxAge`,type:`uint256`,indexed:!1,internalType:`uint256`}],anonymous:!1},{type:`event`,name:`MaxPriceDeviationBpsUpdated`,inputs:[{name:`oldMaxPriceDeviationBps`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`newMaxPriceDeviationBps`,type:`uint256`,indexed:!1,internalType:`uint256`}],anonymous:!1},{type:`event`,name:`OracleUpdated`,inputs:[{name:`oldOracle`,type:`address`,indexed:!0,internalType:`address`},{name:`newOracle`,type:`address`,indexed:!0,internalType:`address`},{name:`decimals`,type:`uint8`,indexed:!1,internalType:`uint8`}],anonymous:!1},{type:`event`,name:`OwnershipTransferStarted`,inputs:[{name:`oldOwner`,type:`address`,indexed:!0,internalType:`address`},{name:`pendingOwner`,type:`address`,indexed:!0,internalType:`address`}],anonymous:!1},{type:`event`,name:`OwnershipTransferred`,inputs:[{name:`oldOwner`,type:`address`,indexed:!0,internalType:`address`},{name:`newOwner`,type:`address`,indexed:!0,internalType:`address`}],anonymous:!1},{type:`event`,name:`PausedStateChanged`,inputs:[{name:`paused`,type:`bool`,indexed:!1,internalType:`bool`}],anonymous:!1},{type:`event`,name:`PriceAnchorUpdated`,inputs:[{name:`baseToQuote`,type:`bool`,indexed:!0,internalType:`bool`},{name:`oldAnchor`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`newAnchor`,type:`uint256`,indexed:!1,internalType:`uint256`}],anonymous:!1},{type:`event`,name:`RecipientPermissionUpdated`,inputs:[{name:`recipient`,type:`address`,indexed:!0,internalType:`address`},{name:`allowed`,type:`bool`,indexed:!1,internalType:`bool`}],anonymous:!1},{type:`event`,name:`RoundingCreditUpdated`,inputs:[{name:`routeKey`,type:`bytes32`,indexed:!0,internalType:`bytes32`},{name:`previousCredit`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`newCredit`,type:`uint256`,indexed:!1,internalType:`uint256`}],anonymous:!1},{type:`event`,name:`TakerPermissionUpdated`,inputs:[{name:`taker`,type:`address`,indexed:!0,internalType:`address`},{name:`allowed`,type:`bool`,indexed:!1,internalType:`bool`}],anonymous:!1},{type:`event`,name:`TradeExecuted`,inputs:[{name:`taker`,type:`address`,indexed:!0,internalType:`address`},{name:`recipient`,type:`address`,indexed:!0,internalType:`address`},{name:`customerId`,type:`bytes32`,indexed:!0,internalType:`bytes32`},{name:`tradeId`,type:`bytes32`,indexed:!1,internalType:`bytes32`},{name:`tokenIn`,type:`address`,indexed:!1,internalType:`address`},{name:`tokenOut`,type:`address`,indexed:!1,internalType:`address`},{name:`amountIn`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`amountOut`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`oraclePrice`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`oracleUpdatedAt`,type:`uint256`,indexed:!1,internalType:`uint256`}],anonymous:!1},{type:`event`,name:`Withdrawn`,inputs:[{name:`token`,type:`address`,indexed:!0,internalType:`address`},{name:`recipient`,type:`address`,indexed:!0,internalType:`address`},{name:`amount`,type:`uint256`,indexed:!1,internalType:`uint256`},{name:`memo`,type:`bytes32`,indexed:!1,internalType:`bytes32`}],anonymous:!1},{type:`error`,name:`AmountIsZero`,inputs:[]},{type:`error`,name:`CustomerIdIsZero`,inputs:[]},{type:`error`,name:`DeadlineExpired`,inputs:[{name:`deadline`,type:`uint256`,internalType:`uint256`},{name:`currentTimestamp`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`ExactBalanceDeltaFailed`,inputs:[{name:`token`,type:`address`,internalType:`address`},{name:`expected`,type:`uint256`,internalType:`uint256`},{name:`actual`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`FutureOracleTimestamp`,inputs:[{name:`updatedAt`,type:`uint256`,internalType:`uint256`},{name:`currentTime`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`InsufficientInventory`,inputs:[{name:`token`,type:`address`,internalType:`address`},{name:`available`,type:`uint256`,internalType:`uint256`},{name:`required`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`InvalidAddress`,inputs:[]},{type:`error`,name:`InvalidMaxOracleAge`,inputs:[]},{type:`error`,name:`InvalidMaxPriceDeviationBps`,inputs:[{name:`supplied`,type:`uint256`,internalType:`uint256`},{name:`maximum`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`InvalidOraclePriceToleranceBps`,inputs:[{name:`supplied`,type:`uint256`,internalType:`uint256`},{name:`maximum`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`InvalidPrice`,inputs:[]},{type:`error`,name:`NotGuardianOrOwner`,inputs:[]},{type:`error`,name:`NotOwner`,inputs:[]},{type:`error`,name:`NotPaused`,inputs:[]},{type:`error`,name:`NotPendingOwner`,inputs:[]},{type:`error`,name:`OracleDecimalsChanged`,inputs:[{name:`currentDecimals`,type:`uint8`,internalType:`uint8`},{name:`proposedDecimals`,type:`uint8`,internalType:`uint8`}]},{type:`error`,name:`OraclePriceToleranceExceeded`,inputs:[{name:`expectedPrice`,type:`uint256`,internalType:`uint256`},{name:`actualPrice`,type:`uint256`,internalType:`uint256`},{name:`toleranceBps`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`OracleTimestampTooOld`,inputs:[{name:`minimumUpdatedAt`,type:`uint256`,internalType:`uint256`},{name:`actualUpdatedAt`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`Paused`,inputs:[]},{type:`error`,name:`PriceAnchorNotInitialized`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`}]},{type:`error`,name:`PriceDeviationExceeded`,inputs:[{name:`baseToQuote`,type:`bool`,internalType:`bool`},{name:`price`,type:`uint256`,internalType:`uint256`},{name:`anchor`,type:`uint256`,internalType:`uint256`},{name:`maxDeviationBps`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`RecipientNotAllowed`,inputs:[{name:`recipient`,type:`address`,internalType:`address`}]},{type:`error`,name:`ReentrancyGuardReentrantCall`,inputs:[]},{type:`error`,name:`SameToken`,inputs:[]},{type:`error`,name:`SlippageExceeded`,inputs:[{name:`limit`,type:`uint256`,internalType:`uint256`},{name:`actual`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`StaleOraclePrice`,inputs:[{name:`updatedAt`,type:`uint256`,internalType:`uint256`},{name:`maxAge`,type:`uint256`,internalType:`uint256`}]},{type:`error`,name:`TakerNotAllowed`,inputs:[{name:`taker`,type:`address`,internalType:`address`}]},{type:`error`,name:`TokenTransferFailed`,inputs:[{name:`token`,type:`address`,internalType:`address`}]},{type:`error`,name:`UnsupportedDecimals`,inputs:[{name:`baseDecimals`,type:`uint8`,internalType:`uint8`},{name:`quoteDecimals`,type:`uint8`,internalType:`uint8`},{name:`oracleDecimals`,type:`uint8`,internalType:`uint8`}]},{type:`error`,name:`UnsupportedToken`,inputs:[{name:`token`,type:`address`,internalType:`address`}]}],rR=[...yL,...bL,...SL,...kL,...OL,...xL,...CL,...wL,...TL,...EL,...DL,...ML,...AL,...jL,...NL,...FL,...PL,...IL,...LL,...RL],iR=[...zL,...BL,...VL,...HL,...UL,...WL,...GL,...KL,...qL,...JL,...YL,...XL,...ZL],aR=[...tR,...eR,...$L,...QL],oR=[...nR];[...rR,...iR,...aR,...oR];var sR=[{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`}]},{name:`MasterIdCollision`,type:`error`,inputs:[{type:`address`,name:`master`}]},{name:`InvalidMasterAddress`,type:`error`,inputs:[]},{name:`ProofOfWorkFailed`,type:`error`,inputs:[]},{name:`VirtualAddressUnregistered`,type:`error`,inputs:[]},{name:`Unauthorized`,type:`error`,inputs:[]},{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:[]},{name:`InsufficientFeeTokenBalance`,type:`error`,inputs:[]},{name:`CannotChangeWithinBlock`,type:`error`,inputs:[]},{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:[]},{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:[]},{name:`InvalidReceipt`,type:`error`,inputs:[]},{name:`InvalidClaimAddress`,type:`error`,inputs:[]},{name:`UnauthorizedClaimer`,type:`error`,inputs:[]},{name:`AddressReserved`,type:`error`,inputs:[]},{name:`InvalidFormat`,type:`error`,inputs:[]},{name:`InvalidSignature`,type:`error`,inputs:[]},{name:`PairDoesNotExist`,type:`error`,inputs:[]},{name:`PairAlreadyExists`,type:`error`,inputs:[]},{name:`OrderDoesNotExist`,type:`error`,inputs:[]},{name:`IdenticalTokens`,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:`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:[]},{name:`InvalidMode`,type:`error`,inputs:[]},{name:`OnlyDirectCall`,type:`error`,inputs:[]},{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:`NoOptedInSupply`,type:`error`,inputs:[]},{name:`ProtectedAddress`,type:`error`,inputs:[]},{name:`Uninitialized`,type:`error`,inputs:[]},{name:`InvalidTransferPolicyId`,type:`error`,inputs:[]},{name:`PermitExpired`,type:`error`,inputs:[]},{name:`LogoURITooLong`,type:`error`,inputs:[]},{name:`InvalidLogoURI`,type:`error`,inputs:[]},{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:`AmountExceedsDeposit`,type:`error`,inputs:[]},{name:`AmountNotIncreasing`,type:`error`,inputs:[]},{name:`CaptureAmountInvalid`,type:`error`,inputs:[]},{name:`CloseNotReady`,type:`error`,inputs:[]},{name:`DepositOverflow`,type:`error`,inputs:[]},{name:`AddressNotReserved`,type:`error`,inputs:[]},{name:`TokenAlreadyExists`,type:`error`,inputs:[{type:`address`,name:`token`}]},{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:[]},{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`}]},{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:`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:`AddressAlreadyHasValidator`,type:`error`,inputs:[]},{name:`ValidatorAlreadyDeactivated`,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:`TokenMetadataTooLong`,type:`error`,inputs:[]},{name:`DuplicateAllowedAccount`,type:`error`,inputs:[]},{name:`DuplicateZoneGateway`,type:`error`,inputs:[]},{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:`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:`GasFeeRateTooHigh`,type:`error`,inputs:[]},{name:`DepositsNotActive`,type:`error`,inputs:[]},{name:`TokenAlreadyEnabled`,type:`error`,inputs:[]},{name:`TokenEnablementCursorNotInitialized`,type:`error`,inputs:[]},{name:`InvalidDepositTransition`,type:`error`,inputs:[]},{name:`InvalidTokenEnablementTransition`,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`}]}];DF(0),DF(0,42431);var cR=`0xaAAAaaAA00000000000000000000000000000000`,lR=`0xfeec000000000000000000000000000000000000`,uR=`0xAACC000000000000000000000000000000000000`,dR=`0x7171717171717171717171717171717171717171`,fR=`0x4e4F4E4345000000000000000000000000000000`,pR=`0x20c0000000000000000000000000000000000000`,mR=`0x5165300000000000000000000000000000000000`,hR=`0xdec0000000000000000000000000000000000000`,gR=`0x4d50500000000000000000000000000000000000`,_R=`0x20fc000000000000000000000000000000000000`,vR=`0x403c000000000000000000000000000000000000`;function yR(e){let t=DM(e);if(t.type===`configurable`||t.type===`keychain`)throw Error(`Configurable account owners must use primitive signatures.`);return t}var bR=1024;function xR(e,t=`hex`){let n=(()=>{if(typeof e==`string`){if(e.length>3&&e.length%2!=0)throw new De(e);return ue(e)}return e})(),r=mn(n,{recursiveReadLimit:1/0}),i=SR(r,t);if(r.position<r.bytes.length)throw new tt({count:r.bytes.length-r.position});return i}function SR(e,t=`hex`,n=0){if(n>=bR)throw new Gt({limit:bR});if(e.bytes.length===0)return t===`hex`?Ie(e.bytes):e.bytes;let r=e.readByte();if(r<128&&e.decrementPosition(1),r<192){let n=CR(e,r,128),i=e.readBytes(n);return t===`hex`?Ie(i):i}return wR(e,CR(e,r,192),t,n+1)}function CR(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 $e(`Invalid RLP prefix`)}function wR(e,t,n,r){let i=e.position,a=[];for(;e.position-i<t;)a.push(SR(e,n,r));if(e.position-i!==t)throw new Ee({consumed:e.position-i,declared:t});return a}function TR(e){return Ze(e)&&e.length===66}function ER(e){let{authorizationList:t}=e;if(t)for(let e of t){let{chainId:t}=e,n=e.address;if(!Ke(n))throw new be({address:n});if(t<0)throw new dn({chainId:t})}OR(e)}function DR(e){let{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new iL;for(let e of t){let t=qe(e),n=hn(Te(e,0,1));if(t!==32)throw new aL({hash:e,size:t});if(n!==1)throw new oL({hash:e,version:n})}}OR(e)}function OR(e){let{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new dn({chainId:t});if(i&&!Ke(i))throw new be({address:i});if(r&&r>Kt)throw new bt({maxFeePerGas:r});if(n&&r&&n>r)throw new Ut({maxFeePerGas:r,maxPriorityFeePerGas:n})}function kR(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a}=e;if(t<=0)throw new dn({chainId:t});if(a&&!Ke(a))throw new be({address:a});if(n||i)throw new $e("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>Kt)throw new bt({maxFeePerGas:r})}function AR(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a}=e;if(a&&!Ke(a))throw new be({address:a});if(t!==void 0&&t<=0)throw new dn({chainId:t});if(n||i)throw new $e("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>Kt)throw new bt({maxFeePerGas:r})}function jR(e){let t=et(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`&&hn(t)>=192)return`legacy`;throw new He({serializedType:t})}function MR(e){let t=jR(e);return t===`eip1559`?FR(e):t===`eip2930`?IR(e):t===`eip4844`?PR(e):t===`eip7702`?NR(e):LR(e)}function NR(e){let t=RR(e),[n,r,i,a,o,s,c,l,u,d,f,p,m]=t;if(t.length!==10&&t.length!==13)throw new un({attributes:{chainId:n,nonce:r,maxPriorityFeePerGas:i,maxFeePerGas:a,gas:o,to:s,value:c,data:l,accessList:u,authorizationList:d,...t.length>9?{v:f,r:p,s:m}:{}},serializedTransaction:e,type:`eip7702`});let h={chainId:hn(n),type:`eip7702`};return Ze(s)&&s!==`0x`&&(h.to=s),Ze(o)&&o!==`0x`&&(h.gas=ke(o)),Ze(l)&&l!==`0x`&&(h.data=l),Ze(r)&&(h.nonce=r===`0x`?0:hn(r)),Ze(c)&&c!==`0x`&&(h.value=ke(c)),Ze(a)&&a!==`0x`&&(h.maxFeePerGas=ke(a)),Ze(i)&&i!==`0x`&&(h.maxPriorityFeePerGas=ke(i)),u.length!==0&&u!==`0x`&&(h.accessList=zR(u)),d.length!==0&&d!==`0x`&&(h.authorizationList=BR(d)),ER(h),{...t.length===13?VR(t):void 0,...h}}function PR(e){let t=RR(e),n=t.length===4,r=n?t[0]:t,i=n?t.slice(1):[],[a,o,s,c,l,u,d,f,p,m,h,g,_,v]=r,[y,b,x]=i;if(r.length!==11&&r.length!==14)throw new un({attributes:{chainId:a,nonce:o,maxPriorityFeePerGas:s,maxFeePerGas:c,gas:l,to:u,value:d,data:f,accessList:p,...r.length>9?{v:g,r:_,s:v}:{}},serializedTransaction:e,type:`eip4844`});let S={blobVersionedHashes:h,chainId:hn(a),to:u,type:`eip4844`};return Ze(l)&&l!==`0x`&&(S.gas=ke(l)),Ze(f)&&f!==`0x`&&(S.data=f),Ze(o)&&(S.nonce=o===`0x`?0:hn(o)),Ze(d)&&d!==`0x`&&(S.value=ke(d)),Ze(m)&&m!==`0x`&&(S.maxFeePerBlobGas=ke(m)),Ze(c)&&c!==`0x`&&(S.maxFeePerGas=ke(c)),Ze(s)&&s!==`0x`&&(S.maxPriorityFeePerGas=ke(s)),p.length!==0&&p!==`0x`&&(S.accessList=zR(p)),y&&b&&x&&(S.sidecars=cL({blobs:y,commitments:b,proofs:x})),DR(S),{...r.length===14?VR(r):void 0,...S}}function FR(e){let t=RR(e),[n,r,i,a,o,s,c,l,u,d,f,p]=t;if(t.length!==9&&t.length!==12)throw new un({attributes:{chainId:n,nonce:r,maxPriorityFeePerGas:i,maxFeePerGas:a,gas:o,to:s,value:c,data:l,accessList:u,...t.length>9?{v:d,r:f,s:p}:{}},serializedTransaction:e,type:`eip1559`});let m={chainId:hn(n),type:`eip1559`};return Ze(s)&&s!==`0x`&&(m.to=s),Ze(o)&&o!==`0x`&&(m.gas=ke(o)),Ze(l)&&l!==`0x`&&(m.data=l),Ze(r)&&(m.nonce=r===`0x`?0:hn(r)),Ze(c)&&c!==`0x`&&(m.value=ke(c)),Ze(a)&&a!==`0x`&&(m.maxFeePerGas=ke(a)),Ze(i)&&i!==`0x`&&(m.maxPriorityFeePerGas=ke(i)),u.length!==0&&u!==`0x`&&(m.accessList=zR(u)),OR(m),{...t.length===12?VR(t):void 0,...m}}function IR(e){let t=RR(e),[n,r,i,a,o,s,c,l,u,d,f]=t;if(t.length!==8&&t.length!==11)throw new un({attributes:{chainId:n,nonce:r,gasPrice:i,gas:a,to:o,value:s,data:c,accessList:l,...t.length>8?{v:u,r:d,s:f}:{}},serializedTransaction:e,type:`eip2930`});let p={chainId:hn(n),type:`eip2930`};return Ze(o)&&o!==`0x`&&(p.to=o),Ze(a)&&a!==`0x`&&(p.gas=ke(a)),Ze(c)&&c!==`0x`&&(p.data=c),Ze(r)&&(p.nonce=r===`0x`?0:hn(r)),Ze(s)&&s!==`0x`&&(p.value=ke(s)),Ze(i)&&i!==`0x`&&(p.gasPrice=ke(i)),l.length!==0&&l!==`0x`&&(p.accessList=zR(l)),kR(p),{...t.length===11?VR(t):void 0,...p}}function LR(e){let t=xR(e,`hex`),[n,r,i,a,o,s,c,l,u]=t;if(t.length!==6&&t.length!==9)throw new un({attributes:{nonce:n,gasPrice:r,gas:i,to:a,value:o,data:s,...t.length>6?{v:c,r:l,s:u}:{}},serializedTransaction:e,type:`legacy`});let d={type:`legacy`};if(Ze(a)&&a!==`0x`&&(d.to=a),Ze(i)&&i!==`0x`&&(d.gas=ke(i)),Ze(s)&&s!==`0x`&&(d.data=s),Ze(n)&&(d.nonce=n===`0x`?0:hn(n)),Ze(o)&&o!==`0x`&&(d.value=ke(o)),Ze(r)&&r!==`0x`&&(d.gasPrice=ke(r)),AR(d),t.length===6)return d;let f=Ze(c)&&c!==`0x`?ke(c):0n;if(u===`0x`&&l===`0x`)return f>0&&(d.chainId=Number(f)),d;let p=f,m=Number((p-35n)/2n);if(m>0)d.chainId=m;else if(p!==27n&&p!==28n)throw new pn({v:p});return d.v=p,d.s=u,d.r=l,d.yParity=+(p%2n==0n),d}function RR(e){return xR(`0x${e.slice(4)}`,`hex`)}function zR(e){let t=[];for(let n=0;n<e.length;n++){let[r,i]=e[n];if(!Ke(r,{strict:!1}))throw new be({address:r});t.push({address:r,storageKeys:i.map(e=>TR(e)?e:Ce(e))})}return t}function BR(e){let t=[];for(let n=0;n<e.length;n++){let[r,i,a,o,s,c]=e[n];t.push({address:i,chainId:r===`0x`?0:hn(r),nonce:a===`0x`?0:hn(a),...VR([o,s,c])})}return t}function VR(e){let t=e.slice(-3),n=t[0]===`0x`?0n:ke(t[0]);if(n!==0n&&n!==1n)throw new sn({yParity:n});let r=n===0n?27n:28n;return{r:xe(t[1],{size:32}),s:xe(t[2],{size:32}),v:r,yParity:r===27n?0:1}}function HR(e){if(!e||e.length===0)return[];let t=[];for(let n of e){let{chainId:e,nonce:r,...i}=n,a=n.address;t.push([e?we(e):`0x`,a,r?we(r):`0x`,...XR({},i)])}return t}function UR(e){if(!e||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let{address:r,storageKeys:i}=e[n];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new pe({storageKey:i[e]});if(!Ke(r,{strict:!1}))throw new be({address:r});t.push([r,i])}return t}function WR(e,t){let n=lL(e);return n===`eip1559`?qR(e,t):n===`eip2930`?JR(e,t):n===`eip4844`?KR(e,t):n===`eip7702`?GR(e,t):YR(e,t)}function GR(e,t){let{authorizationList:n,chainId:r,gas:i,nonce:a,to:o,value:s,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;ER(e);let f=UR(u),p=HR(n);return Re([`0x04`,XF([z(r),a?z(a):`0x`,l?z(l):`0x`,c?z(c):`0x`,i?z(i):`0x`,o??`0x`,s?z(s):`0x`,d??`0x`,f,p,...XR(e,t)])])}function KR(e,t){let{chainId:n,gas:r,nonce:i,to:a,value:o,maxFeePerBlobGas:s,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:u,data:d}=e;DR(e);let f=e.blobVersionedHashes,p=e.sidecars;if(e.blobs&&(f===void 0||p===void 0)){let t=typeof e.blobs[0]==`string`?e.blobs:e.blobs.map(e=>Ie(e)),n=e.kzg,r=JI({blobs:t,kzg:n});f===void 0&&(f=QI({commitments:r})),p===void 0&&(p=cL({blobs:t,commitments:r,proofs:YI({blobs:t,commitments:r,kzg:n})}))}let m=UR(u),h=[z(n),i?z(i):`0x`,l?z(l):`0x`,c?z(c):`0x`,r?z(r):`0x`,a??`0x`,o?z(o):`0x`,d??`0x`,m,s?z(s):`0x`,f??[],...XR(e,t)],g=[],_=[],v=[];if(p)for(let e=0;e<p.length;e++){let{blob:t,commitment:n,proof:r}=p[e];g.push(t),_.push(n),v.push(r)}return Re([`0x03`,XF(p?[h,g,_,v]:h)])}function qR(e,t){let{chainId:n,gas:r,nonce:i,to:a,value:o,maxFeePerGas:s,maxPriorityFeePerGas:c,accessList:l,data:u}=e;OR(e);let d=UR(l),f=[z(n),i?z(i):`0x`,c?z(c):`0x`,s?z(s):`0x`,r?z(r):`0x`,a??`0x`,o?z(o):`0x`,u??`0x`,d,...XR(e,t)];return Re([`0x02`,XF(f)])}function JR(e,t){let{chainId:n,gas:r,data:i,nonce:a,to:o,value:s,accessList:c,gasPrice:l}=e;kR(e);let u=UR(c),d=[z(n),a?z(a):`0x`,l?z(l):`0x`,r?z(r):`0x`,o??`0x`,s?z(s):`0x`,i??`0x`,u,...XR(e,t)];return Re([`0x01`,XF(d)])}function YR(e,t){let{chainId:n=0,gas:r,data:i,nonce:a,to:o,value:s,gasPrice:c}=e;AR(e);let l=[a?z(a):`0x`,c?z(c):`0x`,r?z(r):`0x`,o??`0x`,s?z(s):`0x`,i??`0x`];if(t){let e=(()=>{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);let e=27n+(t.v===27n?0n:1n);if(t.v!==e)throw new pn({v:t.v});return e})(),r=Ce(t.r),i=Ce(t.s);l=[...l,z(e),r===`0x00`?`0x`:r,i===`0x00`?`0x`:i]}else n>0&&(l=[...l,z(n),`0x`,`0x`]);return XF(l)}function XR(e,t){let n=t??e,{v:r,yParity:i}=n;if(n.r===void 0||n.s===void 0||r===void 0&&i===void 0)return[];let a=Ce(n.r),o=Ce(n.s);return[typeof i==`number`?i?z(1):`0x`:r===0n?`0x`:r===1n?z(1):r===27n?`0x`:z(1),a===`0x00`?`0x`:a,o===`0x00`?`0x`:o]}function ZR(e){let t=e.account;return t?.keyType&&t.keyType!==`secp256k1`||t?.source===`accessKey`||t?.source===`configurable`||e.calls!==void 0||e.feePayer!==void 0||e.feePayerSignature!==void 0||e.feeToken!==void 0||e.keyAuthorization!==void 0||e.accountSimulation!==void 0||e.nonceKey!==void 0||e.owner!==void 0||e.signature!==void 0||e.signatures!==void 0||e.validBefore!==void 0||e.validAfter!==void 0?`tempo`:e.type?e.type:lL(e)}function QR(e){try{return ZR(e)===`tempo`}catch{return!1}}function $R(e){let t=H(e,0,1);return t===`0x76`||t===`0x78`?tz(e):MR(e)}async function ez(e,t){if(!QR(e)){if(t&&`type`in t&&t.type!==`secp256k1`)throw Error("Unsupported signature type. Expected `secp256k1` but got `"+t.type+"`.");if(t&&`type`in t){let{r:n,s:r,yParity:i}=t?.signature;return WR(e,{r:V(n,{size:32}),s:V(r,{size:32}),yParity:i})}return WR(e,t)}if(ZR(e)===`tempo`)return nz(e,t);throw Error(`Unsupported transaction type`)}function tz(e){let{feePayerSignature:t,nonce:n,...r}=gP(e);return{...r,nonce:Number(n??0n),feePayerSignature:t&&{r:V(t.r,{size:32}),s:V(t.s,{size:32}),yParity:t.yParity}}}async function nz(e,t){let n=(()=>{if(e.signature)return e.signature;if(t&&`type`in t)return t;if(t)return DM({r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)})})(),{chainId:r,feePayer:i,accountSimulation:a,nonce:o,owner:s,...c}=e,l=(()=>{let t=e.feePayerSignature;if(t)return{r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)};if(t===null||i)return null})(),u=e.feePayerSignature!==void 0&&e.feePayerSignature!==null,d=n!==void 0||!!(a&&e.signatures),f=i===!0&&(!d||!l)||typeof i==`object`&&!d||!d&&u,p={...c,calls:c.calls?.length?c.calls:[{to:c.to||(!c.data||c.data===`0x`?`0x0000000000000000000000000000000000000000`:void 0),value:c.value,data:c.data}],chainId:Number(r),feePayerSignature:l,type:`tempo`,...o?{nonce:BigInt(o)}:{}},m={...p};f&&delete m.feeToken;let h=(()=>{if(n)return n;if(!a||!e.signatures)return;let t=bP(_P(m)),r=e.signatures.map(e=>yR(e)),i=IO(a.config),o=e.from;if(!o)throw Error(`A configurable account sender is required for signing.`);return DM({account:o,config:i,signatures:jM({account:o,config:i,payload:t,signatures:r})})})();if(h&&typeof e.feePayer==`object`){let t=_P(p,{signature:h}),n=SP(t,{sender:e.from??CM({payload:bP(t),root:!0,signature:h})});return vP(t,{feePayerSignature:pj(await e.feePayer.sign({hash:n}))})}return i===!0||!h&&u?h&&l?vP(m,{signature:h}):h?vP(m,{format:`feePayer`,sender:e.from,signature:h}):vP(m,{feePayerSignature:null}):vP(m,{feePayerSignature:void 0,signature:h})}function rz(e){let t=(()=>{if(typeof e==`string`)return;let{address:t,...n}=e;return n})(),n=(()=>{if(!t)return;let e=t.owners.map(e=>typeof e==`string`||`address`in e?{owner:e,weight:1}:e);return IO({...t,owners:e.map(({owner:e,weight:t})=>({owner:typeof e==`string`?e:e.address,weight:t})),threshold:t.threshold??1})})();if(typeof e!=`string`){if((e.address===void 0||e.address===`infer`)&&n.version!==0n)throw Error(`An initial account config must have version zero.`);if(e.address!==void 0&&e.address!==`infer`&&n.version===0n)throw Error(`A current account config must have a version.`)}let r=iO(typeof e==`string`?e:e.address===void 0||e.address===`infer`?zO(n,{factory:dR}):e.address),i=t?t.owners.flatMap(e=>{let t=typeof e==`string`||`address`in e?e:e.owner;return typeof t==`string`?[]:[en(t)]}):[];if(i.some(e=>e.source===`configurable`||oz(e)))throw Error(`Configurable account owners must use primitive signatures.`);let a=n?.owners.flatMap(({owner:e})=>{let t=i.find(t=>sO(t.address,e));return t?[t]:[]})??[],o={address:r,config:n,owners:a,publicKey:`0x`,source:`configurable`,type:`local`,async sign({hash:e}){return AM(await az(o,{payload:e}))},async signMessage(){throw Error("`signMessage` is not supported for configurable accounts.")},async signTransaction(e,t){let{serializer:n=ez}=t??{},i=e;if(i.owner){let e=en(i.owner);if(e.type!==`local`)throw Error(`A local owner account is required to approve a configurable account transaction.`);if(e.source!==`root`)throw Error(`A Tempo owner account is required to approve a configurable account transaction.`);let{owner:n,...r}=i;return await e.signTransaction(r,t)}if(a.length===0)return await n(e);let s={...i,signatures:void 0,...i.feePayerSignature===void 0?{}:{feePayerSignature:null}},c=Wt(await n(s)),l=i.accountSimulation;if(i.from&&!sO(i.from,r))throw Error(`Configurable account does not match the transaction sender.`);return await n(e,await az(o,{config:l?.config,payload:c,signatures:i.signatures?.map(e=>yR(e))}))},async signTypedData(){throw Error("`signTypedData` is not supported for configurable accounts.")}};return o}function iz(e){return e.source===`configurable`}async function az(e,t){let{config:n,payload:r,signatures:i=[]}=t,a=n??e.config;if(!a)throw Error(`A current account config is required for local signing.`);let o=BO({account:e.address,config:a,payload:r}),s=[...i],c=new Set,l=0;for(let e of i){let t=CM({payload:o,signature:e}).toLowerCase(),n=a.owners.find(e=>sO(e.owner,t));n&&!c.has(t)&&(c.add(t),l+=Number(n.weight))}let u=[...a.owners].sort((e,t)=>Number(t.weight)-Number(e.weight)||e.owner.toLowerCase().localeCompare(t.owner.toLowerCase()));for(let t of u){if(l>=Number(a.threshold))break;let n=t.owner.toLowerCase();if(c.has(n))continue;let r=e.owners.find(e=>sO(e.address,t.owner));if(r){if(!r.sign)throw Error(`Configurable account owner account cannot sign.`);if(s.push(yR(await r.sign({hash:o}))),c.add(n),l+=Number(t.weight),l>=Number(a.threshold))break}}if(l<Number(a.threshold))throw Error(`Local owners do not meet the threshold.`);return DM({account:e.address,config:a,signatures:jM({account:e.address,config:a,payload:r,signatures:s})})}function oz(e){return e.source===`accessKey`&&`accessKeyAddress`in e}function sz(e,t){let{admin:n,chainId:r,expiry:i,key:a,limits:o,scopes:s,witness:c}=t,{accessKeyAddress:l,keyType:u}=lz(a),d=oz(e)||iz(e)?{account:e.address}:{},f=n?{}:{expiry:i,limits:o,scopes:s};return GM({address:l,chainId:r,type:u,witness:c,...n?{isAdmin:!0}:{},...d,...f})}async function cz(e,t){let{admin:n,chainId:r,expiry:i,key:a,limits:o,configurable:s,scopes:c,signatures:l,witness:u}=t,{accessKeyAddress:d,keyType:f}=lz(a),p=oz(e),m=iz(e),h=p||m?{account:e.address}:{},g=n?{}:{expiry:i,limits:o,scopes:c},_=sz(e,t);return HM({address:d,chainId:r,signature:DM(await(async()=>{if(p)return e.sign({hash:_,raw:!0});if(m){if(!s)throw Error(`Configurable account state is required to sign a key authorization.`);return AM(await az(e,{config:s.config,payload:_,signatures:l?.map(e=>yR(e))}))}return e.sign({hash:_})})()),type:f,...u?{witness:u}:{},...n?{isAdmin:!0}:{},...h,...g})}function lz(e){return`accessKeyAddress`in e?{accessKeyAddress:e.accessKeyAddress,keyType:e.keyType}:`publicKey`in e&&e.publicKey?{accessKeyAddress:oO(JD(e.publicKey)),keyType:e.type}:{accessKeyAddress:e.address,keyType:e.type}}var uz=class extends $e{constructor({cause:e,error:t,hints:n},{details:r,docsPath:i,name:a=`TempoExecutionError`,shortMessage:o=t.message}={}){let s=e.metaMessages?.findIndex(e=>/^(Contract Call|Request Arguments):/.test(e));super(o,{cause:e,docsPath:i,metaMessages:[...r?[Fe(r),` `]:[],...n.length?[`How to fix:`,...n.map(e=>`- ${e}`),` `]:[],...s!==void 0&&s>=0?e.metaMessages.slice(s):[]],name:a}),Object.defineProperty(this,"abiItem",{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,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"errorName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"hints",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t.abiItem,this.args=t.args,this.data=t.data,this.errorName=t.errorName,this.hints=n}},dz=[`genesis`,`t0`,`t1`,`t1a`,`t1b`,`t1c`,`t2`,`t3`,`t4`,`t5`,`t6`];function fz(e,t){return dz.indexOf(e)<dz.indexOf(t)}function pz(e,t){return jt(e,t)}function mz(e,t={}){return(async(n,r)=>{try{return await e(n,r)}catch(e){let{toExecutionError:i}=await rt(async()=>{let{toExecutionError:e}=await import(`./resolveError-CaecrMPm.js`);return{toExecutionError:e}},__vite__mapDeps([0,1,2]));throw await i(e,{...t,client:n,parameters:r})}})}function hz(e){let t=e.parameters.feeToken??e.client.chain?.feeToken;return t==null?void 0:dP(t)}function gz(e){return!!e?.toLowerCase().startsWith(`0x20c0`)}function _z(e,t){if(e!==void 0)return t===void 0?e.toString():`${pz(e,t)} (${e})`}function vz(e){if(!e)return;let t=Number(e)*1e3;return Math.abs(t)<=864e13?new Date(t).toISOString():e.toString()}function yz(e,t){let{decimals:n,token:r}=t;if(e&&typeof r==`string`){let t=bz(e,r);if(t)return{address:t.address,decimals:n??t.decimals}}let i=dP(r);return{address:i,decimals:n??(e?Sz(e,i):void 0)}}function bz(e,t){let n=e.tokens,r=e.chain?.id;if(!n||r===void 0)return;let i=t.toLowerCase();for(let e of n)if(e.symbol?.toLowerCase()===i)return xz(e,r)}function xz(e,t){let n=e.addresses[t];if(n)return{address:n,currency:e.currency,decimals:e.decimals,name:e.name,popular:e.popular,symbol:e.symbol}}function Sz(e,t){let n=e.tokens,r=e.chain?.id;if(n&&r!==void 0)for(let e of n){let n=xz(e,r);if(n&&lt(n.address,t))return n.decimals}}async function Cz(e,t){let{address:n,decimals:r}=yz(e,t);return r===void 0?{address:n,decimals:await pI(e,{abi:ML,address:n,functionName:`decimals`})}:{address:n,decimals:r}}function wz(e){let{account:t,chain:n,feePayer:r,feeToken:i,gas:a,keyAuthorization:o,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,nonceKey:u,owner:d,validAfter:f,validBefore:p}=e;return{account:t,chain:n,feePayer:r,feeToken:i,gas:a,keyAuthorization:o,maxFeePerGas:s,maxPriorityFeePerGas:c,nonce:l,nonceKey:u,owner:d,validAfter:f,validBefore:p}}function Tz(e){return e.length===2?e:[void 0,e[0]]}function Ez(e){return{...e,abi:[...e.abi,...sR],data:cn(e),to:e.address}}async function Dz(e,t){let n=await e.request({method:`account_getConfig`,params:[{address:t.address}]});return n?LO(n):null}async function Oz(e,t){let{account:n,...r}=t;return mz(pI)(e,{...r,...Oz.call({account:n})})}(function(e){function t(e){return Ez({address:uR,abi:xL,args:[e.account],functionName:`getConfigCommitment`})}e.call=t})(Oz||={});async function kz(e,t){return kz.inner(vL,e,t)}(function(e){async function t(t,n,r){let{account:i,currentConfig:a,nextConfig:o,...s}=r,c=i??n.account,l=(()=>{if(typeof c==`object`&&c.source===`configurable`)return c})(),u=(()=>{if(a)return a;if(l?.config)return l.config})(),d=(()=>{if(l)return l.address;if(typeof c==`string`)return c;if(c)return c.address})(),f=await(async()=>{if(u)return IO(u);if(!d)throw Error(`A configurable account address or current config is required.`);let e=await Dz(n,{address:d});if(!e)throw Error(`No current account config is cached for account ${d}. Provide the current config.`);return e})(),p=(()=>{if(l)return{...l,config:f};if(typeof c==`object`)return c;if(d)return rz({address:d,...f})})();return await mz(t)(n,{...s,...p?{account:p}:{},...e.call({currentConfig:f,nextConfig:o})})}e.inner=t;function n(e){let t=IO(e.currentConfig),n=HO(t,e.nextConfig);return Ez({address:uR,abi:xL,args:[t,n.threshold,n.owners],functionName:`updateConfig`})}e.call=n;function r(e){let[t]=OI({abi:xL,logs:e,eventName:`MultisigConfigUpdated`,strict:!0});if(!t)throw Error("`MultisigConfigUpdated` event not found.");return t}e.extractEvent=r})(kz||={});var Az={0:`secp256k1`,1:`p256`,2:`webAuthn`},jz={true:`limited`,false:`unlimited`};async function Mz(e,t){return Mz.inner(_L,e,t)}(function(e){async function t(e,t,n){let{accessKey:r,admin:i,chainId:a=t.chain?.id,expiry:o,limits:s,scopes:c,witness:l,...u}=n,d=u.account??t.account;if(!d)throw Error(`account is required.`);if(!a)throw Error(`chainId is required.`);let f=await Bz(t,{account:d,accessKey:r,chainId:a,admin:i,expiry:o,limits:s,scopes:c,witness:l});return await mz(e,{hints:{KeyAlreadyExists:[`This access key is already authorized. Update its spending limits instead.`]}})(t,{...u,keyAuthorization:f})}e.inner=t;function n(e){let[t]=OI({abi:yL,logs:e,eventName:`KeyAuthorized`,strict:!0});if(!t)throw Error("`KeyAuthorized` event not found.");return t}e.extractEvent=n})(Mz||={});async function Nz(e,t){return Nz.inner(vL,e,t)}(function(e){async function t(t,n,r){let{witness:i,...a}=r,o=e.call({witness:i});return await mz(t)(n,{...a,...o})}e.inner=t;function n(e){let{witness:t}=e;return Ez({address:cR,abi:yL,functionName:`burnKeyAuthorizationWitness`,args:[t]})}e.call=n;function r(e){let[t]=OI({abi:yL,logs:e,eventName:`KeyAuthorizationWitnessBurned`,strict:!0});if(!t)throw Error("`KeyAuthorizationWitnessBurned` event not found.");return t}e.extractEvent=r})(Nz||={});async function Pz(e,t){let{account:n=e.account,accessKey:r,...i}=t;if(!n)throw Error(`account is required.`);let a=en(n),o=await mz(pI)(e,{...i,account:null,...Pz.call({account:a.address,accessKey:r})});return{address:o.keyId,keyType:Az[o.signatureType]??`secp256k1`,expiry:o.expiry,spendPolicy:jz[`${o.enforceLimits}`],isRevoked:o.isRevoked}}(function(e){function t(e){let{account:t,accessKey:n}=e;return Ez({address:cR,abi:yL,functionName:`getKey`,args:[t,Uz(n)]})}e.call=t})(Pz||={});async function Fz(e,t){let{account:n=e.account,accessKey:r,token:i,...a}=t;if(!n)throw Error(`account is required.`);let o=en(n),s=e.chain?.hardfork;if(s&&fz(s,`t3`))return{remaining:await mz(pI)(e,{...a,...Fz.call({account:o.address,accessKey:r,token:i})}),periodEnd:void 0};let[c,l]=await mz(pI)(e,{...a,...Fz.callWithPeriod({account:o.address,accessKey:r,token:i})});return{remaining:c,periodEnd:l}}(function(e){function t(e){let{account:t,accessKey:n,token:r}=e;return Ez({address:cR,abi:yL,functionName:`getRemainingLimit`,args:[t,Uz(n),r]})}e.call=t;function n(e){let{account:t,accessKey:n,token:r}=e;return Ez({address:cR,abi:yL,functionName:`getRemainingLimitWithPeriod`,args:[t,Uz(n),r]})}e.callWithPeriod=n})(Fz||={});async function Iz(e,t){let{account:n=e.account,accessKey:r,...i}=t;if(!n)throw Error(`account is required.`);let a=en(n);return mz(pI)(e,{...i,account:null,...Iz.call({account:a.address,accessKey:r})})}(function(e){function t(e){let{account:t,accessKey:n}=e;return Ez({address:cR,abi:yL,functionName:`isAdminKey`,args:[t,Uz(n)]})}e.call=t})(Iz||={});async function Lz(e,t){let{account:n=e.account,witness:r,...i}=t;if(!n)throw Error(`account is required.`);let a=en(n);return mz(pI)(e,{...i,account:null,...Lz.call({account:a.address,witness:r})})}(function(e){function t(e){let{account:t,witness:n}=e;return Ez({address:cR,abi:yL,functionName:`isKeyAuthorizationWitnessBurned`,args:[t,n]})}e.call=t})(Lz||={});async function Rz(e,t){return Rz.inner(vL,e,t)}(function(e){async function t(t,n,r){let{accessKey:i,...a}=r,o=e.call({accessKey:i});return await mz(t)(n,{...a,...o})}e.inner=t;function n(e){let{accessKey:t}=e;return Ez({address:cR,abi:yL,functionName:`revokeKey`,args:[Uz(t)]})}e.call=n;function r(e){let[t]=OI({abi:yL,logs:e,eventName:`KeyRevoked`,strict:!0});if(!t)throw Error("`KeyRevoked` event not found.");return t}e.extractEvent=r})(Rz||={});async function zz(e,t){let{chainId:n=e.chain?.id}=t,r=t.account??e.account;if(!r)throw Error(`account is required.`);if(!n)throw Error(`chainId is required.`);let i=en(r),a=await(async()=>{if(`configurable`in t)return t.configurable;if(i.source!==`configurable`)return;let e=i;if(!e.config)throw Error(`An account config is required to prepare a key authorization.`);return{config:e.config}})(),o=sz(i,{...t,chainId:BigInt(n),key:t.accessKey}),s=i.source===`configurable`&&a?BO({account:i.address,config:a.config,payload:o}):o;return{...t,account:i,chainId:n,configurable:a,signPayload:s}}async function Bz(e,t){let{accessKey:n,account:r,chainId:i,configurable:a,signPayload:o,...s}=`signPayload`in t?t:await zz(e,t);return cz(r,{chainId:BigInt(i),key:n,configurable:a,...s})}async function Vz(e,t){return Vz.inner(vL,e,t)}(function(e){async function t(t,n,r){let{accessKey:i,token:a,limit:o,...s}=r,c=e.call({accessKey:i,token:a,limit:o});return await mz(t)(n,{...s,...c})}e.inner=t;function n(e){let{accessKey:t,token:n,limit:r}=e;return Ez({address:cR,abi:yL,functionName:`updateSpendingLimit`,args:[Uz(t),n,r]})}e.call=n;function r(e){let[t]=OI({abi:yL,logs:e,eventName:`SpendingLimitUpdated`,strict:!0});if(!t)throw Error("`SpendingLimitUpdated` event not found.");return t}e.extractEvent=r})(Vz||={});async function Hz(e,t){let{account:n,admin:r,hash:i,signature:a,...o}=t;return mz(pI)(e,{...o,...Hz.call({account:n,admin:r,hash:i,signature:a})})}(function(e){function t(e){let{account:t,admin:n=!0,hash:r,signature:i}=e;return Ez({address:mR,abi:TL,functionName:n?`verifyKeychainAdmin`:`verifyKeychain`,args:[t,r,i]})}e.call=t})(Hz||={});function Uz(e){return typeof e==`string`?e:e.accessKeyAddress}var Wz=class extends uz{constructor(e,t={}){let{account:n,accessKey:r}=e;super(e,{shortMessage:`Access key "${r}" failed: ${e.error.message}`,...t,details:{account:n,"access key":r,...t.details},docsPath:`/tempo/guides/access-keys/manage`,name:t.name??`AccessKeyError`}),Object.defineProperty(this,"account",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"accessKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.account=n,this.accessKey=r}},Gz=class extends Wz{constructor(e){let{amount:t,decimals:n,fee:r,periodEnd:i,remaining:a,token:o}=e;super(e,{details:{token:o,amount:_z(t,n),remaining:_z(a,n),"exceeded by":t!==void 0&&a!==void 0?_z(t-a,n):void 0,"resets at":vz(i)},name:`AccessKeySpendingLimitExceededError`,shortMessage:`Access key "${e.accessKey}" exceeded its spending limit${o?` for token "${o}"`:``}${r?` while paying fees`:``}.`}),Object.defineProperty(this,"amount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"decimals",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fee",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"periodEnd",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"remaining",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.amount=t,this.decimals=n,this.fee=r,this.periodEnd=i,this.remaining=a,this.token=o}},Kz=class extends Wz{constructor(e){super(e,{details:{"expired at":vz(e.expiry)},name:`AccessKeyExpiredError`,shortMessage:`Access key "${e.accessKey}" has expired.`}),Object.defineProperty(this,"expiry",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.expiry=e.expiry}},qz=class extends Wz{constructor(e){let{selector:t,target:n}=e;super(e,{details:{target:n,selector:t},name:`AccessKeyCallNotAllowedError`,shortMessage:`Access key "${e.accessKey}" is not allowed to make this call.`}),Object.defineProperty(this,"selector",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.selector=t,this.target=n}},Jz=class extends Wz{constructor(e){let{expiry:t,limited:n}=e;super(e,{details:{expires:vz(t),"spending limits":n===void 0?void 0:n?`enforced`:`none`},name:`AccessKeyAlreadyExistsError`,shortMessage:`Access key "${e.accessKey}" is already authorized on account "${e.account}".`}),Object.defineProperty(this,"expiry",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"limited",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.expiry=t,this.limited=n}},Yz=class extends Wz{constructor(e){let[t,n]=(e.error.args??[]).map(e=>Az[Number(e)]);super(e,{details:{expected:t,actual:n},name:`AccessKeySignatureTypeMismatchError`,shortMessage:`Access key "${e.accessKey}" signed with a ${n??`different`} key, but was authorized as a ${t??`different`} key.`}),Object.defineProperty(this,"expected",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"actual",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.expected=t,this.actual=n}},Xz=class extends Wz{constructor(e){let{expiry:t,minimum:n}=e;super(e,{details:{expiry:vz(t),minimum:vz(n)},name:`AccessKeyExpiryInPastError`,shortMessage:`Access key "${e.accessKey}" expiry must be later${n?` than ${vz(n)}`:``}.`}),Object.defineProperty(this,"expiry",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"minimum",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.expiry=t,this.minimum=n}},Zz={address:cR,abi:yL};function Qz(e){let{call:t,parameters:n,signer:r}=e;if(!r?.accessKey||t&&lt(t.address,`0xaAAAaaAA00000000000000000000000000000000`))return;let i=n.keyAuthorization?.address;if(!i||lt(i,r.accessKey))return{...e.base,account:r.address,accessKey:r.accessKey}}function $z(e){let{feePayer:t}=e.parameters;if(typeof t!=`object`)return;let n=en(t);if(n.source===`accessKey`&&`accessKeyAddress`in n)return{...e.base,account:n.address,accessKey:n.accessKeyAddress}}function eB(e){let{call:t,parameters:n,signer:r}=e,i=n.keyAuthorization?.address??t?.arg(`keyId`);if(r&&i)return{...e.base,account:r.address,accessKey:i}}var tB={...Object.fromEntries(yL.flatMap(e=>e.type===`error`?[[mt(e),e=>{let t=Qz(e);return t&&new Wz(t)}]]:[])),"CallNotAllowed()":e=>{let t=Qz(e);if(t)return new qz({...t,selector:e.parameters.data?.slice(0,10),target:e.call?.address??e.parameters.to})},"ExpiryInPast()":e=>{let t=eB(e);if(!t)return;let[,n,r]=/expiry (\d+) <= min allowed (\d+)/.exec(e.details)??[],i=e.parameters.keyAuthorization?.expiry??e.call?.arg(`expiry`)??e.call?.arg(`config`)?.expiry;return new Xz({...t,expiry:n?BigInt(n):i==null?void 0:BigInt(i),minimum:r?BigInt(r):void 0})},"KeyAlreadyExists()":async e=>{let t=eB(e);if(!t)return;let[n]=await e.read([{...Zz,functionName:`getKey`,args:[t.account,t.accessKey]}]);return new Jz({...t,expiry:n?.result?.expiry,limited:n?.result?.enforceLimits})},"KeyExpired()":async e=>{let t=Qz(e);if(!t)return;let[n]=await e.read([{...Zz,functionName:`getKey`,args:[t.account,t.accessKey]}]);return new Kz({...t,expiry:n?.result?.expiry})},"SignatureTypeMismatch(uint8,uint8)":e=>{let t=Qz(e)??eB(e);return t&&new Yz(t)},"SpendingLimitExceeded()":async e=>{let t=e.validation,n=t&&e.parameters.feePayer?$z(e):Qz(e);if(!n)return;let r=t?hz(e):gz(e.call?.address)?e.call.address:void 0;if(!r)return new Gz({...n,fee:t,hints:t?[...n.hints,`Pay fees with another token.`]:n.hints});let i=[n.account,n.accessKey,r],[a,o,s]=await e.read([{...Zz,functionName:`getRemainingLimitWithPeriod`,args:i},{...Zz,functionName:`getRemainingLimit`,args:i},{address:r,abi:ML,functionName:`decimals`}]);return new Gz({...n,amount:t?void 0:e.call?.arg(`amount`),decimals:s?.result,fee:t,periodEnd:a?.result?.[1]||void 0,remaining:a?.result?.[0]??o?.result,token:r})}};function nB(e){if(!QR(e))return MF(e);let t=e.blockTimestamp==null?void 0:BigInt(e.blockTimestamp),n=e.operation,{feePayerSignature:r,gasPrice:i,nonce:a,...o}=xF(e);return{...o,accessList:o.accessList,...t!==void 0&&{blockTimestamp:t},feePayerSignature:r?{r:V(r.r,{size:32}),s:V(r.s,{size:32}),v:BigInt(r.v??27),yParity:r.yParity}:void 0,nonce:Number(a),operation:iB(n),typeHex:yF[o.type],type:o.type}}function rB(e){return{...CI(e),operation:iB(e.operation),...e.status===`pending`?{status:`pending`,type:`tempo`}:{}}}function iB(e){if(!e)return;let t=DP(e);if(t.type!==`transaction`)throw Error(`Expected an account transaction operation.`);return t}function aB(e,t){let n=e,r=n.account?en(n.account):void 0,i=n.owner?en(n.owner):void 0;if(i?.type===`json-rpc`)throw Error(`A local owner account is required to approve a configurable account transaction.`);if(!QR(n))return Jt(e,t);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;let{owner:a,signatures:o,...s}=n,c=wF({...s,type:`tempo`});t===`estimateGas`&&(c.maxFeePerGas=void 0,c.maxPriorityFeePerGas=void 0),c.to=void 0,c.data=void 0,c.value=void 0;let l=i??r,[u,d]=(()=>{let e=l&&`keyType`in l?l.keyType:l?.source;return e?e===`webAuthn`?[`webAuthn`,`0x0578`]:[`p256`,`secp256k1`].includes(e)?[e,void 0]:[n.keyType,oB(n.keyData)]:[n.keyType,oB(n.keyData)]})(),f=l&&`accessKeyAddress`in l?l.accessKeyAddress:n.keyId;return r&&(c.from=r.address),{...c,...n.capabilities?{capabilities:n.capabilities}:{},...d?{keyData:d}:{},...f?{keyId:f}:{},...u?{keyType:u}:{},...n.accountSimulation?{accountSimulation:void 0}:{},...n.owner?{owner:void 0}:{},...n.feePayer===void 0?{}:{feePayer:typeof n.feePayer==`object`?en(n.feePayer):n.feePayer},...`feePayerSignature`in n&&n.feePayerSignature!==void 0?{feePayerSignature:n.feePayerSignature}:{}}}function oB(e){if(!e)return e;let t=(e.length-2)/2;return t<=4?e:V(t,{size:2})}var sB=new Map;async function cB(e){sB.set(e,(sB.get(e)??0)+1),await Promise.resolve();let t=(sB.get(e)??0)>1;return queueMicrotask(()=>{let t=sB.get(e)??0;t<=1?sB.delete(e):sB.set(e,t-1)}),t}var lB=25,uB=((e,t)=>ez(e,t)),dB={blockTime:1e3,extendSchema:bI(),formatters:{transaction:NF({exclude:[`aaAuthorizationList`],format:nB}),transactionReceipt:wI({format:rB}),transactionRequest:Vt({format:aB})},prepareTransactionRequest:[async(e,{client:t,phase:n})=>{let r=e;if(r.hash){if(!r.account||typeof r.account==`string`||r.account.source!==`configurable`)throw Error(`A local configurable account is required to approve a stored configurable account transaction.`);if(!r.owner||typeof r.owner==`string`)throw Error(`A local owner account is required to approve a stored configurable account transaction.`);if(r.owner.source!==`root`)throw Error(`A Tempo owner account is required to approve a stored configurable account transaction.`);let e=await iI(t,FF,`getTransaction`)({hash:r.hash}),n=`operation`in e?e.operation:void 0;if(!n)throw Error(`Expected an account operation transaction.`);if(!lt(n.account,r.account.address))throw Error(`Account operation account does not match the requested account.`);let i=$R(n.transaction);if(TP({account:n.account,config:n.config,transaction:n.transaction,type:`transaction`}).toLowerCase()!==r.hash.toLowerCase())throw Error(`Account operation hash does not match transaction.`);return{...i,gas:i.gas??0n,maxFeePerGas:i.maxFeePerGas??0n,maxPriorityFeePerGas:i.maxPriorityFeePerGas??0n,account:r.account,from:n.account,accountSimulation:fB({config:n.config,local:r.account}),owner:r.owner}}if(n===`afterFillParameters`)return r.gas!==void 0&&r.feePayer&&!r.feePayerSignature&&(r.keyAuthorization?.signature.type===`webAuthn`?r.gas=(r.gas??0n)+20000n:r.account?.source===`accessKey`&&(r.gas=(r.gas??0n)+10000n)),r;let i=(()=>{if(r.account?.source===`configurable`)return{account:r.account.address,config:r.account.config,local:r.account}})();if(r.owner&&!i)throw Error(`A configurable account is required when an owner is provided.`);if(r.owner&&typeof r.owner==`string`)throw Error(`A local owner account is required to approve a configurable account transaction.`);if(r.owner&&r.owner.source!==`root`)throw Error(`A Tempo owner account is required to approve a configurable account transaction.`);let a=!!i&&!!r.owner&&t.transport.accounts===!0;if(i){let{account:e,local:n}=i;if(!e)throw Error(`A configurable account address is required with a current config.`);let o=await(async()=>{if(i.config)return i.config;if(!a)return;let n=await iI(t,Dz,`getConfig`)({address:e});if(!n)throw Error(`No current account config is cached for account ${e}. Provide the current config.`);return n})();if(!o)throw Error(`An account config is required to prepare a transaction.`);r.from=e,r.accountSimulation=fB({config:o,local:n})}let o=await(async()=>{if(r.nonceKey===`expiring`||r.nonceKey===Kt)return!0;if(r.nonceKey!==void 0||i)return!1;if(r.feePayer&&r.nonceKey===void 0)return!0;let e=r.account,t=typeof e==`string`?e:e?.address;return t&&r.nonceKey===void 0?await cB(t.toLowerCase()):!1})();if(a&&r.nonceKey===void 0?(r.nonceKey=Lt(gt(31))+1n,r.nonce=0):o?(r.nonceKey=Kt,r.nonce??=0,r.validAfter===void 0&&(r.validAfter=mB()),r.validBefore===void 0&&(r.validBefore=Math.floor(Date.now()/1e3)+lB)):r.nonceKey!==void 0&&(r.nonce=typeof r.nonce==`number`?r.nonce:0),!r.keyAuthorization&&r.account?.source===`accessKey`){let e=r.account.keyAuthorizationManager;if(e){let n=r.chainId??r.chain?.id;if(n!==void 0){let i=r.account.address,a=r.account.accessKeyAddress,o={address:i,accessKey:a,chainId:n},s=await e.get(o);if(s){let n=BigInt(Math.floor(Date.now()/1e3));if(s.expiry!=null&&BigInt(s.expiry)<=n)await e.remove(o);else{let c=await iI(t,Pz,`getMetadata`)({account:i,accessKey:a});lt(c.address,a)&&!c.isRevoked&&c.expiry>n?await e.remove(o):r.keyAuthorization=s}}}}}return!r.feeToken&&r.chain?.feeToken&&(r.feeToken=r.chain.feeToken),r},{runAt:[`beforeFillTransaction`,`afterFillParameters`]}],serializers:{transaction:uB,async transactionEnvelope({serializedTransaction:e,transaction:t}){let n=t;if(!n.accountSimulation)return e;try{TM(e)}catch{if($R(e).signature?.type===`configurable`)return e;throw Error(`A Tempo owner account is required to approve a configurable account transaction.`)}return await uB({...n,signatures:[...n.signatures??[],e]})}},async verifyHash(e,t){let{address:n,hash:r,signature:i,mode:a}=t,o=(()=>{if(typeof i==`string`)try{return TM(i)}catch{return}})();if(o){if(o?.type===`keychain`&&a===`allowAccessKey`){let i=o.version===`v2`?Wt(Bt(`0x04`,r,n)):r,a=(()=>{try{return CM({payload:i,signature:o.inner})}catch{return}})();if(!a)return!1;let s=await Pz(e,{account:n,accessKey:a,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});return s.isRevoked||s.expiry<=BigInt(Math.floor(Date.now()/1e3))?!1:NM(o.inner,{address:a,payload:i})}if(o.type===`p256`||o.type===`webAuthn`){let i=await AF(e,{address:n,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});if(!i||i===`0xef01007702c00000000000000000000000000000000000`)return NM(o,{address:n,payload:r})}}return await iI(e,mI,`verifyHash`)({...t,chain:null})}};function fB(e){let{config:t,local:n}=e;return{approvals:hB(t).map(e=>{let t=n?.owners.find(t=>lt(t.address,e.owner));return{...pB(t),owner:e.owner}}),config:t}}function pB(e){let 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 mB(){let e=BigInt(Math.floor(Date.now()/1e3))-60n;return e<=0n?0:Number(BigInt(gt(8))%e)}function hB(e){let t=[...e.owners].sort((e,t)=>Number(t.weight)-Number(e.weight)||e.owner.toLowerCase().localeCompare(t.owner.toLowerCase())),n=[],r=0;for(let i of t.slice(0,8)){if(r>=Number(e.threshold))break;n.push(i),r+=Number(i.weight)}return n.sort((e,t)=>e.owner.toLowerCase().localeCompare(t.owner.toLowerCase()))}var gB=yI({...dB,id:4217,blockExplorers:{default:{name:`Tempo Explorer`,url:`https://explore.tempo.xyz`}},contracts:{earnFactory:{address:`0x3085A8003f340CD51C72D9e1a1298CDafB171B02`},erc4626EngineFactory:{address:`0xd43D00981222a8db444A528E69f19E3cE5A7D2Ff`}},name:`Tempo Mainnet`,nativeCurrency:{name:`USD`,symbol:`USD`,decimals:6},rpcUrls:{default:{http:[`https://rpc.tempo.xyz`],webSocket:[`wss://rpc.tempo.xyz`]}}}),_B=yI({...dB,id:42431,hardfork:`t5`,blockExplorers:{default:{name:`Tempo Explorer`,url:`https://explore.testnet.tempo.xyz`}},contracts:{earnFactory:{address:`0x1de6B233984583F4d936ae4265f3b60282b70cc6`},erc4626EngineFactory:{address:`0x0d57c10249eb3a92b7d81bBA6221F80F2865448A`}},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});function vB(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function yB(e,t=`|`){return e.map(e=>PB(e)).join(t)}function bB(e,t){return typeof t==`bigint`?t.toString():t}function xB(e){return e==null}function SB(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function CB(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function wB(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function TB(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}var EB=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function DB(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function OB(e){if(DB(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return DB(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function kB(e){return OB(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var AB=new Set([`string`,`number`,`symbol`]);function jB(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function MB(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function NB(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function PB(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}var FB={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},IB={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function LB(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function RB(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function zB(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function BB(e){return typeof e==`string`?e:e?.message}function VB(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function HB(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function UB(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:BB(e.inst?._zod.def?.error?.(e))??BB(a?.(e))??BB(t?.error?.(e))??BB(n.customError?.(e))??BB(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var WB=/[\uD800-\uDBFF]/;function GB(e){let t=e.length;if(!WB.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function KB(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function qB(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function JB(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function YB(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):QB(e,n,r.value)}}function XB(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function ZB(e,t,n){return XB(e,t,n,!1)}function QB(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:XB(this,t,n.bind(this))},set(e){XB(this,t,e)}})}var $B,eV=!1,tV={configurable:!0,get(){eV=!0}};function nV(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&$B!==e._zod?$B=void 0:($B=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,tV);let e=eV;eV=!1;try{let r=n(this);return eV?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),eV||=e,r}catch(n){throw delete this[t],eV||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}var rV=`~constantCatch`;function iV(e){let t=()=>e;return t[rV]=!0,t}var aV,oV={value:void 0,enumerable:!1},sV=`captureStackTrace`in Error?Error:null;function cV(e){let t=sV;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return sV=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function lV(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){oV.value=new a(r);try{Object.defineProperty(n,"_zod",oV)}finally{oV.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),YB(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?cV(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var uV=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},dV=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(aV=globalThis).__zod_globalConfig??(aV.__zod_globalConfig={});var fV=globalThis.__zod_globalConfig;function pV(e){return e&&Object.assign(fV,e),fV}function mV(){let e=this._zod;return e.message??=JSON.stringify(e.def,bB,2),e.message}function hV(e){this._zod.message=e}var gV={get:mV,set:hV,enumerable:!0,configurable:!0},_V={value:void 0,enumerable:!1},vV=new WeakSet([Object.prototype,Error.prototype]),yV=(e,t)=>{e.name=`$ZodError`,_V.value=t,Object.defineProperty(e,"issues",_V),_V.value=void 0,Object.defineProperty(e,"message",gV);let n=Object.getPrototypeOf(e);vV.has(n)||(vV.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},bV=lV(`$ZodError`,yV);lV(`$ZodError`,yV,void 0,{Parent:Error});function xV(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function SV(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?xV(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function CV(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function wV(e,t){return{callee:t?.callee??e,Err:t?.Err}}var TV=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new uV;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>UB(e,o,pV())));throw EB(n,a?.callee??t),n}return s.value};return t},EV=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>UB(e,o,pV())));throw EB(n,a?.callee??t),n}return s.value};return t},DV=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new uV;return a.issues.length?OV(e,a.issues,i):{success:!0,data:a.value}};function OV(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>UB(e,n,pV()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var kV=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?OV(e,a.issues,i):{success:!0,data:a.value}},AV=Symbol.for(`zod.compile.invalid`),jV=Symbol.for(`zod.compile.fallback`),MV=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==AV)return!0;if(r.definite===!0&&n===void 0)return!1}return NV(e,t,n)});function NV(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[jV]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new uV;return a.issues.length===0}var PV=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},FV=e=>{let t=TV(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,wV(n,a))};return n},IV=e=>{let t=TV(e),n=(e,r,i,a)=>t(e,r,i,wV(n,a));return n},LV=e=>{let t=EV(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,wV(n,a))};return n},RV=e=>{let t=EV(e),n=async(e,r,i,a)=>await t(e,r,i,wV(n,a));return n},zV=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return DV(e)(t,n,i)},BV=e=>(t,n,r)=>DV(e)(t,n,r),VV=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return kV(e)(t,n,i)},HV=e=>async(t,n,r)=>kV(e)(t,n,r),UV=lV(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),WV=e=>{let t=e.value;return!xB(t)&&t.length!==void 0},GV=lV(`$ZodCheckMaxLength`,(e,t)=>{var n;UV.init(e,t),(n=e._zod.def).when??(n.when=WV),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?GB(r):i)<=t.maximum)return;let a=KB(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),KV=lV(`$ZodCheckMinLength`,(e,t)=>{var n;UV.init(e,t),(n=e._zod.def).when??(n.when=WV),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?GB(r):i)>=t.minimum)return;let a=KB(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),qV=lV(`$ZodCheckLengthEquals`,(e,t)=>{var n;UV.init(e,t),(n=e._zod.def).when??(n.when=WV),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?GB(r):i;if(a===t.length)return;let o=KB(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),JV=lV(`$ZodCheckOverwrite`,(e,t)=>{UV.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),YV={major:4,minor:6,patch:7},XV=lV(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=YV;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=LB(t),a;for(let o of n){if(o._zod.def.when){if(RB(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new uV;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(HB(t.issues,n,e),i||=LB(t,n))});else{if(t.issues.length===n)continue;HB(t.issues,n,e),i||=LB(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(LB(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new uV;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new uV;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return ZB(this,`~standard`,$V(this))},set"~standard"(e){XB(this,`~standard`,e)}}),ZV=(e,t)=>e.issues.length?{issues:e.issues.map(e=>UB(e,t,pV()))}:{value:e.value};async function QV(e,t){let n={async:!0};return ZV(await e._zod.run({value:t,issues:[]},n),n)}function $V(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return ZV(r,n)}catch{}return QV(e,t)},vendor:`zod`,version:1}}function eH(e,t){let n=VB(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,a)=>{let o=t(n.value);if(o>r&&!a?.skipChecks&&a?.direction!==`backward`){for(let[t,r]of VB(e._zod.def.checks))if(o>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=!1,HB(n.issues,t,e),n}}return i(n,a)}}var tH=e=>Array.isArray(e)?e.length:-1;function nH(e,t,n){e.issues.length&&t.issues.push(...zB(n,e.issues)),t.value[n]=e.value}var rH=lV(`$ZodArray`,(e,t)=>{XV.init(e,t);let n=fV.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>nH(t,r,e)));else if(nH(c,r,e),s&&c.issues.length!==0&&LB(c))break}return o.length?Promise.all(o).then(()=>r):r},eH(e,tH)});function iH(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!LB(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>UB(e,r,pV())))}),t)}var aH=lV(`$ZodUnion`,(e,t)=>{XV.init(e,t),nV(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),nV(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),nV(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),nV(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>SB(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>iH(t,r,e,i)):iH(o,r,e,i)}}),oH=lV(`$ZodIntersection`,(e,t)=>{XV.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>cH(e,t,n)):cH(e,i,a)}});function sH(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(OB(e)&&OB(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=sH(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=sH(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function cH(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=sH(t.value,n.value);if(!c.valid){if(LB(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var lH=lV(`$ZodEnum`,(e,t)=>{XV.init(e,t);let n=vB(t.entries),r=new Set(n);e._zod.values=r,nV(e,`pattern`,e=>{let t=vB(e.def.entries).filter(e=>AB.has(typeof e));return RegExp(t.length?`^(${t.map(e=>jB(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),uH=lV(`$ZodTransform`,(e,t)=>{XV.init(e,t),e._zod.optin=`optional`,fV.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new dV(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new uV;return n.value=i,n}});function dH(e,t){return e.value=t.issues.length?void 0:t.value,e}var fH=lV(`$ZodOptional`,(e,t)=>{XV.init(e,t),nV(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,nV(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),nV(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${SB(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>dH(e,t)):dH(e,r)}return t.innerType._zod.run(e,n)}}),pH=lV(`$ZodExactOptional`,(e,t)=>{fH.init(e,t),nV(e,`values`,e=>e.def.innerType._zod.values),nV(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),mH=lV(`$ZodNullable`,(e,t)=>{XV.init(e,t),nV(e,`optin`,e=>e.def.innerType._zod.optin),nV(e,`optout`,e=>e.def.innerType._zod.optout),nV(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${SB(t.source)}|null)$`):void 0}),nV(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),hH=lV(`$ZodDefault`,(e,t)=>{XV.init(e,t),e._zod.optin=`defaulted`,nV(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>gH(e,t)):gH(r,t)}});function gH(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var _H=lV(`$ZodPrefault`,(e,t)=>{XV.init(e,t),e._zod.optin=`defaulted`,nV(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),vH=lV(`$ZodNonOptional`,(e,t)=>{XV.init(e,t),nV(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>yH(t,e)):yH(i,e)}});function yH(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function bH(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>UB(e,r,pV()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var xH=lV(`$ZodCatch`,(e,t)=>{XV.init(e,t),nV(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),nV(e,`optout`,e=>e.def.innerType._zod.optout),nV(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>bH(e,r,t,n)):bH(e,r,t,n)}}),SH=lV(`$ZodPipe`,(e,t)=>{XV.init(e,t),nV(e,`values`,e=>e.def.in._zod.values),nV(e,`optin`,e=>e.def.in._zod.optin),nV(e,`optout`,e=>e.def.out._zod.optout),nV(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>CH(e,t.in,n)):CH(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>CH(e,t.out,n)):CH(r,t.out,n)}});function CH(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var wH=lV(`$ZodReadonly`,(e,t)=>{XV.init(e,t),nV(e,`propValues`,e=>e.def.innerType._zod.propValues),nV(e,`values`,e=>e.def.innerType._zod.values),nV(e,`optin`,e=>e.def.innerType?._zod?.optin),nV(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(TH):TH(r)}});function TH(e){return e.memo||(e.value=Object.freeze(e.value)),e}var EH=lV(`$ZodCustom`,(e,t)=>{UV.init(e,t),XV.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>DH(t,n,r,e));DH(i,n,r,e)}});function DH(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(JB(e))}}var OH=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},kH=`~memo`,AH=[];function jH(e){return typeof e==`object`&&!!e}function MH(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var NH=new WeakMap,PH=0,FH=1,IH=2;function LH(e,t,n){let r=NH.get(e);if(r!==void 0)return r?IH:PH;if(t.has(e))return IH;t.add(e);let i=PH,a=e=>{if(i!==IH&&e?._zod){let r=LH(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=PH;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?FH:o.value?._zod?LH(o.value,t,n):PH;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=wB(c);s(e?o(e,!0):FH),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?LH(r,t,!1):FH);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),RH(e,i)}function RH(e,t){return t!==FH&&NH.set(e,t===IH),t}function zH(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var BH,VH=[],HH={alloc(e,t,n){let r=BH;if(!r)return n;BH=void 0;let i={value:n,issues:null};return r.set(t.value,i),VH.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&WH(n,e.value))throw new OH;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=LH(e,new Set,!1);if(i===PH)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===IH||r?n=!0:r=!0}let l=s.value;if(!jH(l))return t(s,c);let u=c[kH];u||(u={buckets:new WeakMap,backEdges:void 0},c[kH]=u);let d;i===c?d=a:(d=zH(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...MH(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;BH=d;let p=VH.length,m=t(s,c);BH=void 0;let h=VH.length>p?VH.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?MH(e.issues):AH),e)):(h&&(h.issues=m.issues.length?MH(m.issues):AH),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function UH(){return HH}function WH(e,t){let n=e[kH]?.backEdges;return n!==void 0&&jH(t)&&n.has(t)}var GH=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(qB(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${PB(e.values[0])}`:`Invalid option: expected one of ${yB(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${yB(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function KH(){return{localeError:GH()}}var qH,JH=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function YH(){return new JH}(qH=globalThis).__zod_globalRegistry??(qH.__zod_globalRegistry=YH());var XH=globalThis.__zod_globalRegistry;function ZH(e,t){return new GV({check:`max_length`,...NB(t),maximum:e})}function QH(e,t){return new KV({check:`min_length`,...NB(t),minimum:e})}function $H(e,t){return new qV({check:`length_equals`,...NB(t),length:e})}function eU(e){return new JV({check:`overwrite`,tx:e})}function tU(e,t,n){return new e({type:`array`,element:t,...NB(n)})}function nU(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...NB(n)})}function rU(e,t){let n=iU(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(JB(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(JB(r))}},e(t.value,t)),t);return n}function iU(e,t){let n=new UV({check:`custom`,...NB(t)});return n._zod.check=e,n}function aU(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&CB(e,t,n[t]);return e}function oU(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??XH,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function sU(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function cU(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,cU(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&aU(o.schema,c),t.io===`input`&&vU(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function lU(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function uU(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${lU(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+lU(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
30
30
 
31
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function dU(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;dU(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var fU=new Set([`type`,`properties`,`required`,`additionalProperties`]),pU=[`oneOf`,`anyOf`];function mU(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function hU(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!fU.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??mU(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}CB(n,r,e.length===1?e[0]:hU(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=mU(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function gU(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of fU)if(t in e)return;let n=t.filter(e=>pU.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=hU(t);else{let e=n[0],i=pU.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>hU([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,aU(e,r))}function _U(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):aU(i,s),aU(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())dU(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])gU(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}aU(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,CB(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:bU(t,`input`,e.processors),output:bU(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function vU(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return vU(r.element,n);if(r.type===`set`)return vU(r.valueType,n);if(r.type===`lazy`)return vU(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return vU(r.innerType,n);if(r.type===`intersection`)return vU(r.left,n)||vU(r.right,n);if(r.type===`record`||r.type===`map`)return vU(r.keyType,n)||vU(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:vU(r.in,n)||vU(r.out,n);if(r.type===`object`){for(let e in r.shape)if(vU(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(vU(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(vU(e,n))return!0;return!!(r.rest&&vU(r.rest,n))}return!1}var yU=(e,t={})=>n=>{let r=oU({...n,processors:t});return cU(e,r),uU(r,e),_U(r,e)},bU=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=oU({...i??{},target:a,io:t,processors:n});return cU(e,o),uU(o,e),_U(o,e)},xU=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},SU=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},CU=(e,t)=>{xU(e,`minimum`,t),SU(e,`maximum`,t)},wU=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},TU=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},EU=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},DU=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},OU=(e,t)=>xU(e,`minimum`,t.minimum),kU=(e,t)=>SU(e,`maximum`,t.maximum),AU=e=>(t,n)=>{DU(t,n.format);let[r,i]=e[n.format];xU(t,`minimum`,r),SU(t,`maximum`,i)},jU={greater_than:(e,t)=>xU(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>SU(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>wU(e,t.value),number_format:AU(FB),bigint_format:AU(IB),min_length:OU,max_length:kU,length_equals:(e,t)=>CU(e,t.length),min_size:OU,max_size:kU,size_equals:(e,t)=>CU(e,t.size),string_format:(e,t)=>{DU(e,t.format),t.pattern&&TU(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>EU(e,t.mime)};function MU(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)jU[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&xU(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&xU(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&SU(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&SU(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&wU(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&EU(t,i.mime);for(let e of i.patterns??[])TU(t,e);return t}var NU=(e,t,n,r)=>{let i=e._zod.def,a=vB(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},PU=(e,t,n,r)=>{sU(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},FU=(e,t,n,r)=>{sU(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},IU=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=MU(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=cU(a.element,t,{...r,path:[...r.path,`items`]})},LU=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>cU(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},RU=(e,t,n,r)=>{let i=e._zod.def,a=cU(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=cU(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},zU=(e,t,n,r)=>{let i=e._zod.def,a=cU(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},BU=(e,t,n,r)=>{let i=e._zod.def;cU(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},VU=Symbol();function HU(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(sU(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),VU):JSON.parse(o)}var UU=(e,t,n,r)=>{let i=e._zod.def;cU(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=HU(i.defaultValue,e,t,n,r);o!==VU&&(n.default=o)},WU=(e,t,n,r)=>{let i=e._zod.def;cU(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=HU(i.defaultValue,e,t,n,r);o!==VU&&(n._prefault=o)},GU=(e,t,n,r)=>{let i=e._zod.def;cU(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{sU(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},KU=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;cU(o,t,r);let s=t.seen.get(e);s.ref=o},qU=(e,t,n,r)=>{let i=e._zod.def;cU(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},JU=(e,t,n,r)=>{let i=e._zod.def;cU(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},YU=new WeakSet([Object.prototype,Error.prototype]);function XU(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var ZU=lV(`ZodError`,(e,t)=>{bV.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);YU.has(n)||(YU.add(n),XU(n,`format`,e=>t=>CV(e,t)),XU(n,`flatten`,e=>t=>SV(e,t)),XU(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,bB,2)}),XU(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,bB,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),QU=TV(ZU),$U=EV(ZU),eW=DV(ZU),tW=kV(ZU),nW=FV(ZU),rW=IV(ZU),iW=LV(ZU),aW=RV(ZU),oW=zV(ZU),sW=BV(ZU),cW=VV(ZU),lW=HV(ZU);function uW(){fV.localeError||pV(KH())}function dW(){fV.memoizer||pV({memoizer:UH()})}var fW=lV(`ZodType`,(e,t)=>(uW(),XV.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(TB(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return MB(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(HW(e,t))},superRefine(e,t){return this.check(UW(e,t))},overwrite(e){return this.check(eU(e))},optional(){return wW(this)},exactOptional(){return EW(this)},nullable(){return OW(this)},nullish(){return wW(OW(this))},nonoptional(e){return PW(this,e)},array(){return mW(this)},or(e){return gW([this,e])},and(e){return vW(this,e)},transform(e){return RW(this,SW(e))},default(e){return AW(this,e)},prefault(e){return MW(this,e)},catch(e){return IW(this,e)},pipe(e){return RW(this,e)},readonly(){return BW(this)},describe(e){let t=this.clone();return XH.add(t,{description:e}),t},meta(...e){if(e.length===0)return XH.get(this);let t=this.clone();return XH.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return ZB(this,`~standard`,{...$V(this),jsonSchema:{input:bU(this,`input`),output:bU(this,`output`)}})},set"~standard"(e){XB(this,`~standard`,e)},parse:function e(t,n){return QU(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await $U(this,t,n,{callee:e})},safeParse(e,t){return eW(this,e,t)},async safeParseAsync(e,t){return tW(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){XB(this,`spa`,e)},validate(e,t){return MV(this,e,t)},validateAsync(e,t){return PV(this,e,t)},encode:function e(t,n){return nW(this,t,n,{callee:e})},decode:function e(t,n){return rW(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await iW(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await aW(this,t,n,{callee:e})},safeEncode(e,t){return oW(this,e,t)},safeDecode(e,t){return sW(this,e,t)},async safeEncodeAsync(e,t){return cW(this,e,t)},async safeDecodeAsync(e,t){return lW(this,e,t)},toJSONSchema(e){return yU(this,{})(e)},get description(){return XH.get(this)?.description},get _def(){return this._zod.def}}),pW=lV(`ZodArray`,(e,t)=>{dW(),rH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IU(e,t,n,r),e.element=t.element},{min(e,t){return this.check(QH(e,t))},nonempty(e){return this.check(QH(1,e))},max(e,t){return this.check(ZH(e,t))},length(e,t){return this.check($H(e,t))},unwrap(){return this.element}});function mW(e,t){return tU(pW,e,t)}var hW=lV(`ZodUnion`,(e,t)=>{aH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LU(e,t,n,r),e.options=t.options});function gW(e,t){return new hW({type:`union`,options:e,...NB(t)})}var _W=lV(`ZodIntersection`,(e,t)=>{oH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>RU(e,t,n,r)});function vW(e,t){return new _W({type:`intersection`,left:e,right:t})}var yW=lV(`ZodEnum`,(e,t)=>{lH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NU(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new yW({...t,checks:[],...NB(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new yW({...t,checks:[],...NB(r),entries:i})}});function bW(e,t){return new yW({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...NB(t)})}var xW=lV(`ZodTransform`,(e,t)=>{dW(),uH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FU(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new dV(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(JB(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(JB(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function SW(e){return new xW({type:`transform`,transform:e})}var CW=lV(`ZodOptional`,(e,t)=>{fH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function wW(e){return new CW({type:`optional`,innerType:e})}var TW=lV(`ZodExactOptional`,(e,t)=>{pH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function EW(e){return new TW({type:`optional`,innerType:e})}var DW=lV(`ZodNullable`,(e,t)=>{mH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function OW(e){return new DW({type:`nullable`,innerType:e})}var kW=lV(`ZodDefault`,(e,t)=>{hH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function AW(e,t){return new kW({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():kB(t)}})}var jW=lV(`ZodPrefault`,(e,t)=>{_H.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function MW(e,t){return new jW({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():kB(t)}})}var NW=lV(`ZodNonOptional`,(e,t)=>{vH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function PW(e,t){return new NW({type:`nonoptional`,innerType:e,...NB(t)})}var FW=lV(`ZodCatch`,(e,t)=>{xH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function IW(e,t){return new FW({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:iV(t)})}var LW=lV(`ZodPipe`,(e,t)=>{SH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KU(e,t,n,r),e.in=t.in,e.out=t.out});function RW(e,t){return new LW({type:`pipe`,in:e,out:t})}var zW=lV(`ZodReadonly`,(e,t)=>{wH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function BW(e){return new zW({type:`readonly`,innerType:e})}var VW=lV(`ZodCustom`,(e,t)=>{EH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PU(e,t,n,r)});function HW(e,t={}){return nU(VW,e,t)}function UW(e,t){return rU(e,t)}gB.id,_B.id;var WW=bW([`mainnet`,`testnet`]),GW=new Set([101,204,205,304]);async function KW(e){let t=await e;if((t.body||t._bodyInit)&&!GW.has(t.status)&&(t._data=await t[YW(t)]()),!t.ok)throw new qW(`${t.status} ${t.statusText}`,{statusCode:t?.status,detail:{data:t?._data,statusText:t?.statusText}});return t._data}var qW=class extends Error{detail;code;log;statusCode;constructor(e,t={}){super(e),this.name=`DetailedError`,this.log=t.log,this.detail=t.detail,this.code=t.code,this.statusCode=t.statusCode}},JW=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(?:;.+)?$/i;function YW(e){let t=e.headers.get(`content-type`);if(!t)return`text`;let n=t.split(`;`).shift();return JW.test(n)?`json`:`text`}var XW=(e,t)=>(e=e.replace(/\/+$/,``),e+=`/`,t=t.replace(/^\/+/,``),e+t),ZW=(e,t)=>{for(let[n,r]of Object.entries(t)){let t=RegExp(`/:`+n+`(?:{[^/]+})?\\??(?=/|$)`);e=e.replace(t,()=>r?`/${r}`:``)}return e},QW=e=>{let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(r!==void 0){if(Array.isArray(r))for(let e of r)e!==void 0&&t.append(n,e);else t.set(n,r)}return t},$W=(e,t)=>{switch(t){case`ws`:return e.replace(/^http/,`ws`);case`http`:return e.replace(/^ws/,`http`)}},eG=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,`/`):e.replace(/\/index(?=\?|$)/,``);function tG(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function nG(e,t){if(!tG(e)&&!tG(t))return t;let n={...e};for(let e in t){let r=t[e];n[e]=tG(n[e])&&tG(r)?nG(n[e],r):r}return n}async function rG(e){return KW(e)}var iG=/^[\w!#$%&'*.^`|~+-]+$/,aG=(e,t,n={})=>{if(!iG.test(e))throw Error(`Invalid cookie name`);let r=`${e}=${t}`;if(e.startsWith(`__Secure-`)&&!n.secure)throw Error(`__Secure- Cookie must have Secure attributes`);if(e.startsWith(`__Host-`)){if(!n.secure)throw Error(`__Host- Cookie must have Secure attributes`);if(n.path!==`/`)throw Error(`__Host- Cookie must have Path attributes with "/"`);if(n.domain)throw Error(`__Host- Cookie must not have Domain attributes`)}for(let e of[`domain`,`path`,`sameSite`,`priority`])if(n[e]&&/[;\r\n]/.test(n[e]))throw Error(`${e} must not contain ";", "\\r", or "\\n"`);if(n&&typeof n.maxAge==`number`&&n.maxAge>=0){if(n.maxAge>3456e4)throw Error(`Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.`);r+=`; Max-Age=${n.maxAge|0}`}if(n.domain&&n.prefix!==`host`&&(r+=`; Domain=${n.domain}`),n.path&&(r+=`; Path=${n.path}`),n.expires){if(n.expires.getTime()-Date.now()>3456e7)throw Error(`Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.`);r+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(r+=`; HttpOnly`),n.secure&&(r+=`; Secure`),n.sameSite&&(r+=`; SameSite=${n.sameSite.charAt(0).toUpperCase()+n.sameSite.slice(1)}`),n.priority&&(r+=`; Priority=${n.priority.charAt(0).toUpperCase()+n.priority.slice(1)}`),n.partitioned){if(!n.secure)throw Error(`Partitioned Cookie must have Secure attributes`);r+=`; Partitioned`}return r},oG=(e,t,n)=>(t=encodeURIComponent(t),aG(e,t,n)),sG=(e,t)=>new Proxy(()=>{},{get(n,r){if(typeof r==`string`&&r!==`then`)return sG(e,[...t,r])},apply(n,r,i){return e({path:t,args:i})}}),cG=(e,t)=>{let n=t.toString();return n?`${e}?${n}`:e},lG=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){let t=new FormData;for(let[n,r]of Object.entries(e.form))if(r!==void 0){if(Array.isArray(r))for(let e of r)e!==void 0&&t.append(n,e);else t.append(n,r)}this.rBody=t}e.json!==void 0&&(this.rBody=JSON.stringify(e.json),this.cType=`application/json`),e.param&&(this.pathParams=e.param)}let n=this.method.toUpperCase(),r={...e?.header,...typeof t?.headers==`function`?await t.headers():t?.headers};if(e?.cookie){let t=[];for(let[n,r]of Object.entries(e.cookie))r!==void 0&&t.push(oG(n,r));t.length>0&&(r.Cookie=t.join(`; `))}this.cType&&(r[`Content-Type`]=this.cType);let i=new Headers;for(let[e,t]of Object.entries(r))t!==void 0&&i.set(e,t);let a=this.url;a=eG(a),a=ZW(a,this.pathParams),this.queryParams&&(a=cG(a,this.queryParams)),n=this.method.toUpperCase();let o=n!==`GET`&&n!==`HEAD`;return(t?.fetch||fetch)(a,{body:o?this.rBody:void 0,method:n,headers:i,...t?.init})}},uG=(e,t)=>sG(function n(r){let i=t?.buildSearchParams??QW,a=[...r.path],o=a.slice(-3).reverse();if(o[0]===`toString`)return o[1]===`name`?o[2]||``:n.toString();if(o[0]===`valueOf`)return o[1]===`name`?o[2]||``:n;let s=``;if(/^\$/.test(o[0])){let e=a.pop();e&&(s=e.replace(/^\$/,``))}let c=XW(e,a.join(`/`));if(s===`url`||s===`path`){let t=eG(c);return r.args[0]&&(r.args[0].param&&(t=ZW(t,r.args[0].param)),r.args[0].query&&(t=cG(t,i(r.args[0].query)))),s===`url`?new URL(t):t.slice(e.replace(/\/+$/,``).length).replace(/^\/?/,`/`)}if(s===`ws`){let e=eG(c),n=$W(r.args[0]?.param?ZW(e,r.args[0].param):e,`ws`),a=new URL(n),o=r.args[0]?.query;return o&&i(o).forEach((e,t)=>{a.searchParams.append(t,e)}),((...e)=>t?.webSocket!==void 0&&typeof t.webSocket==`function`?t.webSocket(...e):new WebSocket(...e))(a.toString())}let l=new lG(c,s,{buildSearchParams:i});if(s){t??={};let e={...r.args[1]},n=t.headers,i=e.headers;n&&i&&(e.headers=async()=>({...typeof n==`function`?await n():n,...typeof i==`function`?await i():i}));let a=nG(t,e);return l.fetch(r.args[0],a)}return l},[]),dG=()=>fetch,fG=()=>window.location.origin,pG=(0,U.createContext)(void 0);function mG(){return uG(fG(),{fetch:dG()})}function hG(e){if(e instanceof qW){let t=e.detail?.data;return typeof t==`object`&&t&&`error_description`in t&&typeof t.error_description==`string`?t.error_description:`Something went wrong. Try again.`}return`Tempo ID cannot be reached. Check the connection, and try again.`}function gG(e){if(!(e instanceof qW))return;let t=e.detail?.data;if(typeof t==`object`&&t&&`reason`in t&&typeof t.reason==`string`)return t.reason}function _G(){let e=(0,U.useContext)(pG);if(!e)throw Error(`The client is used outside the root route.`);return e}var{style:vG,variants:yG,vars:bG}={vars:Pp([[`default`,`z-theme-tempo_2d_id-default`],[`thirdParty`,`z-theme-tempo_2d_id-thirdParty`]],!1,`set`,`default`)};function xG(e){let t=e.heading??`h1`;return(0,W.jsxs)(VE,{...SG.column?{className:`z-tempo_2d_id-max-width-[var(--z-tempo_5f_2d_5f_id-spacing-384,24rem)] z-tempo_2d_id-w-[100%]`}:SG.column(),gap:`32`,children:[(0,W.jsxs)(VE,{...SG.header?{className:`z-tempo_2d_id-text-align-center`}:SG.header(),gap:`8`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(t,{...SG.title?{className:`z-tempo_2d_id-text-wrap-balance z-tempo_2d_id-font-family-[var(--z-tempo_5f_2d_5f_id-typography-heading-32-fontFamily,Inter,_20_-apple-system,_20_BlinkMacSystemFont,_20__22_Segoe_20_UI_22_,_20_Roboto,_20__22_Helvetica_20_Neue_22_,_20__22_Noto_20_Sans_22_,_20_Arial,_20_sans-serif,_20__22_Apple_20_Color_20_Emoji_22_,_20__22_Segoe_20_UI_20_Emoji_22_,_20__22_Segoe_20_UI_20_Symbol_22_,_20__22_Noto_20_Color_20_Emoji_22_)] z-tempo_2d_id-font-size-[var(--z-tempo_5f_2d_5f_id-typography-heading-32-fontSize,32px)] z-tempo_2d_id-font-weight-[var(--z-tempo_5f_2d_5f_id-typography-heading-32-fontWeight,600)] z-tempo_2d_id-letter-spacing-[var(--z-tempo_5f_2d_5f_id-typography-heading-32-letterSpacing,-.69px)] z-tempo_2d_id-line-height-[var(--z-tempo_5f_2d_5f_id-typography-heading-32-lineHeight,40px)]`}:SG.title(),children:`Page not found`}),(0,W.jsx)(`p`,{...SG.description?{className:`z_tempo_2d_id-TOnza90 z_tempo_2d_id-TOnza91 z_tempo_2d_id-TOnza92 z_tempo_2d_id-TOnza93 z_tempo_2d_id-TOnza94 z_tempo_2d_id-TOnza95 z_tempo_2d_id-TOnza96`}:SG.description(),children:`Tempo ID has no page at this address. Check the address, or go to your account.`})]}),(0,W.jsx)(bS.Link,{render:(0,W.jsx)(Vd,{to:`/`}),children:`Go to your account`})]})}var SG;(function(e){e.column=1,e.description=1,e.header=1,e.title=1})(SG||={});var CG=Kd({component:wG,head:()=>({links:[{href:_D,rel:`stylesheet`},{href:`data:,`,rel:`icon`}],meta:[{charSet:`utf-8`},{content:`width=device-width, initial-scale=1`,name:`viewport`},{title:`Tempo ID`},{content:`Sign in to Tempo.`,name:`description`}]}),notFoundComponent:TG,search:{middlewares:[mu([`chain`])]},shellComponent:EG,validateSearch:e=>{let t=WW.safeParse(e.chain);return{chain:t.success?t.data:void 0}}});function wG(){let[e]=(0,U.useState)(mG),[t]=(0,U.useState)(()=>new Ep);return(0,W.jsx)(pG,{value:e,children:(0,W.jsx)(Tf,{client:t,children:(0,W.jsx)(rf,{})})})}function TG(){return(0,W.jsx)(`main`,{...DG.page?{className:`z_tempo_2d_id-ugyUyp0 z_tempo_2d_id-ugyUyp1 z_tempo_2d_id-ugyUyp2 z_tempo_2d_id-ugyUyp3 z_tempo_2d_id-ugyUyp4`}:DG.page(),children:(0,W.jsx)(xG,{})})}function EG(e){return(0,W.jsxs)(`html`,{className:`${hg().className} ${bG().className}`,lang:`en`,children:[(0,W.jsx)(`head`,{children:(0,W.jsx)(yf,{})}),(0,W.jsxs)(`body`,{children:[e.children,(0,W.jsx)(xf,{})]})]})}var DG;(function(e){e.page=1})(DG||={});function OG(e){let{attestationObject:t,clientDataJSON:n,id:r,publicKey:i,raw:a}=e,o={};for(let e of Zj){let t=a.response,n=t[e];if(!(n instanceof ArrayBuffer)){let r=t[`get${e[0].toUpperCase()}${e.slice(1)}`];typeof r==`function`&&(n=r.call(t))}n instanceof ArrayBuffer&&(o[e]=Mj(new Uint8Array(n),Xj))}if(!o.authenticatorData){let e=Pj(new Uint8Array(t));e.authData&&(o.authenticatorData=Mj(e.authData,Xj))}return{attestationObject:Mj(new Uint8Array(t),Xj),clientDataJSON:Mj(new Uint8Array(n),Xj),id:r,publicKey:XD(i),raw:{id:a.id,type:a.type,authenticatorAttachment:a.authenticatorAttachment,rawId:Mj(Qj(a.rawId),Xj),response:o}}}async function kG(e){return lM(await(`options`in e?uM({...sM(e.options),getFn:e.getFn}):uM(e)))}async function AG(e){return OG(await tM(`options`in e?{...rM(e.options),...e.createFn?{createFn:e.createFn}:{}}:e))}function jG(e){let{document:t=!1,href:n}=e;throw zn({href:n,...t?{reloadDocument:!0}:{},statusCode:302})}function MG(e){return(0,W.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,W.jsx)(`path`,{d:`M6.3136 3.4798C6.50889 3.28488 6.82549 3.28465 7.02063 3.4798C7.2155 3.67497 7.21546 3.99163 7.02063 4.18683L3.70618 7.50031H13.5001C13.7762 7.50041 14.0001 7.72423 14.0001 8.00031C14 8.27625 13.7761 8.50021 13.5001 8.50031H3.70813L7.02063 11.8128C7.21561 12.0079 7.21535 12.3246 7.02063 12.5198C6.82541 12.7151 6.50887 12.715 6.3136 12.5198L2.14661 8.35382C1.9514 8.15862 1.95151 7.84207 2.14661 7.64679L6.3136 3.4798Z`,fill:`currentColor`})})}function NG(e){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,W.jsx)(`path`,{d:`M9.9691 6.50791C10.1268 6.28127 10.4387 6.2253 10.6654 6.38291C10.8915 6.54061 10.9476 6.85173 10.7904 7.07822L8.1859 10.8253C8.10463 10.9422 7.97661 11.0189 7.83532 11.0362C7.69403 11.0533 7.5516 11.009 7.44469 10.9151L5.95641 9.60361C5.74921 9.42107 5.72894 9.10476 5.91149 8.89756C6.09407 8.69075 6.4095 8.67124 6.61657 8.85361L7.68395 9.79306L9.9691 6.50791Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7.67516 1.61826C8.13077 1.16265 8.86994 1.16265 9.32555 1.61826L10.7591 3.05185C10.7902 3.08262 10.8326 3.10058 10.8763 3.10068H12.7338C13.3779 3.10081 13.9006 3.62258 13.9007 4.2667V6.12412C13.9009 6.16817 13.9184 6.21112 13.9496 6.24228L15.3832 7.6749C15.8384 8.13047 15.8385 8.86977 15.3832 9.32529L13.9496 10.7589C13.9185 10.79 13.9008 10.8321 13.9007 10.8761V12.7335C13.9005 13.3776 13.3778 13.9004 12.7338 13.9005H10.8763C10.8323 13.9006 10.7903 13.9182 10.7591 13.9493L9.32555 15.3829C8.87002 15.8381 8.1307 15.8381 7.67516 15.3829L6.24254 13.9493C6.21134 13.9181 6.16849 13.9005 6.12438 13.9005H4.26696C3.6229 13.9003 3.10117 13.3775 3.10094 12.7335V10.8761C3.10084 10.8323 3.08288 10.79 3.05211 10.7589L1.61852 9.32529C1.16294 8.86971 1.163 8.13052 1.61852 7.6749L3.05211 6.24228C3.08324 6.21113 3.10083 6.16815 3.10094 6.12412V4.2667C3.1011 3.62259 3.62285 3.10084 4.26696 3.10068H6.12438C6.16843 3.10062 6.21135 3.08297 6.24254 3.05185L7.67516 1.61826ZM8.61852 2.32529C8.5535 2.26027 8.44827 2.26042 8.38317 2.32529L6.94957 3.75888C6.73085 3.97753 6.43365 4.10062 6.12438 4.10068H4.26696C4.17514 4.10084 4.1011 4.17488 4.10094 4.2667V6.12412C4.10083 6.43336 3.97781 6.73062 3.75914 6.94931L2.32555 8.38291C2.26077 8.44802 2.26056 8.55327 2.32555 8.61826L3.75914 10.0519C3.97744 10.2705 4.10084 10.5671 4.10094 10.8761V12.7335C4.10117 12.8253 4.17518 12.9003 4.26696 12.9005H6.12438C6.43371 12.9005 6.73084 13.0235 6.94957 13.2423L8.38317 14.6749C8.44825 14.7396 8.55353 14.7398 8.61852 14.6749L10.0521 13.2423C10.2708 13.0236 10.5671 12.9006 10.8763 12.9005H12.7338C12.8256 12.9004 12.9005 12.8253 12.9007 12.7335V10.8761C12.9008 10.5669 13.0239 10.2705 13.2425 10.0519L14.6752 8.61826C14.7401 8.55328 14.7399 8.44802 14.6752 8.38291L13.2425 6.94931C13.0239 6.73062 12.9009 6.43339 12.9007 6.12412V4.2667C12.9006 4.17486 12.8256 4.10081 12.7338 4.10068H10.8763C10.5674 4.10058 10.2708 3.97719 10.0521 3.75888L8.61852 2.32529Z`,fill:`currentColor`})]})}function PG(e){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,W.jsx)(`path`,{d:`M8.00098 4.66602C8.27653 4.66645 8.50062 4.89045 8.50098 5.16602V7.79297L10.1875 9.47949C10.3825 9.67462 10.3823 9.99125 10.1875 10.1865C9.99226 10.3818 9.67574 10.3817 9.48047 10.1865L7.64746 8.35352C7.55377 8.25982 7.50106 8.13249 7.50098 8V5.16602C7.50133 4.89018 7.72505 4.66602 8.00098 4.66602Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00098 1.33301C11.6824 1.33345 14.6668 4.31853 14.667 8C14.6668 11.6815 11.6824 14.6656 8.00098 14.666C4.31919 14.666 1.33318 11.6817 1.33301 8C1.33319 4.31826 4.31919 1.33301 8.00098 1.33301ZM8.00098 2.33301C4.87148 2.33301 2.33417 4.87054 2.33398 8C2.33416 11.1294 4.87147 13.666 8.00098 13.666C11.1301 13.6656 13.6668 11.1292 13.667 8C13.6668 4.87082 11.1301 2.33345 8.00098 2.33301Z`,fill:`currentColor`})]})}function FG(e){return(0,W.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,W.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 3.16699C10.8819 3.16699 12.8301 5.01762 12.9883 7.35938C14.5922 7.55863 15.834 8.92613 15.834 10.584C15.8336 12.3785 14.3785 13.8338 12.584 13.834H5.16699C2.95808 13.834 1.16737 12.0428 1.16699 9.83398C1.16699 7.90307 2.53477 6.29168 4.35449 5.91602C5.03729 4.30133 6.63535 3.16712 8.5 3.16699ZM8.5 4.16699C6.96768 4.16713 5.66397 5.15244 5.19043 6.52539C5.1283 6.70485 4.96965 6.83427 4.78125 6.8584C3.30682 7.04738 2.16699 8.30803 2.16699 9.83398C2.16737 11.4905 3.51037 12.834 5.16699 12.834H12.584C13.8262 12.8338 14.8336 11.8262 14.834 10.584C14.834 9.34145 13.8265 8.33416 12.584 8.33398C12.5603 8.33398 12.5363 8.33423 12.5127 8.33496C12.374 8.33926 12.2393 8.28511 12.1416 8.18652C12.044 8.08793 11.9915 7.95303 11.9971 7.81445C11.9991 7.76574 12 7.71627 12 7.66699C12 5.734 10.433 4.16699 8.5 4.16699Z`,fill:`currentColor`})})}function IG(e){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,W.jsx)(`path`,{d:`M13.5 9.33398C13.7761 9.33398 14 9.55784 14 9.83398V12.834C13.9997 13.4781 13.4772 14.001 12.833 14.001H3.16699C2.52283 14.001 2.00026 13.4781 2 12.834V9.83398C2 9.55784 2.22386 9.33398 2.5 9.33398C2.77614 9.33398 3 9.55784 3 9.83398V12.834C3.00026 12.9258 3.0751 13.001 3.16699 13.001H12.833C12.9249 13.001 12.9997 12.9258 13 12.834V9.83398C13 9.55784 13.2239 9.33398 13.5 9.33398Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M8 2C8.27614 2 8.5 2.22386 8.5 2.5V8.79199L9.98047 7.3125C10.1757 7.11779 10.4924 7.1175 10.6875 7.3125C10.8824 7.5076 10.8822 7.82428 10.6875 8.01953L8.35352 10.3525C8.15825 10.5478 7.84175 10.5478 7.64648 10.3525L5.31348 8.01953C5.1183 7.82426 5.11824 7.50773 5.31348 7.3125C5.50874 7.11763 5.82536 7.11744 6.02051 7.3125L7.5 8.79199V2.5C7.5 2.22386 7.72386 2 8 2Z`,fill:`currentColor`})]})}function LG(e){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,W.jsx)(`path`,{d:`M8.00536 6.83496C8.2815 6.83496 8.50536 7.05882 8.50536 7.33496C8.50536 9.28777 8.18891 11.168 7.60399 12.9258C7.45356 13.3778 7.28517 13.8219 7.10008 14.2568C6.99198 14.5107 6.69876 14.6293 6.44481 14.5215C6.19099 14.4133 6.07219 14.1192 6.18016 13.8652C6.35475 13.4549 6.51387 13.0358 6.65575 12.6094C7.20715 10.9522 7.50536 9.17895 7.50536 7.33496C7.50536 7.05904 7.72952 6.83532 8.00536 6.83496Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M10.52 10.4541C10.7913 10.5039 10.9707 10.7648 10.9214 11.0361C10.8278 11.5476 10.7154 12.0533 10.5845 12.5508C10.4402 13.0989 10.274 13.6388 10.0864 14.168C9.99408 14.4281 9.70794 14.5639 9.44774 14.4717C9.18753 14.3794 9.05079 14.0932 9.14305 13.833C9.32138 13.33 9.48054 12.8171 9.61766 12.2959L9.79051 11.5811C9.84391 11.3413 9.89349 11.0995 9.93797 10.8564C9.98787 10.5851 10.2485 10.4044 10.52 10.4541Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M4.03172 11.7812C4.11987 11.5198 4.40295 11.3789 4.66454 11.4668C4.926 11.5548 5.06668 11.8381 4.97899 12.0996C4.86951 12.4252 4.74948 12.7464 4.61864 13.0615C4.51276 13.3164 4.22024 13.4367 3.96532 13.3311C3.71029 13.2251 3.5889 12.9328 3.69481 12.6777C3.81681 12.3839 3.92965 12.0848 4.03172 11.7812Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M8.00633 1.33301C11.3211 1.33311 14.0083 4.02127 14.0083 7.33594C14.0083 8.78975 13.8748 10.2133 13.6186 11.5938C13.568 11.8648 13.3069 12.0443 13.0356 11.9941C12.7643 11.9438 12.5851 11.6825 12.6352 11.4111C12.8802 10.0906 13.0083 8.72825 13.0083 7.33594C13.0083 4.57356 10.7688 2.33409 8.00633 2.33398C7.2206 2.33403 6.47822 2.51504 5.81786 2.83691C5.56991 2.95753 5.27101 2.85411 5.14989 2.60645C5.0289 2.35823 5.13216 2.0585 5.38036 1.9375C6.17411 1.55068 7.06564 1.33305 8.00633 1.33301Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M3.12938 3.83594C3.29057 3.61209 3.60255 3.5608 3.82665 3.72168C4.05084 3.88283 4.102 4.1957 3.9409 4.41992C3.35117 5.24055 3.0035 6.2465 3.0034 7.33496C3.0034 8.32841 2.88524 9.29522 2.66063 10.2207C2.5955 10.489 2.32447 10.654 2.05614 10.5889C1.78801 10.5236 1.623 10.2535 1.68797 9.98535C1.89406 9.13635 2.0034 8.2485 2.0034 7.33496C2.0035 6.03015 2.42142 4.821 3.12938 3.83594Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M8.00536 4.08496C9.80058 4.08518 11.2563 5.54061 11.2563 7.33594C11.2563 7.77027 11.243 8.20225 11.2163 8.62988C11.1987 8.90495 10.9612 9.1146 10.686 9.09766C10.4107 9.08035 10.2014 8.84265 10.2182 8.56738C10.2437 8.16042 10.2563 7.7494 10.2563 7.33594C10.2563 6.0929 9.24829 5.08518 8.00536 5.08496C6.76239 5.08521 5.75438 6.09291 5.75438 7.33594C5.75435 8.18373 5.68419 9.01631 5.54833 9.82617C5.50227 10.0979 5.24403 10.2817 4.97215 10.2363C4.70008 10.1906 4.51657 9.93226 4.562 9.66016C4.68872 8.90477 4.75435 8.12803 4.75438 7.33594C4.75438 5.54063 6.2101 4.08521 8.00536 4.08496Z`,fill:`currentColor`})]})}function RG(e){return(0,W.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,W.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00098 1.33301C11.6825 1.33345 14.667 4.31935 14.667 8.00098C14.6666 11.6822 11.6822 14.6666 8.00098 14.667C4.31935 14.667 1.33345 11.6825 1.33301 8.00098C1.33301 4.31908 4.31908 1.33301 8.00098 1.33301ZM5.84473 8.5C5.89806 9.89948 6.17134 11.138 6.57227 12.04C6.7965 12.5444 7.05078 12.9216 7.30762 13.166C7.5619 13.4079 7.79555 13.5 8.00098 13.5C8.20627 13.4998 8.44029 13.4078 8.69434 13.166C8.95104 12.9215 9.20558 12.5442 9.42969 12.04C9.83057 11.138 10.1021 9.89938 10.1553 8.5H5.84473ZM2.35645 8.5C2.5548 10.7688 4.08984 12.6525 6.16992 13.3623C5.97897 13.0907 5.80772 12.7817 5.6582 12.4453C5.19204 11.3963 4.89835 10.015 4.84473 8.5H2.35645ZM11.1553 8.5C11.1017 10.0149 10.8089 11.3963 10.3428 12.4453C10.1932 12.7818 10.0209 13.0906 9.83008 13.3623C11.9103 12.6527 13.4452 10.769 13.6436 8.5H11.1553ZM6.16992 2.63672C4.08987 3.34649 2.55505 5.23127 2.35645 7.5H4.84473C4.89835 5.98501 5.19204 4.6037 5.6582 3.55469C5.80784 3.21802 5.97879 2.90844 6.16992 2.63672ZM8.00098 2.5C7.79555 2.5 7.5619 2.59208 7.30762 2.83398C7.05078 3.07841 6.7965 3.45561 6.57227 3.95996C6.17134 4.86204 5.89806 6.10053 5.84473 7.5H10.1553C10.1021 6.10063 9.83057 4.86202 9.42969 3.95996C9.20558 3.45579 8.95104 3.07849 8.69434 2.83398C8.44029 2.59222 8.20627 2.50024 8.00098 2.5ZM9.83008 2.63672C10.0211 2.90858 10.1931 3.21792 10.3428 3.55469C10.8089 4.60369 11.1017 5.98506 11.1553 7.5H13.6436C13.445 5.23108 11.9102 3.34635 9.83008 2.63672Z`,fill:`currentColor`})})}function zG(e){return(0,W.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,W.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.834 2C13.4779 2.00044 14 2.52293 14 3.16699V10.667H14.834C15.1098 10.6674 15.334 10.8911 15.334 11.167V12.833C15.334 13.4772 14.8111 13.9997 14.167 14H1.83398C1.18965 14 0.666016 13.4773 0.666016 12.833V11.167C0.666016 10.8909 0.89085 10.667 1.16699 10.667H2V3.16699C2 2.52266 2.52266 2 3.16699 2H12.834ZM1.66699 12.833C1.66699 12.9251 1.74194 13 1.83398 13H14.167C14.2588 12.9997 14.334 12.9249 14.334 12.833V11.667H1.66699V12.833ZM3.16699 3C3.07494 3 3 3.07494 3 3.16699V10.667H13V3.16699C13 3.07522 12.9257 3.00044 12.834 3H3.16699Z`,fill:`currentColor`})})}function BG(e){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,W.jsx)(`path`,{d:`M10.0693 8.80616C11.3199 8.97992 12.4268 9.31057 13.2363 9.76222C14.0167 10.1977 14.6668 10.8347 14.667 11.6665C14.667 12.1908 14.4026 12.6417 14.0283 13.0005C13.6553 13.358 13.1419 13.6575 12.5488 13.898C11.3599 14.3799 9.75149 14.6664 8.00098 14.6665C6.25029 14.6665 4.64122 14.3799 3.45215 13.898C2.8591 13.6575 2.34566 13.3579 1.97266 13.0005C1.59839 12.6417 1.33303 12.1908 1.33301 11.6665C1.33316 10.8345 1.98414 10.1978 2.76465 9.76222C3.5742 9.31057 4.68102 8.97991 5.93164 8.80616C6.20498 8.76845 6.45812 8.95956 6.49609 9.23292C6.53371 9.50605 6.3424 9.75821 6.06934 9.7964C4.89651 9.95932 3.9196 10.2628 3.25195 10.6353C2.55551 11.0239 2.33415 11.4018 2.33398 11.6665C2.33401 11.8324 2.41535 12.0395 2.66504 12.2788C2.9161 12.5193 3.30576 12.7594 3.82812 12.9712C4.87088 13.3938 6.34642 13.6665 8.00098 13.6665C9.65529 13.6664 11.1303 13.3938 12.1729 12.9712C12.6953 12.7593 13.0859 12.5194 13.3369 12.2788C13.5863 12.0397 13.667 11.8323 13.667 11.6665C13.6668 11.4018 13.4452 11.0238 12.749 10.6353C12.0814 10.2628 11.1043 9.95934 9.93164 9.7964C9.65837 9.75831 9.4681 9.50621 9.50586 9.23292C9.54385 8.95943 9.79585 8.76822 10.0693 8.80616Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.11426 2.11475C7.15559 1.07435 8.84294 1.07287 9.88477 2.11475C10.9263 3.15634 10.9267 4.84526 9.88477 5.88624C9.49213 6.2783 9.00732 6.52222 8.5 6.61866V11.4995C8.5 11.7757 8.27614 11.9995 8 11.9995C7.72386 11.9995 7.5 11.7757 7.5 11.4995V6.61866C6.99206 6.52234 6.50626 6.27863 6.11328 5.88526C5.07366 4.84407 5.07276 3.15585 6.11426 2.11475ZM9.17773 2.82179C8.52695 2.17094 7.47264 2.17121 6.82129 2.82179C6.17108 3.4718 6.17058 4.52781 6.82129 5.17921C7.47111 5.82948 8.52635 5.82864 9.17773 5.17823C9.82854 4.52804 9.82894 3.47304 9.17773 2.82179Z`,fill:`currentColor`})]})}function VG(e){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,W.jsx)(`path`,{d:`M7.5 2C7.77614 2 8 2.22386 8 2.5C8 2.77614 7.77614 3 7.5 3H3.16699C3.07495 3 3 3.07495 3 3.16699V12.833C3 12.9251 3.07494 13 3.16699 13H7.5C7.77614 13 8 13.2239 8 13.5C8 13.7761 7.77614 14 7.5 14H3.16699C2.52267 14 2 13.4774 2 12.833V3.16699C2 2.52266 2.52266 2 3.16699 2H7.5Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M10.1465 4.64648C10.3417 4.45122 10.6583 4.45122 10.8535 4.64648L13.8535 7.64648C14.0487 7.84175 14.0488 8.15827 13.8535 8.35352L10.8535 11.3535C10.6583 11.5488 10.3417 11.5487 10.1465 11.3535C9.95122 11.1583 9.95122 10.8417 10.1465 10.6465L12.293 8.5H6C5.72386 8.5 5.5 8.27614 5.5 8C5.5 7.72386 5.72386 7.5 6 7.5H12.293L10.1465 5.35352C9.95122 5.15825 9.95122 4.84175 10.1465 4.64648Z`,fill:`currentColor`})]})}function HG(e){let{accounts:t}=e,n=e.heading??`h1`,r=e.heading===`h4`?`h5`:`h2`;return(0,W.jsxs)(VE,{...GG.column?{className:`z-tempo_2d_id-J3oRTb-styles-column-max-width-0 z-tempo_2d_id-J3oRTb-styles-column-w-1`}:GG.column(),gap:`32`,children:[(0,W.jsxs)(VE,{align:`center`,gap:`12`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(tw,{"aria-hidden":!0,size:`64`,children:(0,W.jsx)(tw.Fallback,{children:(e.name||e.email).charAt(0)})}),(0,W.jsxs)(VE,{...GG.identity?{className:`z-tempo_2d_id-J3oRTb-styles-identity-min-width-0 z-tempo_2d_id-J3oRTb-styles-identity-text-align-1`}:GG.identity(),gap:`4`,children:[(0,W.jsx)(n,{...GG.name?{className:`z-tempo_2d_id-J3oRTb-styles-name-overflow-wrap-0 z-tempo_2d_id-J3oRTb-styles-name-font-family-1 z-tempo_2d_id-J3oRTb-styles-name-font-size-2 z-tempo_2d_id-J3oRTb-styles-name-font-weight-3 z-tempo_2d_id-J3oRTb-styles-name-letter-spacing-4 z-tempo_2d_id-J3oRTb-styles-name-line-height-5`}:GG.name(),children:e.name||e.email}),e.name?(0,W.jsx)(`p`,{...GG.email?{className:`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTb1 z_tempo_2d_id-J3oRTb2 z_tempo_2d_id-J3oRTb3 z_tempo_2d_id-J3oRTb4 z_tempo_2d_id-J3oRTb5`}:GG.email(),children:e.email}):null]})]}),(()=>{if(!t)return e.accountError?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.accountError})]}):null;if(!t.length)return(0,W.jsx)(`p`,{...GG.hint?{className:`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTb6 z_tempo_2d_id-J3oRTb7 z_tempo_2d_id-J3oRTb8 z_tempo_2d_id-J3oRTb9 z_tempo_2d_id-J3oRTba z_tempo_2d_id-J3oRTbb z_tempo_2d_id-J3oRTbc`}:GG.hint(),children:e.onAddPasskey?`You have no wallets yet. Create one with a passkey.`:`You have no wallets yet, and this account cannot create one. Contact Tempo support.`});let n=t.length===1?t[0]:void 0;return n?(0,W.jsxs)(`section`,{...GG.single?{className:`z_tempo_2d_id-J3oRTbj z_tempo_2d_id-J3oRTbk z_tempo_2d_id-J3oRTbl z_tempo_2d_id-J3oRTbm z-tempo_2d_id-J3oRTb-styles-single-margin-inline-end-0`}:GG.single(),"aria-label":`Wallet`,children:[n.balance?(0,W.jsx)(SS,{currency:n.balance.currency,"data-testid":`balance`,size:`lg`,value:n.balance.amount}):(0,W.jsx)(`span`,{...GG.unavailable?{className:`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTbn z_tempo_2d_id-J3oRTbo z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTbq z_tempo_2d_id-J3oRTbr`}:GG.unavailable(),"data-testid":`balance`,children:`Balance unavailable`}),(0,W.jsx)(UG,{entry:n,large:!0})]}):(0,W.jsxs)(VE,{gap:`8`,render:(0,W.jsx)(`section`,{}),children:[(0,W.jsx)(r,{...GG.label?{className:`z-tempo_2d_id-J3oRTb-styles-label-text-0 z-tempo_2d_id-J3oRTb-styles-label-padding-inline-1 z-tempo_2d_id-J3oRTb-styles-amount-font-family-1 z-tempo_2d_id-J3oRTb-styles-amount-font-size-2 z-tempo_2d_id-J3oRTb-styles-amount-font-weight-3 z-tempo_2d_id-J3oRTb-styles-amount-letter-spacing-4 z-tempo_2d_id-J3oRTb-styles-amount-line-height-5`}:GG.label(),children:`Wallets`}),(0,W.jsx)(VT,{...GG.list?{className:`z-tempo_2d_id-J3oRTb-styles-list-bg-0 z-tempo_2d_id-J3oRTb-styles-list-border-radius-1 z-tempo_2d_id-J3oRTb-styles-list-list-style-2 z-tempo_2d_id-J3oRTb-styles-list-m-3 z-tempo_2d_id-J3oRTb-styles-announcement-overflow-2 z-tempo_2d_id-J3oRTb-styles-list-p-4 z-tempo_2d_id-J3oRTb-styles-list-padding-inline-end-5 z-tempo_2d_id-J3oRTb-styles-list-padding-inline-start-6`}:GG.list(),"aria-label":`Wallets`,dividers:`none`,role:`list`,children:t.map(e=>(0,W.jsxs)(VT.Row,{render:(0,W.jsx)(`li`,{}),children:[(0,W.jsx)(Ew,{"aria-hidden":!0,size:`40`,children:e.owner===`webAuthn`?(0,W.jsx)(LG,{}):(0,W.jsx)(FG,{})}),(0,W.jsx)(VT.Info,{children:(0,W.jsx)(VT.Title,{children:WG(e)})}),e.balance?(0,W.jsx)(SS,{...GG.amount?{className:`z-tempo_2d_id-J3oRTb-styles-amount-flex-shrink-0 z-tempo_2d_id-J3oRTb-styles-amount-font-family-1 z-tempo_2d_id-J3oRTb-styles-amount-font-size-2 z-tempo_2d_id-J3oRTb-styles-amount-font-weight-3 z-tempo_2d_id-J3oRTb-styles-amount-letter-spacing-4 z-tempo_2d_id-J3oRTb-styles-amount-line-height-5`}:GG.amount(),currency:e.balance.currency,"data-testid":`balance`,value:e.balance.amount}):(0,W.jsx)(`span`,{...GG.missing?{className:`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTbd z_tempo_2d_id-J3oRTbe z_tempo_2d_id-J3oRTbf z_tempo_2d_id-J3oRTbg z_tempo_2d_id-J3oRTbh z_tempo_2d_id-J3oRTbi`}:GG.missing(),"aria-label":`Balance unavailable`,"data-testid":`balance`,role:`img`,title:`Balance unavailable`,children:`–`}),(0,W.jsx)(UG,{entry:e})]},e.address))})]})})(),(0,W.jsxs)(VE,{gap:`12`,children:[(()=>{if(e.onConfirmPasskey)return(0,W.jsxs)(bS,{disabled:e.signingOut,loading:e.confirmingPasskey,onClick:e.onConfirmPasskey,variant:`primary`,children:[(0,W.jsx)(LG,{...GG.icon?{className:`z-tempo_2d_id-J3oRTb-styles-icon-h-0 z-tempo_2d_id-J3oRTb-styles-icon-w-1`}:GG.icon()}),`Confirm passkey`]});let n=t?.length===0;return e.onAddPasskey?(0,W.jsxs)(bS,{disabled:e.signingOut,loading:e.addingPasskey,onClick:e.onAddPasskey,variant:n?`primary`:`secondary`,children:[(0,W.jsx)(LG,{...GG.icon?{className:`z-tempo_2d_id-J3oRTb-styles-icon-h-0 z-tempo_2d_id-J3oRTb-styles-icon-w-1`}:GG.icon()}),n?`Create wallet with passkey`:`Add passkey`]}):null})(),(0,W.jsxs)(bS,{disabled:e.addingPasskey||e.confirmingPasskey,loading:e.signingOut,onClick:e.onSignOut,variant:`secondary`,children:[(0,W.jsx)(VG,{...GG.icon?{className:`z-tempo_2d_id-J3oRTb-styles-icon-h-0 z-tempo_2d_id-J3oRTb-styles-icon-w-1`}:GG.icon()}),`Sign out`]})]}),e.error?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):null,(0,W.jsx)(`p`,{...e.signingOut||e.addingPasskey||e.confirmingPasskey?GG.announcement?{className:`z-tempo_2d_id-J3oRTb-styles-announcement-clip-path-0 z-tempo_2d_id-J3oRTb-styles-announcement-h-1 z-tempo_2d_id-J3oRTb-styles-announcement-overflow-2 z-tempo_2d_id-J3oRTb-styles-announcement-position-3 z-tempo_2d_id-J3oRTb-styles-announcement-white-space-4 z-tempo_2d_id-J3oRTb-styles-announcement-w-5`}:GG.announcement():GG.status?{className:`z-tempo_2d_id-J3oRTb-styles-label-text-0 z-tempo_2d_id-J3oRTb-styles-identity-text-align-1 z-tempo_2d_id-J3oRTb-styles-status-font-family-0 z-tempo_2d_id-J3oRTb-styles-status-font-size-1 z-tempo_2d_id-J3oRTb-styles-status-font-weight-2 z-tempo_2d_id-J3oRTb-styles-status-letter-spacing-3 z-tempo_2d_id-J3oRTb-styles-status-line-height-4`}:GG.status(),"aria-live":`polite`,role:`status`,children:(()=>{if(e.signingOut)return`Signing out.`;if(e.addingPasskey)return`Adding a passkey.`;if(e.confirmingPasskey)return`Confirming the passkey.`;if(e.onConfirmPasskey)return`Passkey created. Confirm it to finish adding it.`;if(e.passkeyAdded)return`Passkey added. It signs you in, and holds the new passkey wallet.`})()})]})}function UG(e){let{address:t}=e.entry;return(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(bS.Link,{...GG.deposit?{className:`z-tempo_2d_id-J3oRTb-styles-deposit-border-radius-0`}:GG.deposit(),"aria-label":`Deposit to ${WG(e.entry)} wallet ${Cw(t)}`,render:(0,W.jsx)(Vd,{search:{address:t},to:`/deposit`}),shape:`icon`,size:e.large?`large`:`medium`,variant:`text`,children:(0,W.jsx)(IG,{...e.large?GG.depositIcon?{className:`z-tempo_2d_id-J3oRTb-styles-depositIcon-h-0 z-tempo_2d_id-J3oRTb-styles-depositIcon-w-1`}:GG.depositIcon():GG.icon?{className:`z-tempo_2d_id-J3oRTb-styles-icon-h-0 z-tempo_2d_id-J3oRTb-styles-icon-w-1`}:GG.icon()})})}),(0,W.jsx)(hD.Popup,{children:`Deposit`})]})}function WG(e){return e.owner===`webAuthn`?`Passkey`:`Cloud`}var GG;(function(e){e.amount=1,e.announcement=1,e.column=1,e.deposit=1,e.depositIcon=1,e.email=1,e.hint=1,e.icon=1,e.identity=1,e.label=1,e.list=1,e.missing=1,e.name=1,e.single=1,e.status=1,e.unavailable=1})(GG||={});var KG=class extends Error{name=`Page.CeremonyError`},qG=qd(`/`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(JG,{...qG.useLoaderData()}),loader:async e=>{let t=mG(),n=e.deps.chain??`mainnet`,r=await rG(t.v1.account.$get({query:{chain:n}})).catch(e=>({error:e}));if(`error`in r){gG(r.error)===`session_required`&&jG({href:`/login`});let[e,n]=await Promise.all([rG(t.v1.auth.session.$get()),rG(t.v1.auth.methods.$get({query:{}})).catch(()=>({passkeys:!1}))]);return e.user||jG({href:`/login`}),{accountError:XG(r.error),accounts:null,email:e.user.email,name:e.user.name,passkeys:n.passkeys}}let i={email:r.email,name:r.name,passkeys:r.passkeys},a=r.tempo.length>0?r:await rG(t.v1.account.$post({json:{chain:n}})).catch(e=>({error:e}));return`error`in a?{...i,accountError:XG(a.error),accounts:null}:{...i,accountError:null,accounts:a.tempo.flatMap(e=>{let t=e.config.owners[0];return t?[{address:e.address,balance:`balance`in e?e.balance??null:null,owner:t.type}]:[]})}},loaderDeps:e=>({chain:e.search.chain})});function JG(e){let t=_G(),n=Wu(),r=Dp({mutationFn:()=>rG(t.v1.auth.logout.$post()),onSuccess:()=>n.navigate({to:`/login`})}),i=Dp({async mutationFn(){let{options:e}=await rG(t.v1.account.passkey.options.$post({json:{}})),{excludeCredentials:n,...r}=e.publicKey,i=await(async()=>{try{return await AG({options:{publicKey:{...r,...n?{excludeCredentials:n}:{}}}})}catch(e){throw new KG(`Passkey ceremony failed.`,{cause:e})}})(),a={credentialId:i.id,rpId:r.rp.id};try{let{step:e}=await rG(t.v1.account.passkey.$post({json:{credential:i}}));return{...a,step:e}}catch(e){throw QG(a),e}}}),a=Dp({async mutationFn(e){let n=await(async()=>{try{return await kG({getFn:e=>navigator.credentials.get(e),options:e.step.options})}catch(e){throw new KG(`Passkey ceremony failed.`,{cause:e})}})();try{return await rG(t.v1.account.passkey.verify.$post({json:{assertion:n}}))}catch(t){let n=ZG(t);throw n===`retry`||(n===`refused`&&QG(e),i.reset()),t}},async onSuccess(){i.reset(),await n.invalidate({sync:!0})}}),o=(0,U.useRef)(i.data);return o.current=a.isPending?void 0:i.data,(0,U.useEffect)(()=>()=>{o.current&&QG(o.current)},[]),(0,W.jsx)(`main`,{...eK.page?{className:`z_tempo_2d_id-5EdEP10 z_tempo_2d_id-5EdEP11 z_tempo_2d_id-5EdEP12 z_tempo_2d_id-5EdEP13 z_tempo_2d_id-5EdEP14`}:eK.page(),"aria-label":`Your account`,children:(0,W.jsx)(HG,{accountError:e.accountError??void 0,accounts:e.accounts,addingPasskey:i.isPending,confirmingPasskey:a.isPending,email:e.email,error:(()=>{if(r.error)return hG(r.error);if(a.error)return YG(a.error);if(i.error)return YG(i.error)})(),name:e.name??void 0,onAddPasskey:e.passkeys&&!e.accounts?.some(e=>e.owner===`webAuthn`)?()=>{r.reset(),a.reset(),i.mutate()}:void 0,onConfirmPasskey:i.data?()=>{r.reset(),o.current=void 0,a.mutate(i.data)}:void 0,onSignOut:()=>{i.data&&QG(i.data),i.reset(),a.reset(),r.mutate()},passkeyAdded:a.isSuccess,signingOut:r.isPending})})}function YG(e){return e instanceof KG?$G(e).includes(`InvalidStateError`)?`This device already holds one of your passkeys. Add a passkey on another device.`:$G(e).includes(`NotAllowedError`)?`Adding a passkey was canceled. Try again.`:`Your passkey could not be created. Try again.`:hG(e)}function XG(e){return gG(e)===`rate_limited`?hG(e):`Your wallets failed to load. Reload the page to try again.`}function ZG(e){let t=gG(e);return t===`rate_limited`?`retry`:t&&e instanceof qW&&typeof e.statusCode==`number`&&e.statusCode<500?`refused`:`unknown`}function QG(e){PublicKeyCredential.signalUnknownCredential?.call(PublicKeyCredential,{credentialId:e.credentialId,rpId:e.rpId}).catch(()=>{})}function $G(e){return e instanceof Error?[e.name,...$G(e.cause)]:[]}var eK;(function(e){e.page=1})(eK||={});var tK=`/assets/BRLA-CZvVDNYr.png`,nK=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='80'%20height='80'%20viewBox='0%200%2080%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='sub_brz-Brand%20assets'%3e%3cg%20id='sub_brz-Frame%2011'%3e%3cg%20id='sub_brz-Frame%2055'%3e%3cg%20id='sub_brz-Frame%2053'%3e%3cg%20id='sub_brz-Currencies'%20clip-path='url(%23sub_brz-clip0_1741_2949)'%3e%3cg%20id='sub_brz-BRZ'%3e%3cpath%20id='sub_brz-Background'%20d='M40%2080C62.0914%2080%2080%2062.0914%2080%2040C80%2017.9086%2062.0914%200%2040%200C17.9086%200%200%2017.9086%200%2040C0%2062.0914%2017.9086%2080%2040%2080Z'%20fill='url(%23sub_brz-paint0_linear_1741_2949)'/%3e%3cpath%20id='sub_brz-Inner%20Circle'%20d='M39.9998%2076.144C59.9616%2076.144%2076.1438%2059.9617%2076.1438%2040C76.1438%2020.0382%2059.9616%203.85596%2039.9998%203.85596C20.0381%203.85596%203.85583%2020.0382%203.85583%2040C3.85583%2059.9617%2020.0381%2076.144%2039.9998%2076.144Z'%20fill='%23160F29'/%3e%3cg%20id='sub_brz-Icon'%3e%3cpath%20id='sub_brz-Path%201'%20d='M40.0025%2043.5679L32.609%2050.9614L40.0025%2058.3549L47.396%2050.9614L40.0025%2043.5679Z'%20fill='white'/%3e%3cpath%20id='sub_brz-Path%202'%20d='M62.1799%2036.1719L54.7879%2028.7759L47.392%2036.1719L39.9999%2028.7759H25.2119L17.8199%2036.1719L25.2119%2043.5639L32.6079%2036.1719L39.9999%2043.5639H54.7879L62.1799%2036.1719Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='sub_brz-paint0_linear_1741_2949'%20x1='11.196'%20y1='68.804'%20x2='67.692'%20y2='12.308'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.04'%20stop-color='%23FFC100'/%3e%3cstop%20offset='1'%20stop-color='%2300C800'/%3e%3c/linearGradient%3e%3cclipPath%20id='sub_brz-clip0_1741_2949'%3e%3crect%20width='80'%20height='80'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,rK=`/assets/CHFAU-DCedc4aH.png`,iK=`/assets/DLUSD-BnRXm3EI.png`,aK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='720'%20height='714'%20fill='none'%20viewBox='0%200%20720%20714'%3e%3ccircle%20cx='357'%20cy='357'%20r='357'%20fill='%23000'/%3e%3cpath%20fill='%23fff'%20d='M405.18%20357.091H457C452.59%20408.451%20417.308%20440%20363.65%20440c-55.863%200-90.778-33.751-99.598-95.015H242l4.778-25.68h14.701V304.63H242l4.778-25.679h16.539c8.82-63.1%2044.102-97.951%20101.435-97.951%2054.394%200%2087.838%2031.183%2091.146%2081.809H405.18c-3.675-23.479-17.641-38.153-40.428-38.153-26.094%200-43%2018.71-48.88%2054.295h80.487l-4.777%2025.679h-77.915v14.675h74.974l-4.777%2025.68h-67.257c5.881%2033.75%2022.051%2051.359%2047.043%2051.359%2022.786%200%2037.855-15.041%2041.53-39.253'/%3e%3cpath%20fill='url(%23a)'%20d='M357%2096.15c143.852%200%20260.465%20116.148%20260.465%20259.425h96.768C714.233%20159.197%20554.165%200%20357%200S0%20159.197%200%20355.575h96.536C96.536%20212.298%20213.148%2096.151%20357%2096.151'/%3e%3cpath%20fill='url(%23b)'%20d='M357.001%20514.313c-88.02%200-159.375-71.07-159.375-158.739H96.536c0%20143.278%20116.613%20259.425%20260.465%20259.425s260.465-116.147%20260.464-259.425H516.376c0%2087.669-71.354%20158.739-159.375%20158.739'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='714.233'%20x2='51.769'%20y1='355.575'%20y2='-78.929'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2330c0fe'/%3e%3cstop%20offset='1'%20stop-color='%2300ffea'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='617.466'%20x2='134.2'%20y1='614.999'%20y2='298.132'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2330c0fe'/%3e%3cstop%20offset='1'%20stop-color='%2300ffea'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,oK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2096%2096'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%230b53bf'%20d='M48%2096c26.51%200%2048-21.49%2048-48S74.51%200%2048%200%200%2021.49%200%2048s21.49%2048%2048%2048'/%3e%3cpath%20fill='%23fff'%20stroke='%230b53bf'%20stroke-miterlimit='10'%20stroke-width='.03'%20d='M58.2%2059.43c-2.1.84-4.38%201.32-6.57%201.32-4.337%200-8.426-1.847-10.38-6.3h9.54l1.86-4.5H40.14q-.09-.93-.09-1.95c0-1.02.03-1.33.09-1.95h14.1l1.86-4.5H41.25c1.954-4.452%206.043-6.3%2010.38-6.3%202.19%200%204.47.48%206.57%201.32l1.92-4.56c-2.58-1.35-5.49-2.01-8.4-2.01-7.024%200-14.123%203.927-16.693%2011.55H30.42v4.5h3.684a22.5%2022.5%200%200%200%200%203.9H30.42v4.5h4.607C37.597%2062.075%2044.697%2066%2051.72%2066c2.91%200%205.82-.66%208.4-2.01z'/%3e%3cpath%20fill='%23fff'%20stroke='%230b53bf'%20stroke-miterlimit='10'%20stroke-width='.03'%20d='M18%2048c0-13.59%209.03-25.05%2021.36-28.77v-6.18C23.64%2016.89%2012%2031.08%2012%2048s11.64%2031.11%2027.36%2034.95v-6.18C27.03%2073.08%2018%2061.59%2018%2048Zm38.64-34.95v6.18C68.97%2022.95%2078%2034.41%2078%2048s-9.03%2025.05-21.36%2028.77v6.18C72.36%2079.11%2084%2064.92%2084%2048S72.36%2016.89%2056.64%2013.05Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h96v96H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,sK=`data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='300'%20height='300'%20fill='%23000B3B'/%3e%3cpath%20d='M268%20149.993C268%20172.889%20261.479%20194.254%20250.188%20212.352C238.213%20194.5%20231.228%20173.053%20231.228%20149.993C231.228%20137.964%20228.603%20126.55%20223.9%20116.271C219.772%20107.263%20214.044%2099.1298%20207.073%2092.2405C203.19%2088.3994%20198.911%2084.9411%20194.318%2081.9475C181.564%2073.6093%20166.349%2068.7703%20150.014%2068.7703C105.203%2068.7703%2068.7725%20105.199%2068.7725%20149.993C68.7725%20194.774%20105.203%20231.216%20150%20231.216C166.336%20231.216%20181.564%20226.363%20194.305%20218.039C194.305%20218.039%20179.322%20205.231%20176.875%20168.392C165.023%20180.079%20172.802%20195.375%20149.986%20195.375C124.97%20195.375%20104.615%20175.022%20104.615%20150.007C104.615%20124.992%20124.97%20104.639%20149.986%20104.639C162.754%20104.639%20174.319%20109.942%20182.562%20118.472C190.477%20126.632%20195.357%20137.773%20195.357%20150.007C195.357%20169.978%20199.281%20189.374%20207.004%20207.636C207.018%20207.678%20207.045%20207.719%20207.045%20207.76C211.994%20219.419%20218.35%20230.3%20226.019%20240.251C221.987%20243.641%20217.735%20246.785%20213.265%20249.615C194.975%20261.261%20173.266%20268%20149.986%20268C84.8348%20267.973%2032%20215.155%2032%20149.993C32%2084.8317%2084.8348%2032%20150%2032C173.28%2032%20194.988%2038.7526%20213.279%2050.3852C217.749%2053.2284%20222%2056.3586%20226.033%2059.7486C232.212%2064.9703%20237.858%2070.8071%20242.861%2077.1906C245.485%2080.5396%20247.932%2084.0253%20250.188%2087.6339C261.479%20105.718%20268%20127.097%20268%20149.993Z'%20fill='white'/%3e%3c/svg%3e`,cK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1024'%20height='1024'%20fill='none'%20viewBox='0%200%201024%201024'%3e%3cpath%20fill='%233f79ff'%20d='M512%200c282.77%200%20512%20229.23%20512%20512s-229.231%20512-512%20512S0%20794.77%200%20512%20229.23%200%20512%200m55.697%2094.262c-30.761-30.76-80.633-30.76-111.394%200L94.262%20456.303c-30.76%2030.761-30.76%2080.633%200%20111.394l362.041%20362.041c30.761%2030.759%2080.633%2030.76%20111.394%200l362.041-362.041c30.76-30.761%2030.759-80.633%200-111.394z'/%3e%3cpath%20fill='%233f79ff'%20d='M560.62%20256.32q29.982%207.47%2055.37%2024.129%2046.742%2029.484%2072.629%2082.697l-83.415%2048.18q-30.203-64.72-96.36-64.72-30.921%200-48.899%2014.382-17.258%2013.664-17.258%2035.955%200%2023.731%2019.416%2038.832%2020.135%2014.382%2076.224%2031.641%2023.011%207.191%2034.517%2011.505%2012.225%203.596%2032.36%2012.225%2020.853%207.91%2031.64%2015.101%2011.505%207.191%2025.887%2019.416t21.574%2025.168q7.91%2012.943%2012.944%2031.641%205.752%2017.977%205.752%2039.55%200%2069.753-51.056%20110.742-37.212%2030.3-91.325%2038.2V832h-93.483v-62.988q-40.898-7.781-72.63-28.338-51.056-33.798-71.91-91.325l84.854-49.619q29.484%2076.944%20115.776%2076.944%2041.707%200%2061.123-15.101%2019.415-15.1%2019.416-38.112%200-26.607-23.731-40.989-23.73-15.101-84.853-32.36-33.798-10.067-57.529-20.134-23.012-10.068-46.742-26.607-23.01-17.259-35.235-43.146-12.225-25.889-12.225-60.405%200-68.314%2048.18-108.584%2033.261-27.879%2075.506-36.795V192h93.483z'/%3e%3c/svg%3e`,lK=`data:image/svg+xml,%3csvg%20width='400'%20height='400'%20viewBox='0%200%20400%20400'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='400'%20height='400'%20fill='black'/%3e%3cpath%20d='M224.58%20153.969H318V177.238H224.58V153.969ZM82%20255.876H116.461V279.145H82V255.876ZM82%20221.907H116.461V245.176H82V221.907ZM82%20187.938H116.461V211.207H82V187.938ZM82%20153.969H174.113V177.238H82V153.969ZM82%20120H116.461V143.269H82V120ZM175.42%20187.938H224.58V211.207H175.42V187.938ZM283.539%20255.876H318V279.145H283.539V255.876ZM283.539%20221.907H318V245.176H283.539V221.907ZM283.539%20187.938H318V211.207H283.539V187.938ZM283.539%20120H318V143.269H283.539V120Z'%20fill='%23EBEBEB'/%3e%3c/svg%3e`,uK=`data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M150%20300C232.843%20300%20300%20232.843%20300%20150C300%2067.1573%20232.843%200%20150%200C67.1573%200%200%2067.1573%200%20150C0%20232.843%2067.1573%20300%20150%20300Z'%20fill='%23390922'/%3e%3cpath%20d='M247.63%2081.3L220.01%2072.09C218.43%2071.56%20217.19%2070.32%20216.67%2068.74L207.46%2041.12C206.74%2038.96%20204.72%2037.5%20202.44%2037.5H97.56C95.28%2037.5%2093.26%2038.96%2092.54%2041.12L83.34%2068.74C82.81%2070.32%2081.57%2071.56%2079.99%2072.09L52.37%2081.3C50.21%2082.02%2048.75%2084.04%2048.75%2086.32V213.7C48.75%20215.98%2050.21%20218%2052.37%20218.72L79.98%20227.92C81.56%20228.45%2082.8%20229.69%2083.33%20231.26L92.54%20258.88C93.26%20261.04%2095.28%20262.5%2097.56%20262.5H202.44C204.72%20262.5%20206.74%20261.04%20207.46%20258.88L216.68%20231.25C217.21%20229.67%20218.45%20228.43%20220.03%20227.91L247.64%20218.71C249.8%20217.99%20251.26%20215.97%20251.26%20213.69V86.31C251.26%2084.03%20249.8%2082.01%20247.64%2081.29L247.63%2081.3Z'%20fill='%23F3E9E3'/%3e%3cpath%20d='M192.24%20160.47C189.93%20155.8%20186.5%20151.81%20181.94%20148.52C177.38%20145.23%20171.64%20142.32%20164.71%20139.78L147.57%20133.72C141.57%20131.76%20136.98%20129.16%20133.81%20125.93C130.63%20122.7%20129.05%20118.6%20129.05%20113.64C129.05%20109.83%20130%20106.48%20131.91%20103.6C133.81%20100.72%20136.5%2098.47%20139.96%2096.85C143.42%2095.23%20147.29%2094.43%20151.56%2094.43C158.72%2094.43%20164.72%2096.91%20169.57%20101.87C174.42%20106.83%20177.88%20113.59%20179.96%20122.13L181.69%20122.3L192.42%20105.33C189.65%20101.06%20186.01%2097.51%20181.51%2094.68C177.01%2091.85%20172.16%2089.69%20166.97%2088.19C162.95%2087.03%20158.97%2086.32%20155.02%2086.06V66.2H146.36V86.13C142.01%2086.46%20137.94%2087.19%20134.15%2088.36C128.9%2089.98%20124.34%2092.29%20120.47%2095.29C116.6%2098.29%20113.66%20101.9%20111.64%20106.11C109.62%20110.32%20108.61%20114.97%20108.61%20120.05C108.61%20125.48%20109.79%20130.29%20112.16%20134.51C114.52%20138.72%20117.93%20142.36%20122.37%20145.42C126.81%20148.48%20132.38%20151.34%20139.08%20153.99L154.66%20159.36C161.35%20161.67%20166.37%20164.76%20169.72%20168.62C173.07%20172.49%20174.74%20177.36%20174.74%20183.25C174.74%20187.87%20173.64%20191.85%20171.45%20195.2C169.26%20198.55%20166.31%20201.15%20162.62%20202.99C158.92%20204.84%20154.66%20205.76%20149.81%20205.76C144.96%20205.76%20140.17%20204.61%20135.79%20202.3C131.4%20199.99%20127.71%20196.44%20124.71%20191.65C121.71%20186.86%20119.34%20180.83%20117.61%20173.56H115.88L104.28%20191.39C106.82%20196.01%20110.4%20200.05%20115.01%20203.51C119.62%20206.97%20124.91%20209.63%20130.85%20211.47C135.79%20213.01%20140.96%20213.89%20146.35%20214.15V233.98H155.01V214.04C159.67%20213.7%20164.06%20212.9%20168.17%20211.64C173.82%20209.91%20178.7%20207.37%20182.8%20204.02C186.9%20200.67%20190.07%20196.69%20192.32%20192.07C194.57%20187.45%20195.7%20182.32%20195.7%20176.66C195.7%20170.54%20194.54%20165.15%20192.24%20160.47Z'%20fill='%23390922'/%3e%3c/svg%3e`,dK=`/assets/PRIME-CiFp2-3e.svg`,fK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='eKgCWIOpRqD1'%20shape-rendering='geometricPrecision'%20text-rendering='geometricPrecision'%20viewBox='0%200%20400%20400'%3e%3cstyle%3e@keyframes%20eKgCWIOpRqD2_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}12.5%25{transform:translate(200px,200px)%20scale(.41,.41)}25%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD3_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}8.333333%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}20.833333%25{transform:translate(200px,200px)%20scale(.41,.41)}33.333333%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD4_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}16.666667%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}29.166667%25{transform:translate(200px,200px)%20scale(.41,.41)}41.666667%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD5_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}25%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}37.5%25{transform:translate(200px,200px)%20scale(.41,.41)}50%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD6_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}33.333333%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}45.833333%25{transform:translate(200px,200px)%20scale(.41,.41)}58.333333%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD7_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}41.666667%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}54.166667%25{transform:translate(200px,200px)%20scale(.41,.41)}66.666667%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD8_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}50%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}62.5%25{transform:translate(200px,200px)%20scale(.41,.41)}75%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}%3c/style%3e%3ccircle%20r='440'%20fill='%236938ef'%20style='animation:eKgCWIOpRqD2_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='385'%20fill='%238760f2'%20style='animation:eKgCWIOpRqD3_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='330'%20fill='%23a588f5'%20style='animation:eKgCWIOpRqD4_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='275'%20fill='%23c3aff9'%20style='animation:eKgCWIOpRqD5_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='220'%20fill='%23e1d7fc'%20style='animation:eKgCWIOpRqD6_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='165'%20fill='%23fff'%20style='animation:eKgCWIOpRqD7_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='110'%20fill='%236938ef'%20style='animation:eKgCWIOpRqD8_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3c/svg%3e`,pK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20role='img'%20aria-labelledby='title'%3e%3ctitle%20id='title'%3eSEK%20icon%3c/title%3e%3cpath%20fill='%2305160B'%20d='M16%200c8.837%200%2016%207.163%2016%2016s-7.163%2016-16%2016S0%2024.837%200%2016%207.163%200%2016%200Zm0%203C8.82%203%203%208.82%203%2016s5.82%2013%2013%2013%2013-5.82%2013-13S23.18%203%2016%203Z'/%3e%3cpath%20fill='%2305160B'%20d='M16%206c5.523%200%2010%204.477%2010%2010s-4.477%2010-10%2010S6%2021.523%206%2016%2010.477%206%2016%206Zm-4.865%207.076c-1.368%200-2.232.696-2.232%201.736%200%201.232.984%201.512%202.072%201.792.76.2%201.088.289%201.088.72%200%20.368-.32.6-.84.6-.632%200-.944-.296-.944-.88H8.807c0%201.272.904%201.985%202.384%201.985%201.416%200%202.328-.713%202.328-1.825%200-1.248-.96-1.544-2.056-1.816-.832-.208-1.136-.328-1.136-.704%200-.32.296-.536.752-.536.552%200%20.847.288.847.792h1.441c0-1.224-.8-1.864-2.232-1.864Zm3.004%205.824h4.088v-1.16h-2.704v-1.152h2.464v-1.144h-2.464v-1.08h2.64v-1.16h-4.024V18.9Zm4.83%200h1.384v-2.624h.016l1.736%202.624h1.744l-2.224-3%202.072-2.696h-1.656l-1.672%202.455h-.016v-2.455H18.97v5.695Z'/%3e%3c/svg%3e`,mK=`/assets/USD1-COVcO_PB.svg`,hK=`data:image/svg+xml,%3csvg%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M25%2045C25.7075%2045%2026.4064%2044.9633%2027.095%2044.8916L26.4697%2038.9516C25.9867%2039.0018%2025.4965%2039.0276%2025.0002%2039.0276C24.5061%2039.0276%2024.0179%2039.0021%2023.537%2038.9522L22.9039%2044.8915C23.5928%2044.9632%2024.2921%2045%2025%2045Z'%20fill='%23030712'/%3e%3cpath%20d='M17.9718%2037.1424C18.8166%2037.6325%2019.7172%2038.0369%2020.6618%2038.3438L18.8173%2044.0261C17.4728%2043.5894%2016.1907%2043.0143%2014.9879%2042.3174L17.9718%2037.1424Z'%20fill='%23030712'/%3e%3cpath%20d='M13.642%2033.2331C14.2192%2034.0281%2014.8778%2034.7602%2015.6057%2035.417L11.6042%2039.8513C10.5678%2038.9158%209.62979%2037.8735%208.80758%2036.7416L13.642%2033.2331Z'%20fill='%23030712'/%3e%3cpath%20d='M11.2716%2027.8917C11.4756%2028.8653%2011.7805%2029.8019%2012.175%2030.6898L6.71509%2033.1156C6.15342%2031.8521%205.71889%2030.5195%205.42772%2029.1341L11.2716%2027.8917Z'%20fill='%23030712'/%3e%3cpath%20d='M10.9733%2024.9926H5C5%2024.946%205.00016%2024.8994%205.00048%2024.8529C5.00773%2023.846%205.08939%2022.8568%205.24022%2021.8906C6.24559%2015.4618%2010.3245%2010.0379%2015.9214%207.17448C18.6459%205.78411%2021.7314%205%2025%205C28.2783%205%2031.3724%205.78876%2034.1028%207.18685C39.6098%2010.0137%2043.6428%2015.3213%2044.7163%2021.6241C44.9024%2022.7192%2044.9996%2023.8446%2045%2024.9926H39.027C39.0226%2017.2495%2032.7443%2010.9739%2025.0002%2010.9739C17.2561%2010.9739%2010.9778%2017.2495%2010.9733%2024.9926Z'%20fill='%23030712'/%3e%3cpath%20d='M37.8265%2030.6872C38.2196%2029.8018%2038.5238%2028.8682%2038.7276%2027.8976L44.5723%2029.1336C44.2807%2030.5213%2043.8453%2031.856%2043.2823%2033.1215L37.8265%2030.6872Z'%20fill='%23030712'/%3e%3cpath%20d='M34.3965%2035.4154C35.1252%2034.7575%2035.7846%2034.0242%2036.3623%2033.2278L41.1938%2036.7396C40.3706%2037.8731%2039.4314%2038.9168%2038.3936%2039.8533L34.3965%2035.4154Z'%20fill='%23030712'/%3e%3cpath%20d='M29.3423%2038.3426C30.2859%2038.0357%2031.1855%2037.6315%2032.0294%2037.1419L35.0132%2042.3167C33.8125%2043.0125%2032.5329%2043.5869%2031.1909%2044.0234L29.3423%2038.3426Z'%20fill='%23030712'/%3e%3cpath%20d='M28.7194%2024.3156C29.4014%2024.6073%2029.9343%2025.0561%2030.3606%2025.6396C30.7869%2026.223%2031%2027.0085%2031%2027.9958C31%2029.275%2030.5524%2030.3521%2029.6998%2031.2498C28.8472%2032.1474%2027.7176%2032.7084%2026.3535%2032.9104V35H23.7105V32.8655C22.3037%2032.6187%2021.1528%2032.0352%2020.3002%2031.0927C19.4476%2030.1502%2019%2029.0281%2019%2027.7041L22.1332%2027.749C22.1758%2028.5344%2022.4742%2029.1628%2023.0284%2029.634C23.5826%2030.1053%2024.3073%2030.3297%2025.2238%2030.3297C25.9698%2030.3297%2026.5879%2030.1726%2027.0568%2029.836C27.5258%2029.4994%2027.7815%2029.0281%2027.7815%2028.4222C27.7815%2028.0183%2027.6323%2027.6817%2027.3766%2027.4348C27.1208%2027.188%2026.7371%2026.986%2026.2682%2026.8514C25.7993%2026.7167%2025.0533%2026.5372%2024.0728%2026.3128C23.0924%2026.1333%2022.2611%2025.8864%2021.6004%2025.5722C20.9183%2025.2581%2020.3854%2024.8093%2019.9591%2024.2034C19.5329%2023.5975%2019.341%2022.7896%2019.341%2021.7797C19.341%2020.5904%2019.7247%2019.5581%2020.5346%2018.7054C21.3446%2017.8526%2022.389%2017.3365%2023.7105%2017.1121V15H26.3535V17.1569C27.6323%2017.4262%2028.6554%2017.9872%2029.4654%2018.84C30.254%2019.7152%2030.659%2020.7475%2030.7016%2021.9593H27.5684C27.4831%2021.286%2027.2274%2020.7475%2026.7584%2020.3435C26.2895%2019.9396%2025.6714%2019.7152%2024.9041%2019.7152C24.1794%2019.7152%2023.6252%2019.8723%2023.1989%2020.1864C22.7726%2020.5006%2022.5595%2020.9494%2022.5595%2021.5329C22.5595%2021.9593%2022.6874%2022.2959%2022.9432%2022.5203C23.1989%2022.7447%2023.5613%2022.9467%2024.0302%2023.0813C24.4991%2023.216%2025.2238%2023.3955%2026.2043%2023.575C27.1847%2023.777%2028.0373%2024.0238%2028.7194%2024.3156Z'%20fill='%23030712'/%3e%3c/svg%3e`,gK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cg%20fill='none'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%233e73c4'/%3e%3cg%20fill='%23fff'%3e%3cpath%20d='M20.02%2018.12c0-2.12-1.28-2.85-3.84-3.15-1.83-.25-2.2-.73-2.2-1.58s.62-1.4%201.84-1.4c1.1%200%201.7.37%202%201.28a.46.46%200%200%200%20.43.3h.98a.42.42%200%200%200%20.43-.42v-.06a3.04%203.04%200%200%200-2.75-2.5V9.15c0-.24-.18-.42-.48-.48h-.92c-.24%200-.42.18-.48.48v1.4c-1.83.24-3%201.45-3%202.97%200%202%201.23%202.8%203.79%203.1%201.7.3%202.25.66%202.25%201.64%200%20.97-.85%201.63-2%201.63-1.6%200-2.14-.66-2.32-1.57-.06-.25-.25-.37-.43-.37h-1.04a.42.42%200%200%200-.42.43v.06c.24%201.51%201.22%202.6%203.23%202.91v1.46c0%20.24.18.42.48.48h.92c.24%200%20.42-.18.49-.48v-1.46c1.82-.3%203.04-1.58%203.04-3.22z'/%3e%3cpath%20d='M12.9%2024.5a9.03%209.03%200%200%201-5.43-11.66%209%209%200%200%201%205.42-5.4c.25-.12.37-.3.37-.6v-.86c0-.24-.12-.42-.37-.48-.06%200-.18%200-.24.06a10.9%2010.9%200%200%200-7.13%2013.72c1.1%203.4%203.72%206%207.13%207.1.24.12.49%200%20.55-.24.06-.06.06-.13.06-.25v-.85c0-.18-.19-.42-.37-.54m6.46-18.94c-.24-.12-.49%200-.55.24-.06.06-.06.13-.06.25v.85c0%20.24.19.48.37.6a9.03%209.03%200%200%201%205.42%2011.66%209%209%200%200%201-5.42%205.4c-.25.12-.37.3-.37.6v.86c0%20.24.12.42.37.48.06%200%20.18%200%20.24-.06a10.9%2010.9%200%200%200%207.13-13.72%2011.03%2011.03%200%200%200-7.13-7.16'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,_K=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3ccircle%20cx='256'%20cy='256'%20r='256'%20fill='%2300805e'/%3e%3cpath%20fill='%23f0f0f0'%20d='M386.895%20186.535v-58.196H125.106v58.196h101.797V244.7h58.195v-58.165zM226.934%20361.061v58.197h58.164v-58.197h58.165v-116.36h-58.165v116.36zm-.001-116.36h-58.195v116.36h58.195z'/%3e%3c/svg%3e`,vK=`data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3034_948)'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%231C3966'/%3e%3cg%20clip-path='url(%23clip1_3034_948)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.8%2016C24.8%2011.1399%2020.8601%207.2%2016%207.2V4C16.8284%204%2017.6372%204.08395%2018.4184%204.2438C23.8866%205.36275%2028%2010.201%2028%2016C28%2022.6274%2022.6274%2028%2016%2028C10.7751%2028%206.33016%2024.6608%204.68282%2020H8.15953C9.6161%2022.8493%2012.5802%2024.8%2016%2024.8C20.8601%2024.8%2024.8%2020.8601%2024.8%2016ZM5.38408%2010.4C7.39607%2014.2062%2011.3951%2016.8%2016%2016.8V13.6C12.0562%2013.6%208.71825%2011.0056%207.59987%207.43042C6.71685%208.29608%205.96705%209.29714%205.38408%2010.4ZM8.95347%206.28574C9.63814%209.54935%2012.5329%2012%2016%2012C18.2091%2012%2020%2013.7909%2020%2016C20%2018.2091%2018.2091%2020%2016%2020H10.0124C11.3041%2021.9296%2013.5037%2023.2%2016%2023.2C19.9765%2023.2%2023.2%2019.9764%2023.2%2016C23.2%2012.0236%2019.9765%208.8%2016%208.8C13.7909%208.8%2012%207.00914%2012%204.8V4.68282C10.9024%205.07076%209.87812%205.61385%208.95347%206.28574Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3034_948'%3e%3crect%20width='32'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_3034_948'%3e%3crect%20width='24'%20height='24'%20fill='white'%20transform='translate(4%204)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,yK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%20397.1%20397.1'%3e%3cpath%20d='M198.6%207.1c105.8%200%20191.5%2085.7%20191.5%20191.5%200%20105.7-85.7%20191.5-191.5%20191.5S7.1%20304.3%207.1%20198.6C7.1%2092.8%2092.8%207.1%20198.6%207.1z'%20style='fill:%23111;stroke:%23111;stroke-width:7.0536'/%3e%3cradialGradient%20id='a'%20cx='-105.949'%20cy='595.938'%20r='1'%20gradientTransform='matrix(0%20411.151%20289.409%200%20-172270.75%2043621.418)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.031'%20style='stop-color:%233a3a3a'/%3e%3cstop%20offset='1'%20style='stop-color:%231c1c1c'/%3e%3c/radialGradient%3e%3cpath%20d='M198.6%203.6c-107.7%200-195%2087.3-195%20195s87.3%20195%20195%20195%20195-87.3%20195-195-87.3-195-195-195'%20style='fill:url(%23a);fill-opacity:.7'/%3e%3clinearGradient%20id='b'%20x1='198.575'%20x2='198.575'%20y1='399.143'%20y2='1.994'%20gradientTransform='matrix(1%200%200%20-1%200%20399.143)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20style='stop-color:%23fff'/%3e%3cstop%20offset='1'%20style='stop-color:%23111'/%3e%3c/linearGradient%3e%3cpath%20d='M198.6%203.6c-107.7%200-195%2087.3-195%20195s87.3%20195%20195%20195%20195-87.3%20195-195-87.3-195-195-195z'%20style='fill:none;stroke:url(%23b);stroke-width:7.1429'/%3e%3cpath%20d='M167.4%2038.1C92.1%2052.6%2035.2%20118.9%2035.2%20198.4s56.9%20145.8%20132.2%20160.3v-15.3c-67-14.3-117.2-73.8-117.2-145s50.2-130.7%20117.2-145zm62.4%2015.4V38.2C305%2052.8%20361.7%20119%20361.7%20198.4S305%20344%20229.8%20358.6v-15.3c66.8-14.4%20116.9-73.8%20116.9-144.9S296.6%2067.9%20229.8%2053.5'%20style='fill-rule:evenodd;clip-rule:evenodd;fill:%23fff'/%3e%3cpath%20d='M221.7%20193c12.5%202.4%2022.1%207%2029%2013.7%206.9%206.6%2010.3%2015.1%2010.3%2025.4v16.3c0%2012.4-4.5%2022.4-13.4%2030-8.9%207.5-20.7%2011.2-35.2%2011.2h-5v25.9h-17.2v-25.9h-5.3c-9.6%200-18-2.1-25.4-6.4-7.3-4.4-13.1-10.5-17.2-18.3-4-8-6-17.1-6-27.5h17.2c0%2010.5%202.9%2019.1%208.6%2025.7%205.9%206.4%2013.7%209.7%2023.2%209.7h26.6q14.1%200%2022.8-6.6c5.7-4.6%208.6-10.5%208.6-17.8v-16.3c0-5.8-2.2-10.7-6.5-14.8-4.2-4.1-9.9-6.7-17.2-7.9l-43.1-7.6c-12.1-2.2-21.6-6.8-28.3-13.7-6.7-7-10.1-15.7-10.1-26.2v-13.7c0-12.4%204.3-22.2%2012.9-29.5%208.8-7.5%2020.4-11.2%2034.7-11.2h4.3V81.6h17.2v25.9h5.5c13.6%200%2024.5%204.4%2032.8%2013.2%208.3%208.6%2012.5%2020.1%2012.5%2034.3h-17.2c0-9.3-2.6-16.8-7.7-22.4q-7.65-8.4-20.4-8.4h-27.1c-9.1%200-16.4%202.2-21.8%206.6-5.4%204.2-8.1%2010-8.1%2017.3v13.7q0%208.85%206%2015c4.2%204.1%209.8%206.8%2017%208.1z'%20style='fill:%23fff'/%3e%3c/svg%3e`,bK=`/assets/YLDS-CRh8Zw0g.svg`,xK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20fill='none'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%233e73c4'%20d='M0%2032C0%2014.327%2014.327%200%2032%200s32%2014.327%2032%2032-14.327%2032-32%2032S0%2049.673%200%2032'/%3e%3cpath%20fill='%23fff'%20d='M29.838%2045.258q-2.988%200-5.211-1.505-2.2-1.504-3.414-4.223Q20%2036.79%2020%2033.151v-.045q0-3.638%201.213-6.356%201.235-2.74%203.481-4.245Q26.941%2021%2029.973%2021a7.8%207.8%200%200%201%202.92.54%207.1%207.1%200%200%201%202.38%201.504%206.8%206.8%200%200%201%201.618%202.358h.09V21.45h3.908v17.565q0%201.55.471%202.223.472.675%201.573.674.314%200%20.629-.045.336-.045.561-.112v3.234a3.6%203.6%200%200%201-.786.18q-.472.09-1.123.09-2.09%200-3.37-.944-1.28-.965-1.706-2.897l-.09-.404h-.113q-.516%201.19-1.594%202.156a7.9%207.9%200%200%201-2.493%201.527%208.1%208.1%200%200%201-3.01.562m.36-3.46q2.043%200%203.57-1.1%201.528-1.122%202.381-3.077.855-1.954.854-4.47v-.045q0-2.493-.854-4.447-.853-1.954-2.358-3.077t-3.504-1.123q-1.909%200-3.324%201.078-1.415%201.056-2.201%203.01-.765%201.954-.764%204.582v.045q0%202.673.719%204.604.74%201.932%202.134%202.988%201.393%201.033%203.346%201.033'/%3e%3c/svg%3e`,SK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20fill='none'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%231c9ba4'%20d='M0%2032C0%2014.327%2014.327%200%2032%200s32%2014.327%2032%2032-14.327%2032-32%2032S0%2049.673%200%2032'/%3e%3cpath%20fill='%23fff'%20d='M24%2050V25.696q0-4.129%202.037-6.404Q28.092%2017%2031.78%2017q3.371%200%205.409%201.837%202.055%201.837%202.055%204.9v.035a5.5%205.5%200%200%201-.966%203.167q-.948%201.416-2.617%202.134v.28q2.617.649%203.97%202.362%201.368%201.715%201.369%204.34v.035q0%202.326-1.019%204.129a7.3%207.3%200%200%201-2.81%202.817q-1.773%201.015-4.056%201.015-1.405%200-2.547-.385a5.8%205.8%200%200%201-1.95-1.102%205.4%205.4%200%200%201-1.281-1.68h-.281V50zm8.957-8.644q1.37%200%202.476-.665a4.9%204.9%200%200%200%201.774-1.854q.666-1.173.667-2.66v-.035q0-2.607-1.633-3.954-1.635-1.348-4.724-1.348H29.97v-2.694h1.563q2.248%200%203.46-1.068%201.23-1.084%201.23-3.132v-.035q0-1.907-1.195-3.062-1.177-1.154-3.161-1.154-2.389%200-3.6%201.592t-1.212%204.724v8.819q0%201.995.737%203.464.756%201.47%202.073%202.275%201.335.787%203.09.787'/%3e%3c/svg%3e`,CK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1021'%20height='1021'%20fill='none'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23292929'%20stroke='%23292929'%20stroke-width='10.667'%20d='M510%201015c278.904%200%20505-226.096%20505-505S788.904%205%20510%205%205%20231.096%205%20510s226.096%20505%20505%20505Z'/%3e%3cpath%20fill='%23fff'%20d='M430.37%20100v38.474l-1.365%201.012c-93.091%2019.673-176.275%2075.89-230.539%20153.497-86.596%20123.87-90.95%20288.992-10.778%20417.239%2053.723%2085.914%20141.637%20148.767%20241.317%20169.687l1.365%201.035v38.475c-104.221-19.249-198.607-80.738-260.142-166.322C62.335%20603.036%2066.336%20398.122%20180.441%20252.744c61.676-78.549%20151.19-134.483%20249.953-152.72zm159.499%20819.393v-39.651c98.504-20.402%20186.465-82.831%20239.999-167.427%2085.232-134.743%2076.949-309.371-20.99-434.983-54.146-69.441-132.318-119.399-218.844-137.801l-.141-39.51c105.445%2020.685%20200.301%2082.549%20261.718%20170.299%20101.987%20145.661%20100.339%20340.479-3.976%20484.375-61.559%2084.902-154.533%20144.414-257.766%20164.745z'/%3e%3cg%20filter='url(%23b)'%3e%3cpath%20fill='%23d1f019'%20d='M540.424%20481.574c62.733%2011.501%20118.146%2030.32%20117.623%20104.031-.523%2060.641-44.435%20104.031-113.963%20113.441v54.89H479.26v-55.413c-71.619-11.501-115.009-56.459-115.531-120.76l76.847%201.046c2.613%2035.548%2030.843%2060.118%2075.801%2060.118%2036.071%200%2062.732-15.683%2062.732-44.435%200-30.843-29.798-37.117-90.962-49.14-61.686-11.501-116.054-31.366-116.054-105.6%200-56.981%2041.299-99.326%20107.167-108.735v-55.414h64.824v55.936c65.346%2010.979%20105.599%2052.277%20106.644%20112.396h-76.847c-3.659-30.844-27.183-52.277-65.346-52.277-33.457%200-57.504%2014.114-57.504%2042.344%200%2029.798%2028.752%2036.071%2089.393%2047.572'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h1021v1021H0z'/%3e%3c/clipPath%3e%3cfilter%20id='b'%20width='307.778'%20height='491.789'%20x='357.001'%20y='275.603'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='6.728'/%3e%3cfeGaussianBlur%20stdDeviation='3.364'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_215_15'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_215_15'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e`,wK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M16%2032c8.837%200%2016-7.163%2016-16S24.837%200%2016%200%200%207.163%200%2016s7.163%2016%2016%2016'/%3e%3cpath%20fill='%230052FF'%20d='M23.032%2014.02c.314-2.096-1.283-3.223-3.465-3.975l.708-2.84-1.728-.43-.69%202.765c-.454-.114-.92-.22-1.385-.326l.695-2.783L15.439%206l-.708%202.839q-.566-.127-1.104-.26l.002-.009-2.384-.595-.46%201.846s1.283.294%201.256.312c.7.175.826.638.805%201.006l-.806%203.235q.073.017.18.057l-.183-.045-1.13%204.532c-.086.212-.303.531-.793.41.018.025-1.256-.313-1.256-.313L8%2020.993l2.25.561c.418.105.828.215%201.231.318l-.715%202.872%201.727.43.708-2.84q.707.19%201.378.357l-.706%202.828%201.728.43.715-2.866c2.948.558%205.164.333%206.097-2.333.752-2.146-.037-3.385-1.588-4.192%201.13-.26%201.98-1.003%202.207-2.538m-3.95%205.538c-.533%202.147-4.148.986-5.32.695l.95-3.805c1.172.293%204.929.872%204.37%203.11m.535-5.569c-.487%201.953-3.495.96-4.47.717l.86-3.45c.975.243%204.118.696%203.61%202.733'/%3e%3cpath%20fill='%230052FF'%20fill-rule='evenodd'%20d='M16%2030.5c8.008%200%2014.5-6.492%2014.5-14.5S24.008%201.5%2016%201.5%201.5%207.992%201.5%2016%207.992%2030.5%2016%2030.5M32%2016c0%208.837-7.163%2016-16%2016S0%2024.837%200%2016%207.163%200%2016%200s16%207.163%2016%2016'%20clip-rule='evenodd'/%3e%3c/svg%3e`,TK=`/assets/frxUSD-n9pTpinR.svg`,EK=`data:image/svg+xml,%3csvg%20width='240'%20height='240'%20viewBox='0%200%20240%20240'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='120'%20cy='120'%20r='120'%20fill='%2368B1F5'/%3e%3cpath%20d='M119.63%20213C119.63%20213%20191.755%20178.791%20191.755%20139.496C191.755%20109.021%20191.755%2089.2249%20191.755%2058.7498C145.968%2037.7688%2093.2984%2037.7471%2047.4999%2058.704C47.5414%2089.1943%2047.5043%20109.006%2047.5043%20139.496C47.5043%20178.791%20119.63%20213%20119.63%20213Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M132.84%2071.3319H123.541L122.424%2079.2775C122.083%2079.2694%20121.74%2079.2653%20121.396%2079.2653C105.845%2079.2653%2093.6191%2088.3812%2093.6191%20102.645C93.6191%20117.046%20105.064%20120.693%20116.219%20123.427L113.141%20145.33C107.885%20143.214%20103.236%20139.213%2099.7321%20133.746L89.1147%20142.648C93.5743%20149.974%20101.996%20155.231%20111.437%20157.452L110.134%20166.727H119.433L120.573%20158.617C120.883%20158.624%20121.193%20158.627%20121.503%20158.627C137.375%20158.627%20150.674%20149.297%20150.674%20134.175C150.674%20119.079%20138.537%20115.334%20127.026%20112.698L129.861%2092.5282C134.121%2094.4341%20137.381%2097.747%20140.056%20101.894L150.03%2093.3145C146.294%2087.4763%20139.845%2082.7117%20131.546%2080.5379L132.84%2071.3319ZM120.813%2090.7411C112.637%2090.7928%20106.918%2094.9625%20106.918%20101.251C106.918%20106.759%20110.909%20108.774%20118.021%20110.61L120.813%2090.7411ZM125.212%20125.607L122.199%20147.043C130.753%20146.96%20137.161%20142.893%20137.161%20135.569C137.161%20129.61%20132.5%20127.503%20125.212%20125.607Z'%20fill='%2368B1F5'/%3e%3c/svg%3e`,DK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='404'%20height='404'%20fill='none'%20viewBox='0%200%20404%20404'%3e%3cpath%20fill='%23005e5d'%20d='M404%20202C404%2090.439%20313.562%200%20202%200S0%2090.439%200%20202s90.439%20202%20202%20202%20202-90.438%20202-202'/%3e%3cpath%20fill='url(%23a)'%20fill-rule='evenodd'%20d='M80.765%20238.772c38.828%2038.829%2091.143%2049.466%20116.848%2023.761s15.066-78.02-23.761-116.848c-38.829-38.828-91.143-49.466-116.848-23.761s-15.067%2078.019%2023.761%20116.848m20.497%205.167c34.643%2027.048%2074.644%2033.712%2089.345%2014.884s-1.466-56.019-36.108-83.067c-34.643-27.048-74.644-33.712-89.344-14.883-14.701%2018.828%201.465%2056.018%2036.107%2083.066'%20clip-rule='evenodd'/%3e%3cpath%20fill='url(%23b)'%20fill-rule='evenodd'%20d='M323.235%20166.964c-38.828-38.828-91.142-49.466-116.849-23.761-25.704%2025.705-15.066%2078.019%2023.762%20116.848s91.142%2049.465%20116.848%2023.761c25.705-25.705%2015.068-78.02-23.761-116.848m-20.091-4.773c-34.643-27.048-74.643-33.712-89.344-14.883-14.701%2018.828%201.464%2056.019%2036.107%2083.067s74.643%2033.712%2089.345%2014.883c14.701-18.828-1.465-56.019-36.108-83.067'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23f9f9f9'%20d='M211.514%2078.551h38.327l-56.427%20246.895h-38.328z'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='145.389'%20x2='167.255'%20y1='238.887'%20y2='274.415'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.073'%20stop-color='%23f9f9f9'/%3e%3cstop%20offset='1'%20stop-color='%23f9f9f9'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='250.485'%20x2='236.745'%20y1='185.001'%20y2='131.32'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23f9f9f9'/%3e%3cstop%20offset='1'%20stop-color='%23f9f9f9'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,OK=`/assets/pathUSD-BvaO6ooS.svg`,kK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='158'%20height='158'%20fill='none'%20viewBox='0%200%20158%20158'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M0%20.21h52.51v52.51H0zm52.51%2052.51L105.01.21h52.51v52.51zm52.5%2052.5h52.51v52.51h-52.51zM0%20157.73v-52.51l52.51-52.5v105.01z'%20clip-rule='evenodd'/%3e%3c/svg%3e`,AK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20fill='none'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='25'%20fill='%2397fedd'/%3e%3cpath%20fill='%23000'%20fill-rule='evenodd'%20d='M32.165%2020.898c-1.501%200-2.522.832-2.814%202.215h5.628c-.243-1.444-1.274-2.215-2.814-2.215m-.103-3.59c4.47%200%207.306%203.209%207.306%207.213l-.001%201.493-10.016-.012c.09%201.13%201.365%202.258%203.625%202.258%201.756%200%203.04-.482%203.659-.97l1.75%203.401c-1.038.614-3.237%201.439-5.82%201.439-5.32%200-8.04-3.398-8.04-7.609%200-3.982%202.955-7.213%207.537-7.213m-13.698%204.08c-.499-.067-1.62-.159-1.62%202.895l-.043%207.846h-5.163V17.598l4.739-.017v1.843c1.128-2.188%204.462-2.548%206.393-1.675v6.19c-.21.05-.593.12-.786.147-2.551.358-3.554-1.14-3.52-2.696'%20clip-rule='evenodd'/%3e%3c/svg%3e`,jK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='398'%20height='398'%20fill='none'%20viewBox='0%200%20398%20398'%3e%3cpath%20fill='%23fff'%20stroke='%23111'%20stroke-width='7.054'%20d='M198.996%207.527h.007C304.75%207.527%20390.476%2093.252%20390.476%20199v.007c0%20105.747-85.726%20191.473-191.473%20191.473h-.007c-105.748%200-191.473-85.726-191.473-191.473V199C7.523%2093.252%2093.248%207.527%20198.996%207.527Z'/%3e%3cpath%20fill='url(%23a)'%20fill-opacity='.7'%20d='M199.003%204h-.007c-107.696%200-195%2087.304-195%20195v.007c0%20107.695%2087.304%20194.999%20195%20194.999h.007c107.695%200%20194.999-87.304%20194.999-194.999V199c0-107.696-87.304-195-194.999-195'/%3e%3cpath%20stroke='url(%23b)'%20stroke-width='7.143'%20d='M199.003%204h-.007c-107.696%200-195%2087.304-195%20195v.007c0%20107.695%2087.304%20194.999%20195%20194.999h.007c107.695%200%20194.999-87.304%20194.999-194.999V199c0-107.696-87.304-195-194.999-195Z'/%3e%3cpath%20fill='%23000'%20fill-rule='evenodd'%20d='M167.799%2038.559C92.491%2053.064%2035.606%20119.32%2035.606%20198.862c0%2079.541%2056.885%20145.797%20132.193%20160.302v-15.3c-66.971-14.276-117.2-73.773-117.2-145.002s50.229-130.727%20117.2-145.003zm62.401%2015.36V38.613c75.169%2014.616%20131.914%2080.805%20131.914%20160.249S305.369%20344.494%20230.2%20359.11v-15.306c66.831-14.382%20116.921-73.813%20116.921-144.942S297.031%2068.301%20230.2%2053.919'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23000'%20d='M222.118%20193.406q18.685%203.56%2028.985%2013.735%2010.3%209.92%2010.301%2025.435v16.279q0%2018.568-13.415%2030.013-13.414%2011.192-35.213%2011.192h-5.03v25.944h-17.247V290.06h-5.27q-14.373%200-25.392-6.359-11.019-6.613-17.247-18.313-5.988-11.955-5.988-27.47h17.247q0%2015.77%208.623%2025.689%208.863%209.666%2023.236%209.666h26.589q14.133%200%2022.757-6.613%208.623-6.868%208.623-17.805v-16.279q0-8.647-6.467-14.752-6.228-6.105-17.247-7.885l-43.118-7.631q-18.205-3.306-28.266-13.735t-10.061-26.198V148.64q0-18.567%2012.935-29.505%2013.174-11.191%2034.734-11.191h4.312V82h17.247v25.944h5.509q20.362%200%2032.818%2013.226%2012.456%2012.972%2012.456%2034.338h-17.247q0-13.99-7.665-22.383-7.666-8.394-20.362-8.394h-27.068q-13.655%200-21.798%206.613-8.145%206.359-8.145%2017.296v13.735q0%208.902%205.989%2015.007%206.228%206.105%2017.007%208.139z'/%3e%3cdefs%3e%3cradialGradient%20id='a'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(0%20411.151%20-289.409%200%20199.418%2060.946)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.031'%20stop-color='%23fafafa'/%3e%3cstop%20offset='1'%20stop-color='%23e3e3e3'/%3e%3c/radialGradient%3e%3clinearGradient%20id='b'%20x1='198.999'%20x2='198.999'%20y1='.321'%20y2='397.686'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23f4f4f4'/%3e%3cstop%20offset='1'%20stop-color='%23bebebe'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,MK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='404'%20height='404'%20fill='none'%20viewBox='0%200%20404%20404'%3e%3cpath%20fill='%23f9f9f9'%20d='M404%20202C404%2090.439%20313.562%200%20202%200S0%2090.439%200%20202s90.439%20202%20202%20202%20202-90.438%20202-202'/%3e%3cpath%20fill='url(%23a)'%20fill-rule='evenodd'%20d='M80.765%20238.772c38.828%2038.829%2091.143%2049.466%20116.848%2023.761s15.066-78.02-23.761-116.848c-38.829-38.828-91.143-49.466-116.848-23.761s-15.067%2078.019%2023.761%20116.848m20.497%205.167c34.643%2027.048%2074.644%2033.712%2089.345%2014.884s-1.466-56.019-36.108-83.067c-34.643-27.048-74.644-33.712-89.344-14.883-14.701%2018.828%201.465%2056.018%2036.107%2083.066'%20clip-rule='evenodd'/%3e%3cpath%20fill='url(%23b)'%20fill-rule='evenodd'%20d='M323.235%20166.964c-38.828-38.828-91.142-49.466-116.849-23.761-25.704%2025.705-15.066%2078.019%2023.762%20116.848s91.142%2049.465%20116.848%2023.761c25.705-25.705%2015.068-78.02-23.761-116.848m-20.091-4.773c-34.643-27.048-74.643-33.712-89.344-14.883-14.701%2018.828%201.464%2056.019%2036.107%2083.067s74.643%2033.712%2089.345%2014.883c14.701-18.828-1.465-56.019-36.108-83.067'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23171717'%20d='M211.514%2078.551h38.327l-56.427%20246.895h-38.328z'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='145.389'%20x2='167.255'%20y1='238.887'%20y2='274.415'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.073'%20stop-color='%23171717'/%3e%3cstop%20offset='1'%20stop-color='%23171717'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='250.485'%20x2='236.745'%20y1='185.001'%20y2='131.32'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23171717'/%3e%3cstop%20offset='1'%20stop-color='%23171717'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,NK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1021'%20height='1021'%20fill='none'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23d1f019'%20stroke='%23d1f019'%20stroke-width='10.667'%20d='M510.5%201015.67c278.995%200%20505.17-226.175%20505.17-505.17S789.495%205.334%20510.5%205.334%205.334%20231.504%205.334%20510.5s226.17%20505.17%20505.166%20505.17Z'/%3e%3cpath%20fill='%23292929'%20d='M430.37%20100v38.474l-1.365%201.012c-93.091%2019.673-176.275%2075.89-230.539%20153.497-86.596%20123.87-90.95%20288.992-10.778%20417.239%2053.723%2085.914%20141.637%20148.767%20241.317%20169.687l1.365%201.035v38.475c-104.221-19.249-198.607-80.738-260.142-166.322C62.335%20603.036%2066.336%20398.122%20180.441%20252.744c61.676-78.549%20151.19-134.483%20249.953-152.72zm159.499%20819.393v-39.651c98.504-20.402%20186.465-82.831%20239.999-167.427%2085.232-134.743%2076.949-309.371-20.99-434.983-54.146-69.441-132.318-119.399-218.844-137.801l-.141-39.51c105.445%2020.685%20200.301%2082.549%20261.718%20170.299%20101.987%20145.661%20100.339%20340.479-3.976%20484.375-61.559%2084.902-154.533%20144.414-257.766%20164.745z'/%3e%3cg%20filter='url(%23b)'%3e%3cpath%20fill='%23292929'%20d='M540.424%20481.574c62.733%2011.501%20118.146%2030.32%20117.623%20104.031-.523%2060.641-44.435%20104.031-113.963%20113.441v54.89H479.26v-55.413c-71.619-11.501-115.009-56.459-115.531-120.76l76.847%201.046c2.613%2035.548%2030.843%2060.118%2075.801%2060.118%2036.071%200%2062.732-15.683%2062.732-44.435%200-30.843-29.798-37.117-90.962-49.14-61.686-11.501-116.054-31.366-116.054-105.6%200-56.981%2041.299-99.326%20107.167-108.735v-55.414h64.824v55.936c65.346%2010.979%20105.599%2052.277%20106.644%20112.396h-76.847c-3.659-30.844-27.183-52.277-65.346-52.277-33.457%200-57.504%2014.114-57.504%2042.344%200%2029.798%2028.752%2036.071%2089.393%2047.572'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h1021v1021H0z'/%3e%3c/clipPath%3e%3cfilter%20id='b'%20width='307.778'%20height='491.789'%20x='357.001'%20y='275.603'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='6.728'/%3e%3cfeGaussianBlur%20stdDeviation='3.364'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_215_35'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_215_35'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e`,PK=`data:image/svg+xml,%3csvg%20width='301'%20height='301'%20viewBox='0%200%20301%20301'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%20150.05C0%2067.1808%2067.1789%200.00195312%20150.048%200.00195312V0.00195312C232.918%200.00195312%20300.096%2067.1808%20300.096%20150.05V150.05C300.096%20232.919%20232.918%20300.098%20150.048%20300.098V300.098C67.1789%20300.098%200%20232.919%200%20150.05V150.05Z'%20fill='%23FC7A4A'/%3e%3cpath%20d='M191.312%20173.807C191.312%20151.925%20178.182%20144.423%20151.924%20141.297C133.168%20138.796%20129.417%20133.795%20129.417%20125.041C129.417%20116.287%20135.669%20110.662%20148.173%20110.662C159.426%20110.662%20165.679%20114.413%20168.804%20123.791C169.43%20125.667%20171.306%20126.917%20173.181%20126.917H183.184C185.685%20126.917%20187.56%20125.041%20187.56%20122.541V121.916C185.059%20108.161%20173.806%2097.5329%20159.426%2096.283V81.2781C159.426%2078.7768%20157.551%2076.9012%20154.425%2076.2755H145.047C142.546%2076.2755%20140.67%2078.1511%20140.045%2081.2781V95.6573C121.289%2098.1586%20109.411%20110.662%20109.411%20126.293C109.411%20146.924%20121.914%20155.051%20148.173%20158.178C165.679%20161.303%20171.306%20165.055%20171.306%20175.058C171.306%20185.062%20162.552%20191.939%20150.674%20191.939C134.418%20191.939%20128.791%20185.06%20126.916%20175.682C126.291%20173.183%20124.416%20171.931%20122.54%20171.931H111.911C109.411%20171.931%20107.535%20173.807%20107.535%20176.308V176.934C110.035%20192.563%20120.039%20203.817%20140.67%20206.944V221.948C140.67%20224.448%20142.546%20226.324%20145.672%20226.949H155.05C157.551%20226.949%20159.426%20225.074%20160.052%20221.948V206.944C178.808%20203.817%20191.312%20190.687%20191.312%20173.807Z'%20fill='white'/%3e%3cpath%20d='M118.163%20239.453C69.3975%20221.948%2044.389%20167.556%2062.5208%20119.414C71.8988%2093.156%2092.5305%2073.15%20118.163%2063.772C120.665%2062.5221%20121.914%2060.6465%20121.914%2057.5195V48.7672C121.914%2046.2659%20120.665%2044.3903%20118.163%2043.7661C117.538%2043.7661%20116.288%2043.7661%20115.662%2044.3903C56.2683%2063.1463%2023.7574%20126.293%2042.5134%20185.686C53.767%20220.697%2080.6511%20247.581%20115.662%20258.835C118.163%20260.085%20120.665%20258.835%20121.289%20256.333C121.914%20255.709%20121.914%20255.083%20121.914%20253.834V245.08C121.914%20243.204%20120.039%20240.704%20118.163%20239.453ZM184.435%2044.3903C181.934%2043.1404%20179.432%2044.3903%20178.808%2046.8916C178.182%2047.5173%20178.182%2048.1415%20178.182%2049.3929V58.1452C178.182%2060.6465%20180.058%2063.1463%20181.934%2064.3977C230.699%2081.9024%20255.708%20136.295%20237.576%20184.436C228.198%20210.695%20207.566%20230.701%20181.934%20240.079C179.432%20241.329%20178.182%20243.204%20178.182%20246.331V255.083C178.182%20257.585%20179.432%20259.46%20181.934%20260.085C182.559%20260.085%20183.809%20260.085%20184.435%20259.46C243.829%20240.704%20276.34%20177.558%20257.584%20118.165C246.33%2082.5281%20218.82%2055.6439%20184.435%2044.3903Z'%20fill='white'/%3e%3c/svg%3e`,FK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20fill='none'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%23ba3b48'%20d='M0%2032C0%2014.327%2014.327%200%2032%200s32%2014.327%2032%2032-14.327%2032-32%2032S0%2049.673%200%2032'/%3e%3cpath%20fill='%23fff'%20d='M32.5%2048q-3.052%200-5.182-1.65-2.11-1.651-3.224-4.878Q23%2038.228%2023%2033.52v-.02q0-4.784%201.113-8.01t3.224-4.858Q29.467%2019%2032.5%2019t5.143%201.632q2.13%201.632%203.244%204.858Q42%2028.716%2042%2033.5v.019q0%204.709-1.113%207.953-1.094%203.227-3.224%204.877Q35.55%2048%2032.5%2048m0-2.889q2.053%200%203.397-1.275%201.362-1.276%202.015-3.846.672-2.57.672-6.453v-.075q0-3.901-.672-6.452-.653-2.57-2.015-3.846-1.344-1.275-3.397-1.275t-3.416%201.275q-1.343%201.276-2.015%203.846-.653%202.55-.653%206.452v.075q0%203.884.653%206.453.672%202.57%202.015%203.846%201.362%201.275%203.416%201.275m-6.87-10.354v-2.889h13.74v2.889z'/%3e%3c/svg%3e`,IK=`/assets/wYLDS-CaCKDrO-.svg`,LK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23dcc5f7'%20d='M0%2012C0%205.373%205.373%200%2012%200s12%205.373%2012%2012-5.373%2012-12%2012S0%2018.627%200%2012'/%3e%3cpath%20fill='%236800d1'%20d='M10%206H6v4h4z'/%3e%3cpath%20fill='%23000'%20d='M18%2014h-4v4h4z'/%3e%3cpath%20fill='%236800d1'%20d='M18%206h-4l-4%204h8zM6%2014v4h4v-8zm7-1h11v11H13z'/%3e%3cpath%20fill='%23dcc5f7'%20d='m16.13%2021-1.592-5.6h1.296l.952%204.08.976-4.08h1.464l.984%204.072.952-4.072h1.304L20.89%2021h-1.344l-1.04-3.896L17.45%2021z'/%3e%3c/svg%3e`,RK=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23390922;%20}%20.cls-2%20{%20fill:%20%23f3e9e3;%20}%20%3c/style%3e%3c/defs%3e%3ccircle%20class='cls-2'%20cx='150'%20cy='150'%20r='150'/%3e%3cpath%20class='cls-1'%20d='M247.63,81.3l-27.62-9.21c-1.58-.53-2.82-1.77-3.34-3.35l-9.21-27.62c-.72-2.16-2.74-3.62-5.02-3.62h-104.88c-2.28,0-4.3,1.46-5.02,3.62l-9.2,27.62c-.53,1.58-1.77,2.82-3.35,3.35l-27.62,9.21c-2.16.72-3.62,2.74-3.62,5.02v127.38c0,2.28,1.46,4.3,3.62,5.02l27.61,9.2c1.58.53,2.82,1.77,3.35,3.34l9.21,27.62c.72,2.16,2.74,3.62,5.02,3.62h104.88c2.28,0,4.3-1.46,5.02-3.62l9.22-27.63c.53-1.58,1.77-2.82,3.35-3.34l27.61-9.2c2.16-.72,3.62-2.74,3.62-5.02v-127.38c0-2.28-1.46-4.3-3.62-5.02Z'/%3e%3cpath%20class='cls-2'%20d='M192.24,160.47c-2.31-4.67-5.74-8.66-10.3-11.95-4.56-3.29-10.3-6.2-17.23-8.74l-17.14-6.06c-6-1.96-10.59-4.56-13.76-7.79-3.18-3.23-4.76-7.33-4.76-12.29,0-3.81.95-7.16,2.86-10.04,1.9-2.88,4.59-5.13,8.05-6.75,3.46-1.62,7.33-2.42,11.6-2.42,7.16,0,13.16,2.48,18.01,7.44,4.85,4.96,8.31,11.72,10.39,20.26l1.73.17,10.73-16.97c-2.77-4.27-6.41-7.82-10.91-10.65-4.5-2.83-9.35-4.99-14.54-6.49-4.02-1.16-8-1.87-11.95-2.13v-19.86h-8.66v19.93c-4.35.33-8.42,1.06-12.21,2.23-5.25,1.62-9.81,3.93-13.68,6.93-3.87,3-6.81,6.61-8.83,10.82-2.02,4.21-3.03,8.86-3.03,13.94,0,5.43,1.18,10.24,3.55,14.46,2.36,4.21,5.77,7.85,10.21,10.91,4.44,3.06,10.01,5.92,16.71,8.57l15.58,5.37c6.69,2.31,11.71,5.4,15.06,9.26,3.35,3.87,5.02,8.74,5.02,14.63,0,4.62-1.1,8.6-3.29,11.95-2.19,3.35-5.14,5.95-8.83,7.79-3.7,1.85-7.96,2.77-12.81,2.77s-9.64-1.15-14.02-3.46c-4.39-2.31-8.08-5.86-11.08-10.65-3-4.79-5.37-10.82-7.1-18.09h-1.73l-11.6,17.83c2.54,4.62,6.12,8.66,10.73,12.12,4.61,3.46,9.9,6.12,15.84,7.96,4.94,1.54,10.11,2.42,15.5,2.68v19.83h8.66v-19.94c4.66-.34,9.05-1.14,13.16-2.4,5.65-1.73,10.53-4.27,14.63-7.62,4.1-3.35,7.27-7.33,9.52-11.95,2.25-4.62,3.38-9.75,3.38-15.41,0-6.12-1.16-11.51-3.46-16.19Z'/%3e%3c/svg%3e`,zK=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23390922;%20}%20.cls-2%20{%20fill:%20%23f3e9e3;%20}%20%3c/style%3e%3c/defs%3e%3ccircle%20class='cls-1'%20cx='150'%20cy='150'%20r='150'/%3e%3cpath%20class='cls-2'%20d='M247.63,81.3l-27.62-9.21c-1.58-.53-2.82-1.77-3.34-3.35l-9.21-27.62c-.72-2.16-2.74-3.62-5.02-3.62h-104.88c-2.28,0-4.3,1.46-5.02,3.62l-9.2,27.62c-.53,1.58-1.77,2.82-3.35,3.35l-27.62,9.21c-2.16.72-3.62,2.74-3.62,5.02v127.38c0,2.28,1.46,4.3,3.62,5.02l27.61,9.2c1.58.53,2.82,1.77,3.35,3.34l9.21,27.62c.72,2.16,2.74,3.62,5.02,3.62h104.88c2.28,0,4.3-1.46,5.02-3.62l9.22-27.63c.53-1.58,1.77-2.82,3.35-3.34l27.61-9.2c2.16-.72,3.62-2.74,3.62-5.02v-127.38c0-2.28-1.46-4.3-3.62-5.02Z'/%3e%3cpath%20class='cls-1'%20d='M192.24,160.47c-2.31-4.67-5.74-8.66-10.3-11.95-4.56-3.29-10.3-6.2-17.23-8.74l-17.14-6.06c-6-1.96-10.59-4.56-13.76-7.79-3.18-3.23-4.76-7.33-4.76-12.29,0-3.81.95-7.16,2.86-10.04,1.9-2.88,4.59-5.13,8.05-6.75,3.46-1.62,7.33-2.42,11.6-2.42,7.16,0,13.16,2.48,18.01,7.44,4.85,4.96,8.31,11.72,10.39,20.26l1.73.17,10.73-16.97c-2.77-4.27-6.41-7.82-10.91-10.65-4.5-2.83-9.35-4.99-14.54-6.49-4.02-1.16-8-1.87-11.95-2.13v-19.86h-8.66v19.93c-4.35.33-8.42,1.06-12.21,2.23-5.25,1.62-9.81,3.93-13.68,6.93-3.87,3-6.81,6.61-8.83,10.82-2.02,4.21-3.03,8.86-3.03,13.94,0,5.43,1.18,10.24,3.55,14.46,2.36,4.21,5.77,7.85,10.21,10.91,4.44,3.06,10.01,5.92,16.71,8.57l15.58,5.37c6.69,2.31,11.71,5.4,15.06,9.26,3.35,3.87,5.02,8.74,5.02,14.63,0,4.62-1.1,8.6-3.29,11.95-2.19,3.35-5.14,5.95-8.83,7.79-3.7,1.85-7.96,2.77-12.81,2.77s-9.64-1.15-14.02-3.46c-4.39-2.31-8.08-5.86-11.08-10.65-3-4.79-5.37-10.82-7.1-18.09h-1.73l-11.6,17.83c2.54,4.62,6.12,8.66,10.73,12.12,4.61,3.46,9.9,6.12,15.84,7.96,4.94,1.54,10.11,2.42,15.5,2.68v19.83h8.66v-19.94c4.66-.34,9.05-1.14,13.16-2.4,5.65-1.73,10.53-4.27,14.63-7.62,4.1-3.35,7.27-7.33,9.52-11.95,2.25-4.62,3.38-9.75,3.38-15.41,0-6.12-1.16-11.51-3.46-16.19Z'/%3e%3c/svg%3e`,BK=Object.fromEntries(Object.entries(Object.assign({"./icons/BRLA.png":tK,"./icons/BRZ.svg":nK,"./icons/CHFAU.png":rK,"./icons/DLUSD.png":iK,"./icons/EURAU.svg":aK,"./icons/EURC.e.svg":oK,"./icons/GBPA.svg":sK,"./icons/GUSD.svg":cK,"./icons/MACH.svg":lK,"./icons/OUSD.svg":uK,"./icons/PRIME.svg":dK,"./icons/SBC.svg":fK,"./icons/SEKAU.svg":pK,"./icons/USD1.svg":mK,"./icons/USDB.svg":hK,"./icons/USDC.e.svg":gK,"./icons/USDT0.svg":_K,"./icons/USDY.svg":vK,"./icons/USDe.svg":yK,"./icons/YLDS.svg":bK,"./icons/alphaUSD.svg":xK,"./icons/betaUSD.svg":SK,"./icons/cUSD.svg":CK,"./icons/cbBTC.svg":wK,"./icons/frxUSD.svg":TK,"./icons/goUSD.svg":EK,"./icons/iUSD.svg":DK,"./icons/pathUSD.svg":OK,"./icons/rUSD.svg":kK,"./icons/reUSD.svg":AK,"./icons/sUSDe.svg":jK,"./icons/siUSD.svg":MK,"./icons/stcUSD.svg":NK,"./icons/syrupUSDC.svg":PK,"./icons/thetaUSD.svg":FK,"./icons/wYLDS.svg":IK,"./icons/wsrUSD.svg":LK})).map(([e,t])=>[e.slice(8,e.lastIndexOf(`.`)),t])),VK=Object.entries(Object.assign({"./logos/OUSD.dark.svg":RK,"./logos/OUSD.light.svg":zK})).reduce((e,[t,n])=>{let[,r,i]=t.match(/^\.\/logos\/(.+)\.(light|dark)\.\w+$/);return e[r]={...e[r],[i]:n},e},{});function HK(e){let t=(0,U.useId)(),{expiry:n,limits:r}=e.keyAuthorization,i=e.heading??`h2`,a=r.some(e=>e.period);return(0,W.jsxs)(VE,{...XK.section?{className:`z-tempo_2d_id-nr-Vm7-styles-section-bg-0 z-tempo_2d_id-nr-Vm7-styles-section-border-radius-1 z-tempo_2d_id-nr-Vm7-styles-details-m-0 z-tempo_2d_id-nr-Vm7-styles-section-p-2`}:XK.section(),"aria-labelledby":t,gap:`12`,render:(0,W.jsx)(`section`,{}),children:[(0,W.jsx)(i,{...XK.heading?{className:`z-tempo_2d_id-nr-Vm7-styles-heading-text-0 z-tempo_2d_id-nr-Vm7-styles-details-m-0 z-tempo_2d_id-nr-Vm7-styles-details-font-family-1 z-tempo_2d_id-nr-Vm7-styles-details-font-size-2 z-tempo_2d_id-nr-Vm7-styles-details-font-weight-3 z-tempo_2d_id-nr-Vm7-styles-details-letter-spacing-4 z-tempo_2d_id-nr-Vm7-styles-details-line-height-5`}:XK.heading(),id:t,children:`This app can spend up to`}),(0,W.jsx)(VE,{...XK.list?{className:`z-tempo_2d_id-nr-Vm7-styles-list-list-style-0 z-tempo_2d_id-nr-Vm7-styles-details-m-0 z-tempo_2d_id-nr-Vm7-styles-list-p-1 z-tempo_2d_id-nr-Vm7-styles-list-font-family-2 z-tempo_2d_id-nr-Vm7-styles-list-font-size-3 z-tempo_2d_id-nr-Vm7-styles-list-font-weight-4 z-tempo_2d_id-nr-Vm7-styles-list-letter-spacing-5 z-tempo_2d_id-nr-Vm7-styles-list-line-height-6`}:XK.list(),gap:`8`,render:(0,W.jsx)(`ul`,{}),children:r.map(e=>(0,W.jsxs)(Ow,{gap:`8`,render:(0,W.jsx)(`li`,{}),children:[(0,W.jsx)(`span`,{children:e.period?`${JK(e)} ${qK(e.period)}`:a?`${JK(e)} in total`:JK(e)}),(0,W.jsx)(`span`,{...XK.icons?{className:`z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z-tempo_2d_id-nr-Vm7-styles-icons-margin-inline-start-0 z-tempo_2d_id-nr-Vm7-styles-icons-margin-inline-start-1`}:XK.icons(),children:e.tokens.map(t=>{let n=`${t.symbol}: ${JK({amount:t.amount,currency:e.currency})}`,r=VK[t.symbol],i=r?.light??BK[t.symbol];return(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(`span`,{...XK.token?{className:`z_tempo_2d_id-nr-Vm70 z-tempo_2d_id-nr-Vm7-styles-token-outline-0 z-tempo_2d_id-nr-Vm7-styles-token-outline-color-1 z-tempo_2d_id-nr-Vm7-styles-token-outline-color-2 z-tempo_2d_id-nr-Vm7-styles-token-transition-duration-3 z-tempo_2d_id-nr-Vm7-styles-token-transition-property-4 z-tempo_2d_id-nr-Vm7-styles-token-transition-timing-function-5`}:XK.token(),tabIndex:0,children:i?(0,W.jsxs)(`picture`,{children:[r?.dark?(0,W.jsx)(`source`,{media:`(prefers-color-scheme: dark)`,srcSet:r.dark}):null,(0,W.jsx)(`img`,{...XK.icon?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`}:XK.icon(),alt:n,height:20,src:i,width:20})]}):(0,W.jsx)(`span`,{...XK.placeholder?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm73`}:XK.placeholder(),"aria-label":n,role:`img`,children:t.symbol[0]})})}),(0,W.jsx)(hD.Popup,{children:n})]},t.symbol)})})]},`${e.currency}:${e.period??0}`))}),(0,W.jsx)(VE,{...XK.details?{className:`z-tempo_2d_id-nr-Vm7-styles-details-m-0 z-tempo_2d_id-nr-Vm7-styles-details-font-family-1 z-tempo_2d_id-nr-Vm7-styles-details-font-size-2 z-tempo_2d_id-nr-Vm7-styles-details-font-weight-3 z-tempo_2d_id-nr-Vm7-styles-details-letter-spacing-4 z-tempo_2d_id-nr-Vm7-styles-details-line-height-5`}:XK.details(),gap:`8`,render:(0,W.jsx)(`dl`,{}),children:(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`dt`,{...XK.term?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7f`}:XK.term(),children:`Expires`}),` `,(0,W.jsxs)(`dd`,{...XK.value?{className:`z_tempo_2d_id-nr-Vm7f z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h`}:XK.value(),children:[YK(n),` `,(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(sw,{...XK.info?{className:`z-tempo_2d_id-nr-Vm7-styles-heading-text-0 z-tempo_2d_id-nr-Vm7-styles-info-display-0 z-tempo_2d_id-nr-Vm7-styles-info-h-1 z-tempo_2d_id-nr-Vm7-styles-info-outline-2 z-tempo_2d_id-nr-Vm7-styles-info-vertical-align-3 z-tempo_2d_id-nr-Vm7-styles-info-w-4 z-tempo_2d_id-nr-Vm7-styles-info-outline-5 z-tempo_2d_id-nr-Vm7-styles-info-outline-color-6 z-tempo_2d_id-nr-Vm7-styles-info-outline-offset-7`}:XK.info(),"aria-label":`Expiry date`,role:`img`,tabIndex:0})}),(0,W.jsx)(hD.Popup,{children:new Date(n*1e3).toLocaleString(void 0,{day:`numeric`,hour:`numeric`,minute:`2-digit`,month:`short`,timeZoneName:`short`,year:`numeric`})})]})]})]})})]})}var UK=new Intl.NumberFormat(`en-US`,{maximumFractionDigits:20}),WK=new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}),GK=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]],KK=[[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60],[`second`,1]];function qK(e){let[t,n]=KK.find(t=>e%t[1]===0),r=e/n;return r===1?`per ${t}`:`every ${r} ${t}s`}function JK(e){let t=e.amount;try{return new Intl.NumberFormat(`en-US`,{currency:e.currency,maximumFractionDigits:6,style:`currency`,trailingZeroDisplay:`stripIfInteger`}).format(t)}catch{return`${UK.format(t)} ${e.currency}`}}function YK(e){let t=e-Date.now()/1e3,[n,r]=GK.find(e=>t+60>=e[1])??GK.at(-1);return WK.format(Math.max(1,Math.round(t/r)),n)}var XK;(function(e){e.details=1,e.heading=1,e.icon=1,e.icons=1,e.info=1,e.list=1,e.placeholder=1,e.section=1,e.term=1,e.token=1,e.value=1})(XK||={});function ZK(e){let t=e.heading??`h1`,n=e.approving||e.denying,r=e.refusal??e.keyAuthorization?.refusal;return(0,W.jsxs)(VE,{...tq.column?{className:`z-tempo_2d_id-kV7-rJ-styles-column-max-width-0 z-tempo_2d_id-kV7-rJ-styles-column-w-1`}:tq.column(),gap:`32`,children:[(0,W.jsxs)(VE,{...tq.header?{className:`z-tempo_2d_id-kV7-rJ-styles-header-text-align-0`}:tq.header(),align:`center`,gap:`8`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(Ew,{...tq.avatar?{className:`z-tempo_2d_id-kV7-rJ-styles-avatar-mb-0`}:tq.avatar(),children:e.logo?(0,W.jsx)(`img`,{...tq.logo?{className:`z_tempo_2d_id-kV7-rJo z_tempo_2d_id-kV7-rJp z_tempo_2d_id-kV7-rJq z_tempo_2d_id-kV7-rJr`}:tq.logo(),alt:``,src:e.logo}):(0,W.jsx)(RG,{})}),(0,W.jsx)(t,{...tq.title?{className:`z-tempo_2d_id-kV7-rJ-styles-title-text-wrap-0 z-tempo_2d_id-kV7-rJ-styles-title-font-family-1 z-tempo_2d_id-kV7-rJ-styles-title-font-size-2 z-tempo_2d_id-kV7-rJ-styles-title-font-weight-3 z-tempo_2d_id-kV7-rJ-styles-title-letter-spacing-4 z-tempo_2d_id-kV7-rJ-styles-title-line-height-5`}:tq.title(),children:`Authorize this app`}),(0,W.jsxs)(`p`,{...tq.description?{className:`z-tempo_2d_id-kV7-rJ-styles-description-text-0 z-tempo_2d_id-kV7-rJ-styles-description-text-1 z_tempo_2d_id-kV7-rJi z-tempo_2d_id-kV7-rJ-styles-description-font-family-2 z-tempo_2d_id-kV7-rJ-styles-description-font-family-3 z-tempo_2d_id-kV7-rJ-styles-description-font-size-4 z-tempo_2d_id-kV7-rJ-styles-description-font-size-5 z-tempo_2d_id-kV7-rJ-styles-description-font-weight-6 z-tempo_2d_id-kV7-rJ-styles-description-font-weight-7 z-tempo_2d_id-kV7-rJ-styles-description-letter-spacing-8 z-tempo_2d_id-kV7-rJ-styles-description-letter-spacing-9 z-tempo_2d_id-kV7-rJ-styles-description-line-height-10 z-tempo_2d_id-kV7-rJ-styles-description-line-height-11`}:tq.description(),children:[`Approve to let`,` `,(0,W.jsxs)(`span`,{...tq.app?{className:`z_tempo_2d_id-kV7-rJ6`}:tq.app(),children:[e.verified?(0,W.jsx)(`strong`,{children:e.app}):(0,W.jsx)(`bdi`,{children:e.app}),e.verified?(0,W.jsxs)(W.Fragment,{children:[` `,(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(NG,{...tq.badge?{className:`z-tempo_2d_id-kV7-rJ-styles-badge-display-0 z-tempo_2d_id-kV7-rJ-styles-badge-h-1 z-tempo_2d_id-kV7-rJ-styles-badge-outline-2 z-tempo_2d_id-kV7-rJ-styles-badge-vertical-align-3 z-tempo_2d_id-kV7-rJ-styles-badge-w-4 z-tempo_2d_id-kV7-rJ-styles-badge-outline-5 z-tempo_2d_id-kV7-rJ-styles-badge-outline-color-6 z-tempo_2d_id-kV7-rJ-styles-badge-outline-offset-7`}:tq.badge(),"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,W.jsx)(hD.Popup,{children:`Verified app`})]})]}):null]}),!e.verified&&e.app!==e.destination?` (${e.destination})`:null,` `,`use your Tempo Account.`]})]}),(0,W.jsxs)(VE,{gap:`16`,children:[e.account?(0,W.jsxs)(Ow,{...tq.account?{className:`z-tempo_2d_id-kV7-rJ-styles-account-border-0 z-tempo_2d_id-kV7-rJ-styles-account-border-color-1 z-tempo_2d_id-kV7-rJ-styles-account-border-radius-2 z-tempo_2d_id-kV7-rJ-styles-account-padding-block-3 z-tempo_2d_id-kV7-rJ-styles-account-padding-inline-4`}:tq.account(),"aria-label":`Tempo Account`,gap:`12`,role:`group`,children:[(0,W.jsx)(Ew,{"aria-hidden":!0,size:`40`,children:e.account.owner===`webAuthn`?(0,W.jsx)(LG,{}):(0,W.jsx)(FG,{})}),(0,W.jsxs)(VE,{...tq.text?{className:`z-tempo_2d_id-kV7-rJ-styles-text-flex-0`}:tq.text(),gap:`4`,render:(0,W.jsx)(`span`,{}),children:[(0,W.jsx)(`span`,{...tq.kind?{className:`z_tempo_2d_id-kV7-rJj z_tempo_2d_id-kV7-rJk z_tempo_2d_id-kV7-rJl z_tempo_2d_id-kV7-rJm z_tempo_2d_id-kV7-rJn`}:tq.kind(),children:e.account.owner===`webAuthn`?`Passkey`:`Cloud`}),(0,W.jsx)(`span`,{...tq.address?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-kV7-rJ1 z_tempo_2d_id-kV7-rJ2 z_tempo_2d_id-kV7-rJ3 z_tempo_2d_id-kV7-rJ4 z_tempo_2d_id-kV7-rJ5`}:tq.address(),children:Cw(e.account.address)})]})]}):null,e.keyAuthorization?(0,W.jsx)(HK,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.keyAuthorization}):null,e.keyAuthorization?.challenge?(0,W.jsxs)(uw,{intent:`warning`,role:`note`,size:`large`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:(0,W.jsxs)(VE,{gap:`8`,children:[(0,W.jsx)(`p`,{...tq.challengeTitle?{className:`z_tempo_2d_id-kV7-rJd z_tempo_2d_id-kV7-rJe z_tempo_2d_id-kV7-rJf z_tempo_2d_id-kV7-rJg z_tempo_2d_id-kV7-rJh`}:tq.challengeTitle(),children:`This sign-in also signs a message`}),(0,W.jsx)(`p`,{...tq.challengeText?{className:`z_tempo_2d_id-kV7-rJ7 z_tempo_2d_id-kV7-rJ8 z_tempo_2d_id-kV7-rJ9 z_tempo_2d_id-kV7-rJa z_tempo_2d_id-kV7-rJb z_tempo_2d_id-kV7-rJc`}:tq.challengeText(),children:`Approve only if you started this sign-in and expect this message.`}),(0,W.jsx)(`pre`,{...tq.message?{className:`z_tempo_2d_id-kV7-rJ7 z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-kV7-rJ1 z_tempo_2d_id-kV7-rJ2 z_tempo_2d_id-kV7-rJ3 z_tempo_2d_id-kV7-rJ4 z_tempo_2d_id-kV7-rJ5 z_tempo_2d_id-kV7-rJu`}:tq.message(),children:e.keyAuthorization.challenge})]})})]}):null,(0,W.jsx)(bS,{disabled:e.denying||!!r,loading:e.approving,onClick:e.onApprove,children:`Approve`}),(0,W.jsx)(bS,{disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`text`,children:`Deny`}),(0,W.jsxs)(`p`,{...tq.note?{className:`z-tempo_2d_id-kV7-rJ-styles-note-text-0 z-tempo_2d_id-kV7-rJ-styles-note-text-1 z_tempo_2d_id-kV7-rJv z-tempo_2d_id-kV7-rJ-styles-note-font-family-2 z-tempo_2d_id-kV7-rJ-styles-note-font-family-3 z-tempo_2d_id-kV7-rJ-styles-note-font-size-4 z-tempo_2d_id-kV7-rJ-styles-note-font-size-5 z-tempo_2d_id-kV7-rJ-styles-note-font-weight-6 z-tempo_2d_id-kV7-rJ-styles-note-font-weight-7 z-tempo_2d_id-kV7-rJ-styles-note-letter-spacing-8 z-tempo_2d_id-kV7-rJ-styles-note-letter-spacing-9 z-tempo_2d_id-kV7-rJ-styles-note-line-height-10 z-tempo_2d_id-kV7-rJ-styles-note-line-height-11`}:tq.note(),children:[`Signed in as `,(0,W.jsx)(`strong`,{children:e.email}),`.`]}),(0,W.jsx)(`p`,{...tq.status?{className:`z_tempo_2d_id-kV7-rJw z_tempo_2d_id-kV7-rJx z_tempo_2d_id-kV7-rJy z_tempo_2d_id-kV7-rJz z_tempo_2d_id-kV7-rJ6 z_tempo_2d_id-kV7-rJ10`}:tq.status(),"aria-live":`polite`,role:`status`,children:n?`Returning to ${e.destination}.`:void 0})]}),(()=>{let t=e.error??(r?eq[r]:void 0);return t?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:t})]}):null})()]})}function QK(e){let t=e.heading??`h1`,n=$K[e.reason??`request`];return(0,W.jsxs)(VE,{...tq.column?{className:`z-tempo_2d_id-kV7-rJ-styles-column-max-width-0 z-tempo_2d_id-kV7-rJ-styles-column-w-1`}:tq.column(),gap:`32`,children:[(0,W.jsxs)(VE,{...tq.header?{className:`z-tempo_2d_id-kV7-rJ-styles-header-text-align-0`}:tq.header(),align:`center`,gap:`8`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(t,{...tq.title?{className:`z-tempo_2d_id-kV7-rJ-styles-title-text-wrap-0 z-tempo_2d_id-kV7-rJ-styles-title-font-family-1 z-tempo_2d_id-kV7-rJ-styles-title-font-size-2 z-tempo_2d_id-kV7-rJ-styles-title-font-weight-3 z-tempo_2d_id-kV7-rJ-styles-title-letter-spacing-4 z-tempo_2d_id-kV7-rJ-styles-title-line-height-5`}:tq.title(),children:n.title}),(0,W.jsx)(`p`,{...tq.description?{className:`z-tempo_2d_id-kV7-rJ-styles-description-text-0 z-tempo_2d_id-kV7-rJ-styles-description-text-1 z_tempo_2d_id-kV7-rJi z-tempo_2d_id-kV7-rJ-styles-description-font-family-2 z-tempo_2d_id-kV7-rJ-styles-description-font-family-3 z-tempo_2d_id-kV7-rJ-styles-description-font-size-4 z-tempo_2d_id-kV7-rJ-styles-description-font-size-5 z-tempo_2d_id-kV7-rJ-styles-description-font-weight-6 z-tempo_2d_id-kV7-rJ-styles-description-font-weight-7 z-tempo_2d_id-kV7-rJ-styles-description-letter-spacing-8 z-tempo_2d_id-kV7-rJ-styles-description-letter-spacing-9 z-tempo_2d_id-kV7-rJ-styles-description-line-height-10 z-tempo_2d_id-kV7-rJ-styles-description-line-height-11`}:tq.description(),children:n.description})]}),e.reason===`sign_in`?(0,W.jsx)(bS.Link,{render:(0,W.jsx)(Vd,{to:`/login`}),children:`Sign in again`}):null]})}var $K={client:{description:`The app that sent you here is not registered with Tempo ID, or it is turned off. Return to the app, and contact its developer if the problem continues.`,title:`This app is not recognized`},redirect:{description:`The app asked to return you to an address that it has not registered, so Tempo ID stopped the sign-in. Return to the app, and contact its developer if the problem continues.`,title:`This app’s return address is not registered`},request:{description:`The app sent a request Tempo ID cannot complete. Return to the app and try again.`,title:`This sign-in request is invalid`},sign_in:{description:`The sign-in started in another browser, or it expired. Sign in again.`,title:`This sign-in did not finish`}},eq={foreign_account:`The app requests a key for a Tempo Account that you do not hold. Deny the request, and sign in to the app again as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account in the app, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the app.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`},tq;(function(e){e.account=1,e.address=1,e.app=1,e.avatar=1,e.badge=1,e.challengeText=1,e.challengeTitle=1,e.column=1,e.description=1,e.header=1,e.kind=1,e.logo=1,e.message=1,e.note=1,e.status=1,e.text=1,e.title=1})(tq||={});var nq=class extends Error{name=`Page.CeremonyError`},rq=qd(`/authorize`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(iq,{...rq.useLoaderData()}),loader:async e=>{let{searchStr:t}=e.location,n=new URLSearchParams(t);if(!n.get(`sig`)){let e=new URLSearchParams(n);e.has(`code_challenge_method`)||e.set(`code_challenge_method`,`S256`),e.has(`response_type`)||e.set(`response_type`,`code`),jG({document:!0,href:`/oauth2/authorize?${e}`})}let r=mG(),i=await(async()=>{try{return await rG(r.v1.authorize.request.$get({query:{oauth_query:n.toString()}}))}catch(e){throw gG(e)===`session_required`&&jG({href:`/login${t}`}),e}})();return`redirect`in i&&jG({document:!0,href:i.redirect}),{request:i.request}},loaderDeps:e=>({search:e.search})});function iq(e){let t=_G(),n=Dp({async mutationFn(n){let r={accept:n.accept,...e.request?.key?.account?{account:e.request.key.account}:{},oauth_query:window.location.search.slice(1),session_id:e.request?.session??``},i=await rG(t.v1.authorize.consent.$post({json:r}));if(!(`step`in i))return i;let a=await kG({options:{publicKey:i.step.options.publicKey}}).catch(e=>{throw new nq(`Passkey ceremony failed.`,{cause:e})}),o=await rG(t.v1.authorize.consent.$post({json:{...r,passkey:{assertion:a}}}));if(`step`in o)throw Error(`The approval requested a second passkey step.`);return o},onError:e=>{gG(e)===`session_required`&&window.location.reload()},onSuccess:e=>window.location.assign(e.redirect)}),r=n.isPending||n.isSuccess;return(0,W.jsx)(`main`,{...sq.page?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-V2chls3 z_tempo_2d_id-V2chls4`}:sq.page(),children:e.request?(0,W.jsx)(ZK,{account:e.request.account,app:e.request.app,approving:r&&n.variables.accept,denying:r&&!n.variables.accept,destination:e.request.destination,email:e.request.email,verified:e.request.verified,error:n.error&&gG(n.error)!==`webauthn_required`?aq(n.error):void 0,keyAuthorization:e.request.key,logo:e.request.logo,onApprove:()=>n.mutate({accept:!0}),onDeny:()=>n.mutate({accept:!1}),refusal:gG(n.error)===`webauthn_required`?`passkey`:void 0}):(0,W.jsx)(QK,{})})}function aq(e){return gG(e)===`webauthn_rejected`?`Your passkey did not sign the approval. Approve again, or deny the request.`:e instanceof nq?oq(e).includes(`NotAllowedError`)?`The passkey request was canceled. Approve again, or deny the request.`:`Your passkey did not sign the approval. Approve again, or deny the request.`:hG(e)}function oq(e){return e instanceof Error?[e.name,...oq(e.cause)]:[]}var sq;(function(e){e.page=1})(sq||={});function cq(e){let t=e.heading??`h1`,n=e.selecting!==void 0,r=new Set(e.accounts.map(e=>e.realm));return(0,W.jsxs)(VE,{...lq.column?{className:`z-tempo_2d_id-isY5HS-styles-column-max-width-0 z-tempo_2d_id-isY5HS-styles-column-w-1`}:lq.column(),gap:`32`,children:[(0,W.jsxs)(VE,{...lq.header?{className:`z-tempo_2d_id-isY5HS-styles-header-text-align-0`}:lq.header(),gap:`8`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(t,{...lq.title?{className:`z-tempo_2d_id-isY5HS-styles-title-text-wrap-0 z-tempo_2d_id-isY5HS-styles-title-font-family-1 z-tempo_2d_id-isY5HS-styles-title-font-size-2 z-tempo_2d_id-isY5HS-styles-title-font-weight-3 z-tempo_2d_id-isY5HS-styles-title-letter-spacing-4 z-tempo_2d_id-isY5HS-styles-title-line-height-5`}:lq.title(),children:`Choose a wallet`}),(0,W.jsxs)(`p`,{...lq.description?{className:`z-tempo_2d_id-isY5HS-styles-description-text-0 z-tempo_2d_id-isY5HS-styles-description-text-1 z_tempo_2d_id-isY5HS0 z-tempo_2d_id-isY5HS-styles-description-font-family-2 z-tempo_2d_id-isY5HS-styles-description-font-family-3 z-tempo_2d_id-isY5HS-styles-description-font-size-4 z-tempo_2d_id-isY5HS-styles-description-font-size-5 z-tempo_2d_id-isY5HS-styles-description-font-weight-6 z-tempo_2d_id-isY5HS-styles-description-font-weight-7 z-tempo_2d_id-isY5HS-styles-description-letter-spacing-8 z-tempo_2d_id-isY5HS-styles-description-letter-spacing-9 z-tempo_2d_id-isY5HS-styles-description-line-height-10 z-tempo_2d_id-isY5HS-styles-description-line-height-11`}:lq.description(),children:[(0,W.jsx)(`strong`,{children:e.app}),` uses the account you choose. You can choose again after you sign out of Tempo ID.`]})]}),(0,W.jsx)(VT,{...lq.accounts?{className:`z-tempo_2d_id-isY5HS-styles-accounts-display-0 z-tempo_2d_id-isY5HS-styles-accounts-gap-1 z-tempo_2d_id-isY5HS-styles-accounts-bg-2 z-tempo_2d_id-isY5HS-styles-accounts-border-radius-3 z-tempo_2d_id-isY5HS-styles-accounts-overflow-4 z-tempo_2d_id-isY5HS-styles-accounts-padding-inline-end-5 z-tempo_2d_id-isY5HS-styles-accounts-padding-inline-start-6`}:lq.accounts(),"aria-label":`Accounts`,dividers:`none`,role:`list`,children:e.accounts.map(t=>(0,W.jsx)(`div`,{role:`listitem`,children:(0,W.jsxs)(VT.Row,{action:e.selecting===t.address?`none`:`navigation`,"aria-busy":e.selecting===t.address||void 0,disabled:n&&e.selecting!==t.address,onClick:()=>{n||e.onChoose(t.address)},children:[(0,W.jsx)(Ew,{"aria-hidden":!0,size:`40`,children:t.owner===`webAuthn`?(0,W.jsx)(LG,{}):(0,W.jsx)(FG,{})}),(0,W.jsxs)(VT.Info,{children:[(0,W.jsxs)(VT.Title,{children:[r.size>1&&t.realm?`${t.realm} · `:null,t.owner===`webAuthn`?`Passkey`:`Cloud`]}),(0,W.jsx)(VT.Description,{...lq.address?{className:`z-tempo_2d_id-isY5HS-styles-address-font-family-0 z-tempo_2d_id-isY5HS-styles-address-font-size-1 z-tempo_2d_id-isY5HS-styles-address-font-weight-2 z-tempo_2d_id-isY5HS-styles-address-letter-spacing-3 z-tempo_2d_id-isY5HS-styles-address-line-height-4`}:lq.address(),children:Cw(t.address)})]}),t.balance?(0,W.jsx)(SS,{...lq.balance?{className:`z-tempo_2d_id-isY5HS-styles-balance-flex-shrink-0 z-tempo_2d_id-isY5HS-styles-balance-font-family-1 z-tempo_2d_id-isY5HS-styles-balance-font-size-2 z-tempo_2d_id-isY5HS-styles-balance-font-weight-3 z-tempo_2d_id-isY5HS-styles-balance-letter-spacing-4 z-tempo_2d_id-isY5HS-styles-balance-line-height-5`}:lq.balance(),currency:t.balance.currency,"data-testid":`balance`,value:t.balance.amount}):(0,W.jsx)(`span`,{...lq.unavailable?{className:`z_tempo_2d_id-isY5HS7 z_tempo_2d_id-isY5HS8 z_tempo_2d_id-isY5HS9 z_tempo_2d_id-isY5HSa z_tempo_2d_id-isY5HSb z_tempo_2d_id-isY5HSc z_tempo_2d_id-isY5HSd`}:lq.unavailable(),"data-testid":`balance`,children:`Balance unavailable`}),e.selecting===t.address?(0,W.jsx)(vS,{"aria-hidden":!0,size:`large`}):null]})},t.address))}),e.error?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):null,(0,W.jsx)(`p`,{...lq.status?{className:`z_tempo_2d_id-isY5HS1 z_tempo_2d_id-isY5HS2 z_tempo_2d_id-isY5HS3 z_tempo_2d_id-isY5HS4 z_tempo_2d_id-isY5HS5 z_tempo_2d_id-isY5HS6`}:lq.status(),"aria-live":`polite`,role:`status`,children:n?`Continuing to ${e.app}.`:void 0})]})}var lq;(function(e){e.accounts=1,e.address=1,e.balance=1,e.column=1,e.description=1,e.header=1,e.status=1,e.title=1,e.unavailable=1})(lq||={});var uq=class extends Error{name=`Page.CeremonyError`},dq=qd(`/choose-account`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(fq,{...dq.useLoaderData()}),loader:async e=>{let{searchStr:t}=e.location,n=new URLSearchParams(t);n.get(`sig`)||jG({document:!0,href:`/oauth2/authorize${t}`});let r=mG();try{return{error:null,request:(await rG(r.v1.authorize.accounts.$get({query:{oauth_query:n.toString()}}))).request}}catch(e){return gG(e)===`session_required`&&jG({href:`/login${t}`}),{error:hG(e),request:null}}},loaderDeps:e=>({search:e.search})});function fq(e){let t=_G(),n=Dp({async mutationFn(e){let n={account:e.account,oauth_query:window.location.search.slice(1)},r=await rG(t.v1.authorize.account.$post({json:n}));if(!(`step`in r))return r;let i=await kG({options:{publicKey:r.step.options.publicKey}}).catch(e=>{throw new uq(`Passkey ceremony failed.`,{cause:e})}),a=await rG(t.v1.authorize.account.$post({json:{...n,passkey:{assertion:i}}}));if(`step`in a)throw Error(`The selection requested a second passkey step.`);return a},onSuccess:e=>window.location.assign(e.redirect)}),r=n.isPending||n.isSuccess?n.variables.account:void 0;return(0,W.jsx)(`main`,{...hq.page?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-WfmSOe3 z_tempo_2d_id-WfmSOe4`}:hq.page(),children:e.error?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):e.request?(0,W.jsx)(cq,{accounts:e.request.accounts,app:e.request.app,error:n.error?pq(n.error):void 0,onChoose:e=>n.mutate({account:e}),selecting:r}):(0,W.jsx)(QK,{})})}function pq(e){return e instanceof uq?mq(e).includes(`NotAllowedError`)?`The passkey request was canceled. Choose the account again to continue.`:`Your passkey did not sign the request. Choose the account again to continue.`:hG(e)}function mq(e){return e instanceof Error?[e.name,...mq(e.cause)]:[]}var hq;(function(e){e.page=1})(hq||={});var gq=(0,U.forwardRef)(({title:e,titleId:t,...n},r)=>(0,W.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`1em`,height:`1em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,W.jsx)(`title`,{id:t,children:e}):null,(0,W.jsx)(`path`,{fill:`currentColor`,d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04c-2.04.027-3.91 1.183-4.961 3.014c-2.117 3.675-.546 9.103 1.519 12.09c1.013 1.454 2.208 3.09 3.792 3.039c1.52-.065 2.09-.987 3.935-.987c1.831 0 2.35.987 3.96.948c1.637-.026 2.676-1.48 3.676-2.948c1.156-1.688 1.636-3.325 1.662-3.415c-.039-.013-3.182-1.221-3.22-4.857c-.026-3.04 2.48-4.494 2.597-4.559c-1.429-2.09-3.623-2.324-4.39-2.376c-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83c-1.207.052-2.662.805-3.532 1.818c-.78.896-1.454 2.338-1.273 3.714c1.338.104 2.715-.688 3.559-1.701`})]})),_q=`data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%2012.5493C8%2010.9893%208%2010.2107%208.29333%209.61333C8.576%209.04%209.04%208.57333%209.616%208.29333C10.2133%208%2010.992%208%2012.5493%208H51.4507C53.0107%208%2053.7867%208%2054.3867%208.29333C54.96%208.57333%2055.424%209.04%2055.704%209.61333C56%2010.2133%2056%2010.992%2056%2012.5493V51.4507C56%2053.0107%2056%2053.7867%2055.7067%2054.3867C55.424%2054.96%2054.96%2055.424%2054.3867%2055.704C53.7867%2056%2053.008%2056%2051.4507%2056H12.5493C10.9893%2056%2010.2133%2056%209.61333%2055.7067C9.03998%2055.4249%208.57656%2054.9606%208.296%2054.3867C8%2053.7867%208%2053.008%208%2051.4507V12.5493Z'%20fill='%230000FF'%20/%3e%3c/svg%3e`,vq=`data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='64'%20height='64'%20fill='%23627EEA'%20/%3e%3cg%20transform='translate(18%208)'%3e%3cpath%20d='M14.996%200V17.74L29.99%2024.44L14.996%200Z'%20fill='white'%20fill-opacity='0.602'%20/%3e%3cpath%20d='M14.996%200L0%2024.44L14.996%2017.74V0Z'%20fill='white'%20/%3e%3cpath%20d='M14.996%2035.936V47.99L30%2027.232L14.996%2035.936Z'%20fill='white'%20fill-opacity='0.602'%20/%3e%3cpath%20d='M14.996%2047.99V35.934L0%2027.232L14.996%2047.99Z'%20fill='white'%20/%3e%3cpath%20d='M14.996%2033.146L29.99%2024.44L14.996%2017.744V33.146Z'%20fill='white'%20fill-opacity='0.2'%20/%3e%3cpath%20d='M0%2024.44L14.996%2033.146V17.744L0%2024.44Z'%20fill='white'%20fill-opacity='0.602'%20/%3e%3c/g%3e%3c/svg%3e`,yq=`data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='64'%20height='64'%20fill='black'%20/%3e%3cpath%20d='M46.964%2022.4753C46.7023%2022.7154%2046.3609%2022.8511%2046.005%2022.8563H12.3524C11.1577%2022.8563%2010.5556%2021.497%2011.3817%2020.7L16.9072%2015.3927C17.1641%2015.1449%2017.5064%2015.0044%2017.8639%2015H51.6496C52.8559%2015%2053.4463%2016.371%2052.6063%2017.1703L46.964%2022.4753ZM46.964%2048.6328C46.7026%2048.8718%2046.3599%2049.003%2046.005%2048.9999H12.3524C11.1577%2048.9999%2010.5556%2047.6522%2011.3817%2046.8552L16.9072%2041.5363C17.1662%2041.2936%2017.5083%2041.1582%2017.8639%2041.1576H51.6496C52.8559%2041.1576%2053.4463%2042.5169%2052.6063%2043.3139L46.964%2048.6328ZM46.964%2028.4517C46.7023%2028.2136%2046.3595%2028.0832%2046.005%2028.0869H12.3524C11.1577%2028.0869%2010.5556%2029.4346%2011.3817%2030.2293L16.9072%2035.5505C17.1687%2035.7893%2017.5092%2035.9241%2017.8639%2035.9293H51.6496C52.8559%2035.9293%2053.4463%2034.57%2052.6063%2033.7729L46.964%2028.4517Z'%20fill='white'%20/%3e%3c/svg%3e`,bq=`data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='64'%20height='64'%20fill='black'%20/%3e%3cpath%20d='M29.689%2047H22.3877L29.1548%2026.12H20.5L22.3877%2020H46.5L44.6123%2026.12H36.4205L29.689%2047Z'%20fill='white'%20/%3e%3c/svg%3e`,xq=[{assets:[`USDC.e`,`USDT0`,`pathUSD`],available:!0,icon:bq,id:`tempo`,name:`Tempo`},{assets:[`USDC`,`ETH`,`WETH`,`+3`],available:!1,icon:_q,id:`base`,name:`Base`},{assets:[`USDC`,`ETH`,`USDT`,`+2`],available:!1,icon:vq,id:`ethereum`,name:`Ethereum`},{assets:[`USDC`,`SOL`],available:!1,icon:yq,id:`solana`,name:`Solana`}],Sq=[{icon:gK,symbol:`USDC.e`},{icon:_K,symbol:`USDT0`},{icon:OK,symbol:`pathUSD`}];function Cq(e){let t=e.heading===`h4`?`h5`:`h2`;return e.method===`tempo`?(0,W.jsxs)(VE,{...Y.column?{className:`z-tempo_2d_id-GE1xyW-styles-column-max-width-0 z-tempo_2d_id-GE1xyW-styles-column-w-1`}:Y.column(),gap:`24`,children:[(0,W.jsxs)(VE,{gap:`8`,children:[(0,W.jsx)(wq,{back:(0,W.jsx)(Vd,{...e.address?{search:{address:e.address},to:`/deposit`}:{to:`/`}}),heading:e.heading,title:`Receive funds`}),(0,W.jsxs)(`p`,{...Y.description?{className:`z-tempo_2d_id-GE1xyW-styles-description-text-0 z-tempo_2d_id-GE1xyW-styles-description-text-1 z_tempo_2d_id-GE1xyW8 z_tempo_2d_id-GE1xyW9 z-tempo_2d_id-GE1xyW-styles-description-font-family-2 z-tempo_2d_id-GE1xyW-styles-description-font-family-3 z-tempo_2d_id-GE1xyW-styles-description-font-size-4 z-tempo_2d_id-GE1xyW-styles-description-font-size-5 z-tempo_2d_id-GE1xyW-styles-description-font-weight-6 z-tempo_2d_id-GE1xyW-styles-description-font-weight-7 z-tempo_2d_id-GE1xyW-styles-description-letter-spacing-8 z-tempo_2d_id-GE1xyW-styles-description-letter-spacing-9 z-tempo_2d_id-GE1xyW-styles-description-line-height-10 z-tempo_2d_id-GE1xyW-styles-description-line-height-11`}:Y.description(),children:[`Send `,(0,W.jsx)(`strong`,{children:`supported stablecoins`}),` to this address.`]})]}),e.address?(0,W.jsx)(Eq,{address:e.address}):e.error?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):null]}):(0,W.jsxs)(VE,{...Y.column?{className:`z-tempo_2d_id-GE1xyW-styles-column-max-width-0 z-tempo_2d_id-GE1xyW-styles-column-w-1`}:Y.column(),gap:`24`,children:[(0,W.jsxs)(VE,{gap:`8`,children:[(0,W.jsx)(wq,{back:(0,W.jsx)(Vd,{to:`/`}),heading:e.heading,title:`Deposit`}),(0,W.jsx)(`p`,{...Y.description?{className:`z-tempo_2d_id-GE1xyW-styles-description-text-0 z-tempo_2d_id-GE1xyW-styles-description-text-1 z_tempo_2d_id-GE1xyW8 z_tempo_2d_id-GE1xyW9 z-tempo_2d_id-GE1xyW-styles-description-font-family-2 z-tempo_2d_id-GE1xyW-styles-description-font-family-3 z-tempo_2d_id-GE1xyW-styles-description-font-size-4 z-tempo_2d_id-GE1xyW-styles-description-font-size-5 z-tempo_2d_id-GE1xyW-styles-description-font-weight-6 z-tempo_2d_id-GE1xyW-styles-description-font-weight-7 z-tempo_2d_id-GE1xyW-styles-description-letter-spacing-8 z-tempo_2d_id-GE1xyW-styles-description-letter-spacing-9 z-tempo_2d_id-GE1xyW-styles-description-line-height-10 z-tempo_2d_id-GE1xyW-styles-description-line-height-11`}:Y.description(),children:`Choose an option below to send stablecoins to your wallet.`})]}),e.address?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(VE,{gap:`8`,render:(0,W.jsx)(`section`,{}),children:[(0,W.jsx)(t,{...Y.sectionTitle?{className:`z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-family-0 z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-size-1 z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-weight-2 z-tempo_2d_id-GE1xyW-styles-sectionTitle-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-sectionTitle-line-height-4`}:Y.sectionTitle(),children:`Crypto`}),(0,W.jsx)(VT,{...Y.methods?{className:`z-tempo_2d_id-GE1xyW-styles-methods-margin-inline-0 z-tempo_2d_id-GE1xyW-styles-methods-border-radius-1`}:Y.methods(),dividers:`none`,size:`large`,children:xq.map(t=>(0,W.jsx)(Tq,{address:t.available?e.address:void 0,assets:t.assets,icon:(0,W.jsx)(`img`,{...Y.logo?{className:`z_tempo_2d_id-GE1xyW3 z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyWc z_tempo_2d_id-GE1xyWd`}:Y.logo(),alt:``,src:t.icon}),name:t.name},t.id))})]}),(0,W.jsxs)(VE,{gap:`8`,render:(0,W.jsx)(`section`,{}),children:[(0,W.jsx)(t,{...Y.sectionTitle?{className:`z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-family-0 z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-size-1 z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-weight-2 z-tempo_2d_id-GE1xyW-styles-sectionTitle-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-sectionTitle-line-height-4`}:Y.sectionTitle(),children:`Cash`}),(0,W.jsx)(VT,{...Y.methods?{className:`z-tempo_2d_id-GE1xyW-styles-methods-margin-inline-0 z-tempo_2d_id-GE1xyW-styles-methods-border-radius-1`}:Y.methods(),dividers:`none`,size:`large`,children:(0,W.jsx)(Tq,{assets:[`Coinbase`],icon:(0,W.jsx)(gq,{...Y.apple?{className:`z-tempo_2d_id-GE1xyW-styles-apple-text-0 z-tempo_2d_id-GE1xyW-styles-apple-h-1 z-tempo_2d_id-GE1xyW-styles-apple-w-2`}:Y.apple(),"aria-hidden":!0}),name:`Apple Pay`})})]})]}):e.error?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):null]})}function wq(e){let t=e.heading??`h1`;return(0,W.jsxs)(`header`,{...Y.header?{className:`z_tempo_2d_id-GE1xyW1 z_tempo_2d_id-GE1xyWa z_tempo_2d_id-GE1xyWb`}:Y.header(),children:[(0,W.jsx)(`span`,{...Y.back?{className:`z_tempo_2d_id-GE1xyW0 z-tempo_2d_id-GE1xyW-styles-back-bottom-0 z-tempo_2d_id-GE1xyW-styles-back-left-1 z-tempo_2d_id-GE1xyW-styles-back-top-2 z-tempo_2d_id-GE1xyW-styles-back-left-3 z_tempo_2d_id-GE1xyW1 z_tempo_2d_id-GE1xyW2`}:Y.back(),children:(0,W.jsx)(bS.Link,{"aria-label":`Back`,render:e.back,shape:`icon`,variant:`text`,children:(0,W.jsx)(MG,{...Y.backIcon?{className:`z-tempo_2d_id-GE1xyW-styles-backIcon-h-0 z-tempo_2d_id-GE1xyW-styles-backIcon-w-1`}:Y.backIcon()})})}),(0,W.jsx)(t,{...Y.title?{className:`z-tempo_2d_id-GE1xyW-styles-title-letter-spacing-0 z-tempo_2d_id-GE1xyW-styles-title-text-align-1 z-tempo_2d_id-GE1xyW-styles-title-font-family-2 z-tempo_2d_id-GE1xyW-styles-title-font-size-3 z-tempo_2d_id-GE1xyW-styles-title-font-weight-4 z-tempo_2d_id-GE1xyW-styles-title-line-height-5`}:Y.title(),children:e.title})]})}function Tq(e){let{address:t}=e,n=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{...Y.methodIcon?{className:`z_tempo_2d_id-GE1xyW0 z_tempo_2d_id-GE1xyW1 z_tempo_2d_id-GE1xyW7 z_tempo_2d_id-GE1xyWc z_tempo_2d_id-GE1xyWa z_tempo_2d_id-GE1xyWd`}:Y.methodIcon(),children:e.icon}),(0,W.jsxs)(VT.Info,{children:[(0,W.jsx)(VT.Title,{...Y.networkName?{className:`z-tempo_2d_id-GE1xyW-styles-networkName-font-family-0 z-tempo_2d_id-GE1xyW-styles-networkName-font-size-1 z-tempo_2d_id-GE1xyW-styles-networkName-font-weight-2 z-tempo_2d_id-GE1xyW-styles-networkName-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-networkName-line-height-4`}:Y.networkName(),children:e.name}),(0,W.jsx)(Ow,{gap:`4`,wrap:!0,children:e.assets.map(e=>(0,W.jsx)(GE,{shape:`rounded`,size:`small`,children:e},e))})]})]});return t?(0,W.jsx)(VT.Row,{action:`navigation`,render:(0,W.jsx)(Vd,{search:{address:t,method:`tempo`},to:`/deposit`}),children:n}):(0,W.jsxs)(VT.Row,{disabled:!0,children:[n,(0,W.jsx)(GE,{size:`small`,variant:`plain`,children:`Coming soon`})]})}function Eq(e){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(UE,{...Y.addressCard?{className:`z-tempo_2d_id-GE1xyW-styles-addressCard-bg-0 z-tempo_2d_id-GE1xyW-styles-addressCard-pt-1`}:Y.addressCard(),size:`small`,children:(0,W.jsxs)(VE,{align:`center`,gap:`16`,children:[(0,W.jsx)(`span`,{...Y.qr?{className:`z_tempo_2d_id-GE1xyWe z_tempo_2d_id-GE1xyWf z_tempo_2d_id-GE1xyWg z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyWh`}:Y.qr(),children:(0,W.jsx)(RT,{"aria-label":`Deposit address QR code`,arena:bq,size:`small`,value:e.address})}),(0,W.jsxs)(ww.Root,{...Y.address?{className:`z-tempo_2d_id-GE1xyW-styles-address-text-0 z-tempo_2d_id-GE1xyW-styles-address-max-width-1 z-tempo_2d_id-GE1xyW-styles-address-font-family-2 z-tempo_2d_id-GE1xyW-styles-address-font-size-3 z-tempo_2d_id-GE1xyW-styles-address-font-weight-4 z-tempo_2d_id-GE1xyW-styles-address-letter-spacing-5 z-tempo_2d_id-GE1xyW-styles-address-line-height-6`}:Y.address(),"data-testid":`deposit-address`,value:e.address,children:[(0,W.jsx)(ww.Text,{}),(0,W.jsx)(ww.Copy,{"aria-label":`Copy address`})]})]})}),(0,W.jsx)(UE,{...Y.card?{className:`z-tempo_2d_id-GE1xyW-styles-addressCard-bg-0`}:Y.card(),size:`small`,children:(0,W.jsxs)(VT,{dividers:`full`,children:[(0,W.jsxs)(VT.Row,{children:[(0,W.jsx)(VT.Label,{id:`deposit-network`,children:`Network`}),(0,W.jsxs)(LE.Root,{value:`tempo`,children:[(0,W.jsxs)(LE.Trigger,{...Y.trigger?{className:`z-tempo_2d_id-GE1xyW-styles-trigger-margin-inline-end-0`}:Y.trigger(),"aria-labelledby":`deposit-network`,size:`small`,variant:`text`,children:[(0,W.jsx)(LE.Value,{children:()=>(0,W.jsxs)(Ow,{gap:`8`,children:[(0,W.jsx)(`img`,{...Y.fieldLogo?{className:`z_tempo_2d_id-GE1xyW3 z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyW5 z_tempo_2d_id-GE1xyW6`}:Y.fieldLogo(),alt:``,src:bq}),`Tempo`]})}),(0,W.jsx)(LE.Icon,{})]}),(0,W.jsx)(LE.Popup,{align:`end`,children:xq.map(e=>(0,U.createElement)(LE.Item,{...Y.network?{className:`z-tempo_2d_id-GE1xyW-styles-network-display-0`}:Y.network(),disabled:!e.available,key:e.id,value:e.id},(0,W.jsx)(LE.ItemPrefix,{children:(0,W.jsx)(`img`,{...Y.fieldLogo?{className:`z_tempo_2d_id-GE1xyW3 z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyW5 z_tempo_2d_id-GE1xyW6`}:Y.fieldLogo(),alt:``,src:e.icon})}),(0,W.jsx)(LE.ItemText,{children:e.name}),e.available?null:(0,W.jsx)(LE.ItemSuffix,{children:`Coming soon`})))})]})]}),(0,W.jsxs)(VT.Row,{children:[(0,W.jsx)(VT.Label,{children:`Supported stablecoins`}),(0,W.jsx)(`span`,{...Y.coins?{className:`z_tempo_2d_id-GE1xyW1 z_tempo_2d_id-GE1xyW7 z-tempo_2d_id-GE1xyW-styles-coins-margin-inline-start-0 z-tempo_2d_id-GE1xyW-styles-coins-margin-inline-start-1`}:Y.coins(),children:Sq.map(e=>(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(`span`,{...Y.coin?{className:`z_tempo_2d_id-GE1xyW3 z-tempo_2d_id-GE1xyW-styles-coin-outline-0 z-tempo_2d_id-GE1xyW-styles-coin-outline-color-1 z-tempo_2d_id-GE1xyW-styles-coin-outline-color-2 z-tempo_2d_id-GE1xyW-styles-coin-transition-duration-3 z-tempo_2d_id-GE1xyW-styles-coin-transition-property-4 z-tempo_2d_id-GE1xyW-styles-coin-transition-timing-function-5`}:Y.coin(),tabIndex:0,children:(0,W.jsx)(`img`,{...Y.coinLogo?{className:`z_tempo_2d_id-GE1xyW3 z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyW5 z_tempo_2d_id-GE1xyW6`}:Y.coinLogo(),alt:e.symbol,height:20,src:e.icon,width:20})})}),(0,W.jsx)(hD.Popup,{children:e.symbol})]},e.symbol))})]})]})}),(0,W.jsxs)(uw,{intent:`warning`,role:`note`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsxs)(uw.Content,{...Y.warning?{className:`z-tempo_2d_id-GE1xyW-styles-warning-font-family-0 z-tempo_2d_id-GE1xyW-styles-warning-font-size-1 z-tempo_2d_id-GE1xyW-styles-warning-font-weight-2 z-tempo_2d_id-GE1xyW-styles-warning-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-warning-line-height-4`}:Y.warning(),children:[`Only send `,(0,W.jsx)(`strong`,{children:`supported stablecoins`}),` on`,` `,(0,W.jsx)(`strong`,{children:`Tempo`}),`. Sending other tokens or using a different network may result in permanent loss.`]})]}),(0,W.jsx)(bS.Link,{render:(0,W.jsx)(Vd,{to:`/`}),variant:`secondary`,children:`Done`})]})}var Y;(function(e){e.address=1,e.addressCard=1,e.apple=1,e.back=1,e.backIcon=1,e.card=1,e.coin=1,e.coinLogo=1,e.coins=1,e.column=1,e.description=1,e.fieldLogo=1,e.header=1,e.logo=1,e.methods=1,e.methodIcon=1,e.network=1,e.networkName=1,e.qr=1,e.sectionTitle=1,e.title=1,e.trigger=1,e.warning=1})(Y||={});var Dq=qd(`/deposit`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(Oq,{...Dq.useLoaderData()}),loader:async e=>{let t=mG(),{address:n,method:r}=e.deps,i=r===`tempo`?r:null,a=await rG(t.v1.account.$get({query:{}})).catch(e=>({error:e}));if(`error`in a)return gG(a.error)===`session_required`&&jG({href:`/login`}),{address:null,error:gG(a.error)===`rate_limited`?hG(a.error):`Your wallets failed to load. Reload the page to try again.`,method:i};let o=a.tempo.find(e=>e.address.toLowerCase()===n?.toLowerCase());return o?{address:o.address,error:null,method:i}:{address:null,error:`This wallet was not found. Go back to your account, then choose Deposit.`,method:i}},loaderDeps:e=>({address:e.search.address,method:e.search.method}),validateSearch:e=>({...typeof e.address==`string`?{address:e.address}:{},...typeof e.method==`string`?{method:e.method}:{}})});function Oq(e){return(0,W.jsx)(`main`,{...kq.page?{className:`z_tempo_2d_id-IDXgVf0 z_tempo_2d_id-IDXgVf1 z_tempo_2d_id-IDXgVf2 z_tempo_2d_id-IDXgVf3 z_tempo_2d_id-IDXgVf4`}:kq.page(),"aria-label":`Deposit`,children:(0,W.jsx)(Cq,{address:e.address??void 0,error:e.error??void 0,method:e.method??void 0})})}var kq;(function(e){e.page=1})(kq||={});function Aq(e){let{length:t,separator:n}=e,r=e.characters===`digits`,[i,a]=(0,U.useState)(!1),[o,s]=(0,U.useState)(0),c=(0,U.useRef)(null),l=(0,U.useId)(),u=(0,U.useRef)(e.invalid);return(0,U.useEffect)(()=>{let t=e.invalid&&!u.current;u.current=e.invalid,t&&(a(!1),s(e=>e+1))},[e.invalid]),(0,U.useEffect)(()=>{o&&c.current?.focus()},[o]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`label`,{...jq.label?{className:`z_tempo_2d_id-3w2jki0 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jki2 z_tempo_2d_id-3w2jki3 z_tempo_2d_id-3w2jki4 z_tempo_2d_id-3w2jki5`}:jq.label(),htmlFor:l,children:e[`aria-label`]}),(0,U.createElement)(Jw.Root,{...jq.root?{className:`z-tempo_2d_id-justify-content-center z-tempo_2d_id-w-[100%]`}:jq.root(),autoComplete:e.autoComplete,autoSubmit:e.autoSubmit,defaultValue:o?void 0:e.defaultValue,id:l,invalid:!!e.invalid&&!i,key:o,length:t,name:e.name,inputMode:r?`numeric`:`text`,normalizeValue:e=>e.replace(r?/\D/g:/[^0-9a-z]/gi,``).toUpperCase(),onValueChange:()=>a(!0),readOnly:e.readOnly,required:e.required,size:e.size,success:e.success,validationType:`none`},Array.from({length:t},(r,i)=>(0,W.jsxs)(U.Fragment,{children:[i===n?(0,W.jsx)(`span`,{...jq.separator?{className:`z_tempo_2d_id-3w2jki6 z_tempo_2d_id-3w2jki7 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jki8`}:jq.separator(),"aria-hidden":!0}):null,i===0?(0,W.jsx)(Jw.Input,{"aria-describedby":e[`aria-describedby`],autoFocus:e.autoFocus,ref:c}):(0,W.jsx)(Jw.Input,{"aria-label":`Character ${i+1} of ${t}`})]},i)))]})}var jq;(function(e){e.label=1,e.root=1,e.separator=1})(jq||={});function Mq(e){let t=e.heading??`h1`,n=(0,U.useId)(),r=e.request?.app,i=e.refusal??e.request?.key_authorization?.refusal,a=e.status===`denied`?`Denied. The device was not signed in.`:e.request?r?(0,W.jsxs)(W.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant `,(0,W.jsx)(`strong`,{children:r.name}),` `,(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(NG,{...X.verified?{className:`z-tempo_2d_id-tpVtLR-styles-verified-display-0 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-verified-outline-1 z-tempo_2d_id-tpVtLR-styles-verified-vertical-align-2 z-tempo_2d_id-tpVtLR-styles-icon-w-4 z-tempo_2d_id-tpVtLR-styles-verified-outline-3 z-tempo_2d_id-tpVtLR-styles-verified-outline-color-4 z-tempo_2d_id-tpVtLR-styles-verified-outline-offset-5`}:X.verified(),"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,W.jsx)(hD.Popup,{children:`Verified app`})]}),` `,`access to your account.`]}):(0,W.jsxs)(W.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant`,` `,(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsxs)(`span`,{...X.unverified?{className:`z_tempo_2d_id-tpVtLR18 z_tempo_2d_id-tpVtLRb z-tempo_2d_id-tpVtLR-styles-unverified-outline-0 z-tempo_2d_id-tpVtLR-styles-unverified-outline-1 z-tempo_2d_id-tpVtLR-styles-unverified-outline-color-2 z-tempo_2d_id-tpVtLR-styles-unverified-outline-offset-3 z_tempo_2d_id-tpVtLR19 z_tempo_2d_id-tpVtLR1a z_tempo_2d_id-tpVtLR1b z_tempo_2d_id-tpVtLR1c z_tempo_2d_id-tpVtLR1d z_tempo_2d_id-3w2jki4`}:X.unverified(),tabIndex:0,children:[(0,W.jsx)(aw,{...X.warning?{className:`z-tempo_2d_id-tpVtLR-styles-verified-display-0 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-warning-margin-inline-end-0 z-tempo_2d_id-tpVtLR-styles-verified-vertical-align-2 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.warning()}),`an unverified app`]})}),(0,W.jsx)(hD.Popup,{children:`Unverified app`})]}),` `,`access to your account.`]}):`Enter the code shown in your terminal.`;return e.status===`approved`?(0,W.jsx)(VE,{...X.column?{className:`z-tempo_2d_id-tpVtLR-styles-column-max-width-0 z-tempo_2d_id-tpVtLR-styles-column-w-1`}:X.column(),gap:`32`,children:(0,W.jsxs)(VE,{...X.header?{className:`z-tempo_2d_id-tpVtLR-styles-header-text-align-0`}:X.header(),align:`center`,gap:`8`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(t,{...X.title?{className:`z-tempo_2d_id-tpVtLR-styles-title-text-wrap-0 z-tempo_2d_id-tpVtLR-styles-title-font-family-1 z-tempo_2d_id-tpVtLR-styles-title-font-size-2 z-tempo_2d_id-tpVtLR-styles-title-font-weight-3 z-tempo_2d_id-tpVtLR-styles-title-letter-spacing-4 z-tempo_2d_id-tpVtLR-styles-title-line-height-5`}:X.title(),children:`Authorization successful`}),(0,W.jsxs)(Ow,{...X.success?{className:`z-tempo_2d_id-tpVtLR-styles-success-font-family-0 z-tempo_2d_id-tpVtLR-styles-success-font-size-1 z-tempo_2d_id-tpVtLR-styles-success-font-weight-2 z-tempo_2d_id-tpVtLR-styles-success-letter-spacing-3 z-tempo_2d_id-tpVtLR-styles-success-line-height-4`}:X.success(),"aria-live":`polite`,gap:`8`,justify:`center`,render:(0,W.jsx)(`p`,{}),role:`status`,children:[(0,W.jsx)(`span`,{...X.check?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-tpVtLRi z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-tpVtLRk z_tempo_2d_id-tpVtLRl z_tempo_2d_id-3w2jki7 z_tempo_2d_id-tpVtLRn z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-tpVtLRp`}:X.check(),children:(0,W.jsx)(GC,{})}),`You can close this tab.`]})]})}):(0,W.jsxs)(VE,{...X.column?{className:`z-tempo_2d_id-tpVtLR-styles-column-max-width-0 z-tempo_2d_id-tpVtLR-styles-column-w-1`}:X.column(),gap:`32`,children:[(0,W.jsxs)(VE,{...X.header?{className:`z-tempo_2d_id-tpVtLR-styles-header-text-align-0`}:X.header(),align:`center`,gap:`8`,render:(0,W.jsx)(`header`,{}),children:[e.request?(0,W.jsx)(Ew,{...X.avatar?{className:`z-tempo_2d_id-tpVtLR-styles-avatar-mb-0 z-tempo_2d_id-tpVtLR-styles-avatar-bg-1 z-tempo_2d_id-tpVtLR-styles-avatar-text-2`}:X.avatar(),"data-verified":!!r,children:r?(0,W.jsx)(zG,{}):(0,W.jsx)(aw,{})}):null,(0,W.jsx)(t,{...X.title?{className:`z-tempo_2d_id-tpVtLR-styles-title-text-wrap-0 z-tempo_2d_id-tpVtLR-styles-title-font-family-1 z-tempo_2d_id-tpVtLR-styles-title-font-size-2 z-tempo_2d_id-tpVtLR-styles-title-font-weight-3 z-tempo_2d_id-tpVtLR-styles-title-letter-spacing-4 z-tempo_2d_id-tpVtLR-styles-title-line-height-5`}:X.title(),children:`Authorize a device`}),(0,W.jsx)(`p`,{...X.description?{className:`z-tempo_2d_id-tpVtLR-styles-description-text-0 z-tempo_2d_id-tpVtLR-styles-description-text-1 z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr z-tempo_2d_id-tpVtLR-styles-description-font-family-2 z-tempo_2d_id-tpVtLR-styles-description-font-family-3 z-tempo_2d_id-tpVtLR-styles-description-font-size-4 z-tempo_2d_id-tpVtLR-styles-description-font-size-5 z-tempo_2d_id-tpVtLR-styles-description-font-weight-6 z-tempo_2d_id-tpVtLR-styles-description-font-weight-7 z-tempo_2d_id-tpVtLR-styles-description-letter-spacing-8 z-tempo_2d_id-tpVtLR-styles-description-letter-spacing-9 z-tempo_2d_id-tpVtLR-styles-description-line-height-10 z-tempo_2d_id-tpVtLR-styles-description-line-height-11`}:X.description(),children:a})]}),e.status===`denied`?null:e.request?(0,W.jsxs)(VE,{gap:`16`,children:[(0,W.jsx)(Aq,{"aria-label":`Code`,defaultValue:e.request.user_code,length:8,readOnly:!0,separator:4,size:`medium`},e.request.user_code),e.request.key_authorization?(0,W.jsx)(HK,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key_authorization}):null,e.request.challenge?(0,W.jsxs)(`div`,{...X.challenge?{className:`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4`}:X.challenge(),role:`note`,children:[(0,W.jsx)(`p`,{...X.challengeTitle?{className:`z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf z_tempo_2d_id-tpVtLRg`}:X.challengeTitle(),children:`This sign-in also signs a message`}),(0,W.jsx)(`p`,{...X.challengeText?{className:`z_tempo_2d_id-tpVtLR5 z_tempo_2d_id-tpVtLR6 z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR9 z_tempo_2d_id-tpVtLRa`}:X.challengeText(),children:`Approve only if you started this sign-in in your own terminal and expect this message.`}),(0,W.jsx)(`pre`,{...X.message?{className:`z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-tpVtLR10 z_tempo_2d_id-tpVtLR11 z_tempo_2d_id-tpVtLR12 z_tempo_2d_id-tpVtLR13 z_tempo_2d_id-tpVtLR14 z_tempo_2d_id-tpVtLR15`}:X.message(),children:e.request.challenge})]}):null,(0,W.jsxs)(`dl`,{...X.details?{className:`z_tempo_2d_id-tpVtLRx z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-tpVtLR4 z_tempo_2d_id-tpVtLR6 z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR9 z_tempo_2d_id-tpVtLRa`}:X.details(),children:[e.request.device?(0,W.jsxs)(Ow,{...X.row?{className:`z-tempo_2d_id-tpVtLR-styles-row-min-width-0 z-tempo_2d_id-tpVtLR-styles-row-overflow-wrap-1`}:X.row(),gap:`12`,children:[(0,W.jsx)(`dt`,{children:(0,W.jsx)(zG,{...X.icon?{className:`z-tempo_2d_id-tpVtLR-styles-icon-text-0 z-tempo_2d_id-tpVtLR-styles-icon-display-1 z-tempo_2d_id-tpVtLR-styles-icon-flex-shrink-2 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.icon(),"aria-label":`Device name`,role:`img`})}),(0,W.jsxs)(`dd`,{children:[(0,W.jsx)(`bdi`,{...X.device?{className:`z_tempo_2d_id-tpVtLRs z_tempo_2d_id-tpVtLRt z_tempo_2d_id-tpVtLRu z_tempo_2d_id-tpVtLRv z_tempo_2d_id-tpVtLRw`}:X.device(),children:e.request.device.slice(0,64)}),` `,(0,W.jsx)(`span`,{...X.source?{className:`z_tempo_2d_id-nr-Vm78`}:X.source(),children:`(as the device reports it)`})]})]}):null,e.request.location?(0,W.jsxs)(Ow,{...X.row?{className:`z-tempo_2d_id-tpVtLR-styles-row-min-width-0 z-tempo_2d_id-tpVtLR-styles-row-overflow-wrap-1`}:X.row(),gap:`12`,children:[(0,W.jsx)(`dt`,{children:(0,W.jsx)(BG,{...X.icon?{className:`z-tempo_2d_id-tpVtLR-styles-icon-text-0 z-tempo_2d_id-tpVtLR-styles-icon-display-1 z-tempo_2d_id-tpVtLR-styles-icon-flex-shrink-2 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.icon(),"aria-label":`Location`,role:`img`})}),(0,W.jsx)(`dd`,{children:e.request.location})]}):null,(0,W.jsxs)(Ow,{...X.row?{className:`z-tempo_2d_id-tpVtLR-styles-row-min-width-0 z-tempo_2d_id-tpVtLR-styles-row-overflow-wrap-1`}:X.row(),gap:`12`,children:[(0,W.jsx)(`dt`,{children:(0,W.jsx)(PG,{...X.icon?{className:`z-tempo_2d_id-tpVtLR-styles-icon-text-0 z-tempo_2d_id-tpVtLR-styles-icon-display-1 z-tempo_2d_id-tpVtLR-styles-icon-flex-shrink-2 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.icon(),"aria-label":`Requested`,role:`img`})}),(0,W.jsxs)(`dd`,{children:[Pq.format(e.request.created_at*1e3),` UTC`]})]}),e.request.ip?(0,W.jsxs)(Ow,{...X.row?{className:`z-tempo_2d_id-tpVtLR-styles-row-min-width-0 z-tempo_2d_id-tpVtLR-styles-row-overflow-wrap-1`}:X.row(),gap:`12`,children:[(0,W.jsx)(`dt`,{children:(0,W.jsx)(RG,{...X.icon?{className:`z-tempo_2d_id-tpVtLR-styles-icon-text-0 z-tempo_2d_id-tpVtLR-styles-icon-display-1 z-tempo_2d_id-tpVtLR-styles-icon-flex-shrink-2 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.icon(),"aria-label":`IP address`,role:`img`})}),(0,W.jsx)(`dd`,{children:e.request.ip})]}):null]}),(0,W.jsx)(bS,{disabled:e.denying||!!i,loading:e.approving,onClick:e.onApprove,children:`Approve`}),(0,W.jsx)(bS,{disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`text`,children:`Deny`}),e.email?(0,W.jsxs)(`p`,{...X.note?{className:`z-tempo_2d_id-tpVtLR-styles-note-text-0 z-tempo_2d_id-tpVtLR-styles-note-text-1 z_tempo_2d_id-tpVtLR16 z-tempo_2d_id-tpVtLR-styles-note-font-family-2 z-tempo_2d_id-tpVtLR-styles-note-font-family-3 z-tempo_2d_id-tpVtLR-styles-note-font-size-4 z-tempo_2d_id-tpVtLR-styles-note-font-size-5 z-tempo_2d_id-tpVtLR-styles-note-font-weight-6 z-tempo_2d_id-tpVtLR-styles-note-font-weight-7 z-tempo_2d_id-tpVtLR-styles-note-letter-spacing-8 z-tempo_2d_id-tpVtLR-styles-note-letter-spacing-9 z-tempo_2d_id-tpVtLR-styles-note-line-height-10 z-tempo_2d_id-tpVtLR-styles-note-line-height-11`}:X.note(),children:[`Signed in as `,(0,W.jsx)(`strong`,{children:e.email}),`.`]}):null]}):(0,W.jsxs)(VE,{gap:`32`,render:(0,W.jsx)(`form`,{onSubmit:e.onSubmitCode}),children:[(0,W.jsx)(Aq,{"aria-describedby":`${n}-error`,"aria-label":`Code shown in your terminal`,autoComplete:`off`,autoFocus:e.autoFocus,defaultValue:e.code,invalid:e.invalid,length:8,name:`code`,readOnly:e.fetching,required:!0,separator:4,size:`medium`}),(0,W.jsx)(bS,{loading:e.fetching,type:`submit`,children:`Continue`})]}),(()=>{let t=e.error??(i?Nq[i]:void 0);return t?(0,W.jsxs)(uw,{id:`${n}-error`,intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:t})]}):null})()]})}var Nq={foreign_account:`The terminal requests a key for a Tempo Account that you do not hold. Deny the request, and start the sign-in again in the terminal as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the terminal.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`},Pq=new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),X;(function(e){e.avatar=1,e.challenge=1,e.challengeText=1,e.challengeTitle=1,e.check=1,e.column=1,e.description=1,e.device=1,e.details=1,e.header=1,e.icon=1,e.message=1,e.note=1,e.row=1,e.source=1,e.success=1,e.title=1,e.unverified=1,e.verified=1,e.warning=1})(X||={});var Fq=class extends Error{name=`Page.CeremonyError`},Iq=qd(`/device`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(Lq,{...Iq.useLoaderData()}),loader:async e=>{let t=mG(),n=await rG(t.v1.auth.session.$get());if(!n.user){let{pathname:t,searchStr:n}=e.location,r=new URLSearchParams(n);r.delete(`chain`);let i=r.size>0?`${t}?${r}`:t;jG({href:`/login?${new URLSearchParams({return_to:i})}`})}let r=e.deps.code??e.deps.user_code??``,i=n.user.email;if(!r)return{code:r,email:i,error:null,request:null};try{return{code:r,email:i,error:null,request:(await rG(t.v1.device.requests[`:code`].$get({param:{code:encodeURIComponent(r)}}))).request}}catch(e){return{code:r,email:i,error:hG(e),request:null}}},loaderDeps:e=>({code:e.search.code,user_code:e.search.user_code}),validateSearch:e=>({...typeof e.code==`string`?{code:e.code}:{},...typeof e.user_code==`string`?{user_code:e.user_code}:{}})});function Lq(e){let t=_G(),n=Wu(),[r,i]=(0,U.useState)(!1),a=e.request?.user_code??e.code,o=e=>{gG(e)===`session_required`&&window.location.reload()},s=Dp({async mutationFn(){let n={...e.request?.key_authorization?.account?{account:e.request.key_authorization.account}:{},code:a},r=await rG(t.v1.device.approve.$post({json:n}));if(!(`step`in r))return r;let i=await kG({options:{publicKey:r.step.options.publicKey}}).catch(e=>{throw new Fq(`Passkey ceremony failed.`,{cause:e})}),o=await rG(t.v1.device.approve.$post({json:{...n,passkey:{assertion:i}}}));if(`step`in o)throw Error(`The approval requested a second passkey step.`);return o},onError:o}),c=Dp({mutationFn:()=>rG(t.v1.device.deny.$post({json:{code:a}})),onError:o}),l=(()=>{if(s.isSuccess)return`approved`;if(c.isSuccess)return`denied`;let t=e.request?.status;return t===`pending`?void 0:t})(),u=(()=>{if(e.error)return e.error;if(s.error&&gG(s.error)!==`webauthn_required`)return Rq(s.error);if(c.error)return hG(c.error)})();function d(e){e.preventDefault();let t=String(new FormData(e.currentTarget).get(`code`));i(!0),n.navigate({search:{code:t},to:`/device`}).finally(()=>i(!1))}return(0,W.jsx)(`main`,{...Bq.page?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-uIQs5D3 z_tempo_2d_id-uIQs5D4`}:Bq.page(),children:(0,W.jsx)(Mq,{approving:s.isPending,autoFocus:!0,code:e.code,denying:c.isPending,email:e.email,error:u,fetching:r,invalid:!!e.error,onApprove:()=>s.mutate(),onDeny:()=>c.mutate(),onSubmitCode:d,refusal:gG(s.error)===`webauthn_required`?`passkey`:void 0,request:e.request??void 0,status:l})})}function Rq(e){return gG(e)===`webauthn_rejected`?`Your passkey did not sign the approval. Approve again, or deny the request.`:e instanceof Fq?zq(e).includes(`NotAllowedError`)?`The passkey request was canceled. Approve again, or deny the request.`:`Your passkey did not sign the approval. Approve again, or deny the request.`:hG(e)}function zq(e){return e instanceof Error?[e.name,...zq(e.cause)]:[]}var Bq;(function(e){e.page=1})(Bq||={});var Vq=qd(`/error`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(Hq,{...Vq.useLoaderData()}),loader:e=>({reason:Uq.get(e.deps.error??``)??`request`}),loaderDeps:e=>({error:e.search.error}),validateSearch:e=>({error:typeof e.error==`string`?e.error:void 0})});function Hq(e){return(0,W.jsx)(`main`,{...Wq.page?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-K_94u73 z_tempo_2d_id-K_94u74`}:Wq.page(),children:(0,W.jsx)(QK,{reason:e.reason})})}var Uq=new Map([[`client_disabled`,`client`],[`invalid_callback_request`,`sign_in`],[`invalid_client`,`client`],[`invalid_redirect`,`redirect`],[`invalid_redirect_uri`,`redirect`],[`state_invalid`,`sign_in`],[`state_mismatch`,`sign_in`],[`state_not_found`,`sign_in`]]),Wq;(function(e){e.page=1})(Wq||={});var Gq=(0,U.forwardRef)(({title:e,titleId:t,...n},r)=>(0,W.jsxs)(`svg`,{viewBox:`0 0 256 262`,width:`0.98em`,height:`1em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,W.jsx)(`title`,{id:t,children:e}):null,(0,W.jsx)(`path`,{fill:`#4285f4`,d:`M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622l38.755 30.023l2.685.268c24.659-22.774 38.875-56.282 38.875-96.027`}),(0,W.jsx)(`path`,{fill:`#34a853`,d:`M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055c-34.523 0-63.824-22.773-74.269-54.25l-1.531.13l-40.298 31.187l-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1`}),(0,W.jsx)(`path`,{fill:`#fbbc05`,d:`M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82c0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602z`}),(0,W.jsx)(`path`,{fill:`#eb4335`,d:`M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0C79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251`})]}));function Z(e){let t=e.heading??`h1`,{email:n}=e,r=(0,U.useId)();return(0,W.jsxs)(VE,{...Kq.column?{className:`z-tempo_2d_id-gSRY5u-styles-column-max-width-0 z-tempo_2d_id-gSRY5u-styles-column-w-1`}:Kq.column(),gap:`32`,children:[(0,W.jsxs)(VE,{...Kq.header?{className:`z-tempo_2d_id-gSRY5u-styles-header-text-align-0`}:Kq.header(),gap:`8`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(t,{...Kq.title?{className:`z-tempo_2d_id-gSRY5u-styles-title-text-wrap-0 z-tempo_2d_id-gSRY5u-styles-title-font-family-1 z-tempo_2d_id-gSRY5u-styles-title-font-size-2 z-tempo_2d_id-gSRY5u-styles-title-font-weight-3 z-tempo_2d_id-gSRY5u-styles-title-letter-spacing-4 z-tempo_2d_id-gSRY5u-styles-title-line-height-5`}:Kq.title(),children:n?`Check your email`:e.linking?`Verify your email`:`Sign in to Tempo`}),(()=>{if(n)return(0,W.jsxs)(`p`,{...Kq.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u1 z-tempo_2d_id-gSRY5u-styles-description-font-family-2 z-tempo_2d_id-gSRY5u-styles-description-font-family-3 z-tempo_2d_id-gSRY5u-styles-description-font-size-4 z-tempo_2d_id-gSRY5u-styles-description-font-size-5 z-tempo_2d_id-gSRY5u-styles-description-font-weight-6 z-tempo_2d_id-gSRY5u-styles-description-font-weight-7 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-8 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-9 z-tempo_2d_id-gSRY5u-styles-description-line-height-10 z-tempo_2d_id-gSRY5u-styles-description-line-height-11`}:Kq.description(),children:[`Enter the 6-digit code sent to `,(0,W.jsx)(`strong`,{children:n}),`.`,e.linking?` Your passkey then confirms the sign-in.`:null]});if(e.linking)return(0,W.jsx)(`p`,{...Kq.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u1 z-tempo_2d_id-gSRY5u-styles-description-font-family-2 z-tempo_2d_id-gSRY5u-styles-description-font-family-3 z-tempo_2d_id-gSRY5u-styles-description-font-size-4 z-tempo_2d_id-gSRY5u-styles-description-font-size-5 z-tempo_2d_id-gSRY5u-styles-description-font-weight-6 z-tempo_2d_id-gSRY5u-styles-description-font-weight-7 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-8 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-9 z-tempo_2d_id-gSRY5u-styles-description-line-height-10 z-tempo_2d_id-gSRY5u-styles-description-line-height-11`}:Kq.description(),children:`Enter your email to finish signing in with your passkey.`});if(!e.request)return e.device?(0,W.jsx)(`p`,{...Kq.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u1 z-tempo_2d_id-gSRY5u-styles-description-font-family-2 z-tempo_2d_id-gSRY5u-styles-description-font-family-3 z-tempo_2d_id-gSRY5u-styles-description-font-size-4 z-tempo_2d_id-gSRY5u-styles-description-font-size-5 z-tempo_2d_id-gSRY5u-styles-description-font-weight-6 z-tempo_2d_id-gSRY5u-styles-description-font-weight-7 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-8 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-9 z-tempo_2d_id-gSRY5u-styles-description-line-height-10 z-tempo_2d_id-gSRY5u-styles-description-line-height-11`}:Kq.description(),children:`Sign in to approve a device.`}):null;let{host:t}=e.request,r=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`span`,{...Kq.app?{className:`z_tempo_2d_id-3w2jki4`}:Kq.app(),children:[e.request.verified?(0,W.jsx)(`strong`,{children:e.request.app}):(0,W.jsx)(`bdi`,{children:e.request.app}),e.request.verified?(0,W.jsxs)(W.Fragment,{children:[` `,(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(NG,{...Kq.badge?{className:`z-tempo_2d_id-gSRY5u-styles-badge-display-0 z-tempo_2d_id-gSRY5u-styles-badge-h-1 z-tempo_2d_id-gSRY5u-styles-badge-outline-2 z-tempo_2d_id-gSRY5u-styles-badge-vertical-align-3 z-tempo_2d_id-gSRY5u-styles-badge-w-4 z-tempo_2d_id-gSRY5u-styles-badge-outline-5 z-tempo_2d_id-gSRY5u-styles-badge-outline-color-6 z-tempo_2d_id-gSRY5u-styles-badge-outline-offset-7`}:Kq.badge(),"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,W.jsx)(hD.Popup,{children:`Verified app`})]})]}):null]}),t&&t!==e.request.app?` (${t})`:null]});return e.request.key?(0,W.jsxs)(`p`,{...Kq.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u1 z-tempo_2d_id-gSRY5u-styles-description-font-family-2 z-tempo_2d_id-gSRY5u-styles-description-font-family-3 z-tempo_2d_id-gSRY5u-styles-description-font-size-4 z-tempo_2d_id-gSRY5u-styles-description-font-size-5 z-tempo_2d_id-gSRY5u-styles-description-font-weight-6 z-tempo_2d_id-gSRY5u-styles-description-font-weight-7 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-8 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-9 z-tempo_2d_id-gSRY5u-styles-description-line-height-10 z-tempo_2d_id-gSRY5u-styles-description-line-height-11`}:Kq.description(),children:[`Continue to let `,r,` use your Tempo Account.`]}):(0,W.jsxs)(`p`,{...Kq.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u1 z-tempo_2d_id-gSRY5u-styles-description-font-family-2 z-tempo_2d_id-gSRY5u-styles-description-font-family-3 z-tempo_2d_id-gSRY5u-styles-description-font-size-4 z-tempo_2d_id-gSRY5u-styles-description-font-size-5 z-tempo_2d_id-gSRY5u-styles-description-font-weight-6 z-tempo_2d_id-gSRY5u-styles-description-font-weight-7 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-8 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-9 z-tempo_2d_id-gSRY5u-styles-description-line-height-10 z-tempo_2d_id-gSRY5u-styles-description-line-height-11`}:Kq.description(),children:[`Sign in to continue to `,r,`.`]})})()]}),e.request?.key&&!n&&!e.linking?(0,W.jsx)(HK,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key}):null,n?(0,W.jsxs)(VE,{gap:`24`,render:(0,W.jsx)(`form`,{method:`post`,onSubmit:e.onSubmitCode}),children:[(0,W.jsx)(Aq,{"aria-describedby":`${r}-error`,"aria-label":`Code`,autoFocus:e.autoFocus,autoSubmit:!0,characters:`digits`,invalid:e.invalid,length:6,name:`code`,readOnly:e.verifying||e.verified,required:!0,size:`large`,success:e.verified}),e.error?(0,W.jsxs)(uw,{id:`${r}-error`,intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):null,(0,W.jsxs)(VE,{align:`center`,gap:`4`,children:[(0,W.jsx)(bS,{disabled:e.resend!==`idle`||e.verifying||e.verified,onClick:e.onResend,variant:`text`,children:e.resend===`pending`?`Sending…`:e.resend===`sent`?`Code sent`:`Resend code`}),(0,W.jsx)(bS,{disabled:e.verifying||e.verified,onClick:e.onChangeEmail,variant:`text`,children:`Use a different email`}),(0,W.jsx)(`p`,{...Kq.status?{className:`z_tempo_2d_id-3w2jki0 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jki2 z_tempo_2d_id-3w2jki3 z_tempo_2d_id-3w2jki4 z_tempo_2d_id-3w2jki5`}:Kq.status(),"aria-live":`polite`,role:`status`,children:(()=>{if(e.resend===`pending`)return`Sending a new code.`;if(e.resend===`sent`)return`A new code was sent to ${n}.`})()})]})]}):(0,W.jsxs)(VE,{gap:`12`,children:[(0,W.jsxs)(VE,{gap:`12`,render:(0,W.jsx)(`form`,{method:`post`,onSubmit:e.onSubmitEmail}),children:[(0,W.jsx)(JS.Group,{invalid:e.invalid,size:`medium`,children:(0,W.jsx)(JS.Control,{"aria-describedby":`${r}-error`,"aria-label":`Email`,autoComplete:`email`,"data-1p-ignore":!0,id:`${r}-email`,name:`email`,placeholder:`Email address`,required:!0,type:`email`})}),e.error?(0,W.jsxs)(uw,{id:`${r}-error`,intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):null,(0,W.jsx)(bS,{size:`medium`,disabled:e.passkeyPending,loading:e.sending,type:`submit`,children:`Continue with email`})]}),!e.linking&&(e.onGoogle||e.onPasskey)?(0,W.jsx)(zE,{...Kq.rule?{className:`z-tempo_2d_id-gSRY5u-styles-rule-margin-block-0`}:Kq.rule()}):null,e.onGoogle&&!e.linking?(0,W.jsxs)(bS,{size:`medium`,disabled:e.sending||e.passkeyPending,onClick:e.onGoogle,variant:`secondary`,children:[(0,W.jsx)(Gq,{"aria-hidden":!0}),`Continue with Google`]}):null,e.onPasskey&&!e.linking?(0,W.jsxs)(bS,{size:`medium`,disabled:e.sending,loading:e.passkeyPending,onClick:e.onPasskey,variant:`secondary`,children:[(0,W.jsx)(LG,{}),`Continue with passkey`]}):null,e.linking&&e.onStartOver?(0,W.jsx)(bS,{...Kq.startOver?{className:`z-tempo_2d_id-gSRY5u-styles-startOver-align-self-0`}:Kq.startOver(),onClick:e.onStartOver,variant:`text`,children:`Start over`}):null]})]})}var Kq;(function(e){e.app=1,e.badge=1,e.column=1,e.description=1,e.header=1,e.rule=1,e.startOver=1,e.status=1,e.title=1})(Kq||={});var qq=class extends Error{name=`Page.CeremonyError`},Jq=qd(`/login`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(Yq,{...Jq.useLoaderData()}),loader:async e=>{let t=new URLSearchParams(e.location.searchStr),n=t.has(`sig`),r=t.get(`return_to`),i=mG(),[a,o]=await Promise.all([rG(i.v1.auth.session.$get()),rG(i.v1.auth.methods.$get({query:{...n?{oauth_query:t.toString()}:{},...r?{return_to:r}:{}}}))]);return a.user&&!n&&jG({href:o.return_to??`/`}),{failed:o.google&&t.get(`error`)===`access_denied`,google:o.google,passkeys:o.passkeys,request:o.app?{app:o.app,host:o.host,key:o.request?.key??null,verified:o.verified}:null,returnTo:o.return_to,userCode:o.user_code}},loaderDeps:e=>({search:e.search})});function Yq(e){let t=_G(),n=Wu(),[r,i]=(0,U.useState)(void 0),a=Dp({async mutationFn(e){let n=e.assertion??await u({});return rG(t.v1.auth.passkey.verify.$post({json:{assertion:n,...tJ()}}))}}),o=Dp({mutationFn:d}),s=Dp({mutationFn:d});(0,U.useEffect)(()=>{if(!o.isSuccess)return;let e=window.setTimeout(()=>o.reset(),Xq);return()=>window.clearTimeout(e)},[o.isSuccess,o.reset]);let c=Dp({async mutationFn(e){let n=r?{assertion:await u({link:r}),link:r}:{};return rG(t.v1.auth.code.verify.$post({json:{...e,...n,...tJ()}}))}}),l=s.isSuccess?s.variables.email:void 0;async function u(n){let{link:r}=n,{allowCredentials:i,...a}=(await rG(t.v1.auth.passkey.options.$post({json:{...r?{link:r}:{},...tJ(),...e.userCode?{user_code:e.userCode}:{}}}))).options.publicKey;try{return await kG({getFn:e=>navigator.credentials.get(e),options:{publicKey:{...a,...i?{allowCredentials:i}:{}}}})}catch(e){throw new qq(`Passkey ceremony failed.`,{cause:e})}}function d(e){return rG(t.v1.auth.code.$post({json:e}))}function f(e){e.preventDefault(),!(s.isPending||a.isPending)&&(a.reset(),s.mutate({email:String(new FormData(e.currentTarget).get(`email`))}))}function p(e){if(e.preventDefault(),!l||c.isPending||c.isSuccess)return;let t=e.currentTarget;o.reset(),c.mutate({code:String(new FormData(t).get(`code`)),email:l},{onError(e){Qq(e)&&i(void 0);let n=t.elements.namedItem(`code`);n instanceof HTMLInputElement&&(n.value=``,n.focus())},onSuccess(e){window.setTimeout(()=>m(e),Zq)}})}function m(t){t.redirect?window.location.assign(t.redirect):e.returnTo?window.location.assign(e.returnTo):n.navigate({to:`/`})}function h(){let e=new URL(window.location.href);e.searchParams.delete(`error`);let t=new URL(`/v1/auth/oauth/google`,window.location.origin);t.searchParams.set(`return_to`,e.pathname+e.search);let{oauth_query:n}=tJ();n&&t.searchParams.set(`oauth_query`,n),window.location.assign(t)}function g(){a.isPending||(s.reset(),a.mutate({},{onSuccess:_}))}function _(e){`step`in e?i(e.step.link):m({redirect:e.redirect})}function v(){!l||c.isPending||c.isSuccess||(c.reset(),o.mutate({email:l}))}function y(){a.reset(),o.reset(),s.reset(),i(void 0),c.reset()}function b(){a.reset(),s.reset(),i(void 0)}let x=l?c.error??o.error:s.error??a.error,S=e.failed&&s.isIdle&&a.isIdle;return(0,W.jsx)(`main`,{...nJ.page?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-0xm92Y3 z_tempo_2d_id-0xm92Y4`}:nJ.page(),children:(0,W.jsx)(Z,{autoFocus:!0,device:!!e.returnTo,email:l,error:(()=>{if(x)return $q(x,{code:!!l});if(S)return`Sign-in with Google failed. Try again, or continue with email.`})(),invalid:!!(l?c.error:s.error),linking:!!r,onChangeEmail:y,onGoogle:e.google?h:void 0,onPasskey:e.passkeys?g:void 0,onResend:v,onStartOver:b,onSubmitCode:p,onSubmitEmail:f,passkeyPending:a.isPending,request:e.request??void 0,resend:o.isPending?`pending`:o.isSuccess?`sent`:`idle`,sending:s.isPending,verified:c.isSuccess,verifying:c.isPending})})}var Xq=5e3,Zq=500;function Qq(e){if(e instanceof qq)return!0;let t=gG(e);return t===`passkey_link_expired`||t===`passkey_not_permitted`||t===`webauthn_rejected`}function $q(e,t){return t.code&&(e instanceof qq||gG(e)===`webauthn_rejected`)?`Your passkey did not confirm the sign-in. Enter the code again to sign in with email only.`:e instanceof qq?eJ(e).includes(`NotAllowedError`)?`Passkey sign-in was canceled. Try again, or continue with email.`:`Passkey sign-in failed. Try again, or continue with email.`:hG(e)}function eJ(e){return e instanceof Error?[e.name,...eJ(e.cause)]:[]}function tJ(){let e=new URLSearchParams(window.location.search);return e.has(`sig`)?(e.delete(`error`),{oauth_query:e.toString()}):{}}var nJ;(function(e){e.page=1})(nJ||={});var rJ=qd(`/_/flows`)({codeSplitGroupings:[],component:iJ});function iJ(){return(0,W.jsxs)(`main`,{...$.canvas?{className:`z_tempo_2d_id-cvNCQ9q z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ91a z_tempo_2d_id-cvNCQ91b z_tempo_2d_id-cvNCQ91c z-tempo_2d_id-cvNCQ9-styles-canvas-p-0 z-tempo_2d_id-cvNCQ9-styles-canvas-p-1 z_tempo_2d_id-cvNCQ91d`}:$.canvas(),children:[(0,W.jsxs)(`header`,{...$.intro?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ9o z-tempo_2d_id-cvNCQ9-styles-intro-left-0 z-tempo_2d_id-cvNCQ9-styles-intro-left-1 z_tempo_2d_id-cvNCQ91l z_tempo_2d_id-cvNCQ91m`}:$.intro(),children:[(0,W.jsx)(`h1`,{...$.title?{className:`z_tempo_2d_id-cvNCQ911 z_tempo_2d_id-cvNCQ912 z_tempo_2d_id-cvNCQ913 z_tempo_2d_id-cvNCQ914 z_tempo_2d_id-cvNCQ915`}:$.title(),children:`Flows`}),(0,W.jsx)(`p`,{...$.lede?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-cvNCQ9a z_tempo_2d_id-cvNCQ9b z_tempo_2d_id-cvNCQ9c z_tempo_2d_id-cvNCQ9d z_tempo_2d_id-cvNCQ9e`}:$.lede(),children:`Every path through Tempo ID, from the entry point on the left to the exit on the right. Each arrow names the request or event that leads to the next step. Scroll to pan.`})]}),FJ().map(e=>(0,U.createElement)(`section`,{...$.section?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ928`}:$.section(),key:e.title},(0,W.jsx)(`h2`,{...$.sectionTitle?{className:`z_tempo_2d_id-cvNCQ929 z_tempo_2d_id-cvNCQ92a z_tempo_2d_id-cvNCQ92b z_tempo_2d_id-cvNCQ92c z_tempo_2d_id-cvNCQ92d z_tempo_2d_id-cvNCQ92e z_tempo_2d_id-cvNCQ92f`}:$.sectionTitle(),children:e.title}),e.flows.map(e=>(0,U.createElement)(`article`,{...$.flow?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ9h`}:$.flow(),key:e.title},(0,W.jsxs)(`header`,{...$.flowHeader?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ91k z-tempo_2d_id-cvNCQ9-styles-flowHeader-left-0 z-tempo_2d_id-cvNCQ9-styles-flowHeader-left-1 z_tempo_2d_id-cvNCQ91l z_tempo_2d_id-cvNCQ91m`}:$.flowHeader(),children:[(0,W.jsx)(`h3`,{...$.flowTitle?{className:`z_tempo_2d_id-cvNCQ91n z_tempo_2d_id-cvNCQ91o z_tempo_2d_id-cvNCQ91p z_tempo_2d_id-cvNCQ91q z_tempo_2d_id-cvNCQ91r`}:$.flowTitle(),children:e.title}),(0,W.jsx)(`p`,{...$.flowDescription?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-cvNCQ9i z_tempo_2d_id-cvNCQ9j z_tempo_2d_id-cvNCQ9k z_tempo_2d_id-cvNCQ9l z_tempo_2d_id-cvNCQ9m`}:$.flowDescription(),children:(0,W.jsx)(aJ,{text:e.description})})]}),(0,W.jsx)(`ol`,{...$.row?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-cvNCQ926 z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-cvNCQ927`}:$.row(),children:e.nodes.map((t,n)=>(0,U.createElement)(`li`,{...$.step?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74`}:$.step(),key:`${n}:${t.name}`},n>0?(0,W.jsx)(oJ,{label:t.edge}):null,t.screen?(0,W.jsxs)(`figure`,{...$.artboard?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ9o z_tempo_2d_id-nr-Vm7g`}:$.artboard(),children:[(0,W.jsx)(`figcaption`,{...$.frameLabel?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d z_tempo_2d_id-nr-Vm7e`}:$.frameLabel(),children:t.owner===`app`?`App · ${t.name}`:t.name}),t.owner===`app`?(0,W.jsx)(`div`,{...bG({set:`thirdParty`}),children:(0,W.jsx)(`div`,{...$.frame?{className:`z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-cvNCQ91t z_tempo_2d_id-cvNCQ91u z_tempo_2d_id-cvNCQ91v z_tempo_2d_id-cvNCQ91w`}:$.frame(),children:t.screen})}):(0,W.jsx)(`div`,{...$.frame?{className:`z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-cvNCQ91t z_tempo_2d_id-cvNCQ91u z_tempo_2d_id-cvNCQ91v z_tempo_2d_id-cvNCQ91w`}:$.frame(),children:t.screen})]}):(0,W.jsx)(sJ,{detail:t.detail,kind:n===0?`Entry`:n===e.nodes.length-1?`Exit`:`External`,name:t.name})))})))))]})}function aJ(e){return e.text.split("`").map((e,t)=>t%2?(0,U.createElement)(`code`,{...$.code?{className:`z_tempo_2d_id-cvNCQ95 z_tempo_2d_id-cvNCQ96 z_tempo_2d_id-cvNCQ97 z_tempo_2d_id-cvNCQ98 z_tempo_2d_id-cvNCQ99`}:$.code(),key:t},e):e)}function oJ(e){return(0,W.jsxs)(`span`,{...$.arrow?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-3w2jki7 z_tempo_2d_id-cvNCQ9o z_tempo_2d_id-cvNCQ917 z_tempo_2d_id-cvNCQ918 z_tempo_2d_id-cvNCQ919`}:$.arrow(),"aria-label":e.label??`Then`,role:`img`,children:[(0,W.jsx)(`span`,{...$.edge?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-cvNCQ91e z_tempo_2d_id-cvNCQ95 z_tempo_2d_id-cvNCQ96 z_tempo_2d_id-cvNCQ97 z_tempo_2d_id-cvNCQ98 z_tempo_2d_id-cvNCQ99`}:$.edge(),children:e.label}),(0,W.jsxs)(`span`,{...$.shaft?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-cvNCQ9v`}:$.shaft(),children:[(0,W.jsx)(`span`,{...$.line?{className:`z_tempo_2d_id-cvNCQ923 z_tempo_2d_id-cvNCQ924 z_tempo_2d_id-3w2jki1`}:$.line()}),(0,W.jsx)(rw,{...$.head?{className:`z-tempo_2d_id-cvNCQ9-styles-head-text-0 z-tempo_2d_id-cvNCQ9-styles-external-flex-shrink-5 z-tempo_2d_id-cvNCQ9-styles-head-h-1 z-tempo_2d_id-cvNCQ9-styles-head-w-2`}:$.head()})]})]})}function sJ(e){return(0,W.jsxs)(`div`,{...$.external({kind:e.kind}),children:[(0,W.jsx)(`span`,{...$.kind?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-cvNCQ922 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d z_tempo_2d_id-nr-Vm7e`}:$.kind(),children:e.kind}),(0,W.jsx)(`span`,{...$.externalName?{className:`z_tempo_2d_id-cvNCQ91f z_tempo_2d_id-cvNCQ91g z_tempo_2d_id-cvNCQ91h z_tempo_2d_id-cvNCQ91i z_tempo_2d_id-cvNCQ91j`}:$.externalName(),children:e.name}),e.detail?(0,W.jsx)(`code`,{...$.detail?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-cvNCQ95 z_tempo_2d_id-cvNCQ96 z_tempo_2d_id-cvNCQ97 z_tempo_2d_id-cvNCQ98 z_tempo_2d_id-cvNCQ99`}:$.detail(),children:e.detail}):null]})}function cJ(e){return(0,W.jsxs)(`div`,{...$.app?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ91`}:$.app(),children:[(0,W.jsxs)(`header`,{...$.appHeader?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ9o z_tempo_2d_id-cvNCQ9p`}:$.appHeader(),children:[(0,W.jsx)(`h4`,{...$.appTitle?{className:`z_tempo_2d_id-cvNCQ911 z_tempo_2d_id-cvNCQ912 z_tempo_2d_id-cvNCQ913 z_tempo_2d_id-cvNCQ914 z_tempo_2d_id-cvNCQ915`}:$.appTitle(),children:e.title}),e.description?(0,W.jsx)(`p`,{...$.appDescription?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-cvNCQ9a z_tempo_2d_id-cvNCQ9b z_tempo_2d_id-cvNCQ9c z_tempo_2d_id-cvNCQ9d z_tempo_2d_id-cvNCQ9e`}:$.appDescription(),children:e.description}):null]}),e.children]})}function lJ(e){return(0,W.jsx)(`button`,{...$.appButton({tone:e.tone}),type:`button`,children:e.children})}function uJ(){return(0,W.jsxs)(`label`,{...$.appField?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ9o`}:$.appField(),children:[(0,W.jsx)(`span`,{...$.appLabel?{className:`z_tempo_2d_id-cvNCQ9w z_tempo_2d_id-cvNCQ9x z_tempo_2d_id-cvNCQ9y z_tempo_2d_id-cvNCQ9z z_tempo_2d_id-cvNCQ910`}:$.appLabel(),children:`Email`}),(0,W.jsx)(`input`,{...$.appInput?{className:`z_tempo_2d_id-cvNCQ9q z_tempo_2d_id-cvNCQ9r z_tempo_2d_id-cvNCQ9s z_tempo_2d_id-cvNCQ9t z_tempo_2d_id-cvNCQ9u z_tempo_2d_id-cvNCQ9a z_tempo_2d_id-cvNCQ9b z_tempo_2d_id-cvNCQ9c z_tempo_2d_id-cvNCQ9d z_tempo_2d_id-cvNCQ9e z_tempo_2d_id-cvNCQ9v`}:$.appInput(),placeholder:`Required`,readOnly:!0})]})}function dJ(){return(0,W.jsxs)(cJ,{title:`Sign in or sign up`,children:[(0,W.jsx)(lJ,{tone:`google`,children:`Continue with Google`}),(0,W.jsx)(lJ,{tone:`quiet`,children:`Continue with passkey`}),(0,W.jsx)(`p`,{...$.appDivider?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-cvNCQ9h z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-cvNCQ9i z_tempo_2d_id-cvNCQ9j z_tempo_2d_id-cvNCQ9k z_tempo_2d_id-cvNCQ9l z_tempo_2d_id-cvNCQ9m z_tempo_2d_id-3w2jki4 z-tempo_2d_id-cvNCQ9-styles-appDivider-bg-0 z-tempo_2d_id-cvNCQ9-styles-appDivider-content-1 z-tempo_2d_id-cvNCQ9-styles-appDivider-flex-grow-2 z-tempo_2d_id-cvNCQ9-styles-appDivider-h-3`}:$.appDivider(),children:`or continue with email`}),(0,W.jsx)(uJ,{}),(0,W.jsx)(lJ,{tone:`brand`,children:`Continue`})]})}function fJ(){return(0,W.jsxs)(cJ,{description:`Sign in with your email to link this passkey.`,title:`Add your email`,children:[(0,W.jsx)(uJ,{}),(0,W.jsx)(lJ,{tone:`brand`,children:`Continue`})]})}function pJ(){return(0,W.jsxs)(cJ,{description:`Enter the 6-digit code sent to ${vJ}.`,title:`Check your email`,children:[(0,W.jsx)(Aq,{"aria-label":`Code`,length:6,readOnly:!0}),(0,W.jsx)(lJ,{tone:`brand`,children:`Verify`})]})}function mJ(){return(0,W.jsxs)(cJ,{description:vJ,title:`You're signed in`,children:[(0,W.jsx)(`p`,{...$.appAddress?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-cvNCQ95 z_tempo_2d_id-cvNCQ96 z_tempo_2d_id-cvNCQ97 z_tempo_2d_id-cvNCQ98 z_tempo_2d_id-cvNCQ99`}:$.appAddress(),children:_J[0].address}),(0,W.jsx)(lJ,{tone:`quiet`,children:`Sign out`})]})}function hJ(){}function gJ(e){e.preventDefault()}var _J=[{address:`0x1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9f3c`,balance:{amount:`1250.5`,currency:`USD`},owner:`privy`,realm:null},{address:`0x7c4d2e9a1b3f5c7d9e0a2b4c6d8e0f1a3b5c21ab`,balance:{amount:`42`,currency:`USD`},owner:`webAuthn`,realm:null}],vJ=`user@example.com`,yJ=`An upstream service is unavailable. Retry later.`;function bJ(){return{expiry:Math.floor(Date.now()/1e3)+604800,limits:[{amount:`100`,currency:`USD`,period:86400,tokens:[{amount:`100`,symbol:`pathUSD`}]}]}}function xJ(){return{app:`Tempo Wallet`,approving:!1,denying:!1,destination:`wallet.tempo.xyz`,email:vJ,heading:`h4`,keyAuthorization:bJ(),onApprove:hJ,onDeny:hJ,verified:!0}}function SJ(){return{app:`Tempo Wallet`,key:bJ(),verified:!0}}function CJ(){return{app:`Tempo Wallet`,key:null,verified:!0}}function wJ(){return{address:_J[0].address,owner:_J[0].owner}}var TJ={detail:`GET /authorize?…&key_authorization`,name:`Web app`};function EJ(){return{accounts:[_J[0]],email:vJ,heading:`h4`,onAddPasskey:hJ,onSignOut:hJ,signingOut:!1}}function DJ(){return{accounts:_J,app:`Tempo Wallet`,heading:`h4`,onChoose:hJ}}function OJ(){return{approving:!1,code:``,denying:!1,email:vJ,fetching:!1,heading:`h4`,invalid:!1,onApprove:hJ,onDeny:hJ,onSubmitCode:gJ}}function kJ(){return{app:{name:`Tempo CLI`},created_at:Math.floor(Date.now()/1e3),device:`ada-macbook`,ip:`203.0.113.7`,key_authorization:bJ(),location:`San Francisco, US`,user_code:`BDWP-HQPK`}}var AJ={detail:`POST /v1/device/authorize with key_authorization`,name:`tempo-id login`},jJ={detail:`Tokens and key_authorization, stored in ~/.tempo/id/credentials.json. A replaced session’s refresh token goes to POST /oauth2/revoke.`,edge:`POST /v1/device/token: authorization_pending, then tokens`,name:`tempo-id login`};function Q(){return{heading:`h4`,invalid:!1,onChangeEmail:hJ,onGoogle:hJ,onPasskey:hJ,onResend:hJ,onStartOver:hJ,onSubmitCode:gJ,onSubmitEmail:gJ,resend:`idle`,sending:!1,verifying:!1}}var MJ={detail:`GET /authorize?client_id&redirect_uri&code_challenge&state`,name:`Web app`},NJ=`GET /v1/auth/session: no user, GET /v1/auth/providers`,PJ={detail:`Access, ID, and refresh tokens`,edge:`POST /oauth2/token with code_verifier`,name:`Web app`};function FJ(){return[{flows:[{description:`A visitor opens Tempo ID without a session and signs in with an emailed code. An accepted code shows green for 500 ms before the sign-in continues.`,nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{edge:`302 /login`,name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify: 200`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{edge:`after 500 ms, redirect: null`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Email code`},{description:`A passkey of the realm signs the user in with one prompt, from the button.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{detail:`POST /v1/auth/passkey/options`,edge:`Sign in with a passkey`,name:`Authenticator prompt`},{edge:`POST /v1/auth/passkey/verify`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Passkey`},{description:`A wallet.tempo passkey without an email verifies one with a code. The passkey signs again with the code, which links it to the user.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{detail:`POST /v1/auth/passkey/options`,edge:`Sign in with a passkey`,name:`Authenticator prompt`},{edge:`POST /v1/auth/passkey/verify: step email`,name:`Sign in (link passkey)`,screen:(0,W.jsx)(Z,{...Q(),linking:!0})},{edge:`POST /v1/auth/code`,name:`Check your email (link passkey)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,linking:!0})},{detail:`POST /v1/auth/passkey/options with link and authorize`,edge:`Code complete`,name:`Authenticator prompt`},{edge:`POST /v1/auth/code/verify with link and assertion: 200`,name:`Check your email (link accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,linking:!0,verified:!0})},{edge:`after 500 ms, redirect: null`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Passkey without an email`},{description:`Start over on the email step drops the passkey’s link and a pending code request, so the passkey stays unlinked.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Sign in with a passkey, POST /v1/auth/passkey/verify: step email`,name:`Sign in (link passkey)`,screen:(0,W.jsx)(Z,{...Q(),linking:!0})},{edge:`Start over`,name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})}],title:`Passkey link, started over`},{description:`Google signs the user in, and its callback returns to the sign-in page, which sends a signed-in user on.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{edge:`GET /v1/auth/oauth/google?return_to=/login`,name:`Google`},{edge:`GET /callback/google, 302 /login, 302 /`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Google`},{description:"A Google sign-in that fails returns to the sign-in page with `error=access_denied`, whatever the cause.",nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{edge:`GET /v1/auth/oauth/google?return_to=/login`,name:`Google`},{edge:`GET /callback/google, 302 /v1/auth/oauth/google/failed, 302 /login?error=access_denied`,name:`Sign in (Google failed)`,screen:(0,W.jsx)(Z,{...Q(),error:`Sign-in with Google failed. Try again, or continue with email.`})}],title:`Google, failed`},{description:`A Google callback without its state in this browser, such as one that started in another browser, shows the error page. The page links to sign-in.`,nodes:[{detail:`GET /callback/google (no state)`,name:`Browser`},{edge:`302 /error?error=state_mismatch`,name:`This sign-in did not finish`,screen:(0,W.jsx)(QK,{heading:`h4`,reason:`sign_in`})},{edge:`Sign in again, GET /login`,name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})}],title:`Google callback without its state`},{description:`A deployment without Google, and realms without a passkey relying party at Tempo ID’s origin, leave only the email field.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`200, google: false, passkeys: false`,name:`Sign in (email only)`,screen:(0,W.jsx)(Z,{...Q(),onGoogle:void 0,onPasskey:void 0})}],title:`Email only`},{description:`Each sign-in request holds its controls, shows a spinner, and announces its progress until it settles. One sign-in runs at a time.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Continue, POST /v1/auth/code`,name:`Sign in (sending)`,screen:(0,W.jsx)(Z,{...Q(),sending:!0})},{edge:`Or: Sign in with a passkey`,name:`Sign in (passkey pending)`,screen:(0,W.jsx)(Z,{...Q(),passkeyPending:!0})},{edge:`Code complete, POST /v1/auth/code/verify`,name:`Check your email (verifying)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verifying:!0})},{edge:`Or: Resend code, POST /v1/auth/code`,name:`Check your email (resending)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,resend:`pending`})}],title:`Sign-in in progress`}],title:`Sign-in`},{flows:[{description:"The account page lists the user’s Tempo Accounts in the `default` realm, oldest first, each with its balance and a deposit link. A lone wallet shows its balance large, without a list.",nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{edge:`GET /v1/account?chain, 200, one wallet`,name:`Your account (one wallet)`,screen:(0,W.jsx)(HG,{...EJ()})},{edge:`Or: several wallets`,name:`Your account (several wallets)`,screen:(0,W.jsx)(HG,{...EJ(),accounts:_J})},{edge:`Or: a balance read fails`,name:`Your account (balance unavailable)`,screen:(0,W.jsx)(HG,{...EJ(),accounts:[_J[0],{..._J[1],balance:null}]})},{edge:`Or: no wallet, POST /v1/account with chain creates the first one, 200 with its balance`,name:`Your account (wallet created)`,screen:(0,W.jsx)(HG,{...EJ()})},{edge:`Or: the realm creates no wallets on the server, but holds passkeys`,name:`Your account (no wallets)`,screen:(0,W.jsx)(HG,{...EJ(),accounts:[]})},{edge:`Or: the realm creates no wallets at all`,name:`Your account (no wallet possible)`,screen:(0,W.jsx)(HG,{...EJ(),accounts:[],onAddPasskey:void 0})},{edge:`Or: the accounts cannot be read`,name:`Your account (unavailable)`,screen:(0,W.jsx)(HG,{...EJ(),accountError:`Your wallets failed to load. Reload the page to try again.`,accounts:null})}],title:`Account page`},{description:"The account page adds a passkey of the `default` realm’s relying party, which signs the user in and owns a new passkey wallet at the address its public key derives, beside the user’s other wallets. The new passkey then signs a proof challenge, since its attestation proves no private key. The page offers it only when the realm holds passkeys at Tempo ID’s origin and the user lists no passkey wallet, and Tempo ID requires a sign-in within the last 10 minutes.",nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})},{edge:`Add passkey, POST /v1/account/passkey/options, navigator.credentials.create()`,name:`Your account (adding a passkey)`,screen:(0,W.jsx)(HG,{...EJ(),addingPasskey:!0})},{edge:`POST /v1/account/passkey, 200, the proof step`,name:`Your account (confirm the passkey)`,screen:(0,W.jsx)(HG,{...EJ(),onConfirmPasskey:hJ})},{edge:`Confirm passkey, navigator.credentials.get()`,name:`Your account (confirming the passkey)`,screen:(0,W.jsx)(HG,{...EJ(),confirmingPasskey:!0,onConfirmPasskey:hJ})},{edge:`POST /v1/account/passkey/verify, 200, then the accounts load again`,name:`Your account (passkey added)`,screen:(0,W.jsx)(HG,{...EJ(),accounts:_J,onAddPasskey:void 0,passkeyAdded:!0})},{edge:`Or: the ceremony is canceled`,name:`Your account (passkey canceled)`,screen:(0,W.jsx)(HG,{...EJ(),error:`Adding a passkey was canceled. Try again.`})},{edge:`Or: the session signed in more than 10 minutes before`,name:`Your account (sign in again)`,screen:(0,W.jsx)(HG,{...EJ(),error:`Sign in again: adding a passkey needs a sign-in within the last 10 minutes.`})},{edge:`Or: the accounts failed to load, and the device already holds one of the user’s passkeys`,name:`Your account (passkey held)`,screen:(0,W.jsx)(HG,{...EJ(),error:`This device already holds one of your passkeys. Add a passkey on another device.`})}],title:`Add a passkey`},{description:`The account page and the deposit page send a visitor without a session to sign-in, which then opens the account page. The deposit page leaves the address out of the sign-in query.`,nodes:[{detail:`GET / or GET /deposit?address`,name:`Browser`},{edge:`GET /v1/account: session_required, 302 /login`,name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify: 200`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{edge:`after 500 ms, redirect: null, GET /`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Account page, signed out`},{description:`Deposit lists the networks and cash methods for one of the user’s wallets. Only Tempo is available, and it shows the wallet’s address as a QR code and as text. Back on Receive funds returns to the deposit methods.`,nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{edge:`200, one wallet`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})},{edge:`Deposit, GET /deposit?address`,name:`Deposit`,screen:(0,W.jsx)(Cq,{address:_J[0].address,heading:`h4`})},{edge:`Tempo, GET /deposit?address&method=tempo`,name:`Receive funds`,screen:(0,W.jsx)(Cq,{address:_J[0].address,heading:`h4`,method:`tempo`})},{edge:`Back, GET /deposit?address`,name:`Deposit`,screen:(0,W.jsx)(Cq,{address:_J[0].address,heading:`h4`})},{edge:`Back, GET /`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Deposit`},{description:`Done on Receive funds opens the account page at once.`,nodes:[{detail:`GET /deposit?address&method=tempo`,name:`Browser`},{edge:`200 deposit page`,name:`Receive funds`,screen:(0,W.jsx)(Cq,{address:_J[0].address,heading:`h4`,method:`tempo`})},{edge:`Done, GET /`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Deposit, Done`},{description:"An address that is not one of the user’s wallets in the `default` realm shows no address. A spent rate limit or a failed account read shows its own reason in the same place.",nodes:[{detail:`GET /deposit?address (not the user’s)`,name:`Browser`},{edge:`200, address: null`,name:`Deposit (wallet not found)`,screen:(0,W.jsx)(Cq,{error:`This wallet was not found. Go back to your account, then choose Deposit.`,heading:`h4`})},{edge:`Or: the account rate limit is spent`,name:`Deposit (rate limited)`,screen:(0,W.jsx)(Cq,{error:`Too many requests. Try again in 1 minute.`,heading:`h4`})},{edge:`Or: the accounts cannot be read`,name:`Deposit (unavailable)`,screen:(0,W.jsx)(Cq,{error:`Your wallets failed to load. Reload the page to try again.`,heading:`h4`})}],title:`Wallet not found`},{description:"A page path that no route serves responds with status 404 and the not-found screen, which links to the account page. An API path, such as `/v1/…` or `/oauth2/…`, responds with `unknown_endpoint` instead.",nodes:[{detail:`GET /nope`,name:`Browser`},{edge:`404`,name:`Page not found`,screen:(0,W.jsx)(xG,{heading:`h4`})},{edge:`Go to your account, GET /`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Unknown page`}],title:`Account and deposit`},{flows:[{description:`A web app redirects a signed-out user. Better Auth signs the request, and the sign-in continues it. The sign-in page names the app of the signed request.`,nodes:[MJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig, GET /login: request without key`,name:`Sign in (app)`,screen:(0,W.jsx)(Z,{...Q(),request:CJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: 200`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{detail:`GET redirect_uri?code&state`,edge:`after 500 ms, redirect`,name:`Web app callback`},PJ],title:`Redirect, signed out`},{description:`A signed-out user’s request with a key shows the app and the key on the sign-in page. The first sign-in of the request grants the key, so the browser returns to the app without the approval page.`,nodes:[TJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig, GET /login: request`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, grants the key`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{detail:`GET redirect_uri?code&state`,edge:`after 500 ms, redirect`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that grants a key`},{description:`On the sign-in page, the passkey’s challenge is the digest of the request’s key. One tap signs the user in and signs the key, for an account that this passkey owns, or that Privy or secp256k1 owns.`,nodes:[TJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{detail:`POST /v1/auth/passkey/options with oauth_query: the key’s digest`,edge:`Sign in with a passkey`,name:`Authenticator prompt`},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/auth/passkey/verify with oauth_query, grants the key`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that grants a key, passkey one-tap`},{description:"The sign-in page starts Google with `sec-fetch-site: same-origin`, so the start sets the `__Host-tempo-id-grant` cookie for the request. The callback grants the key only when the cookie matches the request, and clears it.",nodes:[TJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`GET /v1/auth/oauth/google?oauth_query&return_to, same-origin: sets __Host-tempo-id-grant`,name:`Google`},{detail:`GET redirect_uri?code&state`,edge:`GET /callback/google, the cookie matches: grants the key, 302`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that grants a key, Google`},{description:"Any site can send a browser to the Google start. Without `sec-fetch-site: same-origin`, the start clears the grant cookie. The callback then keeps the redirect to the approval page, which shows the key.",nodes:[{detail:`GET /v1/auth/oauth/google?oauth_query&return_to`,name:`Another site`},{edge:`cross-site: clears __Host-tempo-id-grant, 302`,name:`Google`},{edge:`GET /callback/google, no grant cookie, 302 /authorize?…&sig`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Google start from another site`},{description:`The account step does not run when the account reads are spent. The sign-in page shows no account, so a user with several accounts gets no grant, and the approval page opens. That page holds Approve until a reload after a minute.`,nodes:[TJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: ACCOUNT_LIMIT spent, no account step, several accounts: no grant`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{edge:`after 500 ms, redirect /authorize?…&sig`,name:`Authorize this app (unavailable)`,screen:(0,W.jsx)(ZK,{...xJ(),keyAuthorization:{...bJ(),refusal:`unavailable`}})},{edge:`Reload after a minute`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Several accounts, none chosen`},{description:"A held grant covers only the request that the sign-in spent. A request with another `scope`, or with a `challenge`, takes no held grant on the account step, so the approval page opens.",nodes:[{detail:`GET /choose-account?…&sig, another scope or a challenge`,name:`Browser`},{edge:`200 account step`,name:`Choose a wallet`,screen:(0,W.jsx)(cq,{...DJ()})},{edge:`Choose, POST /v1/authorize/account: another scope, no held grant, redirect /authorize?…&sig`,name:`Authorize this app (another scope)`,screen:(0,W.jsx)(ZK,{...xJ()})},{edge:`Or: a challenge, which takes no grant, redirect /authorize?…&sig`,name:`Authorize this app (challenge)`,screen:(0,W.jsx)(ZK,{...xJ(),keyAuthorization:{...bJ(),challenge:`Sign in to api.example.com
31
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function dU(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;dU(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var fU=new Set([`type`,`properties`,`required`,`additionalProperties`]),pU=[`oneOf`,`anyOf`];function mU(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function hU(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!fU.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??mU(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}CB(n,r,e.length===1?e[0]:hU(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=mU(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function gU(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of fU)if(t in e)return;let n=t.filter(e=>pU.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=hU(t);else{let e=n[0],i=pU.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>hU([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,aU(e,r))}function _U(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):aU(i,s),aU(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())dU(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])gU(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}aU(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,CB(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:bU(t,`input`,e.processors),output:bU(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function vU(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return vU(r.element,n);if(r.type===`set`)return vU(r.valueType,n);if(r.type===`lazy`)return vU(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return vU(r.innerType,n);if(r.type===`intersection`)return vU(r.left,n)||vU(r.right,n);if(r.type===`record`||r.type===`map`)return vU(r.keyType,n)||vU(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:vU(r.in,n)||vU(r.out,n);if(r.type===`object`){for(let e in r.shape)if(vU(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(vU(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(vU(e,n))return!0;return!!(r.rest&&vU(r.rest,n))}return!1}var yU=(e,t={})=>n=>{let r=oU({...n,processors:t});return cU(e,r),uU(r,e),_U(r,e)},bU=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=oU({...i??{},target:a,io:t,processors:n});return cU(e,o),uU(o,e),_U(o,e)},xU=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},SU=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},CU=(e,t)=>{xU(e,`minimum`,t),SU(e,`maximum`,t)},wU=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},TU=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},EU=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},DU=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},OU=(e,t)=>xU(e,`minimum`,t.minimum),kU=(e,t)=>SU(e,`maximum`,t.maximum),AU=e=>(t,n)=>{DU(t,n.format);let[r,i]=e[n.format];xU(t,`minimum`,r),SU(t,`maximum`,i)},jU={greater_than:(e,t)=>xU(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>SU(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>wU(e,t.value),number_format:AU(FB),bigint_format:AU(IB),min_length:OU,max_length:kU,length_equals:(e,t)=>CU(e,t.length),min_size:OU,max_size:kU,size_equals:(e,t)=>CU(e,t.size),string_format:(e,t)=>{DU(e,t.format),t.pattern&&TU(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>EU(e,t.mime)};function MU(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)jU[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&xU(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&xU(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&SU(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&SU(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&wU(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&EU(t,i.mime);for(let e of i.patterns??[])TU(t,e);return t}var NU=(e,t,n,r)=>{let i=e._zod.def,a=vB(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},PU=(e,t,n,r)=>{sU(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},FU=(e,t,n,r)=>{sU(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},IU=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=MU(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=cU(a.element,t,{...r,path:[...r.path,`items`]})},LU=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>cU(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},RU=(e,t,n,r)=>{let i=e._zod.def,a=cU(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=cU(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},zU=(e,t,n,r)=>{let i=e._zod.def,a=cU(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},BU=(e,t,n,r)=>{let i=e._zod.def;cU(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},VU=Symbol();function HU(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(sU(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),VU):JSON.parse(o)}var UU=(e,t,n,r)=>{let i=e._zod.def;cU(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=HU(i.defaultValue,e,t,n,r);o!==VU&&(n.default=o)},WU=(e,t,n,r)=>{let i=e._zod.def;cU(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=HU(i.defaultValue,e,t,n,r);o!==VU&&(n._prefault=o)},GU=(e,t,n,r)=>{let i=e._zod.def;cU(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{sU(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},KU=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;cU(o,t,r);let s=t.seen.get(e);s.ref=o},qU=(e,t,n,r)=>{let i=e._zod.def;cU(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},JU=(e,t,n,r)=>{let i=e._zod.def;cU(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},YU=new WeakSet([Object.prototype,Error.prototype]);function XU(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var ZU=lV(`ZodError`,(e,t)=>{bV.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);YU.has(n)||(YU.add(n),XU(n,`format`,e=>t=>CV(e,t)),XU(n,`flatten`,e=>t=>SV(e,t)),XU(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,bB,2)}),XU(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,bB,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),QU=TV(ZU),$U=EV(ZU),eW=DV(ZU),tW=kV(ZU),nW=FV(ZU),rW=IV(ZU),iW=LV(ZU),aW=RV(ZU),oW=zV(ZU),sW=BV(ZU),cW=VV(ZU),lW=HV(ZU);function uW(){fV.localeError||pV(KH())}function dW(){fV.memoizer||pV({memoizer:UH()})}var fW=lV(`ZodType`,(e,t)=>(uW(),XV.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(TB(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return MB(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(HW(e,t))},superRefine(e,t){return this.check(UW(e,t))},overwrite(e){return this.check(eU(e))},optional(){return wW(this)},exactOptional(){return EW(this)},nullable(){return OW(this)},nullish(){return wW(OW(this))},nonoptional(e){return PW(this,e)},array(){return mW(this)},or(e){return gW([this,e])},and(e){return vW(this,e)},transform(e){return RW(this,SW(e))},default(e){return AW(this,e)},prefault(e){return MW(this,e)},catch(e){return IW(this,e)},pipe(e){return RW(this,e)},readonly(){return BW(this)},describe(e){let t=this.clone();return XH.add(t,{description:e}),t},meta(...e){if(e.length===0)return XH.get(this);let t=this.clone();return XH.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return ZB(this,`~standard`,{...$V(this),jsonSchema:{input:bU(this,`input`),output:bU(this,`output`)}})},set"~standard"(e){XB(this,`~standard`,e)},parse:function e(t,n){return QU(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await $U(this,t,n,{callee:e})},safeParse(e,t){return eW(this,e,t)},async safeParseAsync(e,t){return tW(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){XB(this,`spa`,e)},validate(e,t){return MV(this,e,t)},validateAsync(e,t){return PV(this,e,t)},encode:function e(t,n){return nW(this,t,n,{callee:e})},decode:function e(t,n){return rW(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await iW(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await aW(this,t,n,{callee:e})},safeEncode(e,t){return oW(this,e,t)},safeDecode(e,t){return sW(this,e,t)},async safeEncodeAsync(e,t){return cW(this,e,t)},async safeDecodeAsync(e,t){return lW(this,e,t)},toJSONSchema(e){return yU(this,{})(e)},get description(){return XH.get(this)?.description},get _def(){return this._zod.def}}),pW=lV(`ZodArray`,(e,t)=>{dW(),rH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>IU(e,t,n,r),e.element=t.element},{min(e,t){return this.check(QH(e,t))},nonempty(e){return this.check(QH(1,e))},max(e,t){return this.check(ZH(e,t))},length(e,t){return this.check($H(e,t))},unwrap(){return this.element}});function mW(e,t){return tU(pW,e,t)}var hW=lV(`ZodUnion`,(e,t)=>{aH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>LU(e,t,n,r),e.options=t.options});function gW(e,t){return new hW({type:`union`,options:e,...NB(t)})}var _W=lV(`ZodIntersection`,(e,t)=>{oH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>RU(e,t,n,r)});function vW(e,t){return new _W({type:`intersection`,left:e,right:t})}var yW=lV(`ZodEnum`,(e,t)=>{lH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>NU(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new yW({...t,checks:[],...NB(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new yW({...t,checks:[],...NB(r),entries:i})}});function bW(e,t){return new yW({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...NB(t)})}var xW=lV(`ZodTransform`,(e,t)=>{dW(),uH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>FU(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new dV(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(JB(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(JB(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function SW(e){return new xW({type:`transform`,transform:e})}var CW=lV(`ZodOptional`,(e,t)=>{fH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function wW(e){return new CW({type:`optional`,innerType:e})}var TW=lV(`ZodExactOptional`,(e,t)=>{pH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>JU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function EW(e){return new TW({type:`optional`,innerType:e})}var DW=lV(`ZodNullable`,(e,t)=>{mH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function OW(e){return new DW({type:`nullable`,innerType:e})}var kW=lV(`ZodDefault`,(e,t)=>{hH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>UU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function AW(e,t){return new kW({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():kB(t)}})}var jW=lV(`ZodPrefault`,(e,t)=>{_H.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>WU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function MW(e,t){return new jW({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():kB(t)}})}var NW=lV(`ZodNonOptional`,(e,t)=>{vH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>BU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function PW(e,t){return new NW({type:`nonoptional`,innerType:e,...NB(t)})}var FW=lV(`ZodCatch`,(e,t)=>{xH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>GU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function IW(e,t){return new FW({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:iV(t)})}var LW=lV(`ZodPipe`,(e,t)=>{SH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>KU(e,t,n,r),e.in=t.in,e.out=t.out});function RW(e,t){return new LW({type:`pipe`,in:e,out:t})}var zW=lV(`ZodReadonly`,(e,t)=>{wH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qU(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function BW(e){return new zW({type:`readonly`,innerType:e})}var VW=lV(`ZodCustom`,(e,t)=>{EH.init(e,t),fW.init(e,t),e._zod.processJSONSchema=(t,n,r)=>PU(e,t,n,r)});function HW(e,t={}){return nU(VW,e,t)}function UW(e,t){return rU(e,t)}gB.id,_B.id;var WW=bW([`mainnet`,`testnet`]),GW=new Set([101,204,205,304]);async function KW(e){let t=await e;if((t.body||t._bodyInit)&&!GW.has(t.status)&&(t._data=await t[YW(t)]()),!t.ok)throw new qW(`${t.status} ${t.statusText}`,{statusCode:t?.status,detail:{data:t?._data,statusText:t?.statusText}});return t._data}var qW=class extends Error{detail;code;log;statusCode;constructor(e,t={}){super(e),this.name=`DetailedError`,this.log=t.log,this.detail=t.detail,this.code=t.code,this.statusCode=t.statusCode}},JW=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(?:;.+)?$/i;function YW(e){let t=e.headers.get(`content-type`);if(!t)return`text`;let n=t.split(`;`).shift();return JW.test(n)?`json`:`text`}var XW=(e,t)=>(e=e.replace(/\/+$/,``),e+=`/`,t=t.replace(/^\/+/,``),e+t),ZW=(e,t)=>{for(let[n,r]of Object.entries(t)){let t=RegExp(`/:`+n+`(?:{[^/]+})?\\??(?=/|$)`);e=e.replace(t,()=>r?`/${r}`:``)}return e},QW=e=>{let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(r!==void 0){if(Array.isArray(r))for(let e of r)e!==void 0&&t.append(n,e);else t.set(n,r)}return t},$W=(e,t)=>{switch(t){case`ws`:return e.replace(/^http/,`ws`);case`http`:return e.replace(/^ws/,`http`)}},eG=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,`/`):e.replace(/\/index(?=\?|$)/,``);function tG(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function nG(e,t){if(!tG(e)&&!tG(t))return t;let n={...e};for(let e in t){let r=t[e];n[e]=tG(n[e])&&tG(r)?nG(n[e],r):r}return n}async function rG(e){return KW(e)}var iG=/^[\w!#$%&'*.^`|~+-]+$/,aG=(e,t,n={})=>{if(!iG.test(e))throw Error(`Invalid cookie name`);let r=`${e}=${t}`;if(e.startsWith(`__Secure-`)&&!n.secure)throw Error(`__Secure- Cookie must have Secure attributes`);if(e.startsWith(`__Host-`)){if(!n.secure)throw Error(`__Host- Cookie must have Secure attributes`);if(n.path!==`/`)throw Error(`__Host- Cookie must have Path attributes with "/"`);if(n.domain)throw Error(`__Host- Cookie must not have Domain attributes`)}for(let e of[`domain`,`path`,`sameSite`,`priority`])if(n[e]&&/[;\r\n]/.test(n[e]))throw Error(`${e} must not contain ";", "\\r", or "\\n"`);if(n&&typeof n.maxAge==`number`&&n.maxAge>=0){if(n.maxAge>3456e4)throw Error(`Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.`);r+=`; Max-Age=${n.maxAge|0}`}if(n.domain&&n.prefix!==`host`&&(r+=`; Domain=${n.domain}`),n.path&&(r+=`; Path=${n.path}`),n.expires){if(n.expires.getTime()-Date.now()>3456e7)throw Error(`Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.`);r+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(r+=`; HttpOnly`),n.secure&&(r+=`; Secure`),n.sameSite&&(r+=`; SameSite=${n.sameSite.charAt(0).toUpperCase()+n.sameSite.slice(1)}`),n.priority&&(r+=`; Priority=${n.priority.charAt(0).toUpperCase()+n.priority.slice(1)}`),n.partitioned){if(!n.secure)throw Error(`Partitioned Cookie must have Secure attributes`);r+=`; Partitioned`}return r},oG=(e,t,n)=>(t=encodeURIComponent(t),aG(e,t,n)),sG=(e,t)=>new Proxy(()=>{},{get(n,r){if(typeof r==`string`&&r!==`then`)return sG(e,[...t,r])},apply(n,r,i){return e({path:t,args:i})}}),cG=(e,t)=>{let n=t.toString();return n?`${e}?${n}`:e},lG=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){let t=new FormData;for(let[n,r]of Object.entries(e.form))if(r!==void 0){if(Array.isArray(r))for(let e of r)e!==void 0&&t.append(n,e);else t.append(n,r)}this.rBody=t}e.json!==void 0&&(this.rBody=JSON.stringify(e.json),this.cType=`application/json`),e.param&&(this.pathParams=e.param)}let n=this.method.toUpperCase(),r={...e?.header,...typeof t?.headers==`function`?await t.headers():t?.headers};if(e?.cookie){let t=[];for(let[n,r]of Object.entries(e.cookie))r!==void 0&&t.push(oG(n,r));t.length>0&&(r.Cookie=t.join(`; `))}this.cType&&(r[`Content-Type`]=this.cType);let i=new Headers;for(let[e,t]of Object.entries(r))t!==void 0&&i.set(e,t);let a=this.url;a=eG(a),a=ZW(a,this.pathParams),this.queryParams&&(a=cG(a,this.queryParams)),n=this.method.toUpperCase();let o=n!==`GET`&&n!==`HEAD`;return(t?.fetch||fetch)(a,{body:o?this.rBody:void 0,method:n,headers:i,...t?.init})}},uG=(e,t)=>sG(function n(r){let i=t?.buildSearchParams??QW,a=[...r.path],o=a.slice(-3).reverse();if(o[0]===`toString`)return o[1]===`name`?o[2]||``:n.toString();if(o[0]===`valueOf`)return o[1]===`name`?o[2]||``:n;let s=``;if(/^\$/.test(o[0])){let e=a.pop();e&&(s=e.replace(/^\$/,``))}let c=XW(e,a.join(`/`));if(s===`url`||s===`path`){let t=eG(c);return r.args[0]&&(r.args[0].param&&(t=ZW(t,r.args[0].param)),r.args[0].query&&(t=cG(t,i(r.args[0].query)))),s===`url`?new URL(t):t.slice(e.replace(/\/+$/,``).length).replace(/^\/?/,`/`)}if(s===`ws`){let e=eG(c),n=$W(r.args[0]?.param?ZW(e,r.args[0].param):e,`ws`),a=new URL(n),o=r.args[0]?.query;return o&&i(o).forEach((e,t)=>{a.searchParams.append(t,e)}),((...e)=>t?.webSocket!==void 0&&typeof t.webSocket==`function`?t.webSocket(...e):new WebSocket(...e))(a.toString())}let l=new lG(c,s,{buildSearchParams:i});if(s){t??={};let e={...r.args[1]},n=t.headers,i=e.headers;n&&i&&(e.headers=async()=>({...typeof n==`function`?await n():n,...typeof i==`function`?await i():i}));let a=nG(t,e);return l.fetch(r.args[0],a)}return l},[]),dG=()=>fetch,fG=()=>window.location.origin,pG=(0,U.createContext)(void 0);function mG(){return uG(fG(),{fetch:dG()})}function hG(e){if(e instanceof qW){let t=e.detail?.data;return typeof t==`object`&&t&&`error_description`in t&&typeof t.error_description==`string`?t.error_description:`Something went wrong. Try again.`}return`Tempo ID cannot be reached. Check the connection, and try again.`}function gG(e){if(!(e instanceof qW))return;let t=e.detail?.data;if(typeof t==`object`&&t&&`reason`in t&&typeof t.reason==`string`)return t.reason}function _G(){let e=(0,U.useContext)(pG);if(!e)throw Error(`The client is used outside the root route.`);return e}var{style:vG,variants:yG,vars:bG}={vars:Pp([[`default`,`z-theme-tempo_2d_id-default`],[`thirdParty`,`z-theme-tempo_2d_id-thirdParty`]],!1,`set`,`default`)};function xG(e){let t=e.heading??`h1`;return(0,W.jsxs)(VE,{...SG.column?{className:`z-tempo_2d_id-max-width-[var(--z-tempo_5f_2d_5f_id-spacing-384,24rem)] z-tempo_2d_id-w-[100%]`}:SG.column(),gap:`32`,children:[(0,W.jsxs)(VE,{...SG.header?{className:`z-tempo_2d_id-text-align-center`}:SG.header(),gap:`8`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(t,{...SG.title?{className:`z-tempo_2d_id-text-wrap-balance z-tempo_2d_id-font-family-[var(--z-tempo_5f_2d_5f_id-typography-heading-32-fontFamily,Inter,_20_-apple-system,_20_BlinkMacSystemFont,_20__22_Segoe_20_UI_22_,_20_Roboto,_20__22_Helvetica_20_Neue_22_,_20__22_Noto_20_Sans_22_,_20_Arial,_20_sans-serif,_20__22_Apple_20_Color_20_Emoji_22_,_20__22_Segoe_20_UI_20_Emoji_22_,_20__22_Segoe_20_UI_20_Symbol_22_,_20__22_Noto_20_Color_20_Emoji_22_)] z-tempo_2d_id-font-size-[var(--z-tempo_5f_2d_5f_id-typography-heading-32-fontSize,32px)] z-tempo_2d_id-font-weight-[var(--z-tempo_5f_2d_5f_id-typography-heading-32-fontWeight,600)] z-tempo_2d_id-letter-spacing-[var(--z-tempo_5f_2d_5f_id-typography-heading-32-letterSpacing,-.69px)] z-tempo_2d_id-line-height-[var(--z-tempo_5f_2d_5f_id-typography-heading-32-lineHeight,40px)]`}:SG.title(),children:`Page not found`}),(0,W.jsx)(`p`,{...SG.description?{className:`z_tempo_2d_id-TOnza90 z_tempo_2d_id-TOnza91 z_tempo_2d_id-TOnza92 z_tempo_2d_id-TOnza93 z_tempo_2d_id-TOnza94 z_tempo_2d_id-TOnza95 z_tempo_2d_id-TOnza96`}:SG.description(),children:`Tempo ID has no page at this address. Check the address, or go to your account.`})]}),(0,W.jsx)(bS.Link,{render:(0,W.jsx)(Vd,{to:`/`}),children:`Go to your account`})]})}var SG;(function(e){e.column=1,e.description=1,e.header=1,e.title=1})(SG||={});var CG=Kd({component:wG,head:()=>({links:[{href:_D,rel:`stylesheet`},{href:`data:,`,rel:`icon`}],meta:[{charSet:`utf-8`},{content:`width=device-width, initial-scale=1`,name:`viewport`},{title:`Tempo ID`},{content:`Sign in to Tempo.`,name:`description`}]}),notFoundComponent:TG,search:{middlewares:[mu([`chain`])]},shellComponent:EG,validateSearch:e=>{let t=WW.safeParse(e.chain);return{chain:t.success?t.data:void 0}}});function wG(){let[e]=(0,U.useState)(mG),[t]=(0,U.useState)(()=>new Ep);return(0,W.jsx)(pG,{value:e,children:(0,W.jsx)(Tf,{client:t,children:(0,W.jsx)(rf,{})})})}function TG(){return(0,W.jsx)(`main`,{...DG.page?{className:`z_tempo_2d_id-ugyUyp0 z_tempo_2d_id-ugyUyp1 z_tempo_2d_id-ugyUyp2 z_tempo_2d_id-ugyUyp3 z_tempo_2d_id-ugyUyp4`}:DG.page(),children:(0,W.jsx)(xG,{})})}function EG(e){return(0,W.jsxs)(`html`,{className:`${hg().className} ${bG().className}`,lang:`en`,children:[(0,W.jsx)(`head`,{children:(0,W.jsx)(yf,{})}),(0,W.jsxs)(`body`,{children:[e.children,(0,W.jsx)(xf,{})]})]})}var DG;(function(e){e.page=1})(DG||={});function OG(e){let{attestationObject:t,clientDataJSON:n,id:r,publicKey:i,raw:a}=e,o={};for(let e of Zj){let t=a.response,n=t[e];if(!(n instanceof ArrayBuffer)){let r=t[`get${e[0].toUpperCase()}${e.slice(1)}`];typeof r==`function`&&(n=r.call(t))}n instanceof ArrayBuffer&&(o[e]=Mj(new Uint8Array(n),Xj))}if(!o.authenticatorData){let e=Pj(new Uint8Array(t));e.authData&&(o.authenticatorData=Mj(e.authData,Xj))}return{attestationObject:Mj(new Uint8Array(t),Xj),clientDataJSON:Mj(new Uint8Array(n),Xj),id:r,publicKey:XD(i),raw:{id:a.id,type:a.type,authenticatorAttachment:a.authenticatorAttachment,rawId:Mj(Qj(a.rawId),Xj),response:o}}}async function kG(e){return lM(await(`options`in e?uM({...sM(e.options),getFn:e.getFn}):uM(e)))}async function AG(e){return OG(await tM(`options`in e?{...rM(e.options),...e.createFn?{createFn:e.createFn}:{}}:e))}function jG(e){let{document:t=!1,href:n}=e;throw zn({href:n,...t?{reloadDocument:!0}:{},statusCode:302})}function MG(e){return(0,W.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,W.jsx)(`path`,{d:`M6.3136 3.4798C6.50889 3.28488 6.82549 3.28465 7.02063 3.4798C7.2155 3.67497 7.21546 3.99163 7.02063 4.18683L3.70618 7.50031H13.5001C13.7762 7.50041 14.0001 7.72423 14.0001 8.00031C14 8.27625 13.7761 8.50021 13.5001 8.50031H3.70813L7.02063 11.8128C7.21561 12.0079 7.21535 12.3246 7.02063 12.5198C6.82541 12.7151 6.50887 12.715 6.3136 12.5198L2.14661 8.35382C1.9514 8.15862 1.95151 7.84207 2.14661 7.64679L6.3136 3.4798Z`,fill:`currentColor`})})}function NG(e){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,W.jsx)(`path`,{d:`M9.9691 6.50791C10.1268 6.28127 10.4387 6.2253 10.6654 6.38291C10.8915 6.54061 10.9476 6.85173 10.7904 7.07822L8.1859 10.8253C8.10463 10.9422 7.97661 11.0189 7.83532 11.0362C7.69403 11.0533 7.5516 11.009 7.44469 10.9151L5.95641 9.60361C5.74921 9.42107 5.72894 9.10476 5.91149 8.89756C6.09407 8.69075 6.4095 8.67124 6.61657 8.85361L7.68395 9.79306L9.9691 6.50791Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7.67516 1.61826C8.13077 1.16265 8.86994 1.16265 9.32555 1.61826L10.7591 3.05185C10.7902 3.08262 10.8326 3.10058 10.8763 3.10068H12.7338C13.3779 3.10081 13.9006 3.62258 13.9007 4.2667V6.12412C13.9009 6.16817 13.9184 6.21112 13.9496 6.24228L15.3832 7.6749C15.8384 8.13047 15.8385 8.86977 15.3832 9.32529L13.9496 10.7589C13.9185 10.79 13.9008 10.8321 13.9007 10.8761V12.7335C13.9005 13.3776 13.3778 13.9004 12.7338 13.9005H10.8763C10.8323 13.9006 10.7903 13.9182 10.7591 13.9493L9.32555 15.3829C8.87002 15.8381 8.1307 15.8381 7.67516 15.3829L6.24254 13.9493C6.21134 13.9181 6.16849 13.9005 6.12438 13.9005H4.26696C3.6229 13.9003 3.10117 13.3775 3.10094 12.7335V10.8761C3.10084 10.8323 3.08288 10.79 3.05211 10.7589L1.61852 9.32529C1.16294 8.86971 1.163 8.13052 1.61852 7.6749L3.05211 6.24228C3.08324 6.21113 3.10083 6.16815 3.10094 6.12412V4.2667C3.1011 3.62259 3.62285 3.10084 4.26696 3.10068H6.12438C6.16843 3.10062 6.21135 3.08297 6.24254 3.05185L7.67516 1.61826ZM8.61852 2.32529C8.5535 2.26027 8.44827 2.26042 8.38317 2.32529L6.94957 3.75888C6.73085 3.97753 6.43365 4.10062 6.12438 4.10068H4.26696C4.17514 4.10084 4.1011 4.17488 4.10094 4.2667V6.12412C4.10083 6.43336 3.97781 6.73062 3.75914 6.94931L2.32555 8.38291C2.26077 8.44802 2.26056 8.55327 2.32555 8.61826L3.75914 10.0519C3.97744 10.2705 4.10084 10.5671 4.10094 10.8761V12.7335C4.10117 12.8253 4.17518 12.9003 4.26696 12.9005H6.12438C6.43371 12.9005 6.73084 13.0235 6.94957 13.2423L8.38317 14.6749C8.44825 14.7396 8.55353 14.7398 8.61852 14.6749L10.0521 13.2423C10.2708 13.0236 10.5671 12.9006 10.8763 12.9005H12.7338C12.8256 12.9004 12.9005 12.8253 12.9007 12.7335V10.8761C12.9008 10.5669 13.0239 10.2705 13.2425 10.0519L14.6752 8.61826C14.7401 8.55328 14.7399 8.44802 14.6752 8.38291L13.2425 6.94931C13.0239 6.73062 12.9009 6.43339 12.9007 6.12412V4.2667C12.9006 4.17486 12.8256 4.10081 12.7338 4.10068H10.8763C10.5674 4.10058 10.2708 3.97719 10.0521 3.75888L8.61852 2.32529Z`,fill:`currentColor`})]})}function PG(e){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,W.jsx)(`path`,{d:`M8.00098 4.66602C8.27653 4.66645 8.50062 4.89045 8.50098 5.16602V7.79297L10.1875 9.47949C10.3825 9.67462 10.3823 9.99125 10.1875 10.1865C9.99226 10.3818 9.67574 10.3817 9.48047 10.1865L7.64746 8.35352C7.55377 8.25982 7.50106 8.13249 7.50098 8V5.16602C7.50133 4.89018 7.72505 4.66602 8.00098 4.66602Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00098 1.33301C11.6824 1.33345 14.6668 4.31853 14.667 8C14.6668 11.6815 11.6824 14.6656 8.00098 14.666C4.31919 14.666 1.33318 11.6817 1.33301 8C1.33319 4.31826 4.31919 1.33301 8.00098 1.33301ZM8.00098 2.33301C4.87148 2.33301 2.33417 4.87054 2.33398 8C2.33416 11.1294 4.87147 13.666 8.00098 13.666C11.1301 13.6656 13.6668 11.1292 13.667 8C13.6668 4.87082 11.1301 2.33345 8.00098 2.33301Z`,fill:`currentColor`})]})}function FG(e){return(0,W.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,W.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 3.16699C10.8819 3.16699 12.8301 5.01762 12.9883 7.35938C14.5922 7.55863 15.834 8.92613 15.834 10.584C15.8336 12.3785 14.3785 13.8338 12.584 13.834H5.16699C2.95808 13.834 1.16737 12.0428 1.16699 9.83398C1.16699 7.90307 2.53477 6.29168 4.35449 5.91602C5.03729 4.30133 6.63535 3.16712 8.5 3.16699ZM8.5 4.16699C6.96768 4.16713 5.66397 5.15244 5.19043 6.52539C5.1283 6.70485 4.96965 6.83427 4.78125 6.8584C3.30682 7.04738 2.16699 8.30803 2.16699 9.83398C2.16737 11.4905 3.51037 12.834 5.16699 12.834H12.584C13.8262 12.8338 14.8336 11.8262 14.834 10.584C14.834 9.34145 13.8265 8.33416 12.584 8.33398C12.5603 8.33398 12.5363 8.33423 12.5127 8.33496C12.374 8.33926 12.2393 8.28511 12.1416 8.18652C12.044 8.08793 11.9915 7.95303 11.9971 7.81445C11.9991 7.76574 12 7.71627 12 7.66699C12 5.734 10.433 4.16699 8.5 4.16699Z`,fill:`currentColor`})})}function IG(e){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,W.jsx)(`path`,{d:`M13.5 9.33398C13.7761 9.33398 14 9.55784 14 9.83398V12.834C13.9997 13.4781 13.4772 14.001 12.833 14.001H3.16699C2.52283 14.001 2.00026 13.4781 2 12.834V9.83398C2 9.55784 2.22386 9.33398 2.5 9.33398C2.77614 9.33398 3 9.55784 3 9.83398V12.834C3.00026 12.9258 3.0751 13.001 3.16699 13.001H12.833C12.9249 13.001 12.9997 12.9258 13 12.834V9.83398C13 9.55784 13.2239 9.33398 13.5 9.33398Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M8 2C8.27614 2 8.5 2.22386 8.5 2.5V8.79199L9.98047 7.3125C10.1757 7.11779 10.4924 7.1175 10.6875 7.3125C10.8824 7.5076 10.8822 7.82428 10.6875 8.01953L8.35352 10.3525C8.15825 10.5478 7.84175 10.5478 7.64648 10.3525L5.31348 8.01953C5.1183 7.82426 5.11824 7.50773 5.31348 7.3125C5.50874 7.11763 5.82536 7.11744 6.02051 7.3125L7.5 8.79199V2.5C7.5 2.22386 7.72386 2 8 2Z`,fill:`currentColor`})]})}function LG(e){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,W.jsx)(`path`,{d:`M8.00536 6.83496C8.2815 6.83496 8.50536 7.05882 8.50536 7.33496C8.50536 9.28777 8.18891 11.168 7.60399 12.9258C7.45356 13.3778 7.28517 13.8219 7.10008 14.2568C6.99198 14.5107 6.69876 14.6293 6.44481 14.5215C6.19099 14.4133 6.07219 14.1192 6.18016 13.8652C6.35475 13.4549 6.51387 13.0358 6.65575 12.6094C7.20715 10.9522 7.50536 9.17895 7.50536 7.33496C7.50536 7.05904 7.72952 6.83532 8.00536 6.83496Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M10.52 10.4541C10.7913 10.5039 10.9707 10.7648 10.9214 11.0361C10.8278 11.5476 10.7154 12.0533 10.5845 12.5508C10.4402 13.0989 10.274 13.6388 10.0864 14.168C9.99408 14.4281 9.70794 14.5639 9.44774 14.4717C9.18753 14.3794 9.05079 14.0932 9.14305 13.833C9.32138 13.33 9.48054 12.8171 9.61766 12.2959L9.79051 11.5811C9.84391 11.3413 9.89349 11.0995 9.93797 10.8564C9.98787 10.5851 10.2485 10.4044 10.52 10.4541Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M4.03172 11.7812C4.11987 11.5198 4.40295 11.3789 4.66454 11.4668C4.926 11.5548 5.06668 11.8381 4.97899 12.0996C4.86951 12.4252 4.74948 12.7464 4.61864 13.0615C4.51276 13.3164 4.22024 13.4367 3.96532 13.3311C3.71029 13.2251 3.5889 12.9328 3.69481 12.6777C3.81681 12.3839 3.92965 12.0848 4.03172 11.7812Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M8.00633 1.33301C11.3211 1.33311 14.0083 4.02127 14.0083 7.33594C14.0083 8.78975 13.8748 10.2133 13.6186 11.5938C13.568 11.8648 13.3069 12.0443 13.0356 11.9941C12.7643 11.9438 12.5851 11.6825 12.6352 11.4111C12.8802 10.0906 13.0083 8.72825 13.0083 7.33594C13.0083 4.57356 10.7688 2.33409 8.00633 2.33398C7.2206 2.33403 6.47822 2.51504 5.81786 2.83691C5.56991 2.95753 5.27101 2.85411 5.14989 2.60645C5.0289 2.35823 5.13216 2.0585 5.38036 1.9375C6.17411 1.55068 7.06564 1.33305 8.00633 1.33301Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M3.12938 3.83594C3.29057 3.61209 3.60255 3.5608 3.82665 3.72168C4.05084 3.88283 4.102 4.1957 3.9409 4.41992C3.35117 5.24055 3.0035 6.2465 3.0034 7.33496C3.0034 8.32841 2.88524 9.29522 2.66063 10.2207C2.5955 10.489 2.32447 10.654 2.05614 10.5889C1.78801 10.5236 1.623 10.2535 1.68797 9.98535C1.89406 9.13635 2.0034 8.2485 2.0034 7.33496C2.0035 6.03015 2.42142 4.821 3.12938 3.83594Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M8.00536 4.08496C9.80058 4.08518 11.2563 5.54061 11.2563 7.33594C11.2563 7.77027 11.243 8.20225 11.2163 8.62988C11.1987 8.90495 10.9612 9.1146 10.686 9.09766C10.4107 9.08035 10.2014 8.84265 10.2182 8.56738C10.2437 8.16042 10.2563 7.7494 10.2563 7.33594C10.2563 6.0929 9.24829 5.08518 8.00536 5.08496C6.76239 5.08521 5.75438 6.09291 5.75438 7.33594C5.75435 8.18373 5.68419 9.01631 5.54833 9.82617C5.50227 10.0979 5.24403 10.2817 4.97215 10.2363C4.70008 10.1906 4.51657 9.93226 4.562 9.66016C4.68872 8.90477 4.75435 8.12803 4.75438 7.33594C4.75438 5.54063 6.2101 4.08521 8.00536 4.08496Z`,fill:`currentColor`})]})}function RG(e){return(0,W.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,W.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00098 1.33301C11.6825 1.33345 14.667 4.31935 14.667 8.00098C14.6666 11.6822 11.6822 14.6666 8.00098 14.667C4.31935 14.667 1.33345 11.6825 1.33301 8.00098C1.33301 4.31908 4.31908 1.33301 8.00098 1.33301ZM5.84473 8.5C5.89806 9.89948 6.17134 11.138 6.57227 12.04C6.7965 12.5444 7.05078 12.9216 7.30762 13.166C7.5619 13.4079 7.79555 13.5 8.00098 13.5C8.20627 13.4998 8.44029 13.4078 8.69434 13.166C8.95104 12.9215 9.20558 12.5442 9.42969 12.04C9.83057 11.138 10.1021 9.89938 10.1553 8.5H5.84473ZM2.35645 8.5C2.5548 10.7688 4.08984 12.6525 6.16992 13.3623C5.97897 13.0907 5.80772 12.7817 5.6582 12.4453C5.19204 11.3963 4.89835 10.015 4.84473 8.5H2.35645ZM11.1553 8.5C11.1017 10.0149 10.8089 11.3963 10.3428 12.4453C10.1932 12.7818 10.0209 13.0906 9.83008 13.3623C11.9103 12.6527 13.4452 10.769 13.6436 8.5H11.1553ZM6.16992 2.63672C4.08987 3.34649 2.55505 5.23127 2.35645 7.5H4.84473C4.89835 5.98501 5.19204 4.6037 5.6582 3.55469C5.80784 3.21802 5.97879 2.90844 6.16992 2.63672ZM8.00098 2.5C7.79555 2.5 7.5619 2.59208 7.30762 2.83398C7.05078 3.07841 6.7965 3.45561 6.57227 3.95996C6.17134 4.86204 5.89806 6.10053 5.84473 7.5H10.1553C10.1021 6.10063 9.83057 4.86202 9.42969 3.95996C9.20558 3.45579 8.95104 3.07849 8.69434 2.83398C8.44029 2.59222 8.20627 2.50024 8.00098 2.5ZM9.83008 2.63672C10.0211 2.90858 10.1931 3.21792 10.3428 3.55469C10.8089 4.60369 11.1017 5.98506 11.1553 7.5H13.6436C13.445 5.23108 11.9102 3.34635 9.83008 2.63672Z`,fill:`currentColor`})})}function zG(e){return(0,W.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,W.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.834 2C13.4779 2.00044 14 2.52293 14 3.16699V10.667H14.834C15.1098 10.6674 15.334 10.8911 15.334 11.167V12.833C15.334 13.4772 14.8111 13.9997 14.167 14H1.83398C1.18965 14 0.666016 13.4773 0.666016 12.833V11.167C0.666016 10.8909 0.89085 10.667 1.16699 10.667H2V3.16699C2 2.52266 2.52266 2 3.16699 2H12.834ZM1.66699 12.833C1.66699 12.9251 1.74194 13 1.83398 13H14.167C14.2588 12.9997 14.334 12.9249 14.334 12.833V11.667H1.66699V12.833ZM3.16699 3C3.07494 3 3 3.07494 3 3.16699V10.667H13V3.16699C13 3.07522 12.9257 3.00044 12.834 3H3.16699Z`,fill:`currentColor`})})}function BG(e){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,W.jsx)(`path`,{d:`M10.0693 8.80616C11.3199 8.97992 12.4268 9.31057 13.2363 9.76222C14.0167 10.1977 14.6668 10.8347 14.667 11.6665C14.667 12.1908 14.4026 12.6417 14.0283 13.0005C13.6553 13.358 13.1419 13.6575 12.5488 13.898C11.3599 14.3799 9.75149 14.6664 8.00098 14.6665C6.25029 14.6665 4.64122 14.3799 3.45215 13.898C2.8591 13.6575 2.34566 13.3579 1.97266 13.0005C1.59839 12.6417 1.33303 12.1908 1.33301 11.6665C1.33316 10.8345 1.98414 10.1978 2.76465 9.76222C3.5742 9.31057 4.68102 8.97991 5.93164 8.80616C6.20498 8.76845 6.45812 8.95956 6.49609 9.23292C6.53371 9.50605 6.3424 9.75821 6.06934 9.7964C4.89651 9.95932 3.9196 10.2628 3.25195 10.6353C2.55551 11.0239 2.33415 11.4018 2.33398 11.6665C2.33401 11.8324 2.41535 12.0395 2.66504 12.2788C2.9161 12.5193 3.30576 12.7594 3.82812 12.9712C4.87088 13.3938 6.34642 13.6665 8.00098 13.6665C9.65529 13.6664 11.1303 13.3938 12.1729 12.9712C12.6953 12.7593 13.0859 12.5194 13.3369 12.2788C13.5863 12.0397 13.667 11.8323 13.667 11.6665C13.6668 11.4018 13.4452 11.0238 12.749 10.6353C12.0814 10.2628 11.1043 9.95934 9.93164 9.7964C9.65837 9.75831 9.4681 9.50621 9.50586 9.23292C9.54385 8.95943 9.79585 8.76822 10.0693 8.80616Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.11426 2.11475C7.15559 1.07435 8.84294 1.07287 9.88477 2.11475C10.9263 3.15634 10.9267 4.84526 9.88477 5.88624C9.49213 6.2783 9.00732 6.52222 8.5 6.61866V11.4995C8.5 11.7757 8.27614 11.9995 8 11.9995C7.72386 11.9995 7.5 11.7757 7.5 11.4995V6.61866C6.99206 6.52234 6.50626 6.27863 6.11328 5.88526C5.07366 4.84407 5.07276 3.15585 6.11426 2.11475ZM9.17773 2.82179C8.52695 2.17094 7.47264 2.17121 6.82129 2.82179C6.17108 3.4718 6.17058 4.52781 6.82129 5.17921C7.47111 5.82948 8.52635 5.82864 9.17773 5.17823C9.82854 4.52804 9.82894 3.47304 9.17773 2.82179Z`,fill:`currentColor`})]})}function VG(e){return(0,W.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,W.jsx)(`path`,{d:`M7.5 2C7.77614 2 8 2.22386 8 2.5C8 2.77614 7.77614 3 7.5 3H3.16699C3.07495 3 3 3.07495 3 3.16699V12.833C3 12.9251 3.07494 13 3.16699 13H7.5C7.77614 13 8 13.2239 8 13.5C8 13.7761 7.77614 14 7.5 14H3.16699C2.52267 14 2 13.4774 2 12.833V3.16699C2 2.52266 2.52266 2 3.16699 2H7.5Z`,fill:`currentColor`}),(0,W.jsx)(`path`,{d:`M10.1465 4.64648C10.3417 4.45122 10.6583 4.45122 10.8535 4.64648L13.8535 7.64648C14.0487 7.84175 14.0488 8.15827 13.8535 8.35352L10.8535 11.3535C10.6583 11.5488 10.3417 11.5487 10.1465 11.3535C9.95122 11.1583 9.95122 10.8417 10.1465 10.6465L12.293 8.5H6C5.72386 8.5 5.5 8.27614 5.5 8C5.5 7.72386 5.72386 7.5 6 7.5H12.293L10.1465 5.35352C9.95122 5.15825 9.95122 4.84175 10.1465 4.64648Z`,fill:`currentColor`})]})}function HG(e){let{accounts:t}=e,n=e.heading??`h1`,r=e.heading===`h4`?`h5`:`h2`;return(0,W.jsxs)(VE,{...GG.column?{className:`z-tempo_2d_id-J3oRTb-styles-column-max-width-0 z-tempo_2d_id-J3oRTb-styles-column-w-1`}:GG.column(),gap:`32`,children:[(0,W.jsxs)(VE,{align:`center`,gap:`12`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(tw,{"aria-hidden":!0,size:`64`,children:(0,W.jsx)(tw.Fallback,{children:(e.name||e.email).charAt(0)})}),(0,W.jsxs)(VE,{...GG.identity?{className:`z-tempo_2d_id-J3oRTb-styles-identity-min-width-0 z-tempo_2d_id-J3oRTb-styles-identity-text-align-1`}:GG.identity(),gap:`4`,children:[(0,W.jsx)(n,{...GG.name?{className:`z-tempo_2d_id-J3oRTb-styles-name-overflow-wrap-0 z-tempo_2d_id-J3oRTb-styles-name-font-family-1 z-tempo_2d_id-J3oRTb-styles-name-font-size-2 z-tempo_2d_id-J3oRTb-styles-name-font-weight-3 z-tempo_2d_id-J3oRTb-styles-name-letter-spacing-4 z-tempo_2d_id-J3oRTb-styles-name-line-height-5`}:GG.name(),children:e.name||e.email}),e.name?(0,W.jsx)(`p`,{...GG.email?{className:`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTb1 z_tempo_2d_id-J3oRTb2 z_tempo_2d_id-J3oRTb3 z_tempo_2d_id-J3oRTb4 z_tempo_2d_id-J3oRTb5`}:GG.email(),children:e.email}):null]})]}),(()=>{if(!t)return e.accountError?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.accountError})]}):null;if(!t.length)return(0,W.jsx)(`p`,{...GG.hint?{className:`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTb6 z_tempo_2d_id-J3oRTb7 z_tempo_2d_id-J3oRTb8 z_tempo_2d_id-J3oRTb9 z_tempo_2d_id-J3oRTba z_tempo_2d_id-J3oRTbb z_tempo_2d_id-J3oRTbc`}:GG.hint(),children:e.onAddPasskey?`You have no wallets yet. Create one with a passkey.`:`You have no wallets yet, and this account cannot create one. Contact Tempo support.`});let n=t.length===1?t[0]:void 0;return n?(0,W.jsxs)(`section`,{...GG.single?{className:`z_tempo_2d_id-J3oRTbj z_tempo_2d_id-J3oRTbk z_tempo_2d_id-J3oRTbl z_tempo_2d_id-J3oRTbm z-tempo_2d_id-J3oRTb-styles-single-margin-inline-end-0`}:GG.single(),"aria-label":`Wallet`,children:[n.balance?(0,W.jsx)(SS,{currency:n.balance.currency,"data-testid":`balance`,size:`lg`,value:n.balance.amount}):(0,W.jsx)(`span`,{...GG.unavailable?{className:`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTbn z_tempo_2d_id-J3oRTbo z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTbq z_tempo_2d_id-J3oRTbr`}:GG.unavailable(),"data-testid":`balance`,children:`Balance unavailable`}),(0,W.jsx)(UG,{entry:n,large:!0})]}):(0,W.jsxs)(VE,{gap:`8`,render:(0,W.jsx)(`section`,{}),children:[(0,W.jsx)(r,{...GG.label?{className:`z-tempo_2d_id-J3oRTb-styles-label-text-0 z-tempo_2d_id-J3oRTb-styles-label-padding-inline-1 z-tempo_2d_id-J3oRTb-styles-amount-font-family-1 z-tempo_2d_id-J3oRTb-styles-amount-font-size-2 z-tempo_2d_id-J3oRTb-styles-amount-font-weight-3 z-tempo_2d_id-J3oRTb-styles-amount-letter-spacing-4 z-tempo_2d_id-J3oRTb-styles-amount-line-height-5`}:GG.label(),children:`Wallets`}),(0,W.jsx)(VT,{...GG.list?{className:`z-tempo_2d_id-J3oRTb-styles-list-bg-0 z-tempo_2d_id-J3oRTb-styles-list-border-radius-1 z-tempo_2d_id-J3oRTb-styles-list-list-style-2 z-tempo_2d_id-J3oRTb-styles-list-m-3 z-tempo_2d_id-J3oRTb-styles-announcement-overflow-2 z-tempo_2d_id-J3oRTb-styles-list-p-4 z-tempo_2d_id-J3oRTb-styles-list-padding-inline-end-5 z-tempo_2d_id-J3oRTb-styles-list-padding-inline-start-6`}:GG.list(),"aria-label":`Wallets`,dividers:`none`,role:`list`,children:t.map(e=>(0,W.jsxs)(VT.Row,{render:(0,W.jsx)(`li`,{}),children:[(0,W.jsx)(Ew,{"aria-hidden":!0,size:`40`,children:e.owner===`webAuthn`?(0,W.jsx)(LG,{}):(0,W.jsx)(FG,{})}),(0,W.jsx)(VT.Info,{children:(0,W.jsx)(VT.Title,{children:WG(e)})}),e.balance?(0,W.jsx)(SS,{...GG.amount?{className:`z-tempo_2d_id-J3oRTb-styles-amount-flex-shrink-0 z-tempo_2d_id-J3oRTb-styles-amount-font-family-1 z-tempo_2d_id-J3oRTb-styles-amount-font-size-2 z-tempo_2d_id-J3oRTb-styles-amount-font-weight-3 z-tempo_2d_id-J3oRTb-styles-amount-letter-spacing-4 z-tempo_2d_id-J3oRTb-styles-amount-line-height-5`}:GG.amount(),currency:e.balance.currency,"data-testid":`balance`,value:e.balance.amount}):(0,W.jsx)(`span`,{...GG.missing?{className:`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTbd z_tempo_2d_id-J3oRTbe z_tempo_2d_id-J3oRTbf z_tempo_2d_id-J3oRTbg z_tempo_2d_id-J3oRTbh z_tempo_2d_id-J3oRTbi`}:GG.missing(),"aria-label":`Balance unavailable`,"data-testid":`balance`,role:`img`,title:`Balance unavailable`,children:`–`}),(0,W.jsx)(UG,{entry:e})]},e.address))})]})})(),(0,W.jsxs)(VE,{gap:`12`,children:[(()=>{if(e.onConfirmPasskey)return(0,W.jsxs)(bS,{disabled:e.signingOut,loading:e.confirmingPasskey,onClick:e.onConfirmPasskey,variant:`primary`,children:[(0,W.jsx)(LG,{...GG.icon?{className:`z-tempo_2d_id-J3oRTb-styles-icon-h-0 z-tempo_2d_id-J3oRTb-styles-icon-w-1`}:GG.icon()}),`Confirm passkey`]});let n=t?.length===0;return e.onAddPasskey?(0,W.jsxs)(bS,{disabled:e.signingOut,loading:e.addingPasskey,onClick:e.onAddPasskey,variant:n?`primary`:`secondary`,children:[(0,W.jsx)(LG,{...GG.icon?{className:`z-tempo_2d_id-J3oRTb-styles-icon-h-0 z-tempo_2d_id-J3oRTb-styles-icon-w-1`}:GG.icon()}),n?`Create wallet with passkey`:`Add passkey`]}):null})(),(0,W.jsxs)(bS,{disabled:e.addingPasskey||e.confirmingPasskey,loading:e.signingOut,onClick:e.onSignOut,variant:`secondary`,children:[(0,W.jsx)(VG,{...GG.icon?{className:`z-tempo_2d_id-J3oRTb-styles-icon-h-0 z-tempo_2d_id-J3oRTb-styles-icon-w-1`}:GG.icon()}),`Sign out`]})]}),e.error?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):null,(0,W.jsx)(`p`,{...e.signingOut||e.addingPasskey||e.confirmingPasskey?GG.announcement?{className:`z-tempo_2d_id-J3oRTb-styles-announcement-clip-path-0 z-tempo_2d_id-J3oRTb-styles-announcement-h-1 z-tempo_2d_id-J3oRTb-styles-announcement-overflow-2 z-tempo_2d_id-J3oRTb-styles-announcement-position-3 z-tempo_2d_id-J3oRTb-styles-announcement-white-space-4 z-tempo_2d_id-J3oRTb-styles-announcement-w-5`}:GG.announcement():GG.status?{className:`z-tempo_2d_id-J3oRTb-styles-label-text-0 z-tempo_2d_id-J3oRTb-styles-identity-text-align-1 z-tempo_2d_id-J3oRTb-styles-status-font-family-0 z-tempo_2d_id-J3oRTb-styles-status-font-size-1 z-tempo_2d_id-J3oRTb-styles-status-font-weight-2 z-tempo_2d_id-J3oRTb-styles-status-letter-spacing-3 z-tempo_2d_id-J3oRTb-styles-status-line-height-4`}:GG.status(),"aria-live":`polite`,role:`status`,children:(()=>{if(e.signingOut)return`Signing out.`;if(e.addingPasskey)return`Adding a passkey.`;if(e.confirmingPasskey)return`Confirming the passkey.`;if(e.onConfirmPasskey)return`Passkey created. Confirm it to finish adding it.`;if(e.passkeyAdded)return`Passkey added. It signs you in, and holds the new passkey wallet.`})()})]})}function UG(e){let{address:t}=e.entry;return(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(bS.Link,{...GG.deposit?{className:`z-tempo_2d_id-J3oRTb-styles-deposit-border-radius-0`}:GG.deposit(),"aria-label":`Deposit to ${WG(e.entry)} wallet ${Cw(t)}`,render:(0,W.jsx)(Vd,{search:{address:t},to:`/deposit`}),shape:`icon`,size:e.large?`large`:`medium`,variant:`text`,children:(0,W.jsx)(IG,{...e.large?GG.depositIcon?{className:`z-tempo_2d_id-J3oRTb-styles-depositIcon-h-0 z-tempo_2d_id-J3oRTb-styles-depositIcon-w-1`}:GG.depositIcon():GG.icon?{className:`z-tempo_2d_id-J3oRTb-styles-icon-h-0 z-tempo_2d_id-J3oRTb-styles-icon-w-1`}:GG.icon()})})}),(0,W.jsx)(hD.Popup,{children:`Deposit`})]})}function WG(e){return e.owner===`webAuthn`?`Passkey`:`Cloud`}var GG;(function(e){e.amount=1,e.announcement=1,e.column=1,e.deposit=1,e.depositIcon=1,e.email=1,e.hint=1,e.icon=1,e.identity=1,e.label=1,e.list=1,e.missing=1,e.name=1,e.single=1,e.status=1,e.unavailable=1})(GG||={});var KG=class extends Error{name=`Page.CeremonyError`},qG=qd(`/`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(JG,{...qG.useLoaderData()}),loader:async e=>{let t=mG(),n=e.deps.chain??`mainnet`,r=await rG(t.v1.account.$get({query:{chain:n}})).catch(e=>({error:e}));if(`error`in r){gG(r.error)===`session_required`&&jG({href:`/login`});let[e,n]=await Promise.all([rG(t.v1.auth.session.$get()),rG(t.v1.auth.methods.$get({query:{}})).catch(()=>({passkeys:!1}))]);return e.user||jG({href:`/login`}),{accountError:XG(r.error),accounts:null,email:e.user.email,name:e.user.name,passkeys:n.passkeys}}let i={email:r.email,name:r.name,passkeys:r.passkeys},a=r.tempo.length>0?r:await rG(t.v1.account.$post({json:{chain:n}})).catch(e=>({error:e}));return`error`in a?{...i,accountError:XG(a.error),accounts:null}:{...i,accountError:null,accounts:a.tempo.flatMap(e=>{let t=e.config.owners[0];return t?[{address:e.address,balance:`balance`in e?e.balance??null:null,owner:t.type}]:[]})}},loaderDeps:e=>({chain:e.search.chain})});function JG(e){let t=_G(),n=Wu(),r=Dp({mutationFn:()=>rG(t.v1.auth.logout.$post()),onSuccess:()=>n.navigate({to:`/login`})}),i=Dp({async mutationFn(){let{options:e}=await rG(t.v1.account.passkey.options.$post({json:{}})),{excludeCredentials:n,...r}=e.publicKey,i=await(async()=>{try{return await AG({options:{publicKey:{...r,...n?{excludeCredentials:n}:{}}}})}catch(e){throw new KG(`Passkey ceremony failed.`,{cause:e})}})(),a={credentialId:i.id,rpId:r.rp.id};try{let{step:e}=await rG(t.v1.account.passkey.$post({json:{credential:i}}));return{...a,step:e}}catch(e){throw QG(a),e}}}),a=Dp({async mutationFn(e){let n=await(async()=>{try{return await kG({getFn:e=>navigator.credentials.get(e),options:e.step.options})}catch(e){throw new KG(`Passkey ceremony failed.`,{cause:e})}})();try{return await rG(t.v1.account.passkey.verify.$post({json:{assertion:n}}))}catch(t){let n=ZG(t);throw n===`retry`||(n===`refused`&&QG(e),i.reset()),t}},async onSuccess(){i.reset(),await n.invalidate({sync:!0})}}),o=(0,U.useRef)(i.data);return o.current=a.isPending?void 0:i.data,(0,U.useEffect)(()=>()=>{o.current&&QG(o.current)},[]),(0,W.jsx)(`main`,{...eK.page?{className:`z_tempo_2d_id-5EdEP10 z_tempo_2d_id-5EdEP11 z_tempo_2d_id-5EdEP12 z_tempo_2d_id-5EdEP13 z_tempo_2d_id-5EdEP14`}:eK.page(),"aria-label":`Your account`,children:(0,W.jsx)(HG,{accountError:e.accountError??void 0,accounts:e.accounts,addingPasskey:i.isPending,confirmingPasskey:a.isPending,email:e.email,error:(()=>{if(r.error)return hG(r.error);if(a.error)return YG(a.error);if(i.error)return YG(i.error)})(),name:e.name??void 0,onAddPasskey:e.passkeys&&!e.accounts?.some(e=>e.owner===`webAuthn`)?()=>{r.reset(),a.reset(),i.mutate()}:void 0,onConfirmPasskey:i.data?()=>{r.reset(),o.current=void 0,a.mutate(i.data)}:void 0,onSignOut:()=>{i.data&&QG(i.data),i.reset(),a.reset(),r.mutate()},passkeyAdded:a.isSuccess,signingOut:r.isPending})})}function YG(e){return e instanceof KG?$G(e).includes(`InvalidStateError`)?`This device already holds one of your passkeys. Add a passkey on another device.`:$G(e).includes(`NotAllowedError`)?`Adding a passkey was canceled. Try again.`:`Your passkey could not be created. Try again.`:hG(e)}function XG(e){return gG(e)===`rate_limited`?hG(e):`Your wallets failed to load. Reload the page to try again.`}function ZG(e){let t=gG(e);return t===`rate_limited`?`retry`:t&&e instanceof qW&&typeof e.statusCode==`number`&&e.statusCode<500?`refused`:`unknown`}function QG(e){PublicKeyCredential.signalUnknownCredential?.call(PublicKeyCredential,{credentialId:e.credentialId,rpId:e.rpId}).catch(()=>{})}function $G(e){return e instanceof Error?[e.name,...$G(e.cause)]:[]}var eK;(function(e){e.page=1})(eK||={});var tK=`/assets/BRLA-CZvVDNYr.png`,nK=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='80'%20height='80'%20viewBox='0%200%2080%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='sub_brz-Brand%20assets'%3e%3cg%20id='sub_brz-Frame%2011'%3e%3cg%20id='sub_brz-Frame%2055'%3e%3cg%20id='sub_brz-Frame%2053'%3e%3cg%20id='sub_brz-Currencies'%20clip-path='url(%23sub_brz-clip0_1741_2949)'%3e%3cg%20id='sub_brz-BRZ'%3e%3cpath%20id='sub_brz-Background'%20d='M40%2080C62.0914%2080%2080%2062.0914%2080%2040C80%2017.9086%2062.0914%200%2040%200C17.9086%200%200%2017.9086%200%2040C0%2062.0914%2017.9086%2080%2040%2080Z'%20fill='url(%23sub_brz-paint0_linear_1741_2949)'/%3e%3cpath%20id='sub_brz-Inner%20Circle'%20d='M39.9998%2076.144C59.9616%2076.144%2076.1438%2059.9617%2076.1438%2040C76.1438%2020.0382%2059.9616%203.85596%2039.9998%203.85596C20.0381%203.85596%203.85583%2020.0382%203.85583%2040C3.85583%2059.9617%2020.0381%2076.144%2039.9998%2076.144Z'%20fill='%23160F29'/%3e%3cg%20id='sub_brz-Icon'%3e%3cpath%20id='sub_brz-Path%201'%20d='M40.0025%2043.5679L32.609%2050.9614L40.0025%2058.3549L47.396%2050.9614L40.0025%2043.5679Z'%20fill='white'/%3e%3cpath%20id='sub_brz-Path%202'%20d='M62.1799%2036.1719L54.7879%2028.7759L47.392%2036.1719L39.9999%2028.7759H25.2119L17.8199%2036.1719L25.2119%2043.5639L32.6079%2036.1719L39.9999%2043.5639H54.7879L62.1799%2036.1719Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='sub_brz-paint0_linear_1741_2949'%20x1='11.196'%20y1='68.804'%20x2='67.692'%20y2='12.308'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.04'%20stop-color='%23FFC100'/%3e%3cstop%20offset='1'%20stop-color='%2300C800'/%3e%3c/linearGradient%3e%3cclipPath%20id='sub_brz-clip0_1741_2949'%3e%3crect%20width='80'%20height='80'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,rK=`/assets/CHFAU-DCedc4aH.png`,iK=`/assets/DLUSD-BnRXm3EI.png`,aK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='720'%20height='714'%20fill='none'%20viewBox='0%200%20720%20714'%3e%3ccircle%20cx='357'%20cy='357'%20r='357'%20fill='%23000'/%3e%3cpath%20fill='%23fff'%20d='M405.18%20357.091H457C452.59%20408.451%20417.308%20440%20363.65%20440c-55.863%200-90.778-33.751-99.598-95.015H242l4.778-25.68h14.701V304.63H242l4.778-25.679h16.539c8.82-63.1%2044.102-97.951%20101.435-97.951%2054.394%200%2087.838%2031.183%2091.146%2081.809H405.18c-3.675-23.479-17.641-38.153-40.428-38.153-26.094%200-43%2018.71-48.88%2054.295h80.487l-4.777%2025.679h-77.915v14.675h74.974l-4.777%2025.68h-67.257c5.881%2033.75%2022.051%2051.359%2047.043%2051.359%2022.786%200%2037.855-15.041%2041.53-39.253'/%3e%3cpath%20fill='url(%23a)'%20d='M357%2096.15c143.852%200%20260.465%20116.148%20260.465%20259.425h96.768C714.233%20159.197%20554.165%200%20357%200S0%20159.197%200%20355.575h96.536C96.536%20212.298%20213.148%2096.151%20357%2096.151'/%3e%3cpath%20fill='url(%23b)'%20d='M357.001%20514.313c-88.02%200-159.375-71.07-159.375-158.739H96.536c0%20143.278%20116.613%20259.425%20260.465%20259.425s260.465-116.147%20260.464-259.425H516.376c0%2087.669-71.354%20158.739-159.375%20158.739'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='714.233'%20x2='51.769'%20y1='355.575'%20y2='-78.929'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2330c0fe'/%3e%3cstop%20offset='1'%20stop-color='%2300ffea'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='617.466'%20x2='134.2'%20y1='614.999'%20y2='298.132'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2330c0fe'/%3e%3cstop%20offset='1'%20stop-color='%2300ffea'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,oK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2096%2096'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%230b53bf'%20d='M48%2096c26.51%200%2048-21.49%2048-48S74.51%200%2048%200%200%2021.49%200%2048s21.49%2048%2048%2048'/%3e%3cpath%20fill='%23fff'%20stroke='%230b53bf'%20stroke-miterlimit='10'%20stroke-width='.03'%20d='M58.2%2059.43c-2.1.84-4.38%201.32-6.57%201.32-4.337%200-8.426-1.847-10.38-6.3h9.54l1.86-4.5H40.14q-.09-.93-.09-1.95c0-1.02.03-1.33.09-1.95h14.1l1.86-4.5H41.25c1.954-4.452%206.043-6.3%2010.38-6.3%202.19%200%204.47.48%206.57%201.32l1.92-4.56c-2.58-1.35-5.49-2.01-8.4-2.01-7.024%200-14.123%203.927-16.693%2011.55H30.42v4.5h3.684a22.5%2022.5%200%200%200%200%203.9H30.42v4.5h4.607C37.597%2062.075%2044.697%2066%2051.72%2066c2.91%200%205.82-.66%208.4-2.01z'/%3e%3cpath%20fill='%23fff'%20stroke='%230b53bf'%20stroke-miterlimit='10'%20stroke-width='.03'%20d='M18%2048c0-13.59%209.03-25.05%2021.36-28.77v-6.18C23.64%2016.89%2012%2031.08%2012%2048s11.64%2031.11%2027.36%2034.95v-6.18C27.03%2073.08%2018%2061.59%2018%2048Zm38.64-34.95v6.18C68.97%2022.95%2078%2034.41%2078%2048s-9.03%2025.05-21.36%2028.77v6.18C72.36%2079.11%2084%2064.92%2084%2048S72.36%2016.89%2056.64%2013.05Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h96v96H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,sK=`data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='300'%20height='300'%20fill='%23000B3B'/%3e%3cpath%20d='M268%20149.993C268%20172.889%20261.479%20194.254%20250.188%20212.352C238.213%20194.5%20231.228%20173.053%20231.228%20149.993C231.228%20137.964%20228.603%20126.55%20223.9%20116.271C219.772%20107.263%20214.044%2099.1298%20207.073%2092.2405C203.19%2088.3994%20198.911%2084.9411%20194.318%2081.9475C181.564%2073.6093%20166.349%2068.7703%20150.014%2068.7703C105.203%2068.7703%2068.7725%20105.199%2068.7725%20149.993C68.7725%20194.774%20105.203%20231.216%20150%20231.216C166.336%20231.216%20181.564%20226.363%20194.305%20218.039C194.305%20218.039%20179.322%20205.231%20176.875%20168.392C165.023%20180.079%20172.802%20195.375%20149.986%20195.375C124.97%20195.375%20104.615%20175.022%20104.615%20150.007C104.615%20124.992%20124.97%20104.639%20149.986%20104.639C162.754%20104.639%20174.319%20109.942%20182.562%20118.472C190.477%20126.632%20195.357%20137.773%20195.357%20150.007C195.357%20169.978%20199.281%20189.374%20207.004%20207.636C207.018%20207.678%20207.045%20207.719%20207.045%20207.76C211.994%20219.419%20218.35%20230.3%20226.019%20240.251C221.987%20243.641%20217.735%20246.785%20213.265%20249.615C194.975%20261.261%20173.266%20268%20149.986%20268C84.8348%20267.973%2032%20215.155%2032%20149.993C32%2084.8317%2084.8348%2032%20150%2032C173.28%2032%20194.988%2038.7526%20213.279%2050.3852C217.749%2053.2284%20222%2056.3586%20226.033%2059.7486C232.212%2064.9703%20237.858%2070.8071%20242.861%2077.1906C245.485%2080.5396%20247.932%2084.0253%20250.188%2087.6339C261.479%20105.718%20268%20127.097%20268%20149.993Z'%20fill='white'/%3e%3c/svg%3e`,cK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1024'%20height='1024'%20fill='none'%20viewBox='0%200%201024%201024'%3e%3cpath%20fill='%233f79ff'%20d='M512%200c282.77%200%20512%20229.23%20512%20512s-229.231%20512-512%20512S0%20794.77%200%20512%20229.23%200%20512%200m55.697%2094.262c-30.761-30.76-80.633-30.76-111.394%200L94.262%20456.303c-30.76%2030.761-30.76%2080.633%200%20111.394l362.041%20362.041c30.761%2030.759%2080.633%2030.76%20111.394%200l362.041-362.041c30.76-30.761%2030.759-80.633%200-111.394z'/%3e%3cpath%20fill='%233f79ff'%20d='M560.62%20256.32q29.982%207.47%2055.37%2024.129%2046.742%2029.484%2072.629%2082.697l-83.415%2048.18q-30.203-64.72-96.36-64.72-30.921%200-48.899%2014.382-17.258%2013.664-17.258%2035.955%200%2023.731%2019.416%2038.832%2020.135%2014.382%2076.224%2031.641%2023.011%207.191%2034.517%2011.505%2012.225%203.596%2032.36%2012.225%2020.853%207.91%2031.64%2015.101%2011.505%207.191%2025.887%2019.416t21.574%2025.168q7.91%2012.943%2012.944%2031.641%205.752%2017.977%205.752%2039.55%200%2069.753-51.056%20110.742-37.212%2030.3-91.325%2038.2V832h-93.483v-62.988q-40.898-7.781-72.63-28.338-51.056-33.798-71.91-91.325l84.854-49.619q29.484%2076.944%20115.776%2076.944%2041.707%200%2061.123-15.101%2019.415-15.1%2019.416-38.112%200-26.607-23.731-40.989-23.73-15.101-84.853-32.36-33.798-10.067-57.529-20.134-23.012-10.068-46.742-26.607-23.01-17.259-35.235-43.146-12.225-25.889-12.225-60.405%200-68.314%2048.18-108.584%2033.261-27.879%2075.506-36.795V192h93.483z'/%3e%3c/svg%3e`,lK=`data:image/svg+xml,%3csvg%20width='400'%20height='400'%20viewBox='0%200%20400%20400'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='400'%20height='400'%20fill='black'/%3e%3cpath%20d='M224.58%20153.969H318V177.238H224.58V153.969ZM82%20255.876H116.461V279.145H82V255.876ZM82%20221.907H116.461V245.176H82V221.907ZM82%20187.938H116.461V211.207H82V187.938ZM82%20153.969H174.113V177.238H82V153.969ZM82%20120H116.461V143.269H82V120ZM175.42%20187.938H224.58V211.207H175.42V187.938ZM283.539%20255.876H318V279.145H283.539V255.876ZM283.539%20221.907H318V245.176H283.539V221.907ZM283.539%20187.938H318V211.207H283.539V187.938ZM283.539%20120H318V143.269H283.539V120Z'%20fill='%23EBEBEB'/%3e%3c/svg%3e`,uK=`data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M150%20300C232.843%20300%20300%20232.843%20300%20150C300%2067.1573%20232.843%200%20150%200C67.1573%200%200%2067.1573%200%20150C0%20232.843%2067.1573%20300%20150%20300Z'%20fill='%23390922'/%3e%3cpath%20d='M247.63%2081.3L220.01%2072.09C218.43%2071.56%20217.19%2070.32%20216.67%2068.74L207.46%2041.12C206.74%2038.96%20204.72%2037.5%20202.44%2037.5H97.56C95.28%2037.5%2093.26%2038.96%2092.54%2041.12L83.34%2068.74C82.81%2070.32%2081.57%2071.56%2079.99%2072.09L52.37%2081.3C50.21%2082.02%2048.75%2084.04%2048.75%2086.32V213.7C48.75%20215.98%2050.21%20218%2052.37%20218.72L79.98%20227.92C81.56%20228.45%2082.8%20229.69%2083.33%20231.26L92.54%20258.88C93.26%20261.04%2095.28%20262.5%2097.56%20262.5H202.44C204.72%20262.5%20206.74%20261.04%20207.46%20258.88L216.68%20231.25C217.21%20229.67%20218.45%20228.43%20220.03%20227.91L247.64%20218.71C249.8%20217.99%20251.26%20215.97%20251.26%20213.69V86.31C251.26%2084.03%20249.8%2082.01%20247.64%2081.29L247.63%2081.3Z'%20fill='%23F3E9E3'/%3e%3cpath%20d='M192.24%20160.47C189.93%20155.8%20186.5%20151.81%20181.94%20148.52C177.38%20145.23%20171.64%20142.32%20164.71%20139.78L147.57%20133.72C141.57%20131.76%20136.98%20129.16%20133.81%20125.93C130.63%20122.7%20129.05%20118.6%20129.05%20113.64C129.05%20109.83%20130%20106.48%20131.91%20103.6C133.81%20100.72%20136.5%2098.47%20139.96%2096.85C143.42%2095.23%20147.29%2094.43%20151.56%2094.43C158.72%2094.43%20164.72%2096.91%20169.57%20101.87C174.42%20106.83%20177.88%20113.59%20179.96%20122.13L181.69%20122.3L192.42%20105.33C189.65%20101.06%20186.01%2097.51%20181.51%2094.68C177.01%2091.85%20172.16%2089.69%20166.97%2088.19C162.95%2087.03%20158.97%2086.32%20155.02%2086.06V66.2H146.36V86.13C142.01%2086.46%20137.94%2087.19%20134.15%2088.36C128.9%2089.98%20124.34%2092.29%20120.47%2095.29C116.6%2098.29%20113.66%20101.9%20111.64%20106.11C109.62%20110.32%20108.61%20114.97%20108.61%20120.05C108.61%20125.48%20109.79%20130.29%20112.16%20134.51C114.52%20138.72%20117.93%20142.36%20122.37%20145.42C126.81%20148.48%20132.38%20151.34%20139.08%20153.99L154.66%20159.36C161.35%20161.67%20166.37%20164.76%20169.72%20168.62C173.07%20172.49%20174.74%20177.36%20174.74%20183.25C174.74%20187.87%20173.64%20191.85%20171.45%20195.2C169.26%20198.55%20166.31%20201.15%20162.62%20202.99C158.92%20204.84%20154.66%20205.76%20149.81%20205.76C144.96%20205.76%20140.17%20204.61%20135.79%20202.3C131.4%20199.99%20127.71%20196.44%20124.71%20191.65C121.71%20186.86%20119.34%20180.83%20117.61%20173.56H115.88L104.28%20191.39C106.82%20196.01%20110.4%20200.05%20115.01%20203.51C119.62%20206.97%20124.91%20209.63%20130.85%20211.47C135.79%20213.01%20140.96%20213.89%20146.35%20214.15V233.98H155.01V214.04C159.67%20213.7%20164.06%20212.9%20168.17%20211.64C173.82%20209.91%20178.7%20207.37%20182.8%20204.02C186.9%20200.67%20190.07%20196.69%20192.32%20192.07C194.57%20187.45%20195.7%20182.32%20195.7%20176.66C195.7%20170.54%20194.54%20165.15%20192.24%20160.47Z'%20fill='%23390922'/%3e%3c/svg%3e`,dK=`/assets/PRIME-CiFp2-3e.svg`,fK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='eKgCWIOpRqD1'%20shape-rendering='geometricPrecision'%20text-rendering='geometricPrecision'%20viewBox='0%200%20400%20400'%3e%3cstyle%3e@keyframes%20eKgCWIOpRqD2_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}12.5%25{transform:translate(200px,200px)%20scale(.41,.41)}25%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD3_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}8.333333%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}20.833333%25{transform:translate(200px,200px)%20scale(.41,.41)}33.333333%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD4_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}16.666667%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}29.166667%25{transform:translate(200px,200px)%20scale(.41,.41)}41.666667%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD5_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}25%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}37.5%25{transform:translate(200px,200px)%20scale(.41,.41)}50%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD6_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}33.333333%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}45.833333%25{transform:translate(200px,200px)%20scale(.41,.41)}58.333333%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD7_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}41.666667%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}54.166667%25{transform:translate(200px,200px)%20scale(.41,.41)}66.666667%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD8_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}50%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}62.5%25{transform:translate(200px,200px)%20scale(.41,.41)}75%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}%3c/style%3e%3ccircle%20r='440'%20fill='%236938ef'%20style='animation:eKgCWIOpRqD2_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='385'%20fill='%238760f2'%20style='animation:eKgCWIOpRqD3_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='330'%20fill='%23a588f5'%20style='animation:eKgCWIOpRqD4_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='275'%20fill='%23c3aff9'%20style='animation:eKgCWIOpRqD5_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='220'%20fill='%23e1d7fc'%20style='animation:eKgCWIOpRqD6_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='165'%20fill='%23fff'%20style='animation:eKgCWIOpRqD7_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='110'%20fill='%236938ef'%20style='animation:eKgCWIOpRqD8_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3c/svg%3e`,pK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20role='img'%20aria-labelledby='title'%3e%3ctitle%20id='title'%3eSEK%20icon%3c/title%3e%3cpath%20fill='%2305160B'%20d='M16%200c8.837%200%2016%207.163%2016%2016s-7.163%2016-16%2016S0%2024.837%200%2016%207.163%200%2016%200Zm0%203C8.82%203%203%208.82%203%2016s5.82%2013%2013%2013%2013-5.82%2013-13S23.18%203%2016%203Z'/%3e%3cpath%20fill='%2305160B'%20d='M16%206c5.523%200%2010%204.477%2010%2010s-4.477%2010-10%2010S6%2021.523%206%2016%2010.477%206%2016%206Zm-4.865%207.076c-1.368%200-2.232.696-2.232%201.736%200%201.232.984%201.512%202.072%201.792.76.2%201.088.289%201.088.72%200%20.368-.32.6-.84.6-.632%200-.944-.296-.944-.88H8.807c0%201.272.904%201.985%202.384%201.985%201.416%200%202.328-.713%202.328-1.825%200-1.248-.96-1.544-2.056-1.816-.832-.208-1.136-.328-1.136-.704%200-.32.296-.536.752-.536.552%200%20.847.288.847.792h1.441c0-1.224-.8-1.864-2.232-1.864Zm3.004%205.824h4.088v-1.16h-2.704v-1.152h2.464v-1.144h-2.464v-1.08h2.64v-1.16h-4.024V18.9Zm4.83%200h1.384v-2.624h.016l1.736%202.624h1.744l-2.224-3%202.072-2.696h-1.656l-1.672%202.455h-.016v-2.455H18.97v5.695Z'/%3e%3c/svg%3e`,mK=`/assets/USD1-COVcO_PB.svg`,hK=`data:image/svg+xml,%3csvg%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M25%2045C25.7075%2045%2026.4064%2044.9633%2027.095%2044.8916L26.4697%2038.9516C25.9867%2039.0018%2025.4965%2039.0276%2025.0002%2039.0276C24.5061%2039.0276%2024.0179%2039.0021%2023.537%2038.9522L22.9039%2044.8915C23.5928%2044.9632%2024.2921%2045%2025%2045Z'%20fill='%23030712'/%3e%3cpath%20d='M17.9718%2037.1424C18.8166%2037.6325%2019.7172%2038.0369%2020.6618%2038.3438L18.8173%2044.0261C17.4728%2043.5894%2016.1907%2043.0143%2014.9879%2042.3174L17.9718%2037.1424Z'%20fill='%23030712'/%3e%3cpath%20d='M13.642%2033.2331C14.2192%2034.0281%2014.8778%2034.7602%2015.6057%2035.417L11.6042%2039.8513C10.5678%2038.9158%209.62979%2037.8735%208.80758%2036.7416L13.642%2033.2331Z'%20fill='%23030712'/%3e%3cpath%20d='M11.2716%2027.8917C11.4756%2028.8653%2011.7805%2029.8019%2012.175%2030.6898L6.71509%2033.1156C6.15342%2031.8521%205.71889%2030.5195%205.42772%2029.1341L11.2716%2027.8917Z'%20fill='%23030712'/%3e%3cpath%20d='M10.9733%2024.9926H5C5%2024.946%205.00016%2024.8994%205.00048%2024.8529C5.00773%2023.846%205.08939%2022.8568%205.24022%2021.8906C6.24559%2015.4618%2010.3245%2010.0379%2015.9214%207.17448C18.6459%205.78411%2021.7314%205%2025%205C28.2783%205%2031.3724%205.78876%2034.1028%207.18685C39.6098%2010.0137%2043.6428%2015.3213%2044.7163%2021.6241C44.9024%2022.7192%2044.9996%2023.8446%2045%2024.9926H39.027C39.0226%2017.2495%2032.7443%2010.9739%2025.0002%2010.9739C17.2561%2010.9739%2010.9778%2017.2495%2010.9733%2024.9926Z'%20fill='%23030712'/%3e%3cpath%20d='M37.8265%2030.6872C38.2196%2029.8018%2038.5238%2028.8682%2038.7276%2027.8976L44.5723%2029.1336C44.2807%2030.5213%2043.8453%2031.856%2043.2823%2033.1215L37.8265%2030.6872Z'%20fill='%23030712'/%3e%3cpath%20d='M34.3965%2035.4154C35.1252%2034.7575%2035.7846%2034.0242%2036.3623%2033.2278L41.1938%2036.7396C40.3706%2037.8731%2039.4314%2038.9168%2038.3936%2039.8533L34.3965%2035.4154Z'%20fill='%23030712'/%3e%3cpath%20d='M29.3423%2038.3426C30.2859%2038.0357%2031.1855%2037.6315%2032.0294%2037.1419L35.0132%2042.3167C33.8125%2043.0125%2032.5329%2043.5869%2031.1909%2044.0234L29.3423%2038.3426Z'%20fill='%23030712'/%3e%3cpath%20d='M28.7194%2024.3156C29.4014%2024.6073%2029.9343%2025.0561%2030.3606%2025.6396C30.7869%2026.223%2031%2027.0085%2031%2027.9958C31%2029.275%2030.5524%2030.3521%2029.6998%2031.2498C28.8472%2032.1474%2027.7176%2032.7084%2026.3535%2032.9104V35H23.7105V32.8655C22.3037%2032.6187%2021.1528%2032.0352%2020.3002%2031.0927C19.4476%2030.1502%2019%2029.0281%2019%2027.7041L22.1332%2027.749C22.1758%2028.5344%2022.4742%2029.1628%2023.0284%2029.634C23.5826%2030.1053%2024.3073%2030.3297%2025.2238%2030.3297C25.9698%2030.3297%2026.5879%2030.1726%2027.0568%2029.836C27.5258%2029.4994%2027.7815%2029.0281%2027.7815%2028.4222C27.7815%2028.0183%2027.6323%2027.6817%2027.3766%2027.4348C27.1208%2027.188%2026.7371%2026.986%2026.2682%2026.8514C25.7993%2026.7167%2025.0533%2026.5372%2024.0728%2026.3128C23.0924%2026.1333%2022.2611%2025.8864%2021.6004%2025.5722C20.9183%2025.2581%2020.3854%2024.8093%2019.9591%2024.2034C19.5329%2023.5975%2019.341%2022.7896%2019.341%2021.7797C19.341%2020.5904%2019.7247%2019.5581%2020.5346%2018.7054C21.3446%2017.8526%2022.389%2017.3365%2023.7105%2017.1121V15H26.3535V17.1569C27.6323%2017.4262%2028.6554%2017.9872%2029.4654%2018.84C30.254%2019.7152%2030.659%2020.7475%2030.7016%2021.9593H27.5684C27.4831%2021.286%2027.2274%2020.7475%2026.7584%2020.3435C26.2895%2019.9396%2025.6714%2019.7152%2024.9041%2019.7152C24.1794%2019.7152%2023.6252%2019.8723%2023.1989%2020.1864C22.7726%2020.5006%2022.5595%2020.9494%2022.5595%2021.5329C22.5595%2021.9593%2022.6874%2022.2959%2022.9432%2022.5203C23.1989%2022.7447%2023.5613%2022.9467%2024.0302%2023.0813C24.4991%2023.216%2025.2238%2023.3955%2026.2043%2023.575C27.1847%2023.777%2028.0373%2024.0238%2028.7194%2024.3156Z'%20fill='%23030712'/%3e%3c/svg%3e`,gK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cg%20fill='none'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%233e73c4'/%3e%3cg%20fill='%23fff'%3e%3cpath%20d='M20.02%2018.12c0-2.12-1.28-2.85-3.84-3.15-1.83-.25-2.2-.73-2.2-1.58s.62-1.4%201.84-1.4c1.1%200%201.7.37%202%201.28a.46.46%200%200%200%20.43.3h.98a.42.42%200%200%200%20.43-.42v-.06a3.04%203.04%200%200%200-2.75-2.5V9.15c0-.24-.18-.42-.48-.48h-.92c-.24%200-.42.18-.48.48v1.4c-1.83.24-3%201.45-3%202.97%200%202%201.23%202.8%203.79%203.1%201.7.3%202.25.66%202.25%201.64%200%20.97-.85%201.63-2%201.63-1.6%200-2.14-.66-2.32-1.57-.06-.25-.25-.37-.43-.37h-1.04a.42.42%200%200%200-.42.43v.06c.24%201.51%201.22%202.6%203.23%202.91v1.46c0%20.24.18.42.48.48h.92c.24%200%20.42-.18.49-.48v-1.46c1.82-.3%203.04-1.58%203.04-3.22z'/%3e%3cpath%20d='M12.9%2024.5a9.03%209.03%200%200%201-5.43-11.66%209%209%200%200%201%205.42-5.4c.25-.12.37-.3.37-.6v-.86c0-.24-.12-.42-.37-.48-.06%200-.18%200-.24.06a10.9%2010.9%200%200%200-7.13%2013.72c1.1%203.4%203.72%206%207.13%207.1.24.12.49%200%20.55-.24.06-.06.06-.13.06-.25v-.85c0-.18-.19-.42-.37-.54m6.46-18.94c-.24-.12-.49%200-.55.24-.06.06-.06.13-.06.25v.85c0%20.24.19.48.37.6a9.03%209.03%200%200%201%205.42%2011.66%209%209%200%200%201-5.42%205.4c-.25.12-.37.3-.37.6v.86c0%20.24.12.42.37.48.06%200%20.18%200%20.24-.06a10.9%2010.9%200%200%200%207.13-13.72%2011.03%2011.03%200%200%200-7.13-7.16'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,_K=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3ccircle%20cx='256'%20cy='256'%20r='256'%20fill='%2300805e'/%3e%3cpath%20fill='%23f0f0f0'%20d='M386.895%20186.535v-58.196H125.106v58.196h101.797V244.7h58.195v-58.165zM226.934%20361.061v58.197h58.164v-58.197h58.165v-116.36h-58.165v116.36zm-.001-116.36h-58.195v116.36h58.195z'/%3e%3c/svg%3e`,vK=`data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3034_948)'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%231C3966'/%3e%3cg%20clip-path='url(%23clip1_3034_948)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.8%2016C24.8%2011.1399%2020.8601%207.2%2016%207.2V4C16.8284%204%2017.6372%204.08395%2018.4184%204.2438C23.8866%205.36275%2028%2010.201%2028%2016C28%2022.6274%2022.6274%2028%2016%2028C10.7751%2028%206.33016%2024.6608%204.68282%2020H8.15953C9.6161%2022.8493%2012.5802%2024.8%2016%2024.8C20.8601%2024.8%2024.8%2020.8601%2024.8%2016ZM5.38408%2010.4C7.39607%2014.2062%2011.3951%2016.8%2016%2016.8V13.6C12.0562%2013.6%208.71825%2011.0056%207.59987%207.43042C6.71685%208.29608%205.96705%209.29714%205.38408%2010.4ZM8.95347%206.28574C9.63814%209.54935%2012.5329%2012%2016%2012C18.2091%2012%2020%2013.7909%2020%2016C20%2018.2091%2018.2091%2020%2016%2020H10.0124C11.3041%2021.9296%2013.5037%2023.2%2016%2023.2C19.9765%2023.2%2023.2%2019.9764%2023.2%2016C23.2%2012.0236%2019.9765%208.8%2016%208.8C13.7909%208.8%2012%207.00914%2012%204.8V4.68282C10.9024%205.07076%209.87812%205.61385%208.95347%206.28574Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3034_948'%3e%3crect%20width='32'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_3034_948'%3e%3crect%20width='24'%20height='24'%20fill='white'%20transform='translate(4%204)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,yK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%20397.1%20397.1'%3e%3cpath%20d='M198.6%207.1c105.8%200%20191.5%2085.7%20191.5%20191.5%200%20105.7-85.7%20191.5-191.5%20191.5S7.1%20304.3%207.1%20198.6C7.1%2092.8%2092.8%207.1%20198.6%207.1z'%20style='fill:%23111;stroke:%23111;stroke-width:7.0536'/%3e%3cradialGradient%20id='a'%20cx='-105.949'%20cy='595.938'%20r='1'%20gradientTransform='matrix(0%20411.151%20289.409%200%20-172270.75%2043621.418)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.031'%20style='stop-color:%233a3a3a'/%3e%3cstop%20offset='1'%20style='stop-color:%231c1c1c'/%3e%3c/radialGradient%3e%3cpath%20d='M198.6%203.6c-107.7%200-195%2087.3-195%20195s87.3%20195%20195%20195%20195-87.3%20195-195-87.3-195-195-195'%20style='fill:url(%23a);fill-opacity:.7'/%3e%3clinearGradient%20id='b'%20x1='198.575'%20x2='198.575'%20y1='399.143'%20y2='1.994'%20gradientTransform='matrix(1%200%200%20-1%200%20399.143)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20style='stop-color:%23fff'/%3e%3cstop%20offset='1'%20style='stop-color:%23111'/%3e%3c/linearGradient%3e%3cpath%20d='M198.6%203.6c-107.7%200-195%2087.3-195%20195s87.3%20195%20195%20195%20195-87.3%20195-195-87.3-195-195-195z'%20style='fill:none;stroke:url(%23b);stroke-width:7.1429'/%3e%3cpath%20d='M167.4%2038.1C92.1%2052.6%2035.2%20118.9%2035.2%20198.4s56.9%20145.8%20132.2%20160.3v-15.3c-67-14.3-117.2-73.8-117.2-145s50.2-130.7%20117.2-145zm62.4%2015.4V38.2C305%2052.8%20361.7%20119%20361.7%20198.4S305%20344%20229.8%20358.6v-15.3c66.8-14.4%20116.9-73.8%20116.9-144.9S296.6%2067.9%20229.8%2053.5'%20style='fill-rule:evenodd;clip-rule:evenodd;fill:%23fff'/%3e%3cpath%20d='M221.7%20193c12.5%202.4%2022.1%207%2029%2013.7%206.9%206.6%2010.3%2015.1%2010.3%2025.4v16.3c0%2012.4-4.5%2022.4-13.4%2030-8.9%207.5-20.7%2011.2-35.2%2011.2h-5v25.9h-17.2v-25.9h-5.3c-9.6%200-18-2.1-25.4-6.4-7.3-4.4-13.1-10.5-17.2-18.3-4-8-6-17.1-6-27.5h17.2c0%2010.5%202.9%2019.1%208.6%2025.7%205.9%206.4%2013.7%209.7%2023.2%209.7h26.6q14.1%200%2022.8-6.6c5.7-4.6%208.6-10.5%208.6-17.8v-16.3c0-5.8-2.2-10.7-6.5-14.8-4.2-4.1-9.9-6.7-17.2-7.9l-43.1-7.6c-12.1-2.2-21.6-6.8-28.3-13.7-6.7-7-10.1-15.7-10.1-26.2v-13.7c0-12.4%204.3-22.2%2012.9-29.5%208.8-7.5%2020.4-11.2%2034.7-11.2h4.3V81.6h17.2v25.9h5.5c13.6%200%2024.5%204.4%2032.8%2013.2%208.3%208.6%2012.5%2020.1%2012.5%2034.3h-17.2c0-9.3-2.6-16.8-7.7-22.4q-7.65-8.4-20.4-8.4h-27.1c-9.1%200-16.4%202.2-21.8%206.6-5.4%204.2-8.1%2010-8.1%2017.3v13.7q0%208.85%206%2015c4.2%204.1%209.8%206.8%2017%208.1z'%20style='fill:%23fff'/%3e%3c/svg%3e`,bK=`/assets/YLDS-CRh8Zw0g.svg`,xK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20fill='none'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%233e73c4'%20d='M0%2032C0%2014.327%2014.327%200%2032%200s32%2014.327%2032%2032-14.327%2032-32%2032S0%2049.673%200%2032'/%3e%3cpath%20fill='%23fff'%20d='M29.838%2045.258q-2.988%200-5.211-1.505-2.2-1.504-3.414-4.223Q20%2036.79%2020%2033.151v-.045q0-3.638%201.213-6.356%201.235-2.74%203.481-4.245Q26.941%2021%2029.973%2021a7.8%207.8%200%200%201%202.92.54%207.1%207.1%200%200%201%202.38%201.504%206.8%206.8%200%200%201%201.618%202.358h.09V21.45h3.908v17.565q0%201.55.471%202.223.472.675%201.573.674.314%200%20.629-.045.336-.045.561-.112v3.234a3.6%203.6%200%200%201-.786.18q-.472.09-1.123.09-2.09%200-3.37-.944-1.28-.965-1.706-2.897l-.09-.404h-.113q-.516%201.19-1.594%202.156a7.9%207.9%200%200%201-2.493%201.527%208.1%208.1%200%200%201-3.01.562m.36-3.46q2.043%200%203.57-1.1%201.528-1.122%202.381-3.077.855-1.954.854-4.47v-.045q0-2.493-.854-4.447-.853-1.954-2.358-3.077t-3.504-1.123q-1.909%200-3.324%201.078-1.415%201.056-2.201%203.01-.765%201.954-.764%204.582v.045q0%202.673.719%204.604.74%201.932%202.134%202.988%201.393%201.033%203.346%201.033'/%3e%3c/svg%3e`,SK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20fill='none'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%231c9ba4'%20d='M0%2032C0%2014.327%2014.327%200%2032%200s32%2014.327%2032%2032-14.327%2032-32%2032S0%2049.673%200%2032'/%3e%3cpath%20fill='%23fff'%20d='M24%2050V25.696q0-4.129%202.037-6.404Q28.092%2017%2031.78%2017q3.371%200%205.409%201.837%202.055%201.837%202.055%204.9v.035a5.5%205.5%200%200%201-.966%203.167q-.948%201.416-2.617%202.134v.28q2.617.649%203.97%202.362%201.368%201.715%201.369%204.34v.035q0%202.326-1.019%204.129a7.3%207.3%200%200%201-2.81%202.817q-1.773%201.015-4.056%201.015-1.405%200-2.547-.385a5.8%205.8%200%200%201-1.95-1.102%205.4%205.4%200%200%201-1.281-1.68h-.281V50zm8.957-8.644q1.37%200%202.476-.665a4.9%204.9%200%200%200%201.774-1.854q.666-1.173.667-2.66v-.035q0-2.607-1.633-3.954-1.635-1.348-4.724-1.348H29.97v-2.694h1.563q2.248%200%203.46-1.068%201.23-1.084%201.23-3.132v-.035q0-1.907-1.195-3.062-1.177-1.154-3.161-1.154-2.389%200-3.6%201.592t-1.212%204.724v8.819q0%201.995.737%203.464.756%201.47%202.073%202.275%201.335.787%203.09.787'/%3e%3c/svg%3e`,CK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1021'%20height='1021'%20fill='none'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23292929'%20stroke='%23292929'%20stroke-width='10.667'%20d='M510%201015c278.904%200%20505-226.096%20505-505S788.904%205%20510%205%205%20231.096%205%20510s226.096%20505%20505%20505Z'/%3e%3cpath%20fill='%23fff'%20d='M430.37%20100v38.474l-1.365%201.012c-93.091%2019.673-176.275%2075.89-230.539%20153.497-86.596%20123.87-90.95%20288.992-10.778%20417.239%2053.723%2085.914%20141.637%20148.767%20241.317%20169.687l1.365%201.035v38.475c-104.221-19.249-198.607-80.738-260.142-166.322C62.335%20603.036%2066.336%20398.122%20180.441%20252.744c61.676-78.549%20151.19-134.483%20249.953-152.72zm159.499%20819.393v-39.651c98.504-20.402%20186.465-82.831%20239.999-167.427%2085.232-134.743%2076.949-309.371-20.99-434.983-54.146-69.441-132.318-119.399-218.844-137.801l-.141-39.51c105.445%2020.685%20200.301%2082.549%20261.718%20170.299%20101.987%20145.661%20100.339%20340.479-3.976%20484.375-61.559%2084.902-154.533%20144.414-257.766%20164.745z'/%3e%3cg%20filter='url(%23b)'%3e%3cpath%20fill='%23d1f019'%20d='M540.424%20481.574c62.733%2011.501%20118.146%2030.32%20117.623%20104.031-.523%2060.641-44.435%20104.031-113.963%20113.441v54.89H479.26v-55.413c-71.619-11.501-115.009-56.459-115.531-120.76l76.847%201.046c2.613%2035.548%2030.843%2060.118%2075.801%2060.118%2036.071%200%2062.732-15.683%2062.732-44.435%200-30.843-29.798-37.117-90.962-49.14-61.686-11.501-116.054-31.366-116.054-105.6%200-56.981%2041.299-99.326%20107.167-108.735v-55.414h64.824v55.936c65.346%2010.979%20105.599%2052.277%20106.644%20112.396h-76.847c-3.659-30.844-27.183-52.277-65.346-52.277-33.457%200-57.504%2014.114-57.504%2042.344%200%2029.798%2028.752%2036.071%2089.393%2047.572'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h1021v1021H0z'/%3e%3c/clipPath%3e%3cfilter%20id='b'%20width='307.778'%20height='491.789'%20x='357.001'%20y='275.603'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='6.728'/%3e%3cfeGaussianBlur%20stdDeviation='3.364'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_215_15'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_215_15'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e`,wK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M16%2032c8.837%200%2016-7.163%2016-16S24.837%200%2016%200%200%207.163%200%2016s7.163%2016%2016%2016'/%3e%3cpath%20fill='%230052FF'%20d='M23.032%2014.02c.314-2.096-1.283-3.223-3.465-3.975l.708-2.84-1.728-.43-.69%202.765c-.454-.114-.92-.22-1.385-.326l.695-2.783L15.439%206l-.708%202.839q-.566-.127-1.104-.26l.002-.009-2.384-.595-.46%201.846s1.283.294%201.256.312c.7.175.826.638.805%201.006l-.806%203.235q.073.017.18.057l-.183-.045-1.13%204.532c-.086.212-.303.531-.793.41.018.025-1.256-.313-1.256-.313L8%2020.993l2.25.561c.418.105.828.215%201.231.318l-.715%202.872%201.727.43.708-2.84q.707.19%201.378.357l-.706%202.828%201.728.43.715-2.866c2.948.558%205.164.333%206.097-2.333.752-2.146-.037-3.385-1.588-4.192%201.13-.26%201.98-1.003%202.207-2.538m-3.95%205.538c-.533%202.147-4.148.986-5.32.695l.95-3.805c1.172.293%204.929.872%204.37%203.11m.535-5.569c-.487%201.953-3.495.96-4.47.717l.86-3.45c.975.243%204.118.696%203.61%202.733'/%3e%3cpath%20fill='%230052FF'%20fill-rule='evenodd'%20d='M16%2030.5c8.008%200%2014.5-6.492%2014.5-14.5S24.008%201.5%2016%201.5%201.5%207.992%201.5%2016%207.992%2030.5%2016%2030.5M32%2016c0%208.837-7.163%2016-16%2016S0%2024.837%200%2016%207.163%200%2016%200s16%207.163%2016%2016'%20clip-rule='evenodd'/%3e%3c/svg%3e`,TK=`/assets/frxUSD-n9pTpinR.svg`,EK=`data:image/svg+xml,%3csvg%20width='240'%20height='240'%20viewBox='0%200%20240%20240'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='120'%20cy='120'%20r='120'%20fill='%2368B1F5'/%3e%3cpath%20d='M119.63%20213C119.63%20213%20191.755%20178.791%20191.755%20139.496C191.755%20109.021%20191.755%2089.2249%20191.755%2058.7498C145.968%2037.7688%2093.2984%2037.7471%2047.4999%2058.704C47.5414%2089.1943%2047.5043%20109.006%2047.5043%20139.496C47.5043%20178.791%20119.63%20213%20119.63%20213Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M132.84%2071.3319H123.541L122.424%2079.2775C122.083%2079.2694%20121.74%2079.2653%20121.396%2079.2653C105.845%2079.2653%2093.6191%2088.3812%2093.6191%20102.645C93.6191%20117.046%20105.064%20120.693%20116.219%20123.427L113.141%20145.33C107.885%20143.214%20103.236%20139.213%2099.7321%20133.746L89.1147%20142.648C93.5743%20149.974%20101.996%20155.231%20111.437%20157.452L110.134%20166.727H119.433L120.573%20158.617C120.883%20158.624%20121.193%20158.627%20121.503%20158.627C137.375%20158.627%20150.674%20149.297%20150.674%20134.175C150.674%20119.079%20138.537%20115.334%20127.026%20112.698L129.861%2092.5282C134.121%2094.4341%20137.381%2097.747%20140.056%20101.894L150.03%2093.3145C146.294%2087.4763%20139.845%2082.7117%20131.546%2080.5379L132.84%2071.3319ZM120.813%2090.7411C112.637%2090.7928%20106.918%2094.9625%20106.918%20101.251C106.918%20106.759%20110.909%20108.774%20118.021%20110.61L120.813%2090.7411ZM125.212%20125.607L122.199%20147.043C130.753%20146.96%20137.161%20142.893%20137.161%20135.569C137.161%20129.61%20132.5%20127.503%20125.212%20125.607Z'%20fill='%2368B1F5'/%3e%3c/svg%3e`,DK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='404'%20height='404'%20fill='none'%20viewBox='0%200%20404%20404'%3e%3cpath%20fill='%23005e5d'%20d='M404%20202C404%2090.439%20313.562%200%20202%200S0%2090.439%200%20202s90.439%20202%20202%20202%20202-90.438%20202-202'/%3e%3cpath%20fill='url(%23a)'%20fill-rule='evenodd'%20d='M80.765%20238.772c38.828%2038.829%2091.143%2049.466%20116.848%2023.761s15.066-78.02-23.761-116.848c-38.829-38.828-91.143-49.466-116.848-23.761s-15.067%2078.019%2023.761%20116.848m20.497%205.167c34.643%2027.048%2074.644%2033.712%2089.345%2014.884s-1.466-56.019-36.108-83.067c-34.643-27.048-74.644-33.712-89.344-14.883-14.701%2018.828%201.465%2056.018%2036.107%2083.066'%20clip-rule='evenodd'/%3e%3cpath%20fill='url(%23b)'%20fill-rule='evenodd'%20d='M323.235%20166.964c-38.828-38.828-91.142-49.466-116.849-23.761-25.704%2025.705-15.066%2078.019%2023.762%20116.848s91.142%2049.465%20116.848%2023.761c25.705-25.705%2015.068-78.02-23.761-116.848m-20.091-4.773c-34.643-27.048-74.643-33.712-89.344-14.883-14.701%2018.828%201.464%2056.019%2036.107%2083.067s74.643%2033.712%2089.345%2014.883c14.701-18.828-1.465-56.019-36.108-83.067'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23f9f9f9'%20d='M211.514%2078.551h38.327l-56.427%20246.895h-38.328z'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='145.389'%20x2='167.255'%20y1='238.887'%20y2='274.415'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.073'%20stop-color='%23f9f9f9'/%3e%3cstop%20offset='1'%20stop-color='%23f9f9f9'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='250.485'%20x2='236.745'%20y1='185.001'%20y2='131.32'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23f9f9f9'/%3e%3cstop%20offset='1'%20stop-color='%23f9f9f9'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,OK=`/assets/pathUSD-BvaO6ooS.svg`,kK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='158'%20height='158'%20fill='none'%20viewBox='0%200%20158%20158'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M0%20.21h52.51v52.51H0zm52.51%2052.51L105.01.21h52.51v52.51zm52.5%2052.5h52.51v52.51h-52.51zM0%20157.73v-52.51l52.51-52.5v105.01z'%20clip-rule='evenodd'/%3e%3c/svg%3e`,AK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20fill='none'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='25'%20fill='%2397fedd'/%3e%3cpath%20fill='%23000'%20fill-rule='evenodd'%20d='M32.165%2020.898c-1.501%200-2.522.832-2.814%202.215h5.628c-.243-1.444-1.274-2.215-2.814-2.215m-.103-3.59c4.47%200%207.306%203.209%207.306%207.213l-.001%201.493-10.016-.012c.09%201.13%201.365%202.258%203.625%202.258%201.756%200%203.04-.482%203.659-.97l1.75%203.401c-1.038.614-3.237%201.439-5.82%201.439-5.32%200-8.04-3.398-8.04-7.609%200-3.982%202.955-7.213%207.537-7.213m-13.698%204.08c-.499-.067-1.62-.159-1.62%202.895l-.043%207.846h-5.163V17.598l4.739-.017v1.843c1.128-2.188%204.462-2.548%206.393-1.675v6.19c-.21.05-.593.12-.786.147-2.551.358-3.554-1.14-3.52-2.696'%20clip-rule='evenodd'/%3e%3c/svg%3e`,jK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='398'%20height='398'%20fill='none'%20viewBox='0%200%20398%20398'%3e%3cpath%20fill='%23fff'%20stroke='%23111'%20stroke-width='7.054'%20d='M198.996%207.527h.007C304.75%207.527%20390.476%2093.252%20390.476%20199v.007c0%20105.747-85.726%20191.473-191.473%20191.473h-.007c-105.748%200-191.473-85.726-191.473-191.473V199C7.523%2093.252%2093.248%207.527%20198.996%207.527Z'/%3e%3cpath%20fill='url(%23a)'%20fill-opacity='.7'%20d='M199.003%204h-.007c-107.696%200-195%2087.304-195%20195v.007c0%20107.695%2087.304%20194.999%20195%20194.999h.007c107.695%200%20194.999-87.304%20194.999-194.999V199c0-107.696-87.304-195-194.999-195'/%3e%3cpath%20stroke='url(%23b)'%20stroke-width='7.143'%20d='M199.003%204h-.007c-107.696%200-195%2087.304-195%20195v.007c0%20107.695%2087.304%20194.999%20195%20194.999h.007c107.695%200%20194.999-87.304%20194.999-194.999V199c0-107.696-87.304-195-194.999-195Z'/%3e%3cpath%20fill='%23000'%20fill-rule='evenodd'%20d='M167.799%2038.559C92.491%2053.064%2035.606%20119.32%2035.606%20198.862c0%2079.541%2056.885%20145.797%20132.193%20160.302v-15.3c-66.971-14.276-117.2-73.773-117.2-145.002s50.229-130.727%20117.2-145.003zm62.401%2015.36V38.613c75.169%2014.616%20131.914%2080.805%20131.914%20160.249S305.369%20344.494%20230.2%20359.11v-15.306c66.831-14.382%20116.921-73.813%20116.921-144.942S297.031%2068.301%20230.2%2053.919'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23000'%20d='M222.118%20193.406q18.685%203.56%2028.985%2013.735%2010.3%209.92%2010.301%2025.435v16.279q0%2018.568-13.415%2030.013-13.414%2011.192-35.213%2011.192h-5.03v25.944h-17.247V290.06h-5.27q-14.373%200-25.392-6.359-11.019-6.613-17.247-18.313-5.988-11.955-5.988-27.47h17.247q0%2015.77%208.623%2025.689%208.863%209.666%2023.236%209.666h26.589q14.133%200%2022.757-6.613%208.623-6.868%208.623-17.805v-16.279q0-8.647-6.467-14.752-6.228-6.105-17.247-7.885l-43.118-7.631q-18.205-3.306-28.266-13.735t-10.061-26.198V148.64q0-18.567%2012.935-29.505%2013.174-11.191%2034.734-11.191h4.312V82h17.247v25.944h5.509q20.362%200%2032.818%2013.226%2012.456%2012.972%2012.456%2034.338h-17.247q0-13.99-7.665-22.383-7.666-8.394-20.362-8.394h-27.068q-13.655%200-21.798%206.613-8.145%206.359-8.145%2017.296v13.735q0%208.902%205.989%2015.007%206.228%206.105%2017.007%208.139z'/%3e%3cdefs%3e%3cradialGradient%20id='a'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(0%20411.151%20-289.409%200%20199.418%2060.946)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.031'%20stop-color='%23fafafa'/%3e%3cstop%20offset='1'%20stop-color='%23e3e3e3'/%3e%3c/radialGradient%3e%3clinearGradient%20id='b'%20x1='198.999'%20x2='198.999'%20y1='.321'%20y2='397.686'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23f4f4f4'/%3e%3cstop%20offset='1'%20stop-color='%23bebebe'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,MK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='404'%20height='404'%20fill='none'%20viewBox='0%200%20404%20404'%3e%3cpath%20fill='%23f9f9f9'%20d='M404%20202C404%2090.439%20313.562%200%20202%200S0%2090.439%200%20202s90.439%20202%20202%20202%20202-90.438%20202-202'/%3e%3cpath%20fill='url(%23a)'%20fill-rule='evenodd'%20d='M80.765%20238.772c38.828%2038.829%2091.143%2049.466%20116.848%2023.761s15.066-78.02-23.761-116.848c-38.829-38.828-91.143-49.466-116.848-23.761s-15.067%2078.019%2023.761%20116.848m20.497%205.167c34.643%2027.048%2074.644%2033.712%2089.345%2014.884s-1.466-56.019-36.108-83.067c-34.643-27.048-74.644-33.712-89.344-14.883-14.701%2018.828%201.465%2056.018%2036.107%2083.066'%20clip-rule='evenodd'/%3e%3cpath%20fill='url(%23b)'%20fill-rule='evenodd'%20d='M323.235%20166.964c-38.828-38.828-91.142-49.466-116.849-23.761-25.704%2025.705-15.066%2078.019%2023.762%20116.848s91.142%2049.465%20116.848%2023.761c25.705-25.705%2015.068-78.02-23.761-116.848m-20.091-4.773c-34.643-27.048-74.643-33.712-89.344-14.883-14.701%2018.828%201.464%2056.019%2036.107%2083.067s74.643%2033.712%2089.345%2014.883c14.701-18.828-1.465-56.019-36.108-83.067'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23171717'%20d='M211.514%2078.551h38.327l-56.427%20246.895h-38.328z'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='145.389'%20x2='167.255'%20y1='238.887'%20y2='274.415'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.073'%20stop-color='%23171717'/%3e%3cstop%20offset='1'%20stop-color='%23171717'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='250.485'%20x2='236.745'%20y1='185.001'%20y2='131.32'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23171717'/%3e%3cstop%20offset='1'%20stop-color='%23171717'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,NK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1021'%20height='1021'%20fill='none'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23d1f019'%20stroke='%23d1f019'%20stroke-width='10.667'%20d='M510.5%201015.67c278.995%200%20505.17-226.175%20505.17-505.17S789.495%205.334%20510.5%205.334%205.334%20231.504%205.334%20510.5s226.17%20505.17%20505.166%20505.17Z'/%3e%3cpath%20fill='%23292929'%20d='M430.37%20100v38.474l-1.365%201.012c-93.091%2019.673-176.275%2075.89-230.539%20153.497-86.596%20123.87-90.95%20288.992-10.778%20417.239%2053.723%2085.914%20141.637%20148.767%20241.317%20169.687l1.365%201.035v38.475c-104.221-19.249-198.607-80.738-260.142-166.322C62.335%20603.036%2066.336%20398.122%20180.441%20252.744c61.676-78.549%20151.19-134.483%20249.953-152.72zm159.499%20819.393v-39.651c98.504-20.402%20186.465-82.831%20239.999-167.427%2085.232-134.743%2076.949-309.371-20.99-434.983-54.146-69.441-132.318-119.399-218.844-137.801l-.141-39.51c105.445%2020.685%20200.301%2082.549%20261.718%20170.299%20101.987%20145.661%20100.339%20340.479-3.976%20484.375-61.559%2084.902-154.533%20144.414-257.766%20164.745z'/%3e%3cg%20filter='url(%23b)'%3e%3cpath%20fill='%23292929'%20d='M540.424%20481.574c62.733%2011.501%20118.146%2030.32%20117.623%20104.031-.523%2060.641-44.435%20104.031-113.963%20113.441v54.89H479.26v-55.413c-71.619-11.501-115.009-56.459-115.531-120.76l76.847%201.046c2.613%2035.548%2030.843%2060.118%2075.801%2060.118%2036.071%200%2062.732-15.683%2062.732-44.435%200-30.843-29.798-37.117-90.962-49.14-61.686-11.501-116.054-31.366-116.054-105.6%200-56.981%2041.299-99.326%20107.167-108.735v-55.414h64.824v55.936c65.346%2010.979%20105.599%2052.277%20106.644%20112.396h-76.847c-3.659-30.844-27.183-52.277-65.346-52.277-33.457%200-57.504%2014.114-57.504%2042.344%200%2029.798%2028.752%2036.071%2089.393%2047.572'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h1021v1021H0z'/%3e%3c/clipPath%3e%3cfilter%20id='b'%20width='307.778'%20height='491.789'%20x='357.001'%20y='275.603'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='6.728'/%3e%3cfeGaussianBlur%20stdDeviation='3.364'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_215_35'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_215_35'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e`,PK=`data:image/svg+xml,%3csvg%20width='301'%20height='301'%20viewBox='0%200%20301%20301'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%20150.05C0%2067.1808%2067.1789%200.00195312%20150.048%200.00195312V0.00195312C232.918%200.00195312%20300.096%2067.1808%20300.096%20150.05V150.05C300.096%20232.919%20232.918%20300.098%20150.048%20300.098V300.098C67.1789%20300.098%200%20232.919%200%20150.05V150.05Z'%20fill='%23FC7A4A'/%3e%3cpath%20d='M191.312%20173.807C191.312%20151.925%20178.182%20144.423%20151.924%20141.297C133.168%20138.796%20129.417%20133.795%20129.417%20125.041C129.417%20116.287%20135.669%20110.662%20148.173%20110.662C159.426%20110.662%20165.679%20114.413%20168.804%20123.791C169.43%20125.667%20171.306%20126.917%20173.181%20126.917H183.184C185.685%20126.917%20187.56%20125.041%20187.56%20122.541V121.916C185.059%20108.161%20173.806%2097.5329%20159.426%2096.283V81.2781C159.426%2078.7768%20157.551%2076.9012%20154.425%2076.2755H145.047C142.546%2076.2755%20140.67%2078.1511%20140.045%2081.2781V95.6573C121.289%2098.1586%20109.411%20110.662%20109.411%20126.293C109.411%20146.924%20121.914%20155.051%20148.173%20158.178C165.679%20161.303%20171.306%20165.055%20171.306%20175.058C171.306%20185.062%20162.552%20191.939%20150.674%20191.939C134.418%20191.939%20128.791%20185.06%20126.916%20175.682C126.291%20173.183%20124.416%20171.931%20122.54%20171.931H111.911C109.411%20171.931%20107.535%20173.807%20107.535%20176.308V176.934C110.035%20192.563%20120.039%20203.817%20140.67%20206.944V221.948C140.67%20224.448%20142.546%20226.324%20145.672%20226.949H155.05C157.551%20226.949%20159.426%20225.074%20160.052%20221.948V206.944C178.808%20203.817%20191.312%20190.687%20191.312%20173.807Z'%20fill='white'/%3e%3cpath%20d='M118.163%20239.453C69.3975%20221.948%2044.389%20167.556%2062.5208%20119.414C71.8988%2093.156%2092.5305%2073.15%20118.163%2063.772C120.665%2062.5221%20121.914%2060.6465%20121.914%2057.5195V48.7672C121.914%2046.2659%20120.665%2044.3903%20118.163%2043.7661C117.538%2043.7661%20116.288%2043.7661%20115.662%2044.3903C56.2683%2063.1463%2023.7574%20126.293%2042.5134%20185.686C53.767%20220.697%2080.6511%20247.581%20115.662%20258.835C118.163%20260.085%20120.665%20258.835%20121.289%20256.333C121.914%20255.709%20121.914%20255.083%20121.914%20253.834V245.08C121.914%20243.204%20120.039%20240.704%20118.163%20239.453ZM184.435%2044.3903C181.934%2043.1404%20179.432%2044.3903%20178.808%2046.8916C178.182%2047.5173%20178.182%2048.1415%20178.182%2049.3929V58.1452C178.182%2060.6465%20180.058%2063.1463%20181.934%2064.3977C230.699%2081.9024%20255.708%20136.295%20237.576%20184.436C228.198%20210.695%20207.566%20230.701%20181.934%20240.079C179.432%20241.329%20178.182%20243.204%20178.182%20246.331V255.083C178.182%20257.585%20179.432%20259.46%20181.934%20260.085C182.559%20260.085%20183.809%20260.085%20184.435%20259.46C243.829%20240.704%20276.34%20177.558%20257.584%20118.165C246.33%2082.5281%20218.82%2055.6439%20184.435%2044.3903Z'%20fill='white'/%3e%3c/svg%3e`,FK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20fill='none'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%23ba3b48'%20d='M0%2032C0%2014.327%2014.327%200%2032%200s32%2014.327%2032%2032-14.327%2032-32%2032S0%2049.673%200%2032'/%3e%3cpath%20fill='%23fff'%20d='M32.5%2048q-3.052%200-5.182-1.65-2.11-1.651-3.224-4.878Q23%2038.228%2023%2033.52v-.02q0-4.784%201.113-8.01t3.224-4.858Q29.467%2019%2032.5%2019t5.143%201.632q2.13%201.632%203.244%204.858Q42%2028.716%2042%2033.5v.019q0%204.709-1.113%207.953-1.094%203.227-3.224%204.877Q35.55%2048%2032.5%2048m0-2.889q2.053%200%203.397-1.275%201.362-1.276%202.015-3.846.672-2.57.672-6.453v-.075q0-3.901-.672-6.452-.653-2.57-2.015-3.846-1.344-1.275-3.397-1.275t-3.416%201.275q-1.343%201.276-2.015%203.846-.653%202.55-.653%206.452v.075q0%203.884.653%206.453.672%202.57%202.015%203.846%201.362%201.275%203.416%201.275m-6.87-10.354v-2.889h13.74v2.889z'/%3e%3c/svg%3e`,IK=`/assets/wYLDS-CaCKDrO-.svg`,LK=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23dcc5f7'%20d='M0%2012C0%205.373%205.373%200%2012%200s12%205.373%2012%2012-5.373%2012-12%2012S0%2018.627%200%2012'/%3e%3cpath%20fill='%236800d1'%20d='M10%206H6v4h4z'/%3e%3cpath%20fill='%23000'%20d='M18%2014h-4v4h4z'/%3e%3cpath%20fill='%236800d1'%20d='M18%206h-4l-4%204h8zM6%2014v4h4v-8zm7-1h11v11H13z'/%3e%3cpath%20fill='%23dcc5f7'%20d='m16.13%2021-1.592-5.6h1.296l.952%204.08.976-4.08h1.464l.984%204.072.952-4.072h1.304L20.89%2021h-1.344l-1.04-3.896L17.45%2021z'/%3e%3c/svg%3e`,RK=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23390922;%20}%20.cls-2%20{%20fill:%20%23f3e9e3;%20}%20%3c/style%3e%3c/defs%3e%3ccircle%20class='cls-2'%20cx='150'%20cy='150'%20r='150'/%3e%3cpath%20class='cls-1'%20d='M247.63,81.3l-27.62-9.21c-1.58-.53-2.82-1.77-3.34-3.35l-9.21-27.62c-.72-2.16-2.74-3.62-5.02-3.62h-104.88c-2.28,0-4.3,1.46-5.02,3.62l-9.2,27.62c-.53,1.58-1.77,2.82-3.35,3.35l-27.62,9.21c-2.16.72-3.62,2.74-3.62,5.02v127.38c0,2.28,1.46,4.3,3.62,5.02l27.61,9.2c1.58.53,2.82,1.77,3.35,3.34l9.21,27.62c.72,2.16,2.74,3.62,5.02,3.62h104.88c2.28,0,4.3-1.46,5.02-3.62l9.22-27.63c.53-1.58,1.77-2.82,3.35-3.34l27.61-9.2c2.16-.72,3.62-2.74,3.62-5.02v-127.38c0-2.28-1.46-4.3-3.62-5.02Z'/%3e%3cpath%20class='cls-2'%20d='M192.24,160.47c-2.31-4.67-5.74-8.66-10.3-11.95-4.56-3.29-10.3-6.2-17.23-8.74l-17.14-6.06c-6-1.96-10.59-4.56-13.76-7.79-3.18-3.23-4.76-7.33-4.76-12.29,0-3.81.95-7.16,2.86-10.04,1.9-2.88,4.59-5.13,8.05-6.75,3.46-1.62,7.33-2.42,11.6-2.42,7.16,0,13.16,2.48,18.01,7.44,4.85,4.96,8.31,11.72,10.39,20.26l1.73.17,10.73-16.97c-2.77-4.27-6.41-7.82-10.91-10.65-4.5-2.83-9.35-4.99-14.54-6.49-4.02-1.16-8-1.87-11.95-2.13v-19.86h-8.66v19.93c-4.35.33-8.42,1.06-12.21,2.23-5.25,1.62-9.81,3.93-13.68,6.93-3.87,3-6.81,6.61-8.83,10.82-2.02,4.21-3.03,8.86-3.03,13.94,0,5.43,1.18,10.24,3.55,14.46,2.36,4.21,5.77,7.85,10.21,10.91,4.44,3.06,10.01,5.92,16.71,8.57l15.58,5.37c6.69,2.31,11.71,5.4,15.06,9.26,3.35,3.87,5.02,8.74,5.02,14.63,0,4.62-1.1,8.6-3.29,11.95-2.19,3.35-5.14,5.95-8.83,7.79-3.7,1.85-7.96,2.77-12.81,2.77s-9.64-1.15-14.02-3.46c-4.39-2.31-8.08-5.86-11.08-10.65-3-4.79-5.37-10.82-7.1-18.09h-1.73l-11.6,17.83c2.54,4.62,6.12,8.66,10.73,12.12,4.61,3.46,9.9,6.12,15.84,7.96,4.94,1.54,10.11,2.42,15.5,2.68v19.83h8.66v-19.94c4.66-.34,9.05-1.14,13.16-2.4,5.65-1.73,10.53-4.27,14.63-7.62,4.1-3.35,7.27-7.33,9.52-11.95,2.25-4.62,3.38-9.75,3.38-15.41,0-6.12-1.16-11.51-3.46-16.19Z'/%3e%3c/svg%3e`,zK=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23390922;%20}%20.cls-2%20{%20fill:%20%23f3e9e3;%20}%20%3c/style%3e%3c/defs%3e%3ccircle%20class='cls-1'%20cx='150'%20cy='150'%20r='150'/%3e%3cpath%20class='cls-2'%20d='M247.63,81.3l-27.62-9.21c-1.58-.53-2.82-1.77-3.34-3.35l-9.21-27.62c-.72-2.16-2.74-3.62-5.02-3.62h-104.88c-2.28,0-4.3,1.46-5.02,3.62l-9.2,27.62c-.53,1.58-1.77,2.82-3.35,3.35l-27.62,9.21c-2.16.72-3.62,2.74-3.62,5.02v127.38c0,2.28,1.46,4.3,3.62,5.02l27.61,9.2c1.58.53,2.82,1.77,3.35,3.34l9.21,27.62c.72,2.16,2.74,3.62,5.02,3.62h104.88c2.28,0,4.3-1.46,5.02-3.62l9.22-27.63c.53-1.58,1.77-2.82,3.35-3.34l27.61-9.2c2.16-.72,3.62-2.74,3.62-5.02v-127.38c0-2.28-1.46-4.3-3.62-5.02Z'/%3e%3cpath%20class='cls-1'%20d='M192.24,160.47c-2.31-4.67-5.74-8.66-10.3-11.95-4.56-3.29-10.3-6.2-17.23-8.74l-17.14-6.06c-6-1.96-10.59-4.56-13.76-7.79-3.18-3.23-4.76-7.33-4.76-12.29,0-3.81.95-7.16,2.86-10.04,1.9-2.88,4.59-5.13,8.05-6.75,3.46-1.62,7.33-2.42,11.6-2.42,7.16,0,13.16,2.48,18.01,7.44,4.85,4.96,8.31,11.72,10.39,20.26l1.73.17,10.73-16.97c-2.77-4.27-6.41-7.82-10.91-10.65-4.5-2.83-9.35-4.99-14.54-6.49-4.02-1.16-8-1.87-11.95-2.13v-19.86h-8.66v19.93c-4.35.33-8.42,1.06-12.21,2.23-5.25,1.62-9.81,3.93-13.68,6.93-3.87,3-6.81,6.61-8.83,10.82-2.02,4.21-3.03,8.86-3.03,13.94,0,5.43,1.18,10.24,3.55,14.46,2.36,4.21,5.77,7.85,10.21,10.91,4.44,3.06,10.01,5.92,16.71,8.57l15.58,5.37c6.69,2.31,11.71,5.4,15.06,9.26,3.35,3.87,5.02,8.74,5.02,14.63,0,4.62-1.1,8.6-3.29,11.95-2.19,3.35-5.14,5.95-8.83,7.79-3.7,1.85-7.96,2.77-12.81,2.77s-9.64-1.15-14.02-3.46c-4.39-2.31-8.08-5.86-11.08-10.65-3-4.79-5.37-10.82-7.1-18.09h-1.73l-11.6,17.83c2.54,4.62,6.12,8.66,10.73,12.12,4.61,3.46,9.9,6.12,15.84,7.96,4.94,1.54,10.11,2.42,15.5,2.68v19.83h8.66v-19.94c4.66-.34,9.05-1.14,13.16-2.4,5.65-1.73,10.53-4.27,14.63-7.62,4.1-3.35,7.27-7.33,9.52-11.95,2.25-4.62,3.38-9.75,3.38-15.41,0-6.12-1.16-11.51-3.46-16.19Z'/%3e%3c/svg%3e`,BK=Object.fromEntries(Object.entries(Object.assign({"./icons/BRLA.png":tK,"./icons/BRZ.svg":nK,"./icons/CHFAU.png":rK,"./icons/DLUSD.png":iK,"./icons/EURAU.svg":aK,"./icons/EURC.e.svg":oK,"./icons/GBPA.svg":sK,"./icons/GUSD.svg":cK,"./icons/MACH.svg":lK,"./icons/OUSD.svg":uK,"./icons/PRIME.svg":dK,"./icons/SBC.svg":fK,"./icons/SEKAU.svg":pK,"./icons/USD1.svg":mK,"./icons/USDB.svg":hK,"./icons/USDC.e.svg":gK,"./icons/USDT0.svg":_K,"./icons/USDY.svg":vK,"./icons/USDe.svg":yK,"./icons/YLDS.svg":bK,"./icons/alphaUSD.svg":xK,"./icons/betaUSD.svg":SK,"./icons/cUSD.svg":CK,"./icons/cbBTC.svg":wK,"./icons/frxUSD.svg":TK,"./icons/goUSD.svg":EK,"./icons/iUSD.svg":DK,"./icons/pathUSD.svg":OK,"./icons/rUSD.svg":kK,"./icons/reUSD.svg":AK,"./icons/sUSDe.svg":jK,"./icons/siUSD.svg":MK,"./icons/stcUSD.svg":NK,"./icons/syrupUSDC.svg":PK,"./icons/thetaUSD.svg":FK,"./icons/wYLDS.svg":IK,"./icons/wsrUSD.svg":LK})).map(([e,t])=>[e.slice(8,e.lastIndexOf(`.`)),t])),VK=Object.entries(Object.assign({"./logos/OUSD.dark.svg":RK,"./logos/OUSD.light.svg":zK})).reduce((e,[t,n])=>{let[,r,i]=t.match(/^\.\/logos\/(.+)\.(light|dark)\.\w+$/);return e[r]={...e[r],[i]:n},e},{});function HK(e){let t=(0,U.useId)(),{expiry:n,limits:r}=e.keyAuthorization,i=e.heading??`h2`,a=r.some(e=>e.period);return(0,W.jsxs)(VE,{...XK.section?{className:`z-tempo_2d_id-nr-Vm7-styles-section-bg-0 z-tempo_2d_id-nr-Vm7-styles-section-border-radius-1 z-tempo_2d_id-nr-Vm7-styles-details-m-0 z-tempo_2d_id-nr-Vm7-styles-section-p-2`}:XK.section(),"aria-labelledby":t,gap:`12`,render:(0,W.jsx)(`section`,{}),children:[(0,W.jsx)(i,{...XK.heading?{className:`z-tempo_2d_id-nr-Vm7-styles-heading-text-0 z-tempo_2d_id-nr-Vm7-styles-details-m-0 z-tempo_2d_id-nr-Vm7-styles-details-font-family-1 z-tempo_2d_id-nr-Vm7-styles-details-font-size-2 z-tempo_2d_id-nr-Vm7-styles-details-font-weight-3 z-tempo_2d_id-nr-Vm7-styles-details-letter-spacing-4 z-tempo_2d_id-nr-Vm7-styles-details-line-height-5`}:XK.heading(),id:t,children:`This app can spend up to`}),(0,W.jsx)(VE,{...XK.list?{className:`z-tempo_2d_id-nr-Vm7-styles-list-list-style-0 z-tempo_2d_id-nr-Vm7-styles-details-m-0 z-tempo_2d_id-nr-Vm7-styles-list-p-1 z-tempo_2d_id-nr-Vm7-styles-list-font-family-2 z-tempo_2d_id-nr-Vm7-styles-list-font-size-3 z-tempo_2d_id-nr-Vm7-styles-list-font-weight-4 z-tempo_2d_id-nr-Vm7-styles-list-letter-spacing-5 z-tempo_2d_id-nr-Vm7-styles-list-line-height-6`}:XK.list(),gap:`8`,render:(0,W.jsx)(`ul`,{}),children:r.map(e=>(0,W.jsxs)(Ow,{gap:`8`,render:(0,W.jsx)(`li`,{}),children:[(0,W.jsx)(`span`,{children:e.period?`${JK(e)} ${qK(e.period)}`:a?`${JK(e)} in total`:JK(e)}),(0,W.jsx)(`span`,{...XK.icons?{className:`z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z-tempo_2d_id-nr-Vm7-styles-icons-margin-inline-start-0 z-tempo_2d_id-nr-Vm7-styles-icons-margin-inline-start-1`}:XK.icons(),children:e.tokens.map(t=>{let n=`${t.symbol}: ${JK({amount:t.amount,currency:e.currency})}`,r=VK[t.symbol],i=r?.light??BK[t.symbol];return(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(`span`,{...XK.token?{className:`z_tempo_2d_id-nr-Vm70 z-tempo_2d_id-nr-Vm7-styles-token-outline-0 z-tempo_2d_id-nr-Vm7-styles-token-outline-color-1 z-tempo_2d_id-nr-Vm7-styles-token-outline-color-2 z-tempo_2d_id-nr-Vm7-styles-token-transition-duration-3 z-tempo_2d_id-nr-Vm7-styles-token-transition-property-4 z-tempo_2d_id-nr-Vm7-styles-token-transition-timing-function-5`}:XK.token(),tabIndex:0,children:i?(0,W.jsxs)(`picture`,{children:[r?.dark?(0,W.jsx)(`source`,{media:`(prefers-color-scheme: dark)`,srcSet:r.dark}):null,(0,W.jsx)(`img`,{...XK.icon?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`}:XK.icon(),alt:n,height:20,src:i,width:20})]}):(0,W.jsx)(`span`,{...XK.placeholder?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm73`}:XK.placeholder(),"aria-label":n,role:`img`,children:t.symbol[0]})})}),(0,W.jsx)(hD.Popup,{children:n})]},t.symbol)})})]},`${e.currency}:${e.period??0}`))}),(0,W.jsx)(VE,{...XK.details?{className:`z-tempo_2d_id-nr-Vm7-styles-details-m-0 z-tempo_2d_id-nr-Vm7-styles-details-font-family-1 z-tempo_2d_id-nr-Vm7-styles-details-font-size-2 z-tempo_2d_id-nr-Vm7-styles-details-font-weight-3 z-tempo_2d_id-nr-Vm7-styles-details-letter-spacing-4 z-tempo_2d_id-nr-Vm7-styles-details-line-height-5`}:XK.details(),gap:`8`,render:(0,W.jsx)(`dl`,{}),children:(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`dt`,{...XK.term?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7f`}:XK.term(),children:`Expires`}),` `,(0,W.jsxs)(`dd`,{...XK.value?{className:`z_tempo_2d_id-nr-Vm7f z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h`}:XK.value(),children:[YK(n),` `,(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(sw,{...XK.info?{className:`z-tempo_2d_id-nr-Vm7-styles-heading-text-0 z-tempo_2d_id-nr-Vm7-styles-info-display-0 z-tempo_2d_id-nr-Vm7-styles-info-h-1 z-tempo_2d_id-nr-Vm7-styles-info-outline-2 z-tempo_2d_id-nr-Vm7-styles-info-vertical-align-3 z-tempo_2d_id-nr-Vm7-styles-info-w-4 z-tempo_2d_id-nr-Vm7-styles-info-outline-5 z-tempo_2d_id-nr-Vm7-styles-info-outline-color-6 z-tempo_2d_id-nr-Vm7-styles-info-outline-offset-7`}:XK.info(),"aria-label":`Expiry date`,role:`img`,tabIndex:0})}),(0,W.jsx)(hD.Popup,{children:new Date(n*1e3).toLocaleString(void 0,{day:`numeric`,hour:`numeric`,minute:`2-digit`,month:`short`,timeZoneName:`short`,year:`numeric`})})]})]})]})})]})}var UK=new Intl.NumberFormat(`en-US`,{maximumFractionDigits:20}),WK=new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}),GK=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]],KK=[[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60],[`second`,1]];function qK(e){let[t,n]=KK.find(t=>e%t[1]===0),r=e/n;return r===1?`per ${t}`:`every ${r} ${t}s`}function JK(e){let t=e.amount;try{return new Intl.NumberFormat(`en-US`,{currency:e.currency,maximumFractionDigits:6,style:`currency`,trailingZeroDisplay:`stripIfInteger`}).format(t)}catch{return`${UK.format(t)} ${e.currency}`}}function YK(e){let t=e-Date.now()/1e3,[n,r]=GK.find(e=>t+60>=e[1])??GK.at(-1);return WK.format(Math.max(1,Math.round(t/r)),n)}var XK;(function(e){e.details=1,e.heading=1,e.icon=1,e.icons=1,e.info=1,e.list=1,e.placeholder=1,e.section=1,e.term=1,e.token=1,e.value=1})(XK||={});function ZK(e){let t=e.heading??`h1`,n=e.approving||e.denying,r=e.refusal??e.keyAuthorization?.refusal;return(0,W.jsxs)(VE,{...tq.column?{className:`z-tempo_2d_id-kV7-rJ-styles-column-max-width-0 z-tempo_2d_id-kV7-rJ-styles-column-w-1`}:tq.column(),gap:`32`,children:[(0,W.jsxs)(VE,{...tq.header?{className:`z-tempo_2d_id-kV7-rJ-styles-header-text-align-0`}:tq.header(),align:`center`,gap:`8`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(Ew,{...tq.avatar?{className:`z-tempo_2d_id-kV7-rJ-styles-avatar-mb-0`}:tq.avatar(),children:(0,W.jsx)(RG,{})}),(0,W.jsx)(t,{...tq.title?{className:`z-tempo_2d_id-kV7-rJ-styles-title-text-wrap-0 z-tempo_2d_id-kV7-rJ-styles-title-font-family-1 z-tempo_2d_id-kV7-rJ-styles-title-font-size-2 z-tempo_2d_id-kV7-rJ-styles-title-font-weight-3 z-tempo_2d_id-kV7-rJ-styles-title-letter-spacing-4 z-tempo_2d_id-kV7-rJ-styles-title-line-height-5`}:tq.title(),children:`Authorize this app`}),(0,W.jsxs)(`p`,{...tq.description?{className:`z-tempo_2d_id-kV7-rJ-styles-description-text-0 z-tempo_2d_id-kV7-rJ-styles-description-text-1 z_tempo_2d_id-kV7-rJi z-tempo_2d_id-kV7-rJ-styles-description-font-family-2 z-tempo_2d_id-kV7-rJ-styles-description-font-family-3 z-tempo_2d_id-kV7-rJ-styles-description-font-size-4 z-tempo_2d_id-kV7-rJ-styles-description-font-size-5 z-tempo_2d_id-kV7-rJ-styles-description-font-weight-6 z-tempo_2d_id-kV7-rJ-styles-description-font-weight-7 z-tempo_2d_id-kV7-rJ-styles-description-letter-spacing-8 z-tempo_2d_id-kV7-rJ-styles-description-letter-spacing-9 z-tempo_2d_id-kV7-rJ-styles-description-line-height-10 z-tempo_2d_id-kV7-rJ-styles-description-line-height-11`}:tq.description(),children:[`Approve to let`,` `,(0,W.jsxs)(`span`,{...tq.app?{className:`z_tempo_2d_id-kV7-rJ6`}:tq.app(),children:[e.verified?(0,W.jsx)(`strong`,{children:e.app}):e.app,e.verified?(0,W.jsxs)(W.Fragment,{children:[` `,(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(NG,{...tq.badge?{className:`z-tempo_2d_id-kV7-rJ-styles-badge-display-0 z-tempo_2d_id-kV7-rJ-styles-badge-h-1 z-tempo_2d_id-kV7-rJ-styles-badge-outline-2 z-tempo_2d_id-kV7-rJ-styles-badge-vertical-align-3 z-tempo_2d_id-kV7-rJ-styles-badge-w-4 z-tempo_2d_id-kV7-rJ-styles-badge-outline-5 z-tempo_2d_id-kV7-rJ-styles-badge-outline-color-6 z-tempo_2d_id-kV7-rJ-styles-badge-outline-offset-7`}:tq.badge(),"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,W.jsx)(hD.Popup,{children:`Verified app`})]})]}):null]}),` `,`use your Tempo Account.`]})]}),(0,W.jsxs)(VE,{gap:`16`,children:[e.account?(0,W.jsxs)(Ow,{...tq.account?{className:`z-tempo_2d_id-kV7-rJ-styles-account-border-0 z-tempo_2d_id-kV7-rJ-styles-account-border-color-1 z-tempo_2d_id-kV7-rJ-styles-account-border-radius-2 z-tempo_2d_id-kV7-rJ-styles-account-padding-block-3 z-tempo_2d_id-kV7-rJ-styles-account-padding-inline-4`}:tq.account(),"aria-label":`Tempo Account`,gap:`12`,role:`group`,children:[(0,W.jsx)(Ew,{"aria-hidden":!0,size:`40`,children:e.account.owner===`webAuthn`?(0,W.jsx)(LG,{}):(0,W.jsx)(FG,{})}),(0,W.jsxs)(VE,{...tq.text?{className:`z-tempo_2d_id-kV7-rJ-styles-text-flex-0`}:tq.text(),gap:`4`,render:(0,W.jsx)(`span`,{}),children:[(0,W.jsx)(`span`,{...tq.kind?{className:`z_tempo_2d_id-kV7-rJj z_tempo_2d_id-kV7-rJk z_tempo_2d_id-kV7-rJl z_tempo_2d_id-kV7-rJm z_tempo_2d_id-kV7-rJn`}:tq.kind(),children:e.account.owner===`webAuthn`?`Passkey`:`Cloud`}),(0,W.jsx)(`span`,{...tq.address?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-kV7-rJ1 z_tempo_2d_id-kV7-rJ2 z_tempo_2d_id-kV7-rJ3 z_tempo_2d_id-kV7-rJ4 z_tempo_2d_id-kV7-rJ5`}:tq.address(),children:Cw(e.account.address)})]})]}):null,e.keyAuthorization?(0,W.jsx)(HK,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.keyAuthorization}):null,e.keyAuthorization?.challenge?(0,W.jsxs)(uw,{intent:`warning`,role:`note`,size:`large`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:(0,W.jsxs)(VE,{gap:`8`,children:[(0,W.jsx)(`p`,{...tq.challengeTitle?{className:`z_tempo_2d_id-kV7-rJd z_tempo_2d_id-kV7-rJe z_tempo_2d_id-kV7-rJf z_tempo_2d_id-kV7-rJg z_tempo_2d_id-kV7-rJh`}:tq.challengeTitle(),children:`This sign-in also signs a message`}),(0,W.jsx)(`p`,{...tq.challengeText?{className:`z_tempo_2d_id-kV7-rJ7 z_tempo_2d_id-kV7-rJ8 z_tempo_2d_id-kV7-rJ9 z_tempo_2d_id-kV7-rJa z_tempo_2d_id-kV7-rJb z_tempo_2d_id-kV7-rJc`}:tq.challengeText(),children:`Approve only if you started this sign-in and expect this message.`}),(0,W.jsx)(`pre`,{...tq.message?{className:`z_tempo_2d_id-kV7-rJ7 z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-kV7-rJ1 z_tempo_2d_id-kV7-rJ2 z_tempo_2d_id-kV7-rJ3 z_tempo_2d_id-kV7-rJ4 z_tempo_2d_id-kV7-rJ5 z_tempo_2d_id-kV7-rJq`}:tq.message(),children:e.keyAuthorization.challenge})]})})]}):null,(0,W.jsx)(bS,{disabled:e.denying||!!r,loading:e.approving,onClick:e.onApprove,children:`Approve`}),(0,W.jsx)(bS,{disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`text`,children:`Deny`}),(0,W.jsxs)(`p`,{...tq.note?{className:`z-tempo_2d_id-kV7-rJ-styles-note-text-0 z-tempo_2d_id-kV7-rJ-styles-note-text-1 z_tempo_2d_id-kV7-rJr z-tempo_2d_id-kV7-rJ-styles-note-font-family-2 z-tempo_2d_id-kV7-rJ-styles-note-font-family-3 z-tempo_2d_id-kV7-rJ-styles-note-font-size-4 z-tempo_2d_id-kV7-rJ-styles-note-font-size-5 z-tempo_2d_id-kV7-rJ-styles-note-font-weight-6 z-tempo_2d_id-kV7-rJ-styles-note-font-weight-7 z-tempo_2d_id-kV7-rJ-styles-note-letter-spacing-8 z-tempo_2d_id-kV7-rJ-styles-note-letter-spacing-9 z-tempo_2d_id-kV7-rJ-styles-note-line-height-10 z-tempo_2d_id-kV7-rJ-styles-note-line-height-11`}:tq.note(),children:[`Signed in as `,(0,W.jsx)(`strong`,{children:e.email}),`.`]}),(0,W.jsx)(`p`,{...tq.status?{className:`z_tempo_2d_id-kV7-rJs z_tempo_2d_id-kV7-rJt z_tempo_2d_id-kV7-rJu z_tempo_2d_id-kV7-rJv z_tempo_2d_id-kV7-rJ6 z_tempo_2d_id-kV7-rJw`}:tq.status(),"aria-live":`polite`,role:`status`,children:n?`Returning to ${e.destination}.`:void 0})]}),(()=>{let t=e.error??(r?eq[r]:void 0);return t?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:t})]}):null})()]})}function QK(e){let t=e.heading??`h1`,n=$K[e.reason??`request`];return(0,W.jsxs)(VE,{...tq.column?{className:`z-tempo_2d_id-kV7-rJ-styles-column-max-width-0 z-tempo_2d_id-kV7-rJ-styles-column-w-1`}:tq.column(),gap:`32`,children:[(0,W.jsxs)(VE,{...tq.header?{className:`z-tempo_2d_id-kV7-rJ-styles-header-text-align-0`}:tq.header(),align:`center`,gap:`8`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(t,{...tq.title?{className:`z-tempo_2d_id-kV7-rJ-styles-title-text-wrap-0 z-tempo_2d_id-kV7-rJ-styles-title-font-family-1 z-tempo_2d_id-kV7-rJ-styles-title-font-size-2 z-tempo_2d_id-kV7-rJ-styles-title-font-weight-3 z-tempo_2d_id-kV7-rJ-styles-title-letter-spacing-4 z-tempo_2d_id-kV7-rJ-styles-title-line-height-5`}:tq.title(),children:n.title}),(0,W.jsx)(`p`,{...tq.description?{className:`z-tempo_2d_id-kV7-rJ-styles-description-text-0 z-tempo_2d_id-kV7-rJ-styles-description-text-1 z_tempo_2d_id-kV7-rJi z-tempo_2d_id-kV7-rJ-styles-description-font-family-2 z-tempo_2d_id-kV7-rJ-styles-description-font-family-3 z-tempo_2d_id-kV7-rJ-styles-description-font-size-4 z-tempo_2d_id-kV7-rJ-styles-description-font-size-5 z-tempo_2d_id-kV7-rJ-styles-description-font-weight-6 z-tempo_2d_id-kV7-rJ-styles-description-font-weight-7 z-tempo_2d_id-kV7-rJ-styles-description-letter-spacing-8 z-tempo_2d_id-kV7-rJ-styles-description-letter-spacing-9 z-tempo_2d_id-kV7-rJ-styles-description-line-height-10 z-tempo_2d_id-kV7-rJ-styles-description-line-height-11`}:tq.description(),children:n.description})]}),e.reason===`sign_in`?(0,W.jsx)(bS.Link,{render:(0,W.jsx)(Vd,{to:`/login`}),children:`Sign in again`}):null]})}var $K={client:{description:`The app that sent you here is not registered with Tempo ID, or it is turned off. Return to the app, and contact its developer if the problem continues.`,title:`This app is not recognized`},redirect:{description:`The app asked to return you to an address that it has not registered, so Tempo ID stopped the sign-in. Return to the app, and contact its developer if the problem continues.`,title:`This app’s return address is not registered`},request:{description:`The app sent a request Tempo ID cannot complete. Return to the app and try again.`,title:`This sign-in request is invalid`},sign_in:{description:`The sign-in started in another browser, or it expired. Sign in again.`,title:`This sign-in did not finish`}},eq={foreign_account:`The app requests a key for a Tempo Account that you do not hold. Deny the request, and sign in to the app again as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account in the app, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the app.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`},tq;(function(e){e.account=1,e.address=1,e.app=1,e.avatar=1,e.badge=1,e.challengeText=1,e.challengeTitle=1,e.column=1,e.description=1,e.header=1,e.kind=1,e.message=1,e.note=1,e.status=1,e.text=1,e.title=1})(tq||={});var nq=class extends Error{name=`Page.CeremonyError`},rq=qd(`/authorize`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(iq,{...rq.useLoaderData()}),loader:async e=>{let{searchStr:t}=e.location,n=new URLSearchParams(t);if(!n.get(`sig`)){let e=new URLSearchParams(n);e.has(`code_challenge_method`)||e.set(`code_challenge_method`,`S256`),e.has(`response_type`)||e.set(`response_type`,`code`),jG({document:!0,href:`/oauth2/authorize?${e}`})}let r=mG(),i=await(async()=>{try{return await rG(r.v1.authorize.request.$get({query:{oauth_query:n.toString()}}))}catch(e){throw gG(e)===`session_required`&&jG({href:`/login${t}`}),e}})();return`redirect`in i&&jG({document:!0,href:i.redirect}),{request:i.request}},loaderDeps:e=>({search:e.search})});function iq(e){let t=_G(),n=Dp({async mutationFn(n){let r={accept:n.accept,...e.request?.key?.account?{account:e.request.key.account}:{},oauth_query:window.location.search.slice(1),session_id:e.request?.session??``},i=await rG(t.v1.authorize.consent.$post({json:r}));if(!(`step`in i))return i;let a=await kG({options:{publicKey:i.step.options.publicKey}}).catch(e=>{throw new nq(`Passkey ceremony failed.`,{cause:e})}),o=await rG(t.v1.authorize.consent.$post({json:{...r,passkey:{assertion:a}}}));if(`step`in o)throw Error(`The approval requested a second passkey step.`);return o},onError:e=>{gG(e)===`session_required`&&window.location.reload()},onSuccess:e=>window.location.assign(e.redirect)}),r=n.isPending||n.isSuccess;return(0,W.jsx)(`main`,{...sq.page?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-V2chls3 z_tempo_2d_id-V2chls4`}:sq.page(),children:e.request?(0,W.jsx)(ZK,{account:e.request.account,app:e.request.app,approving:r&&n.variables.accept,denying:r&&!n.variables.accept,destination:e.request.destination,email:e.request.email,verified:e.request.verified,error:n.error&&gG(n.error)!==`webauthn_required`?aq(n.error):void 0,keyAuthorization:e.request.key,onApprove:()=>n.mutate({accept:!0}),onDeny:()=>n.mutate({accept:!1}),refusal:gG(n.error)===`webauthn_required`?`passkey`:void 0}):(0,W.jsx)(QK,{})})}function aq(e){return gG(e)===`webauthn_rejected`?`Your passkey did not sign the approval. Approve again, or deny the request.`:e instanceof nq?oq(e).includes(`NotAllowedError`)?`The passkey request was canceled. Approve again, or deny the request.`:`Your passkey did not sign the approval. Approve again, or deny the request.`:hG(e)}function oq(e){return e instanceof Error?[e.name,...oq(e.cause)]:[]}var sq;(function(e){e.page=1})(sq||={});function cq(e){let t=e.heading??`h1`,n=e.selecting!==void 0,r=new Set(e.accounts.map(e=>e.realm));return(0,W.jsxs)(VE,{...lq.column?{className:`z-tempo_2d_id-isY5HS-styles-column-max-width-0 z-tempo_2d_id-isY5HS-styles-column-w-1`}:lq.column(),gap:`32`,children:[(0,W.jsxs)(VE,{...lq.header?{className:`z-tempo_2d_id-isY5HS-styles-header-text-align-0`}:lq.header(),gap:`8`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(t,{...lq.title?{className:`z-tempo_2d_id-isY5HS-styles-title-text-wrap-0 z-tempo_2d_id-isY5HS-styles-title-font-family-1 z-tempo_2d_id-isY5HS-styles-title-font-size-2 z-tempo_2d_id-isY5HS-styles-title-font-weight-3 z-tempo_2d_id-isY5HS-styles-title-letter-spacing-4 z-tempo_2d_id-isY5HS-styles-title-line-height-5`}:lq.title(),children:`Choose a wallet`}),(0,W.jsxs)(`p`,{...lq.description?{className:`z-tempo_2d_id-isY5HS-styles-description-text-0 z-tempo_2d_id-isY5HS-styles-description-text-1 z_tempo_2d_id-isY5HS0 z-tempo_2d_id-isY5HS-styles-description-font-family-2 z-tempo_2d_id-isY5HS-styles-description-font-family-3 z-tempo_2d_id-isY5HS-styles-description-font-size-4 z-tempo_2d_id-isY5HS-styles-description-font-size-5 z-tempo_2d_id-isY5HS-styles-description-font-weight-6 z-tempo_2d_id-isY5HS-styles-description-font-weight-7 z-tempo_2d_id-isY5HS-styles-description-letter-spacing-8 z-tempo_2d_id-isY5HS-styles-description-letter-spacing-9 z-tempo_2d_id-isY5HS-styles-description-line-height-10 z-tempo_2d_id-isY5HS-styles-description-line-height-11`}:lq.description(),children:[(0,W.jsx)(`strong`,{children:e.app}),` uses the account you choose. You can choose again after you sign out of Tempo ID.`]})]}),(0,W.jsx)(VT,{...lq.accounts?{className:`z-tempo_2d_id-isY5HS-styles-accounts-display-0 z-tempo_2d_id-isY5HS-styles-accounts-gap-1 z-tempo_2d_id-isY5HS-styles-accounts-bg-2 z-tempo_2d_id-isY5HS-styles-accounts-border-radius-3 z-tempo_2d_id-isY5HS-styles-accounts-overflow-4 z-tempo_2d_id-isY5HS-styles-accounts-padding-inline-end-5 z-tempo_2d_id-isY5HS-styles-accounts-padding-inline-start-6`}:lq.accounts(),"aria-label":`Accounts`,dividers:`none`,role:`list`,children:e.accounts.map(t=>(0,W.jsx)(`div`,{role:`listitem`,children:(0,W.jsxs)(VT.Row,{action:e.selecting===t.address?`none`:`navigation`,"aria-busy":e.selecting===t.address||void 0,disabled:n&&e.selecting!==t.address,onClick:()=>{n||e.onChoose(t.address)},children:[(0,W.jsx)(Ew,{"aria-hidden":!0,size:`40`,children:t.owner===`webAuthn`?(0,W.jsx)(LG,{}):(0,W.jsx)(FG,{})}),(0,W.jsxs)(VT.Info,{children:[(0,W.jsxs)(VT.Title,{children:[r.size>1&&t.realm?`${t.realm} · `:null,t.owner===`webAuthn`?`Passkey`:`Cloud`]}),(0,W.jsx)(VT.Description,{...lq.address?{className:`z-tempo_2d_id-isY5HS-styles-address-font-family-0 z-tempo_2d_id-isY5HS-styles-address-font-size-1 z-tempo_2d_id-isY5HS-styles-address-font-weight-2 z-tempo_2d_id-isY5HS-styles-address-letter-spacing-3 z-tempo_2d_id-isY5HS-styles-address-line-height-4`}:lq.address(),children:Cw(t.address)})]}),t.balance?(0,W.jsx)(SS,{...lq.balance?{className:`z-tempo_2d_id-isY5HS-styles-balance-flex-shrink-0 z-tempo_2d_id-isY5HS-styles-balance-font-family-1 z-tempo_2d_id-isY5HS-styles-balance-font-size-2 z-tempo_2d_id-isY5HS-styles-balance-font-weight-3 z-tempo_2d_id-isY5HS-styles-balance-letter-spacing-4 z-tempo_2d_id-isY5HS-styles-balance-line-height-5`}:lq.balance(),currency:t.balance.currency,"data-testid":`balance`,value:t.balance.amount}):(0,W.jsx)(`span`,{...lq.unavailable?{className:`z_tempo_2d_id-isY5HS7 z_tempo_2d_id-isY5HS8 z_tempo_2d_id-isY5HS9 z_tempo_2d_id-isY5HSa z_tempo_2d_id-isY5HSb z_tempo_2d_id-isY5HSc z_tempo_2d_id-isY5HSd`}:lq.unavailable(),"data-testid":`balance`,children:`Balance unavailable`}),e.selecting===t.address?(0,W.jsx)(vS,{"aria-hidden":!0,size:`large`}):null]})},t.address))}),e.error?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):null,(0,W.jsx)(`p`,{...lq.status?{className:`z_tempo_2d_id-isY5HS1 z_tempo_2d_id-isY5HS2 z_tempo_2d_id-isY5HS3 z_tempo_2d_id-isY5HS4 z_tempo_2d_id-isY5HS5 z_tempo_2d_id-isY5HS6`}:lq.status(),"aria-live":`polite`,role:`status`,children:n?`Continuing to ${e.app}.`:void 0})]})}var lq;(function(e){e.accounts=1,e.address=1,e.balance=1,e.column=1,e.description=1,e.header=1,e.status=1,e.title=1,e.unavailable=1})(lq||={});var uq=class extends Error{name=`Page.CeremonyError`},dq=qd(`/choose-account`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(fq,{...dq.useLoaderData()}),loader:async e=>{let{searchStr:t}=e.location,n=new URLSearchParams(t);n.get(`sig`)||jG({document:!0,href:`/oauth2/authorize${t}`});let r=mG();try{return{error:null,request:(await rG(r.v1.authorize.accounts.$get({query:{oauth_query:n.toString()}}))).request}}catch(e){return gG(e)===`session_required`&&jG({href:`/login${t}`}),{error:hG(e),request:null}}},loaderDeps:e=>({search:e.search})});function fq(e){let t=_G(),n=Dp({async mutationFn(e){let n={account:e.account,oauth_query:window.location.search.slice(1)},r=await rG(t.v1.authorize.account.$post({json:n}));if(!(`step`in r))return r;let i=await kG({options:{publicKey:r.step.options.publicKey}}).catch(e=>{throw new uq(`Passkey ceremony failed.`,{cause:e})}),a=await rG(t.v1.authorize.account.$post({json:{...n,passkey:{assertion:i}}}));if(`step`in a)throw Error(`The selection requested a second passkey step.`);return a},onSuccess:e=>window.location.assign(e.redirect)}),r=n.isPending||n.isSuccess?n.variables.account:void 0;return(0,W.jsx)(`main`,{...hq.page?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-WfmSOe3 z_tempo_2d_id-WfmSOe4`}:hq.page(),children:e.error?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):e.request?(0,W.jsx)(cq,{accounts:e.request.accounts,app:e.request.app,error:n.error?pq(n.error):void 0,onChoose:e=>n.mutate({account:e}),selecting:r}):(0,W.jsx)(QK,{})})}function pq(e){return e instanceof uq?mq(e).includes(`NotAllowedError`)?`The passkey request was canceled. Choose the account again to continue.`:`Your passkey did not sign the request. Choose the account again to continue.`:hG(e)}function mq(e){return e instanceof Error?[e.name,...mq(e.cause)]:[]}var hq;(function(e){e.page=1})(hq||={});var gq=(0,U.forwardRef)(({title:e,titleId:t,...n},r)=>(0,W.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`1em`,height:`1em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,W.jsx)(`title`,{id:t,children:e}):null,(0,W.jsx)(`path`,{fill:`currentColor`,d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04c-2.04.027-3.91 1.183-4.961 3.014c-2.117 3.675-.546 9.103 1.519 12.09c1.013 1.454 2.208 3.09 3.792 3.039c1.52-.065 2.09-.987 3.935-.987c1.831 0 2.35.987 3.96.948c1.637-.026 2.676-1.48 3.676-2.948c1.156-1.688 1.636-3.325 1.662-3.415c-.039-.013-3.182-1.221-3.22-4.857c-.026-3.04 2.48-4.494 2.597-4.559c-1.429-2.09-3.623-2.324-4.39-2.376c-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83c-1.207.052-2.662.805-3.532 1.818c-.78.896-1.454 2.338-1.273 3.714c1.338.104 2.715-.688 3.559-1.701`})]})),_q=`data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%2012.5493C8%2010.9893%208%2010.2107%208.29333%209.61333C8.576%209.04%209.04%208.57333%209.616%208.29333C10.2133%208%2010.992%208%2012.5493%208H51.4507C53.0107%208%2053.7867%208%2054.3867%208.29333C54.96%208.57333%2055.424%209.04%2055.704%209.61333C56%2010.2133%2056%2010.992%2056%2012.5493V51.4507C56%2053.0107%2056%2053.7867%2055.7067%2054.3867C55.424%2054.96%2054.96%2055.424%2054.3867%2055.704C53.7867%2056%2053.008%2056%2051.4507%2056H12.5493C10.9893%2056%2010.2133%2056%209.61333%2055.7067C9.03998%2055.4249%208.57656%2054.9606%208.296%2054.3867C8%2053.7867%208%2053.008%208%2051.4507V12.5493Z'%20fill='%230000FF'%20/%3e%3c/svg%3e`,vq=`data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='64'%20height='64'%20fill='%23627EEA'%20/%3e%3cg%20transform='translate(18%208)'%3e%3cpath%20d='M14.996%200V17.74L29.99%2024.44L14.996%200Z'%20fill='white'%20fill-opacity='0.602'%20/%3e%3cpath%20d='M14.996%200L0%2024.44L14.996%2017.74V0Z'%20fill='white'%20/%3e%3cpath%20d='M14.996%2035.936V47.99L30%2027.232L14.996%2035.936Z'%20fill='white'%20fill-opacity='0.602'%20/%3e%3cpath%20d='M14.996%2047.99V35.934L0%2027.232L14.996%2047.99Z'%20fill='white'%20/%3e%3cpath%20d='M14.996%2033.146L29.99%2024.44L14.996%2017.744V33.146Z'%20fill='white'%20fill-opacity='0.2'%20/%3e%3cpath%20d='M0%2024.44L14.996%2033.146V17.744L0%2024.44Z'%20fill='white'%20fill-opacity='0.602'%20/%3e%3c/g%3e%3c/svg%3e`,yq=`data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='64'%20height='64'%20fill='black'%20/%3e%3cpath%20d='M46.964%2022.4753C46.7023%2022.7154%2046.3609%2022.8511%2046.005%2022.8563H12.3524C11.1577%2022.8563%2010.5556%2021.497%2011.3817%2020.7L16.9072%2015.3927C17.1641%2015.1449%2017.5064%2015.0044%2017.8639%2015H51.6496C52.8559%2015%2053.4463%2016.371%2052.6063%2017.1703L46.964%2022.4753ZM46.964%2048.6328C46.7026%2048.8718%2046.3599%2049.003%2046.005%2048.9999H12.3524C11.1577%2048.9999%2010.5556%2047.6522%2011.3817%2046.8552L16.9072%2041.5363C17.1662%2041.2936%2017.5083%2041.1582%2017.8639%2041.1576H51.6496C52.8559%2041.1576%2053.4463%2042.5169%2052.6063%2043.3139L46.964%2048.6328ZM46.964%2028.4517C46.7023%2028.2136%2046.3595%2028.0832%2046.005%2028.0869H12.3524C11.1577%2028.0869%2010.5556%2029.4346%2011.3817%2030.2293L16.9072%2035.5505C17.1687%2035.7893%2017.5092%2035.9241%2017.8639%2035.9293H51.6496C52.8559%2035.9293%2053.4463%2034.57%2052.6063%2033.7729L46.964%2028.4517Z'%20fill='white'%20/%3e%3c/svg%3e`,bq=`data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='64'%20height='64'%20fill='black'%20/%3e%3cpath%20d='M29.689%2047H22.3877L29.1548%2026.12H20.5L22.3877%2020H46.5L44.6123%2026.12H36.4205L29.689%2047Z'%20fill='white'%20/%3e%3c/svg%3e`,xq=[{assets:[`USDC.e`,`USDT0`,`pathUSD`],available:!0,icon:bq,id:`tempo`,name:`Tempo`},{assets:[`USDC`,`ETH`,`WETH`,`+3`],available:!1,icon:_q,id:`base`,name:`Base`},{assets:[`USDC`,`ETH`,`USDT`,`+2`],available:!1,icon:vq,id:`ethereum`,name:`Ethereum`},{assets:[`USDC`,`SOL`],available:!1,icon:yq,id:`solana`,name:`Solana`}],Sq=[{icon:gK,symbol:`USDC.e`},{icon:_K,symbol:`USDT0`},{icon:OK,symbol:`pathUSD`}];function Cq(e){let t=e.heading===`h4`?`h5`:`h2`;return e.method===`tempo`?(0,W.jsxs)(VE,{...Y.column?{className:`z-tempo_2d_id-GE1xyW-styles-column-max-width-0 z-tempo_2d_id-GE1xyW-styles-column-w-1`}:Y.column(),gap:`24`,children:[(0,W.jsxs)(VE,{gap:`8`,children:[(0,W.jsx)(wq,{back:(0,W.jsx)(Vd,{...e.address?{search:{address:e.address},to:`/deposit`}:{to:`/`}}),heading:e.heading,title:`Receive funds`}),(0,W.jsxs)(`p`,{...Y.description?{className:`z-tempo_2d_id-GE1xyW-styles-description-text-0 z-tempo_2d_id-GE1xyW-styles-description-text-1 z_tempo_2d_id-GE1xyW8 z_tempo_2d_id-GE1xyW9 z-tempo_2d_id-GE1xyW-styles-description-font-family-2 z-tempo_2d_id-GE1xyW-styles-description-font-family-3 z-tempo_2d_id-GE1xyW-styles-description-font-size-4 z-tempo_2d_id-GE1xyW-styles-description-font-size-5 z-tempo_2d_id-GE1xyW-styles-description-font-weight-6 z-tempo_2d_id-GE1xyW-styles-description-font-weight-7 z-tempo_2d_id-GE1xyW-styles-description-letter-spacing-8 z-tempo_2d_id-GE1xyW-styles-description-letter-spacing-9 z-tempo_2d_id-GE1xyW-styles-description-line-height-10 z-tempo_2d_id-GE1xyW-styles-description-line-height-11`}:Y.description(),children:[`Send `,(0,W.jsx)(`strong`,{children:`supported stablecoins`}),` to this address.`]})]}),e.address?(0,W.jsx)(Eq,{address:e.address}):e.error?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):null]}):(0,W.jsxs)(VE,{...Y.column?{className:`z-tempo_2d_id-GE1xyW-styles-column-max-width-0 z-tempo_2d_id-GE1xyW-styles-column-w-1`}:Y.column(),gap:`24`,children:[(0,W.jsxs)(VE,{gap:`8`,children:[(0,W.jsx)(wq,{back:(0,W.jsx)(Vd,{to:`/`}),heading:e.heading,title:`Deposit`}),(0,W.jsx)(`p`,{...Y.description?{className:`z-tempo_2d_id-GE1xyW-styles-description-text-0 z-tempo_2d_id-GE1xyW-styles-description-text-1 z_tempo_2d_id-GE1xyW8 z_tempo_2d_id-GE1xyW9 z-tempo_2d_id-GE1xyW-styles-description-font-family-2 z-tempo_2d_id-GE1xyW-styles-description-font-family-3 z-tempo_2d_id-GE1xyW-styles-description-font-size-4 z-tempo_2d_id-GE1xyW-styles-description-font-size-5 z-tempo_2d_id-GE1xyW-styles-description-font-weight-6 z-tempo_2d_id-GE1xyW-styles-description-font-weight-7 z-tempo_2d_id-GE1xyW-styles-description-letter-spacing-8 z-tempo_2d_id-GE1xyW-styles-description-letter-spacing-9 z-tempo_2d_id-GE1xyW-styles-description-line-height-10 z-tempo_2d_id-GE1xyW-styles-description-line-height-11`}:Y.description(),children:`Choose an option below to send stablecoins to your wallet.`})]}),e.address?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(VE,{gap:`8`,render:(0,W.jsx)(`section`,{}),children:[(0,W.jsx)(t,{...Y.sectionTitle?{className:`z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-family-0 z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-size-1 z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-weight-2 z-tempo_2d_id-GE1xyW-styles-sectionTitle-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-sectionTitle-line-height-4`}:Y.sectionTitle(),children:`Crypto`}),(0,W.jsx)(VT,{...Y.methods?{className:`z-tempo_2d_id-GE1xyW-styles-methods-margin-inline-0 z-tempo_2d_id-GE1xyW-styles-methods-border-radius-1`}:Y.methods(),dividers:`none`,size:`large`,children:xq.map(t=>(0,W.jsx)(Tq,{address:t.available?e.address:void 0,assets:t.assets,icon:(0,W.jsx)(`img`,{...Y.logo?{className:`z_tempo_2d_id-GE1xyW3 z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyWc z_tempo_2d_id-GE1xyWd`}:Y.logo(),alt:``,src:t.icon}),name:t.name},t.id))})]}),(0,W.jsxs)(VE,{gap:`8`,render:(0,W.jsx)(`section`,{}),children:[(0,W.jsx)(t,{...Y.sectionTitle?{className:`z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-family-0 z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-size-1 z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-weight-2 z-tempo_2d_id-GE1xyW-styles-sectionTitle-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-sectionTitle-line-height-4`}:Y.sectionTitle(),children:`Cash`}),(0,W.jsx)(VT,{...Y.methods?{className:`z-tempo_2d_id-GE1xyW-styles-methods-margin-inline-0 z-tempo_2d_id-GE1xyW-styles-methods-border-radius-1`}:Y.methods(),dividers:`none`,size:`large`,children:(0,W.jsx)(Tq,{assets:[`Coinbase`],icon:(0,W.jsx)(gq,{...Y.apple?{className:`z-tempo_2d_id-GE1xyW-styles-apple-text-0 z-tempo_2d_id-GE1xyW-styles-apple-h-1 z-tempo_2d_id-GE1xyW-styles-apple-w-2`}:Y.apple(),"aria-hidden":!0}),name:`Apple Pay`})})]})]}):e.error?(0,W.jsxs)(uw,{intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):null]})}function wq(e){let t=e.heading??`h1`;return(0,W.jsxs)(`header`,{...Y.header?{className:`z_tempo_2d_id-GE1xyW1 z_tempo_2d_id-GE1xyWa z_tempo_2d_id-GE1xyWb`}:Y.header(),children:[(0,W.jsx)(`span`,{...Y.back?{className:`z_tempo_2d_id-GE1xyW0 z-tempo_2d_id-GE1xyW-styles-back-bottom-0 z-tempo_2d_id-GE1xyW-styles-back-left-1 z-tempo_2d_id-GE1xyW-styles-back-top-2 z-tempo_2d_id-GE1xyW-styles-back-left-3 z_tempo_2d_id-GE1xyW1 z_tempo_2d_id-GE1xyW2`}:Y.back(),children:(0,W.jsx)(bS.Link,{"aria-label":`Back`,render:e.back,shape:`icon`,variant:`text`,children:(0,W.jsx)(MG,{...Y.backIcon?{className:`z-tempo_2d_id-GE1xyW-styles-backIcon-h-0 z-tempo_2d_id-GE1xyW-styles-backIcon-w-1`}:Y.backIcon()})})}),(0,W.jsx)(t,{...Y.title?{className:`z-tempo_2d_id-GE1xyW-styles-title-letter-spacing-0 z-tempo_2d_id-GE1xyW-styles-title-text-align-1 z-tempo_2d_id-GE1xyW-styles-title-font-family-2 z-tempo_2d_id-GE1xyW-styles-title-font-size-3 z-tempo_2d_id-GE1xyW-styles-title-font-weight-4 z-tempo_2d_id-GE1xyW-styles-title-line-height-5`}:Y.title(),children:e.title})]})}function Tq(e){let{address:t}=e,n=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{...Y.methodIcon?{className:`z_tempo_2d_id-GE1xyW0 z_tempo_2d_id-GE1xyW1 z_tempo_2d_id-GE1xyW7 z_tempo_2d_id-GE1xyWc z_tempo_2d_id-GE1xyWa z_tempo_2d_id-GE1xyWd`}:Y.methodIcon(),children:e.icon}),(0,W.jsxs)(VT.Info,{children:[(0,W.jsx)(VT.Title,{...Y.networkName?{className:`z-tempo_2d_id-GE1xyW-styles-networkName-font-family-0 z-tempo_2d_id-GE1xyW-styles-networkName-font-size-1 z-tempo_2d_id-GE1xyW-styles-networkName-font-weight-2 z-tempo_2d_id-GE1xyW-styles-networkName-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-networkName-line-height-4`}:Y.networkName(),children:e.name}),(0,W.jsx)(Ow,{gap:`4`,wrap:!0,children:e.assets.map(e=>(0,W.jsx)(GE,{shape:`rounded`,size:`small`,children:e},e))})]})]});return t?(0,W.jsx)(VT.Row,{action:`navigation`,render:(0,W.jsx)(Vd,{search:{address:t,method:`tempo`},to:`/deposit`}),children:n}):(0,W.jsxs)(VT.Row,{disabled:!0,children:[n,(0,W.jsx)(GE,{size:`small`,variant:`plain`,children:`Coming soon`})]})}function Eq(e){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(UE,{...Y.addressCard?{className:`z-tempo_2d_id-GE1xyW-styles-addressCard-bg-0 z-tempo_2d_id-GE1xyW-styles-addressCard-pt-1`}:Y.addressCard(),size:`small`,children:(0,W.jsxs)(VE,{align:`center`,gap:`16`,children:[(0,W.jsx)(`span`,{...Y.qr?{className:`z_tempo_2d_id-GE1xyWe z_tempo_2d_id-GE1xyWf z_tempo_2d_id-GE1xyWg z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyWh`}:Y.qr(),children:(0,W.jsx)(RT,{"aria-label":`Deposit address QR code`,arena:bq,size:`small`,value:e.address})}),(0,W.jsxs)(ww.Root,{...Y.address?{className:`z-tempo_2d_id-GE1xyW-styles-address-text-0 z-tempo_2d_id-GE1xyW-styles-address-max-width-1 z-tempo_2d_id-GE1xyW-styles-address-font-family-2 z-tempo_2d_id-GE1xyW-styles-address-font-size-3 z-tempo_2d_id-GE1xyW-styles-address-font-weight-4 z-tempo_2d_id-GE1xyW-styles-address-letter-spacing-5 z-tempo_2d_id-GE1xyW-styles-address-line-height-6`}:Y.address(),"data-testid":`deposit-address`,value:e.address,children:[(0,W.jsx)(ww.Text,{}),(0,W.jsx)(ww.Copy,{"aria-label":`Copy address`})]})]})}),(0,W.jsx)(UE,{...Y.card?{className:`z-tempo_2d_id-GE1xyW-styles-addressCard-bg-0`}:Y.card(),size:`small`,children:(0,W.jsxs)(VT,{dividers:`full`,children:[(0,W.jsxs)(VT.Row,{children:[(0,W.jsx)(VT.Label,{id:`deposit-network`,children:`Network`}),(0,W.jsxs)(LE.Root,{value:`tempo`,children:[(0,W.jsxs)(LE.Trigger,{...Y.trigger?{className:`z-tempo_2d_id-GE1xyW-styles-trigger-margin-inline-end-0`}:Y.trigger(),"aria-labelledby":`deposit-network`,size:`small`,variant:`text`,children:[(0,W.jsx)(LE.Value,{children:()=>(0,W.jsxs)(Ow,{gap:`8`,children:[(0,W.jsx)(`img`,{...Y.fieldLogo?{className:`z_tempo_2d_id-GE1xyW3 z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyW5 z_tempo_2d_id-GE1xyW6`}:Y.fieldLogo(),alt:``,src:bq}),`Tempo`]})}),(0,W.jsx)(LE.Icon,{})]}),(0,W.jsx)(LE.Popup,{align:`end`,children:xq.map(e=>(0,U.createElement)(LE.Item,{...Y.network?{className:`z-tempo_2d_id-GE1xyW-styles-network-display-0`}:Y.network(),disabled:!e.available,key:e.id,value:e.id},(0,W.jsx)(LE.ItemPrefix,{children:(0,W.jsx)(`img`,{...Y.fieldLogo?{className:`z_tempo_2d_id-GE1xyW3 z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyW5 z_tempo_2d_id-GE1xyW6`}:Y.fieldLogo(),alt:``,src:e.icon})}),(0,W.jsx)(LE.ItemText,{children:e.name}),e.available?null:(0,W.jsx)(LE.ItemSuffix,{children:`Coming soon`})))})]})]}),(0,W.jsxs)(VT.Row,{children:[(0,W.jsx)(VT.Label,{children:`Supported stablecoins`}),(0,W.jsx)(`span`,{...Y.coins?{className:`z_tempo_2d_id-GE1xyW1 z_tempo_2d_id-GE1xyW7 z-tempo_2d_id-GE1xyW-styles-coins-margin-inline-start-0 z-tempo_2d_id-GE1xyW-styles-coins-margin-inline-start-1`}:Y.coins(),children:Sq.map(e=>(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(`span`,{...Y.coin?{className:`z_tempo_2d_id-GE1xyW3 z-tempo_2d_id-GE1xyW-styles-coin-outline-0 z-tempo_2d_id-GE1xyW-styles-coin-outline-color-1 z-tempo_2d_id-GE1xyW-styles-coin-outline-color-2 z-tempo_2d_id-GE1xyW-styles-coin-transition-duration-3 z-tempo_2d_id-GE1xyW-styles-coin-transition-property-4 z-tempo_2d_id-GE1xyW-styles-coin-transition-timing-function-5`}:Y.coin(),tabIndex:0,children:(0,W.jsx)(`img`,{...Y.coinLogo?{className:`z_tempo_2d_id-GE1xyW3 z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyW5 z_tempo_2d_id-GE1xyW6`}:Y.coinLogo(),alt:e.symbol,height:20,src:e.icon,width:20})})}),(0,W.jsx)(hD.Popup,{children:e.symbol})]},e.symbol))})]})]})}),(0,W.jsxs)(uw,{intent:`warning`,role:`note`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsxs)(uw.Content,{...Y.warning?{className:`z-tempo_2d_id-GE1xyW-styles-warning-font-family-0 z-tempo_2d_id-GE1xyW-styles-warning-font-size-1 z-tempo_2d_id-GE1xyW-styles-warning-font-weight-2 z-tempo_2d_id-GE1xyW-styles-warning-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-warning-line-height-4`}:Y.warning(),children:[`Only send `,(0,W.jsx)(`strong`,{children:`supported stablecoins`}),` on`,` `,(0,W.jsx)(`strong`,{children:`Tempo`}),`. Sending other tokens or using a different network may result in permanent loss.`]})]}),(0,W.jsx)(bS.Link,{render:(0,W.jsx)(Vd,{to:`/`}),variant:`secondary`,children:`Done`})]})}var Y;(function(e){e.address=1,e.addressCard=1,e.apple=1,e.back=1,e.backIcon=1,e.card=1,e.coin=1,e.coinLogo=1,e.coins=1,e.column=1,e.description=1,e.fieldLogo=1,e.header=1,e.logo=1,e.methods=1,e.methodIcon=1,e.network=1,e.networkName=1,e.qr=1,e.sectionTitle=1,e.title=1,e.trigger=1,e.warning=1})(Y||={});var Dq=qd(`/deposit`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(Oq,{...Dq.useLoaderData()}),loader:async e=>{let t=mG(),{address:n,method:r}=e.deps,i=r===`tempo`?r:null,a=await rG(t.v1.account.$get({query:{}})).catch(e=>({error:e}));if(`error`in a)return gG(a.error)===`session_required`&&jG({href:`/login`}),{address:null,error:gG(a.error)===`rate_limited`?hG(a.error):`Your wallets failed to load. Reload the page to try again.`,method:i};let o=a.tempo.find(e=>e.address.toLowerCase()===n?.toLowerCase());return o?{address:o.address,error:null,method:i}:{address:null,error:`This wallet was not found. Go back to your account, then choose Deposit.`,method:i}},loaderDeps:e=>({address:e.search.address,method:e.search.method}),validateSearch:e=>({...typeof e.address==`string`?{address:e.address}:{},...typeof e.method==`string`?{method:e.method}:{}})});function Oq(e){return(0,W.jsx)(`main`,{...kq.page?{className:`z_tempo_2d_id-IDXgVf0 z_tempo_2d_id-IDXgVf1 z_tempo_2d_id-IDXgVf2 z_tempo_2d_id-IDXgVf3 z_tempo_2d_id-IDXgVf4`}:kq.page(),"aria-label":`Deposit`,children:(0,W.jsx)(Cq,{address:e.address??void 0,error:e.error??void 0,method:e.method??void 0})})}var kq;(function(e){e.page=1})(kq||={});function Aq(e){let{length:t,separator:n}=e,r=e.characters===`digits`,[i,a]=(0,U.useState)(!1),[o,s]=(0,U.useState)(0),c=(0,U.useRef)(null),l=(0,U.useId)(),u=(0,U.useRef)(e.invalid);return(0,U.useEffect)(()=>{let t=e.invalid&&!u.current;u.current=e.invalid,t&&(a(!1),s(e=>e+1))},[e.invalid]),(0,U.useEffect)(()=>{o&&c.current?.focus()},[o]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`label`,{...jq.label?{className:`z_tempo_2d_id-3w2jki0 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jki2 z_tempo_2d_id-3w2jki3 z_tempo_2d_id-3w2jki4 z_tempo_2d_id-3w2jki5`}:jq.label(),htmlFor:l,children:e[`aria-label`]}),(0,U.createElement)(Jw.Root,{...jq.root?{className:`z-tempo_2d_id-justify-content-center z-tempo_2d_id-w-[100%]`}:jq.root(),autoComplete:e.autoComplete,autoSubmit:e.autoSubmit,defaultValue:o?void 0:e.defaultValue,id:l,invalid:!!e.invalid&&!i,key:o,length:t,name:e.name,inputMode:r?`numeric`:`text`,normalizeValue:e=>e.replace(r?/\D/g:/[^0-9a-z]/gi,``).toUpperCase(),onValueChange:()=>a(!0),readOnly:e.readOnly,required:e.required,size:e.size,success:e.success,validationType:`none`},Array.from({length:t},(r,i)=>(0,W.jsxs)(U.Fragment,{children:[i===n?(0,W.jsx)(`span`,{...jq.separator?{className:`z_tempo_2d_id-3w2jki6 z_tempo_2d_id-3w2jki7 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jki8`}:jq.separator(),"aria-hidden":!0}):null,i===0?(0,W.jsx)(Jw.Input,{"aria-describedby":e[`aria-describedby`],autoFocus:e.autoFocus,ref:c}):(0,W.jsx)(Jw.Input,{"aria-label":`Character ${i+1} of ${t}`})]},i)))]})}var jq;(function(e){e.label=1,e.root=1,e.separator=1})(jq||={});function Mq(e){let t=e.heading??`h1`,n=(0,U.useId)(),r=e.request?.app,i=e.refusal??e.request?.key_authorization?.refusal,a=e.status===`denied`?`Denied. The device was not signed in.`:e.request?r?(0,W.jsxs)(W.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant `,(0,W.jsx)(`strong`,{children:r.name}),` `,(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(NG,{...X.verified?{className:`z-tempo_2d_id-tpVtLR-styles-verified-display-0 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-verified-outline-1 z-tempo_2d_id-tpVtLR-styles-verified-vertical-align-2 z-tempo_2d_id-tpVtLR-styles-icon-w-4 z-tempo_2d_id-tpVtLR-styles-verified-outline-3 z-tempo_2d_id-tpVtLR-styles-verified-outline-color-4 z-tempo_2d_id-tpVtLR-styles-verified-outline-offset-5`}:X.verified(),"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,W.jsx)(hD.Popup,{children:`Verified app`})]}),` `,`access to your account.`]}):(0,W.jsxs)(W.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant`,` `,(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsxs)(`span`,{...X.unverified?{className:`z_tempo_2d_id-tpVtLR18 z_tempo_2d_id-tpVtLRb z-tempo_2d_id-tpVtLR-styles-unverified-outline-0 z-tempo_2d_id-tpVtLR-styles-unverified-outline-1 z-tempo_2d_id-tpVtLR-styles-unverified-outline-color-2 z-tempo_2d_id-tpVtLR-styles-unverified-outline-offset-3 z_tempo_2d_id-tpVtLR19 z_tempo_2d_id-tpVtLR1a z_tempo_2d_id-tpVtLR1b z_tempo_2d_id-tpVtLR1c z_tempo_2d_id-tpVtLR1d z_tempo_2d_id-3w2jki4`}:X.unverified(),tabIndex:0,children:[(0,W.jsx)(aw,{...X.warning?{className:`z-tempo_2d_id-tpVtLR-styles-verified-display-0 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-warning-margin-inline-end-0 z-tempo_2d_id-tpVtLR-styles-verified-vertical-align-2 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.warning()}),`an unverified app`]})}),(0,W.jsx)(hD.Popup,{children:`Unverified app`})]}),` `,`access to your account.`]}):`Enter the code shown in your terminal.`;return e.status===`approved`?(0,W.jsx)(VE,{...X.column?{className:`z-tempo_2d_id-tpVtLR-styles-column-max-width-0 z-tempo_2d_id-tpVtLR-styles-column-w-1`}:X.column(),gap:`32`,children:(0,W.jsxs)(VE,{...X.header?{className:`z-tempo_2d_id-tpVtLR-styles-header-text-align-0`}:X.header(),align:`center`,gap:`8`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(t,{...X.title?{className:`z-tempo_2d_id-tpVtLR-styles-title-text-wrap-0 z-tempo_2d_id-tpVtLR-styles-title-font-family-1 z-tempo_2d_id-tpVtLR-styles-title-font-size-2 z-tempo_2d_id-tpVtLR-styles-title-font-weight-3 z-tempo_2d_id-tpVtLR-styles-title-letter-spacing-4 z-tempo_2d_id-tpVtLR-styles-title-line-height-5`}:X.title(),children:`Authorization successful`}),(0,W.jsxs)(Ow,{...X.success?{className:`z-tempo_2d_id-tpVtLR-styles-success-font-family-0 z-tempo_2d_id-tpVtLR-styles-success-font-size-1 z-tempo_2d_id-tpVtLR-styles-success-font-weight-2 z-tempo_2d_id-tpVtLR-styles-success-letter-spacing-3 z-tempo_2d_id-tpVtLR-styles-success-line-height-4`}:X.success(),"aria-live":`polite`,gap:`8`,justify:`center`,render:(0,W.jsx)(`p`,{}),role:`status`,children:[(0,W.jsx)(`span`,{...X.check?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-tpVtLRi z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-tpVtLRk z_tempo_2d_id-tpVtLRl z_tempo_2d_id-3w2jki7 z_tempo_2d_id-tpVtLRn z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-tpVtLRp`}:X.check(),children:(0,W.jsx)(GC,{})}),`You can close this tab.`]})]})}):(0,W.jsxs)(VE,{...X.column?{className:`z-tempo_2d_id-tpVtLR-styles-column-max-width-0 z-tempo_2d_id-tpVtLR-styles-column-w-1`}:X.column(),gap:`32`,children:[(0,W.jsxs)(VE,{...X.header?{className:`z-tempo_2d_id-tpVtLR-styles-header-text-align-0`}:X.header(),align:`center`,gap:`8`,render:(0,W.jsx)(`header`,{}),children:[e.request?(0,W.jsx)(Ew,{...X.avatar?{className:`z-tempo_2d_id-tpVtLR-styles-avatar-mb-0 z-tempo_2d_id-tpVtLR-styles-avatar-bg-1 z-tempo_2d_id-tpVtLR-styles-avatar-text-2`}:X.avatar(),"data-verified":!!r,children:r?(0,W.jsx)(zG,{}):(0,W.jsx)(aw,{})}):null,(0,W.jsx)(t,{...X.title?{className:`z-tempo_2d_id-tpVtLR-styles-title-text-wrap-0 z-tempo_2d_id-tpVtLR-styles-title-font-family-1 z-tempo_2d_id-tpVtLR-styles-title-font-size-2 z-tempo_2d_id-tpVtLR-styles-title-font-weight-3 z-tempo_2d_id-tpVtLR-styles-title-letter-spacing-4 z-tempo_2d_id-tpVtLR-styles-title-line-height-5`}:X.title(),children:`Authorize a device`}),(0,W.jsx)(`p`,{...X.description?{className:`z-tempo_2d_id-tpVtLR-styles-description-text-0 z-tempo_2d_id-tpVtLR-styles-description-text-1 z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr z-tempo_2d_id-tpVtLR-styles-description-font-family-2 z-tempo_2d_id-tpVtLR-styles-description-font-family-3 z-tempo_2d_id-tpVtLR-styles-description-font-size-4 z-tempo_2d_id-tpVtLR-styles-description-font-size-5 z-tempo_2d_id-tpVtLR-styles-description-font-weight-6 z-tempo_2d_id-tpVtLR-styles-description-font-weight-7 z-tempo_2d_id-tpVtLR-styles-description-letter-spacing-8 z-tempo_2d_id-tpVtLR-styles-description-letter-spacing-9 z-tempo_2d_id-tpVtLR-styles-description-line-height-10 z-tempo_2d_id-tpVtLR-styles-description-line-height-11`}:X.description(),children:a})]}),e.status===`denied`?null:e.request?(0,W.jsxs)(VE,{gap:`16`,children:[(0,W.jsx)(Aq,{"aria-label":`Code`,defaultValue:e.request.user_code,length:8,readOnly:!0,separator:4,size:`medium`},e.request.user_code),e.request.key_authorization?(0,W.jsx)(HK,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key_authorization}):null,e.request.challenge?(0,W.jsxs)(`div`,{...X.challenge?{className:`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4`}:X.challenge(),role:`note`,children:[(0,W.jsx)(`p`,{...X.challengeTitle?{className:`z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf z_tempo_2d_id-tpVtLRg`}:X.challengeTitle(),children:`This sign-in also signs a message`}),(0,W.jsx)(`p`,{...X.challengeText?{className:`z_tempo_2d_id-tpVtLR5 z_tempo_2d_id-tpVtLR6 z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR9 z_tempo_2d_id-tpVtLRa`}:X.challengeText(),children:`Approve only if you started this sign-in in your own terminal and expect this message.`}),(0,W.jsx)(`pre`,{...X.message?{className:`z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-tpVtLR10 z_tempo_2d_id-tpVtLR11 z_tempo_2d_id-tpVtLR12 z_tempo_2d_id-tpVtLR13 z_tempo_2d_id-tpVtLR14 z_tempo_2d_id-tpVtLR15`}:X.message(),children:e.request.challenge})]}):null,(0,W.jsxs)(`dl`,{...X.details?{className:`z_tempo_2d_id-tpVtLRx z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-tpVtLR4 z_tempo_2d_id-tpVtLR6 z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR9 z_tempo_2d_id-tpVtLRa`}:X.details(),children:[e.request.device?(0,W.jsxs)(Ow,{...X.row?{className:`z-tempo_2d_id-tpVtLR-styles-row-min-width-0 z-tempo_2d_id-tpVtLR-styles-row-overflow-wrap-1`}:X.row(),gap:`12`,children:[(0,W.jsx)(`dt`,{children:(0,W.jsx)(zG,{...X.icon?{className:`z-tempo_2d_id-tpVtLR-styles-icon-text-0 z-tempo_2d_id-tpVtLR-styles-icon-display-1 z-tempo_2d_id-tpVtLR-styles-icon-flex-shrink-2 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.icon(),"aria-label":`Device name`,role:`img`})}),(0,W.jsxs)(`dd`,{children:[(0,W.jsx)(`bdi`,{...X.device?{className:`z_tempo_2d_id-tpVtLRs z_tempo_2d_id-tpVtLRt z_tempo_2d_id-tpVtLRu z_tempo_2d_id-tpVtLRv z_tempo_2d_id-tpVtLRw`}:X.device(),children:e.request.device.slice(0,64)}),` `,(0,W.jsx)(`span`,{...X.source?{className:`z_tempo_2d_id-nr-Vm78`}:X.source(),children:`(as the device reports it)`})]})]}):null,e.request.location?(0,W.jsxs)(Ow,{...X.row?{className:`z-tempo_2d_id-tpVtLR-styles-row-min-width-0 z-tempo_2d_id-tpVtLR-styles-row-overflow-wrap-1`}:X.row(),gap:`12`,children:[(0,W.jsx)(`dt`,{children:(0,W.jsx)(BG,{...X.icon?{className:`z-tempo_2d_id-tpVtLR-styles-icon-text-0 z-tempo_2d_id-tpVtLR-styles-icon-display-1 z-tempo_2d_id-tpVtLR-styles-icon-flex-shrink-2 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.icon(),"aria-label":`Location`,role:`img`})}),(0,W.jsx)(`dd`,{children:e.request.location})]}):null,(0,W.jsxs)(Ow,{...X.row?{className:`z-tempo_2d_id-tpVtLR-styles-row-min-width-0 z-tempo_2d_id-tpVtLR-styles-row-overflow-wrap-1`}:X.row(),gap:`12`,children:[(0,W.jsx)(`dt`,{children:(0,W.jsx)(PG,{...X.icon?{className:`z-tempo_2d_id-tpVtLR-styles-icon-text-0 z-tempo_2d_id-tpVtLR-styles-icon-display-1 z-tempo_2d_id-tpVtLR-styles-icon-flex-shrink-2 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.icon(),"aria-label":`Requested`,role:`img`})}),(0,W.jsxs)(`dd`,{children:[Pq.format(e.request.created_at*1e3),` UTC`]})]}),e.request.ip?(0,W.jsxs)(Ow,{...X.row?{className:`z-tempo_2d_id-tpVtLR-styles-row-min-width-0 z-tempo_2d_id-tpVtLR-styles-row-overflow-wrap-1`}:X.row(),gap:`12`,children:[(0,W.jsx)(`dt`,{children:(0,W.jsx)(RG,{...X.icon?{className:`z-tempo_2d_id-tpVtLR-styles-icon-text-0 z-tempo_2d_id-tpVtLR-styles-icon-display-1 z-tempo_2d_id-tpVtLR-styles-icon-flex-shrink-2 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.icon(),"aria-label":`IP address`,role:`img`})}),(0,W.jsx)(`dd`,{children:e.request.ip})]}):null]}),(0,W.jsx)(bS,{disabled:e.denying||!!i,loading:e.approving,onClick:e.onApprove,children:`Approve`}),(0,W.jsx)(bS,{disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`text`,children:`Deny`}),e.email?(0,W.jsxs)(`p`,{...X.note?{className:`z-tempo_2d_id-tpVtLR-styles-note-text-0 z-tempo_2d_id-tpVtLR-styles-note-text-1 z_tempo_2d_id-tpVtLR16 z-tempo_2d_id-tpVtLR-styles-note-font-family-2 z-tempo_2d_id-tpVtLR-styles-note-font-family-3 z-tempo_2d_id-tpVtLR-styles-note-font-size-4 z-tempo_2d_id-tpVtLR-styles-note-font-size-5 z-tempo_2d_id-tpVtLR-styles-note-font-weight-6 z-tempo_2d_id-tpVtLR-styles-note-font-weight-7 z-tempo_2d_id-tpVtLR-styles-note-letter-spacing-8 z-tempo_2d_id-tpVtLR-styles-note-letter-spacing-9 z-tempo_2d_id-tpVtLR-styles-note-line-height-10 z-tempo_2d_id-tpVtLR-styles-note-line-height-11`}:X.note(),children:[`Signed in as `,(0,W.jsx)(`strong`,{children:e.email}),`.`]}):null]}):(0,W.jsxs)(VE,{gap:`32`,render:(0,W.jsx)(`form`,{onSubmit:e.onSubmitCode}),children:[(0,W.jsx)(Aq,{"aria-describedby":`${n}-error`,"aria-label":`Code shown in your terminal`,autoComplete:`off`,autoFocus:e.autoFocus,defaultValue:e.code,invalid:e.invalid,length:8,name:`code`,readOnly:e.fetching,required:!0,separator:4,size:`medium`}),(0,W.jsx)(bS,{loading:e.fetching,type:`submit`,children:`Continue`})]}),(()=>{let t=e.error??(i?Nq[i]:void 0);return t?(0,W.jsxs)(uw,{id:`${n}-error`,intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:t})]}):null})()]})}var Nq={foreign_account:`The terminal requests a key for a Tempo Account that you do not hold. Deny the request, and start the sign-in again in the terminal as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the terminal.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`},Pq=new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),X;(function(e){e.avatar=1,e.challenge=1,e.challengeText=1,e.challengeTitle=1,e.check=1,e.column=1,e.description=1,e.device=1,e.details=1,e.header=1,e.icon=1,e.message=1,e.note=1,e.row=1,e.source=1,e.success=1,e.title=1,e.unverified=1,e.verified=1,e.warning=1})(X||={});var Fq=class extends Error{name=`Page.CeremonyError`},Iq=qd(`/device`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(Lq,{...Iq.useLoaderData()}),loader:async e=>{let t=mG(),n=await rG(t.v1.auth.session.$get());if(!n.user){let{pathname:t,searchStr:n}=e.location,r=new URLSearchParams(n);r.delete(`chain`);let i=r.size>0?`${t}?${r}`:t;jG({href:`/login?${new URLSearchParams({return_to:i})}`})}let r=e.deps.code??e.deps.user_code??``,i=n.user.email;if(!r)return{code:r,email:i,error:null,request:null};try{return{code:r,email:i,error:null,request:(await rG(t.v1.device.requests[`:code`].$get({param:{code:encodeURIComponent(r)}}))).request}}catch(e){return{code:r,email:i,error:hG(e),request:null}}},loaderDeps:e=>({code:e.search.code,user_code:e.search.user_code}),validateSearch:e=>({...typeof e.code==`string`?{code:e.code}:{},...typeof e.user_code==`string`?{user_code:e.user_code}:{}})});function Lq(e){let t=_G(),n=Wu(),[r,i]=(0,U.useState)(!1),a=e.request?.user_code??e.code,o=e=>{gG(e)===`session_required`&&window.location.reload()},s=Dp({async mutationFn(){let n={...e.request?.key_authorization?.account?{account:e.request.key_authorization.account}:{},code:a},r=await rG(t.v1.device.approve.$post({json:n}));if(!(`step`in r))return r;let i=await kG({options:{publicKey:r.step.options.publicKey}}).catch(e=>{throw new Fq(`Passkey ceremony failed.`,{cause:e})}),o=await rG(t.v1.device.approve.$post({json:{...n,passkey:{assertion:i}}}));if(`step`in o)throw Error(`The approval requested a second passkey step.`);return o},onError:o}),c=Dp({mutationFn:()=>rG(t.v1.device.deny.$post({json:{code:a}})),onError:o}),l=(()=>{if(s.isSuccess)return`approved`;if(c.isSuccess)return`denied`;let t=e.request?.status;return t===`pending`?void 0:t})(),u=(()=>{if(e.error)return e.error;if(s.error&&gG(s.error)!==`webauthn_required`)return Rq(s.error);if(c.error)return hG(c.error)})();function d(e){e.preventDefault();let t=String(new FormData(e.currentTarget).get(`code`));i(!0),n.navigate({search:{code:t},to:`/device`}).finally(()=>i(!1))}return(0,W.jsx)(`main`,{...Bq.page?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-uIQs5D3 z_tempo_2d_id-uIQs5D4`}:Bq.page(),children:(0,W.jsx)(Mq,{approving:s.isPending,autoFocus:!0,code:e.code,denying:c.isPending,email:e.email,error:u,fetching:r,invalid:!!e.error,onApprove:()=>s.mutate(),onDeny:()=>c.mutate(),onSubmitCode:d,refusal:gG(s.error)===`webauthn_required`?`passkey`:void 0,request:e.request??void 0,status:l})})}function Rq(e){return gG(e)===`webauthn_rejected`?`Your passkey did not sign the approval. Approve again, or deny the request.`:e instanceof Fq?zq(e).includes(`NotAllowedError`)?`The passkey request was canceled. Approve again, or deny the request.`:`Your passkey did not sign the approval. Approve again, or deny the request.`:hG(e)}function zq(e){return e instanceof Error?[e.name,...zq(e.cause)]:[]}var Bq;(function(e){e.page=1})(Bq||={});var Vq=qd(`/error`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(Hq,{...Vq.useLoaderData()}),loader:e=>({reason:Uq.get(e.deps.error??``)??`request`}),loaderDeps:e=>({error:e.search.error}),validateSearch:e=>({error:typeof e.error==`string`?e.error:void 0})});function Hq(e){return(0,W.jsx)(`main`,{...Wq.page?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-K_94u73 z_tempo_2d_id-K_94u74`}:Wq.page(),children:(0,W.jsx)(QK,{reason:e.reason})})}var Uq=new Map([[`client_disabled`,`client`],[`invalid_callback_request`,`sign_in`],[`invalid_client`,`client`],[`invalid_redirect`,`redirect`],[`invalid_redirect_uri`,`redirect`],[`state_invalid`,`sign_in`],[`state_mismatch`,`sign_in`],[`state_not_found`,`sign_in`]]),Wq;(function(e){e.page=1})(Wq||={});var Gq=(0,U.forwardRef)(({title:e,titleId:t,...n},r)=>(0,W.jsxs)(`svg`,{viewBox:`0 0 256 262`,width:`0.98em`,height:`1em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,W.jsx)(`title`,{id:t,children:e}):null,(0,W.jsx)(`path`,{fill:`#4285f4`,d:`M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622l38.755 30.023l2.685.268c24.659-22.774 38.875-56.282 38.875-96.027`}),(0,W.jsx)(`path`,{fill:`#34a853`,d:`M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055c-34.523 0-63.824-22.773-74.269-54.25l-1.531.13l-40.298 31.187l-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1`}),(0,W.jsx)(`path`,{fill:`#fbbc05`,d:`M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82c0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602z`}),(0,W.jsx)(`path`,{fill:`#eb4335`,d:`M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0C79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251`})]}));function Z(e){let t=e.heading??`h1`,{email:n}=e,r=(0,U.useId)();return(0,W.jsxs)(VE,{...Kq.column?{className:`z-tempo_2d_id-gSRY5u-styles-column-max-width-0 z-tempo_2d_id-gSRY5u-styles-column-w-1`}:Kq.column(),gap:`32`,children:[(0,W.jsxs)(VE,{...Kq.header?{className:`z-tempo_2d_id-gSRY5u-styles-header-text-align-0`}:Kq.header(),gap:`8`,render:(0,W.jsx)(`header`,{}),children:[(0,W.jsx)(t,{...Kq.title?{className:`z-tempo_2d_id-gSRY5u-styles-title-text-wrap-0 z-tempo_2d_id-gSRY5u-styles-title-font-family-1 z-tempo_2d_id-gSRY5u-styles-title-font-size-2 z-tempo_2d_id-gSRY5u-styles-title-font-weight-3 z-tempo_2d_id-gSRY5u-styles-title-letter-spacing-4 z-tempo_2d_id-gSRY5u-styles-title-line-height-5`}:Kq.title(),children:n?`Check your email`:e.linking?`Verify your email`:`Sign in to Tempo`}),(()=>{if(n)return(0,W.jsxs)(`p`,{...Kq.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u1 z-tempo_2d_id-gSRY5u-styles-description-font-family-2 z-tempo_2d_id-gSRY5u-styles-description-font-family-3 z-tempo_2d_id-gSRY5u-styles-description-font-size-4 z-tempo_2d_id-gSRY5u-styles-description-font-size-5 z-tempo_2d_id-gSRY5u-styles-description-font-weight-6 z-tempo_2d_id-gSRY5u-styles-description-font-weight-7 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-8 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-9 z-tempo_2d_id-gSRY5u-styles-description-line-height-10 z-tempo_2d_id-gSRY5u-styles-description-line-height-11`}:Kq.description(),children:[`Enter the 6-digit code sent to `,(0,W.jsx)(`strong`,{children:n}),`.`,e.linking?` Your passkey then confirms the sign-in.`:null]});if(e.linking)return(0,W.jsx)(`p`,{...Kq.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u1 z-tempo_2d_id-gSRY5u-styles-description-font-family-2 z-tempo_2d_id-gSRY5u-styles-description-font-family-3 z-tempo_2d_id-gSRY5u-styles-description-font-size-4 z-tempo_2d_id-gSRY5u-styles-description-font-size-5 z-tempo_2d_id-gSRY5u-styles-description-font-weight-6 z-tempo_2d_id-gSRY5u-styles-description-font-weight-7 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-8 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-9 z-tempo_2d_id-gSRY5u-styles-description-line-height-10 z-tempo_2d_id-gSRY5u-styles-description-line-height-11`}:Kq.description(),children:`Enter your email to finish signing in with your passkey.`});if(!e.request)return e.device?(0,W.jsx)(`p`,{...Kq.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u1 z-tempo_2d_id-gSRY5u-styles-description-font-family-2 z-tempo_2d_id-gSRY5u-styles-description-font-family-3 z-tempo_2d_id-gSRY5u-styles-description-font-size-4 z-tempo_2d_id-gSRY5u-styles-description-font-size-5 z-tempo_2d_id-gSRY5u-styles-description-font-weight-6 z-tempo_2d_id-gSRY5u-styles-description-font-weight-7 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-8 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-9 z-tempo_2d_id-gSRY5u-styles-description-line-height-10 z-tempo_2d_id-gSRY5u-styles-description-line-height-11`}:Kq.description(),children:`Sign in to approve a device.`}):null;let t=(0,W.jsxs)(`span`,{...Kq.app?{className:`z_tempo_2d_id-3w2jki4`}:Kq.app(),children:[e.request.verified?(0,W.jsx)(`strong`,{children:e.request.app}):e.request.app,e.request.verified?(0,W.jsxs)(W.Fragment,{children:[` `,(0,W.jsxs)(hD.Root,{children:[(0,W.jsx)(hD.Trigger,{delay:150,render:(0,W.jsx)(NG,{...Kq.badge?{className:`z-tempo_2d_id-gSRY5u-styles-badge-display-0 z-tempo_2d_id-gSRY5u-styles-badge-h-1 z-tempo_2d_id-gSRY5u-styles-badge-outline-2 z-tempo_2d_id-gSRY5u-styles-badge-vertical-align-3 z-tempo_2d_id-gSRY5u-styles-badge-w-4 z-tempo_2d_id-gSRY5u-styles-badge-outline-5 z-tempo_2d_id-gSRY5u-styles-badge-outline-color-6 z-tempo_2d_id-gSRY5u-styles-badge-outline-offset-7`}:Kq.badge(),"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,W.jsx)(hD.Popup,{children:`Verified app`})]})]}):null]});return e.request.key?(0,W.jsxs)(`p`,{...Kq.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u1 z-tempo_2d_id-gSRY5u-styles-description-font-family-2 z-tempo_2d_id-gSRY5u-styles-description-font-family-3 z-tempo_2d_id-gSRY5u-styles-description-font-size-4 z-tempo_2d_id-gSRY5u-styles-description-font-size-5 z-tempo_2d_id-gSRY5u-styles-description-font-weight-6 z-tempo_2d_id-gSRY5u-styles-description-font-weight-7 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-8 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-9 z-tempo_2d_id-gSRY5u-styles-description-line-height-10 z-tempo_2d_id-gSRY5u-styles-description-line-height-11`}:Kq.description(),children:[`Continue to let `,t,` use your Tempo Account.`]}):(0,W.jsxs)(`p`,{...Kq.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u1 z-tempo_2d_id-gSRY5u-styles-description-font-family-2 z-tempo_2d_id-gSRY5u-styles-description-font-family-3 z-tempo_2d_id-gSRY5u-styles-description-font-size-4 z-tempo_2d_id-gSRY5u-styles-description-font-size-5 z-tempo_2d_id-gSRY5u-styles-description-font-weight-6 z-tempo_2d_id-gSRY5u-styles-description-font-weight-7 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-8 z-tempo_2d_id-gSRY5u-styles-description-letter-spacing-9 z-tempo_2d_id-gSRY5u-styles-description-line-height-10 z-tempo_2d_id-gSRY5u-styles-description-line-height-11`}:Kq.description(),children:[`Sign in to continue to `,t,`.`]})})()]}),e.request?.key&&!n&&!e.linking?(0,W.jsx)(HK,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key}):null,n?(0,W.jsxs)(VE,{gap:`24`,render:(0,W.jsx)(`form`,{method:`post`,onSubmit:e.onSubmitCode}),children:[(0,W.jsx)(Aq,{"aria-describedby":`${r}-error`,"aria-label":`Code`,autoFocus:e.autoFocus,autoSubmit:!0,characters:`digits`,invalid:e.invalid,length:6,name:`code`,readOnly:e.verifying||e.verified,required:!0,size:`large`,success:e.verified}),e.error?(0,W.jsxs)(uw,{id:`${r}-error`,intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):null,(0,W.jsxs)(VE,{align:`center`,gap:`4`,children:[(0,W.jsx)(bS,{disabled:e.resend!==`idle`||e.verifying||e.verified,onClick:e.onResend,variant:`text`,children:e.resend===`pending`?`Sending…`:e.resend===`sent`?`Code sent`:`Resend code`}),(0,W.jsx)(bS,{disabled:e.verifying||e.verified,onClick:e.onChangeEmail,variant:`text`,children:`Use a different email`}),(0,W.jsx)(`p`,{...Kq.status?{className:`z_tempo_2d_id-3w2jki0 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jki2 z_tempo_2d_id-3w2jki3 z_tempo_2d_id-3w2jki4 z_tempo_2d_id-3w2jki5`}:Kq.status(),"aria-live":`polite`,role:`status`,children:(()=>{if(e.resend===`pending`)return`Sending a new code.`;if(e.resend===`sent`)return`A new code was sent to ${n}.`})()})]})]}):(0,W.jsxs)(VE,{gap:`12`,children:[(0,W.jsxs)(VE,{gap:`12`,render:(0,W.jsx)(`form`,{method:`post`,onSubmit:e.onSubmitEmail}),children:[(0,W.jsx)(JS.Group,{invalid:e.invalid,size:`medium`,children:(0,W.jsx)(JS.Control,{"aria-describedby":`${r}-error`,"aria-label":`Email`,autoComplete:`email`,"data-1p-ignore":!0,id:`${r}-email`,name:`email`,placeholder:`Email address`,required:!0,type:`email`})}),e.error?(0,W.jsxs)(uw,{id:`${r}-error`,intent:`negative`,children:[(0,W.jsx)(uw.Icon,{}),(0,W.jsx)(uw.Content,{children:e.error})]}):null,(0,W.jsx)(bS,{size:`medium`,disabled:e.passkeyPending,loading:e.sending,type:`submit`,children:`Continue with email`})]}),!e.linking&&(e.onGoogle||e.onPasskey)?(0,W.jsx)(zE,{...Kq.rule?{className:`z-tempo_2d_id-gSRY5u-styles-rule-margin-block-0`}:Kq.rule()}):null,e.onGoogle&&!e.linking?(0,W.jsxs)(bS,{size:`medium`,disabled:e.sending||e.passkeyPending,onClick:e.onGoogle,variant:`secondary`,children:[(0,W.jsx)(Gq,{"aria-hidden":!0}),`Continue with Google`]}):null,e.onPasskey&&!e.linking?(0,W.jsxs)(bS,{size:`medium`,disabled:e.sending,loading:e.passkeyPending,onClick:e.onPasskey,variant:`secondary`,children:[(0,W.jsx)(LG,{}),`Continue with passkey`]}):null,e.linking&&e.onStartOver?(0,W.jsx)(bS,{...Kq.startOver?{className:`z-tempo_2d_id-gSRY5u-styles-startOver-align-self-0`}:Kq.startOver(),onClick:e.onStartOver,variant:`text`,children:`Start over`}):null]})]})}var Kq;(function(e){e.app=1,e.badge=1,e.column=1,e.description=1,e.header=1,e.rule=1,e.startOver=1,e.status=1,e.title=1})(Kq||={});var qq=class extends Error{name=`Page.CeremonyError`},Jq=qd(`/login`)({codeSplitGroupings:[],component:()=>(0,W.jsx)(Yq,{...Jq.useLoaderData()}),loader:async e=>{let t=new URLSearchParams(e.location.searchStr),n=t.has(`sig`),r=t.get(`return_to`),i=mG(),[a,o]=await Promise.all([rG(i.v1.auth.session.$get()),rG(i.v1.auth.methods.$get({query:{...n?{oauth_query:t.toString()}:{},...r?{return_to:r}:{}}}))]);return a.user&&!n&&jG({href:o.return_to??`/`}),{failed:o.google&&t.get(`error`)===`access_denied`,google:o.google,passkeys:o.passkeys,request:o.app?{app:o.app,key:o.request?.key??null,verified:o.verified}:null,returnTo:o.return_to,userCode:o.user_code}},loaderDeps:e=>({search:e.search})});function Yq(e){let t=_G(),n=Wu(),[r,i]=(0,U.useState)(void 0),a=Dp({async mutationFn(e){let n=e.assertion??await u({});return rG(t.v1.auth.passkey.verify.$post({json:{assertion:n,...tJ()}}))}}),o=Dp({mutationFn:d}),s=Dp({mutationFn:d});(0,U.useEffect)(()=>{if(!o.isSuccess)return;let e=window.setTimeout(()=>o.reset(),Xq);return()=>window.clearTimeout(e)},[o.isSuccess,o.reset]);let c=Dp({async mutationFn(e){let n=r?{assertion:await u({link:r}),link:r}:{};return rG(t.v1.auth.code.verify.$post({json:{...e,...n,...tJ()}}))}}),l=s.isSuccess?s.variables.email:void 0;async function u(n){let{link:r}=n,{allowCredentials:i,...a}=(await rG(t.v1.auth.passkey.options.$post({json:{...r?{link:r}:{},...tJ(),...e.userCode?{user_code:e.userCode}:{}}}))).options.publicKey;try{return await kG({getFn:e=>navigator.credentials.get(e),options:{publicKey:{...a,...i?{allowCredentials:i}:{}}}})}catch(e){throw new qq(`Passkey ceremony failed.`,{cause:e})}}function d(e){return rG(t.v1.auth.code.$post({json:e}))}function f(e){e.preventDefault(),!(s.isPending||a.isPending)&&(a.reset(),s.mutate({email:String(new FormData(e.currentTarget).get(`email`))}))}function p(e){if(e.preventDefault(),!l||c.isPending||c.isSuccess)return;let t=e.currentTarget;o.reset(),c.mutate({code:String(new FormData(t).get(`code`)),email:l},{onError(e){Qq(e)&&i(void 0);let n=t.elements.namedItem(`code`);n instanceof HTMLInputElement&&(n.value=``,n.focus())},onSuccess(e){window.setTimeout(()=>m(e),Zq)}})}function m(t){t.redirect?window.location.assign(t.redirect):e.returnTo?window.location.assign(e.returnTo):n.navigate({to:`/`})}function h(){let e=new URL(window.location.href);e.searchParams.delete(`error`);let t=new URL(`/v1/auth/oauth/google`,window.location.origin);t.searchParams.set(`return_to`,e.pathname+e.search);let{oauth_query:n}=tJ();n&&t.searchParams.set(`oauth_query`,n),window.location.assign(t)}function g(){a.isPending||(s.reset(),a.mutate({},{onSuccess:_}))}function _(e){`step`in e?i(e.step.link):m({redirect:e.redirect})}function v(){!l||c.isPending||c.isSuccess||(c.reset(),o.mutate({email:l}))}function y(){a.reset(),o.reset(),s.reset(),i(void 0),c.reset()}function b(){a.reset(),s.reset(),i(void 0)}let x=l?c.error??o.error:s.error??a.error,S=e.failed&&s.isIdle&&a.isIdle;return(0,W.jsx)(`main`,{...nJ.page?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-0xm92Y3 z_tempo_2d_id-0xm92Y4`}:nJ.page(),children:(0,W.jsx)(Z,{autoFocus:!0,device:!!e.returnTo,email:l,error:(()=>{if(x)return $q(x,{code:!!l});if(S)return`Sign-in with Google failed. Try again, or continue with email.`})(),invalid:!!(l?c.error:s.error),linking:!!r,onChangeEmail:y,onGoogle:e.google?h:void 0,onPasskey:e.passkeys?g:void 0,onResend:v,onStartOver:b,onSubmitCode:p,onSubmitEmail:f,passkeyPending:a.isPending,request:e.request??void 0,resend:o.isPending?`pending`:o.isSuccess?`sent`:`idle`,sending:s.isPending,verified:c.isSuccess,verifying:c.isPending})})}var Xq=5e3,Zq=500;function Qq(e){if(e instanceof qq)return!0;let t=gG(e);return t===`passkey_link_expired`||t===`passkey_not_permitted`||t===`webauthn_rejected`}function $q(e,t){return t.code&&(e instanceof qq||gG(e)===`webauthn_rejected`)?`Your passkey did not confirm the sign-in. Enter the code again to sign in with email only.`:e instanceof qq?eJ(e).includes(`NotAllowedError`)?`Passkey sign-in was canceled. Try again, or continue with email.`:`Passkey sign-in failed. Try again, or continue with email.`:hG(e)}function eJ(e){return e instanceof Error?[e.name,...eJ(e.cause)]:[]}function tJ(){let e=new URLSearchParams(window.location.search);return e.has(`sig`)?(e.delete(`error`),{oauth_query:e.toString()}):{}}var nJ;(function(e){e.page=1})(nJ||={});var rJ=qd(`/_/flows`)({codeSplitGroupings:[],component:iJ});function iJ(){return(0,W.jsxs)(`main`,{...$.canvas?{className:`z_tempo_2d_id-cvNCQ9q z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ91a z_tempo_2d_id-cvNCQ91b z_tempo_2d_id-cvNCQ91c z-tempo_2d_id-cvNCQ9-styles-canvas-p-0 z-tempo_2d_id-cvNCQ9-styles-canvas-p-1 z_tempo_2d_id-cvNCQ91d`}:$.canvas(),children:[(0,W.jsxs)(`header`,{...$.intro?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ9o z-tempo_2d_id-cvNCQ9-styles-intro-left-0 z-tempo_2d_id-cvNCQ9-styles-intro-left-1 z_tempo_2d_id-cvNCQ91l z_tempo_2d_id-cvNCQ91m`}:$.intro(),children:[(0,W.jsx)(`h1`,{...$.title?{className:`z_tempo_2d_id-cvNCQ911 z_tempo_2d_id-cvNCQ912 z_tempo_2d_id-cvNCQ913 z_tempo_2d_id-cvNCQ914 z_tempo_2d_id-cvNCQ915`}:$.title(),children:`Flows`}),(0,W.jsx)(`p`,{...$.lede?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-cvNCQ9a z_tempo_2d_id-cvNCQ9b z_tempo_2d_id-cvNCQ9c z_tempo_2d_id-cvNCQ9d z_tempo_2d_id-cvNCQ9e`}:$.lede(),children:`Every path through Tempo ID, from the entry point on the left to the exit on the right. Each arrow names the request or event that leads to the next step. Scroll to pan.`})]}),FJ().map(e=>(0,U.createElement)(`section`,{...$.section?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ928`}:$.section(),key:e.title},(0,W.jsx)(`h2`,{...$.sectionTitle?{className:`z_tempo_2d_id-cvNCQ929 z_tempo_2d_id-cvNCQ92a z_tempo_2d_id-cvNCQ92b z_tempo_2d_id-cvNCQ92c z_tempo_2d_id-cvNCQ92d z_tempo_2d_id-cvNCQ92e z_tempo_2d_id-cvNCQ92f`}:$.sectionTitle(),children:e.title}),e.flows.map(e=>(0,U.createElement)(`article`,{...$.flow?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ9h`}:$.flow(),key:e.title},(0,W.jsxs)(`header`,{...$.flowHeader?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ91k z-tempo_2d_id-cvNCQ9-styles-flowHeader-left-0 z-tempo_2d_id-cvNCQ9-styles-flowHeader-left-1 z_tempo_2d_id-cvNCQ91l z_tempo_2d_id-cvNCQ91m`}:$.flowHeader(),children:[(0,W.jsx)(`h3`,{...$.flowTitle?{className:`z_tempo_2d_id-cvNCQ91n z_tempo_2d_id-cvNCQ91o z_tempo_2d_id-cvNCQ91p z_tempo_2d_id-cvNCQ91q z_tempo_2d_id-cvNCQ91r`}:$.flowTitle(),children:e.title}),(0,W.jsx)(`p`,{...$.flowDescription?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-cvNCQ9i z_tempo_2d_id-cvNCQ9j z_tempo_2d_id-cvNCQ9k z_tempo_2d_id-cvNCQ9l z_tempo_2d_id-cvNCQ9m`}:$.flowDescription(),children:(0,W.jsx)(aJ,{text:e.description})})]}),(0,W.jsx)(`ol`,{...$.row?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-cvNCQ926 z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-cvNCQ927`}:$.row(),children:e.nodes.map((t,n)=>(0,U.createElement)(`li`,{...$.step?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74`}:$.step(),key:`${n}:${t.name}`},n>0?(0,W.jsx)(oJ,{label:t.edge}):null,t.screen?(0,W.jsxs)(`figure`,{...$.artboard?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ9o z_tempo_2d_id-nr-Vm7g`}:$.artboard(),children:[(0,W.jsx)(`figcaption`,{...$.frameLabel?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d z_tempo_2d_id-nr-Vm7e`}:$.frameLabel(),children:t.owner===`app`?`App · ${t.name}`:t.name}),t.owner===`app`?(0,W.jsx)(`div`,{...bG({set:`thirdParty`}),children:(0,W.jsx)(`div`,{...$.frame?{className:`z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-cvNCQ91t z_tempo_2d_id-cvNCQ91u z_tempo_2d_id-cvNCQ91v z_tempo_2d_id-cvNCQ91w`}:$.frame(),children:t.screen})}):(0,W.jsx)(`div`,{...$.frame?{className:`z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-cvNCQ91t z_tempo_2d_id-cvNCQ91u z_tempo_2d_id-cvNCQ91v z_tempo_2d_id-cvNCQ91w`}:$.frame(),children:t.screen})]}):(0,W.jsx)(sJ,{detail:t.detail,kind:n===0?`Entry`:n===e.nodes.length-1?`Exit`:`External`,name:t.name})))})))))]})}function aJ(e){return e.text.split("`").map((e,t)=>t%2?(0,U.createElement)(`code`,{...$.code?{className:`z_tempo_2d_id-cvNCQ95 z_tempo_2d_id-cvNCQ96 z_tempo_2d_id-cvNCQ97 z_tempo_2d_id-cvNCQ98 z_tempo_2d_id-cvNCQ99`}:$.code(),key:t},e):e)}function oJ(e){return(0,W.jsxs)(`span`,{...$.arrow?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-3w2jki7 z_tempo_2d_id-cvNCQ9o z_tempo_2d_id-cvNCQ917 z_tempo_2d_id-cvNCQ918 z_tempo_2d_id-cvNCQ919`}:$.arrow(),"aria-label":e.label??`Then`,role:`img`,children:[(0,W.jsx)(`span`,{...$.edge?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-cvNCQ91e z_tempo_2d_id-cvNCQ95 z_tempo_2d_id-cvNCQ96 z_tempo_2d_id-cvNCQ97 z_tempo_2d_id-cvNCQ98 z_tempo_2d_id-cvNCQ99`}:$.edge(),children:e.label}),(0,W.jsxs)(`span`,{...$.shaft?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-cvNCQ9v`}:$.shaft(),children:[(0,W.jsx)(`span`,{...$.line?{className:`z_tempo_2d_id-cvNCQ923 z_tempo_2d_id-cvNCQ924 z_tempo_2d_id-3w2jki1`}:$.line()}),(0,W.jsx)(rw,{...$.head?{className:`z-tempo_2d_id-cvNCQ9-styles-head-text-0 z-tempo_2d_id-cvNCQ9-styles-external-flex-shrink-5 z-tempo_2d_id-cvNCQ9-styles-head-h-1 z-tempo_2d_id-cvNCQ9-styles-head-w-2`}:$.head()})]})]})}function sJ(e){return(0,W.jsxs)(`div`,{...$.external({kind:e.kind}),children:[(0,W.jsx)(`span`,{...$.kind?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-cvNCQ922 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d z_tempo_2d_id-nr-Vm7e`}:$.kind(),children:e.kind}),(0,W.jsx)(`span`,{...$.externalName?{className:`z_tempo_2d_id-cvNCQ91f z_tempo_2d_id-cvNCQ91g z_tempo_2d_id-cvNCQ91h z_tempo_2d_id-cvNCQ91i z_tempo_2d_id-cvNCQ91j`}:$.externalName(),children:e.name}),e.detail?(0,W.jsx)(`code`,{...$.detail?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-cvNCQ95 z_tempo_2d_id-cvNCQ96 z_tempo_2d_id-cvNCQ97 z_tempo_2d_id-cvNCQ98 z_tempo_2d_id-cvNCQ99`}:$.detail(),children:e.detail}):null]})}function cJ(e){return(0,W.jsxs)(`div`,{...$.app?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ91`}:$.app(),children:[(0,W.jsxs)(`header`,{...$.appHeader?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ9o z_tempo_2d_id-cvNCQ9p`}:$.appHeader(),children:[(0,W.jsx)(`h4`,{...$.appTitle?{className:`z_tempo_2d_id-cvNCQ911 z_tempo_2d_id-cvNCQ912 z_tempo_2d_id-cvNCQ913 z_tempo_2d_id-cvNCQ914 z_tempo_2d_id-cvNCQ915`}:$.appTitle(),children:e.title}),e.description?(0,W.jsx)(`p`,{...$.appDescription?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-cvNCQ9a z_tempo_2d_id-cvNCQ9b z_tempo_2d_id-cvNCQ9c z_tempo_2d_id-cvNCQ9d z_tempo_2d_id-cvNCQ9e`}:$.appDescription(),children:e.description}):null]}),e.children]})}function lJ(e){return(0,W.jsx)(`button`,{...$.appButton({tone:e.tone}),type:`button`,children:e.children})}function uJ(){return(0,W.jsxs)(`label`,{...$.appField?{className:`z_tempo_2d_id-cvNCQ90 z_tempo_2d_id-cvNCQ9o`}:$.appField(),children:[(0,W.jsx)(`span`,{...$.appLabel?{className:`z_tempo_2d_id-cvNCQ9w z_tempo_2d_id-cvNCQ9x z_tempo_2d_id-cvNCQ9y z_tempo_2d_id-cvNCQ9z z_tempo_2d_id-cvNCQ910`}:$.appLabel(),children:`Email`}),(0,W.jsx)(`input`,{...$.appInput?{className:`z_tempo_2d_id-cvNCQ9q z_tempo_2d_id-cvNCQ9r z_tempo_2d_id-cvNCQ9s z_tempo_2d_id-cvNCQ9t z_tempo_2d_id-cvNCQ9u z_tempo_2d_id-cvNCQ9a z_tempo_2d_id-cvNCQ9b z_tempo_2d_id-cvNCQ9c z_tempo_2d_id-cvNCQ9d z_tempo_2d_id-cvNCQ9e z_tempo_2d_id-cvNCQ9v`}:$.appInput(),placeholder:`Required`,readOnly:!0})]})}function dJ(){return(0,W.jsxs)(cJ,{title:`Sign in or sign up`,children:[(0,W.jsx)(lJ,{tone:`google`,children:`Continue with Google`}),(0,W.jsx)(lJ,{tone:`quiet`,children:`Continue with passkey`}),(0,W.jsx)(`p`,{...$.appDivider?{className:`z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-cvNCQ9h z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-cvNCQ9i z_tempo_2d_id-cvNCQ9j z_tempo_2d_id-cvNCQ9k z_tempo_2d_id-cvNCQ9l z_tempo_2d_id-cvNCQ9m z_tempo_2d_id-3w2jki4 z-tempo_2d_id-cvNCQ9-styles-appDivider-bg-0 z-tempo_2d_id-cvNCQ9-styles-appDivider-content-1 z-tempo_2d_id-cvNCQ9-styles-appDivider-flex-grow-2 z-tempo_2d_id-cvNCQ9-styles-appDivider-h-3`}:$.appDivider(),children:`or continue with email`}),(0,W.jsx)(uJ,{}),(0,W.jsx)(lJ,{tone:`brand`,children:`Continue`})]})}function fJ(){return(0,W.jsxs)(cJ,{description:`Sign in with your email to link this passkey.`,title:`Add your email`,children:[(0,W.jsx)(uJ,{}),(0,W.jsx)(lJ,{tone:`brand`,children:`Continue`})]})}function pJ(){return(0,W.jsxs)(cJ,{description:`Enter the 6-digit code sent to ${vJ}.`,title:`Check your email`,children:[(0,W.jsx)(Aq,{"aria-label":`Code`,length:6,readOnly:!0}),(0,W.jsx)(lJ,{tone:`brand`,children:`Verify`})]})}function mJ(){return(0,W.jsxs)(cJ,{description:vJ,title:`You're signed in`,children:[(0,W.jsx)(`p`,{...$.appAddress?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-cvNCQ95 z_tempo_2d_id-cvNCQ96 z_tempo_2d_id-cvNCQ97 z_tempo_2d_id-cvNCQ98 z_tempo_2d_id-cvNCQ99`}:$.appAddress(),children:_J[0].address}),(0,W.jsx)(lJ,{tone:`quiet`,children:`Sign out`})]})}function hJ(){}function gJ(e){e.preventDefault()}var _J=[{address:`0x1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9f3c`,balance:{amount:`1250.5`,currency:`USD`},owner:`privy`,realm:null},{address:`0x7c4d2e9a1b3f5c7d9e0a2b4c6d8e0f1a3b5c21ab`,balance:{amount:`42`,currency:`USD`},owner:`webAuthn`,realm:null}],vJ=`user@example.com`,yJ=`An upstream service is unavailable. Retry later.`;function bJ(){return{expiry:Math.floor(Date.now()/1e3)+604800,limits:[{amount:`100`,currency:`USD`,period:86400,tokens:[{amount:`100`,symbol:`pathUSD`}]}]}}function xJ(){return{app:`Tempo Wallet`,approving:!1,denying:!1,destination:`wallet.tempo.xyz`,email:vJ,heading:`h4`,keyAuthorization:bJ(),onApprove:hJ,onDeny:hJ,verified:!0}}function SJ(){return{app:`Tempo Wallet`,key:bJ(),verified:!0}}function CJ(){return{app:`Tempo Wallet`,key:null,verified:!0}}function wJ(){return{address:_J[0].address,owner:_J[0].owner}}var TJ={detail:`GET /authorize?…&key_authorization`,name:`Web app`};function EJ(){return{accounts:[_J[0]],email:vJ,heading:`h4`,onAddPasskey:hJ,onSignOut:hJ,signingOut:!1}}function DJ(){return{accounts:_J,app:`Tempo Wallet`,heading:`h4`,onChoose:hJ}}function OJ(){return{approving:!1,code:``,denying:!1,email:vJ,fetching:!1,heading:`h4`,invalid:!1,onApprove:hJ,onDeny:hJ,onSubmitCode:gJ}}function kJ(){return{app:{name:`Tempo CLI`},created_at:Math.floor(Date.now()/1e3),device:`ada-macbook`,ip:`203.0.113.7`,key_authorization:bJ(),location:`San Francisco, US`,user_code:`BDWP-HQPK`}}var AJ={detail:`POST /v1/device/authorize with key_authorization`,name:`tempo-id login`},jJ={detail:`Tokens and key_authorization, stored in ~/.tempo/id/credentials.json. A replaced session’s refresh token goes to POST /oauth2/revoke.`,edge:`POST /v1/device/token: authorization_pending, then tokens`,name:`tempo-id login`};function Q(){return{heading:`h4`,invalid:!1,onChangeEmail:hJ,onGoogle:hJ,onPasskey:hJ,onResend:hJ,onStartOver:hJ,onSubmitCode:gJ,onSubmitEmail:gJ,resend:`idle`,sending:!1,verifying:!1}}var MJ={detail:`GET /authorize?client_id&redirect_uri&code_challenge&state`,name:`Web app`},NJ=`GET /v1/auth/session: no user, GET /v1/auth/providers`,PJ={detail:`Access, ID, and refresh tokens`,edge:`POST /oauth2/token with code_verifier`,name:`Web app`};function FJ(){return[{flows:[{description:`A visitor opens Tempo ID without a session and signs in with an emailed code. An accepted code shows green for 500 ms before the sign-in continues.`,nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{edge:`302 /login`,name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify: 200`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{edge:`after 500 ms, redirect: null`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Email code`},{description:`A passkey of the realm signs the user in with one prompt, from the button.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{detail:`POST /v1/auth/passkey/options`,edge:`Sign in with a passkey`,name:`Authenticator prompt`},{edge:`POST /v1/auth/passkey/verify`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Passkey`},{description:`A wallet.tempo passkey without an email verifies one with a code. The passkey signs again with the code, which links it to the user.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{detail:`POST /v1/auth/passkey/options`,edge:`Sign in with a passkey`,name:`Authenticator prompt`},{edge:`POST /v1/auth/passkey/verify: step email`,name:`Sign in (link passkey)`,screen:(0,W.jsx)(Z,{...Q(),linking:!0})},{edge:`POST /v1/auth/code`,name:`Check your email (link passkey)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,linking:!0})},{detail:`POST /v1/auth/passkey/options with link and authorize`,edge:`Code complete`,name:`Authenticator prompt`},{edge:`POST /v1/auth/code/verify with link and assertion: 200`,name:`Check your email (link accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,linking:!0,verified:!0})},{edge:`after 500 ms, redirect: null`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Passkey without an email`},{description:`Start over on the email step drops the passkey’s link and a pending code request, so the passkey stays unlinked.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Sign in with a passkey, POST /v1/auth/passkey/verify: step email`,name:`Sign in (link passkey)`,screen:(0,W.jsx)(Z,{...Q(),linking:!0})},{edge:`Start over`,name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})}],title:`Passkey link, started over`},{description:`Google signs the user in, and its callback returns to the sign-in page, which sends a signed-in user on.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{edge:`GET /v1/auth/oauth/google?return_to=/login`,name:`Google`},{edge:`GET /callback/google, 302 /login, 302 /`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Google`},{description:"A Google sign-in that fails returns to the sign-in page with `error=access_denied`, whatever the cause.",nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{edge:`GET /v1/auth/oauth/google?return_to=/login`,name:`Google`},{edge:`GET /callback/google, 302 /v1/auth/oauth/google/failed, 302 /login?error=access_denied`,name:`Sign in (Google failed)`,screen:(0,W.jsx)(Z,{...Q(),error:`Sign-in with Google failed. Try again, or continue with email.`})}],title:`Google, failed`},{description:`A Google callback without its state in this browser, such as one that started in another browser, shows the error page. The page links to sign-in.`,nodes:[{detail:`GET /callback/google (no state)`,name:`Browser`},{edge:`302 /error?error=state_mismatch`,name:`This sign-in did not finish`,screen:(0,W.jsx)(QK,{heading:`h4`,reason:`sign_in`})},{edge:`Sign in again, GET /login`,name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})}],title:`Google callback without its state`},{description:`A deployment without Google, and realms without a passkey relying party at Tempo ID’s origin, leave only the email field.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`200, google: false, passkeys: false`,name:`Sign in (email only)`,screen:(0,W.jsx)(Z,{...Q(),onGoogle:void 0,onPasskey:void 0})}],title:`Email only`},{description:`Each sign-in request holds its controls, shows a spinner, and announces its progress until it settles. One sign-in runs at a time.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Continue, POST /v1/auth/code`,name:`Sign in (sending)`,screen:(0,W.jsx)(Z,{...Q(),sending:!0})},{edge:`Or: Sign in with a passkey`,name:`Sign in (passkey pending)`,screen:(0,W.jsx)(Z,{...Q(),passkeyPending:!0})},{edge:`Code complete, POST /v1/auth/code/verify`,name:`Check your email (verifying)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verifying:!0})},{edge:`Or: Resend code, POST /v1/auth/code`,name:`Check your email (resending)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,resend:`pending`})}],title:`Sign-in in progress`}],title:`Sign-in`},{flows:[{description:"The account page lists the user’s Tempo Accounts in the `default` realm, oldest first, each with its balance and a deposit link. A lone wallet shows its balance large, without a list.",nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{edge:`GET /v1/account?chain, 200, one wallet`,name:`Your account (one wallet)`,screen:(0,W.jsx)(HG,{...EJ()})},{edge:`Or: several wallets`,name:`Your account (several wallets)`,screen:(0,W.jsx)(HG,{...EJ(),accounts:_J})},{edge:`Or: a balance read fails`,name:`Your account (balance unavailable)`,screen:(0,W.jsx)(HG,{...EJ(),accounts:[_J[0],{..._J[1],balance:null}]})},{edge:`Or: no wallet, POST /v1/account with chain creates the first one, 200 with its balance`,name:`Your account (wallet created)`,screen:(0,W.jsx)(HG,{...EJ()})},{edge:`Or: the realm creates no wallets on the server, but holds passkeys`,name:`Your account (no wallets)`,screen:(0,W.jsx)(HG,{...EJ(),accounts:[]})},{edge:`Or: the realm creates no wallets at all`,name:`Your account (no wallet possible)`,screen:(0,W.jsx)(HG,{...EJ(),accounts:[],onAddPasskey:void 0})},{edge:`Or: the accounts cannot be read`,name:`Your account (unavailable)`,screen:(0,W.jsx)(HG,{...EJ(),accountError:`Your wallets failed to load. Reload the page to try again.`,accounts:null})}],title:`Account page`},{description:"The account page adds a passkey of the `default` realm’s relying party, which signs the user in and owns a new passkey wallet at the address its public key derives, beside the user’s other wallets. The new passkey then signs a proof challenge, since its attestation proves no private key. The page offers it only when the realm holds passkeys at Tempo ID’s origin and the user lists no passkey wallet, and Tempo ID requires a sign-in within the last 10 minutes.",nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})},{edge:`Add passkey, POST /v1/account/passkey/options, navigator.credentials.create()`,name:`Your account (adding a passkey)`,screen:(0,W.jsx)(HG,{...EJ(),addingPasskey:!0})},{edge:`POST /v1/account/passkey, 200, the proof step`,name:`Your account (confirm the passkey)`,screen:(0,W.jsx)(HG,{...EJ(),onConfirmPasskey:hJ})},{edge:`Confirm passkey, navigator.credentials.get()`,name:`Your account (confirming the passkey)`,screen:(0,W.jsx)(HG,{...EJ(),confirmingPasskey:!0,onConfirmPasskey:hJ})},{edge:`POST /v1/account/passkey/verify, 200, then the accounts load again`,name:`Your account (passkey added)`,screen:(0,W.jsx)(HG,{...EJ(),accounts:_J,onAddPasskey:void 0,passkeyAdded:!0})},{edge:`Or: the ceremony is canceled`,name:`Your account (passkey canceled)`,screen:(0,W.jsx)(HG,{...EJ(),error:`Adding a passkey was canceled. Try again.`})},{edge:`Or: the session signed in more than 10 minutes before`,name:`Your account (sign in again)`,screen:(0,W.jsx)(HG,{...EJ(),error:`Sign in again: adding a passkey needs a sign-in within the last 10 minutes.`})},{edge:`Or: the accounts failed to load, and the device already holds one of the user’s passkeys`,name:`Your account (passkey held)`,screen:(0,W.jsx)(HG,{...EJ(),error:`This device already holds one of your passkeys. Add a passkey on another device.`})}],title:`Add a passkey`},{description:`The account page and the deposit page send a visitor without a session to sign-in, which then opens the account page. The deposit page leaves the address out of the sign-in query.`,nodes:[{detail:`GET / or GET /deposit?address`,name:`Browser`},{edge:`GET /v1/account: session_required, 302 /login`,name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify: 200`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{edge:`after 500 ms, redirect: null, GET /`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Account page, signed out`},{description:`Deposit lists the networks and cash methods for one of the user’s wallets. Only Tempo is available, and it shows the wallet’s address as a QR code and as text. Back on Receive funds returns to the deposit methods.`,nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{edge:`200, one wallet`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})},{edge:`Deposit, GET /deposit?address`,name:`Deposit`,screen:(0,W.jsx)(Cq,{address:_J[0].address,heading:`h4`})},{edge:`Tempo, GET /deposit?address&method=tempo`,name:`Receive funds`,screen:(0,W.jsx)(Cq,{address:_J[0].address,heading:`h4`,method:`tempo`})},{edge:`Back, GET /deposit?address`,name:`Deposit`,screen:(0,W.jsx)(Cq,{address:_J[0].address,heading:`h4`})},{edge:`Back, GET /`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Deposit`},{description:`Done on Receive funds opens the account page at once.`,nodes:[{detail:`GET /deposit?address&method=tempo`,name:`Browser`},{edge:`200 deposit page`,name:`Receive funds`,screen:(0,W.jsx)(Cq,{address:_J[0].address,heading:`h4`,method:`tempo`})},{edge:`Done, GET /`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Deposit, Done`},{description:"An address that is not one of the user’s wallets in the `default` realm shows no address. A spent rate limit or a failed account read shows its own reason in the same place.",nodes:[{detail:`GET /deposit?address (not the user’s)`,name:`Browser`},{edge:`200, address: null`,name:`Deposit (wallet not found)`,screen:(0,W.jsx)(Cq,{error:`This wallet was not found. Go back to your account, then choose Deposit.`,heading:`h4`})},{edge:`Or: the account rate limit is spent`,name:`Deposit (rate limited)`,screen:(0,W.jsx)(Cq,{error:`Too many requests. Try again in 1 minute.`,heading:`h4`})},{edge:`Or: the accounts cannot be read`,name:`Deposit (unavailable)`,screen:(0,W.jsx)(Cq,{error:`Your wallets failed to load. Reload the page to try again.`,heading:`h4`})}],title:`Wallet not found`},{description:"A page path that no route serves responds with status 404 and the not-found screen, which links to the account page. An API path, such as `/v1/…` or `/oauth2/…`, responds with `unknown_endpoint` instead.",nodes:[{detail:`GET /nope`,name:`Browser`},{edge:`404`,name:`Page not found`,screen:(0,W.jsx)(xG,{heading:`h4`})},{edge:`Go to your account, GET /`,name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})}],title:`Unknown page`}],title:`Account and deposit`},{flows:[{description:`A web app redirects a signed-out user. Better Auth signs the request, and the sign-in continues it. The sign-in page names the app of the signed request.`,nodes:[MJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig, GET /login: request without key`,name:`Sign in (app)`,screen:(0,W.jsx)(Z,{...Q(),request:CJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: 200`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{detail:`GET redirect_uri?code&state`,edge:`after 500 ms, redirect`,name:`Web app callback`},PJ],title:`Redirect, signed out`},{description:`A signed-out user’s request with a key shows the app and the key on the sign-in page. The first sign-in of the request grants the key, so the browser returns to the app without the approval page.`,nodes:[TJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig, GET /login: request`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, grants the key`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{detail:`GET redirect_uri?code&state`,edge:`after 500 ms, redirect`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that grants a key`},{description:`On the sign-in page, the passkey’s challenge is the digest of the request’s key. One tap signs the user in and signs the key, for an account that this passkey owns, or that Privy or secp256k1 owns.`,nodes:[TJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{detail:`POST /v1/auth/passkey/options with oauth_query: the key’s digest`,edge:`Sign in with a passkey`,name:`Authenticator prompt`},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/auth/passkey/verify with oauth_query, grants the key`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that grants a key, passkey one-tap`},{description:"The sign-in page starts Google with `sec-fetch-site: same-origin`, so the start sets the `__Host-tempo-id-grant` cookie for the request. The callback grants the key only when the cookie matches the request, and clears it.",nodes:[TJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`GET /v1/auth/oauth/google?oauth_query&return_to, same-origin: sets __Host-tempo-id-grant`,name:`Google`},{detail:`GET redirect_uri?code&state`,edge:`GET /callback/google, the cookie matches: grants the key, 302`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that grants a key, Google`},{description:"Any site can send a browser to the Google start. Without `sec-fetch-site: same-origin`, the start clears the grant cookie. The callback then keeps the redirect to the approval page, which shows the key.",nodes:[{detail:`GET /v1/auth/oauth/google?oauth_query&return_to`,name:`Another site`},{edge:`cross-site: clears __Host-tempo-id-grant, 302`,name:`Google`},{edge:`GET /callback/google, no grant cookie, 302 /authorize?…&sig`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Google start from another site`},{description:`The account step does not run when the account reads are spent. The sign-in page shows no account, so a user with several accounts gets no grant, and the approval page opens. That page holds Approve until a reload after a minute.`,nodes:[TJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: ACCOUNT_LIMIT spent, no account step, several accounts: no grant`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{edge:`after 500 ms, redirect /authorize?…&sig`,name:`Authorize this app (unavailable)`,screen:(0,W.jsx)(ZK,{...xJ(),keyAuthorization:{...bJ(),refusal:`unavailable`}})},{edge:`Reload after a minute`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Several accounts, none chosen`},{description:"A held grant covers only the request that the sign-in spent. A request with another `scope`, or with a `challenge`, takes no held grant on the account step, so the approval page opens.",nodes:[{detail:`GET /choose-account?…&sig, another scope or a challenge`,name:`Browser`},{edge:`200 account step`,name:`Choose a wallet`,screen:(0,W.jsx)(cq,{...DJ()})},{edge:`Choose, POST /v1/authorize/account: another scope, no held grant, redirect /authorize?…&sig`,name:`Authorize this app (another scope)`,screen:(0,W.jsx)(ZK,{...xJ()})},{edge:`Or: a challenge, which takes no grant, redirect /authorize?…&sig`,name:`Authorize this app (challenge)`,screen:(0,W.jsx)(ZK,{...xJ(),keyAuthorization:{...bJ(),challenge:`Sign in to api.example.com
32
32
  Nonce: 8f2a91`}})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Account step for another request`},{description:`A user with more than one account in the app’s realms chooses one. The sign-in holds its grant for the session for 10 minutes, and the choice takes it. A passkey that owns the chosen account signs the key on this step first: the selection returns the passkey step, and the repeated selection carries the assertion.`,nodes:[TJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, holds the grant`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{edge:`after 500 ms, redirect /choose-account?…&sig`,name:`Choose a wallet`,screen:(0,W.jsx)(cq,{...DJ()})},{edge:`Choose, POST /v1/authorize/account`,name:`Choose a wallet (selecting)`,screen:(0,W.jsx)(cq,{...DJ(),selecting:_J[0].address})},{detail:`GET redirect_uri?code&state`,edge:`takes the held grant, redirect (a passkey account: passkey step, then POST again with the assertion)`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that grants a key, account step`},{description:`A sign-in that cannot grant the key keeps the redirect to the approval page, which shows the request again. Another passkey may own the account, or the request may be a replay. Approval may refuse the key, or the rate limit may be spent, which also refuses Approve until it resets. An upstream service may also fail.`,nodes:[TJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`Sign-in with oauth_query: the grant fails, redirect /authorize?…&sig`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{edge:`Approve, POST /v1/authorize/consent`,name:`Authorize this app (approving)`,screen:(0,W.jsx)(ZK,{...xJ(),approving:!0})},{detail:`GET redirect_uri?code&state`,edge:`redirect, or the passkey step first`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that keeps the approval page`},{description:"The account step’s signed query expires 10 minutes after the sign-in, just before its held grant. A later choice is refused with `authorization_expired`, so the user starts again in the app.",nodes:[TJ,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, holds the grant`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{edge:`after 500 ms, redirect /choose-account?…&sig`,name:`Choose a wallet`,screen:(0,W.jsx)(cq,{...DJ()})},{edge:`After 10 minutes, Choose, POST /v1/authorize/account: authorization_expired`,name:`Choose a wallet (request expired)`,screen:(0,W.jsx)(cq,{...DJ(),error:`Expired authorization request: the request from the app is no longer valid. Return to the app, and start again.`})},{detail:`GET /authorize?…&key_authorization, a new request`,edge:`Return to the app, and start again`,name:`Web app`}],title:`Account step after the request expires`},{description:"A request with a `challenge` signs a message that only the approval page shows. So the sign-in page names the app but shows no key, and the sign-in grants nothing.",nodes:[{...TJ,detail:`GET /authorize?…&key_authorization&challenge`},{edge:`302 /oauth2/authorize, 302 /login?…&sig, GET /login: request without key`,name:`Sign in (app)`,screen:(0,W.jsx)(Z,{...Q(),request:CJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: 200`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{edge:`after 500 ms, redirect /authorize?…&sig`,name:`Authorize this app (challenge)`,screen:(0,W.jsx)(ZK,{...xJ(),keyAuthorization:{...bJ(),challenge:`Sign in to api.example.com
33
- Nonce: 8f2a91`}})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Sign-in with a challenge`},{description:`A signed-in user returns to an app that skips consent at once. Tempo ID shows no screen.`,nodes:[MJ,{detail:`GET redirect_uri?code&state`,edge:`302 /oauth2/authorize, 302, no screen`,name:`Web app callback`},PJ],title:`Redirect, signed in`},{description:"A request with `prompt=login` asks a signed-in user to sign in again. The sign-in page shows the request, and its key, despite the session.",nodes:[{...TJ,detail:`GET /authorize?…&key_authorization&prompt=login`},{edge:`302 /oauth2/authorize, 302 /login?…&prompt=login consent&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, grants the key`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{detail:`GET redirect_uri?code&state`,edge:`after 500 ms, redirect`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Redirect with prompt=login`},{description:`A signed-in user approves a third-party app, which never skips consent, once for the scopes it requests. The request carries no key, so the page shows none.`,nodes:[MJ,{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app (no key)`,screen:(0,W.jsx)(ZK,{...xJ(),keyAuthorization:void 0})},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/authorize/consent, accept`,name:`Web app callback`},PJ],title:`Approval without a key`},{description:`A signed-in user’s request with a key opens the approval page. A Privy or secp256k1 owner signs the key on the server when the user approves.`,nodes:[{...MJ,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{edge:`Approve, POST /v1/authorize/consent`,name:`Authorize this app (approving)`,screen:(0,W.jsx)(ZK,{...xJ(),approving:!0})},{detail:`GET redirect_uri?code&state`,edge:`redirect`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Approval of a key`},{description:"A third-party app names the URL of its metadata document, or its origin, as `client_id`, and registers nothing. `/oauth2/authorize` fetches the document for the name and the redirect URIs, which sit on the document’s origin. For an origin, it reads the name, the logo, and the exact redirect URIs from the page’s web app manifest, with the origin’s root as the default redirect URI. The page names the host beside the name, and marks no name as verified. The key names its expiry, limits, and scopes, since a third-party app receives no defaults, and only this page grants it, never the sign-in page.",nodes:[{detail:`GET /authorize?client_id=https://app.example.com/.well-known/oauth-client-metadata.json&key_authorization`,name:`Third-party app`},{edge:`302 /oauth2/authorize, GET client_id: the metadata document or the origin's manifest, 302 /authorize?…&sig`,name:`Authorize this app (third-party)`,screen:(0,W.jsx)(ZK,{...xJ(),app:`Example`,destination:`app.example.com`,verified:!1})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Third-party app callback`},{detail:`Tokens, account, and key_authorization`,edge:`POST /oauth2/token with code_verifier`,name:`Third-party app`}],title:`Third-party app`},{description:"A third-party app’s key that leaves out its expiry, limits, or scopes returns to the app with `missing_permissions`, before sign-in.",nodes:[{detail:`GET /authorize?client_id=https://app.example.com/.well-known/oauth-client-metadata.json&key_authorization (no limits)`,name:`Third-party app`},{detail:`GET redirect_uri?error=invalid_authorization_details`,edge:`302 /oauth2/authorize, missing_permissions`,name:`Third-party app callback`}],title:`Third-party key without permissions`},{description:`A passkey owns the account, so the approval returns the passkey step. The passkey signs the key’s digest, and the page approves again.`,nodes:[{...MJ,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{edge:`Approve, POST /v1/authorize/consent`,name:`Authorize this app (approving)`,screen:(0,W.jsx)(ZK,{...xJ(),approving:!0})},{detail:`Signs the key authorization, over the approving page`,edge:`step passkey`,name:`Authenticator prompt`},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/authorize/consent with passkey.assertion`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Approval of a key for a passkey account`},{description:"An app with the `tempo-id:sign` scope sends a challenge, and the approval page shows the message that the key signs.",nodes:[{detail:`GET /authorize?…&key_authorization&challenge`,name:`Native app`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app (challenge)`,screen:(0,W.jsx)(ZK,{...xJ(),app:`Tempo Mobile`,destination:`tempo`,keyAuthorization:{...bJ(),challenge:`Sign in to api.example.com
33
+ Nonce: 8f2a91`}})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Sign-in with a challenge`},{description:`A signed-in user returns to an app that skips consent at once. Tempo ID shows no screen.`,nodes:[MJ,{detail:`GET redirect_uri?code&state`,edge:`302 /oauth2/authorize, 302, no screen`,name:`Web app callback`},PJ],title:`Redirect, signed in`},{description:"A request with `prompt=login` asks a signed-in user to sign in again. The sign-in page shows the request, and its key, despite the session.",nodes:[{...TJ,detail:`GET /authorize?…&key_authorization&prompt=login`},{edge:`302 /oauth2/authorize, 302 /login?…&prompt=login consent&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, grants the key`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{detail:`GET redirect_uri?code&state`,edge:`after 500 ms, redirect`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Redirect with prompt=login`},{description:`A signed-in user approves a third-party app, which never skips consent, once for the scopes it requests. The request carries no key, so the page shows none.`,nodes:[MJ,{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app (no key)`,screen:(0,W.jsx)(ZK,{...xJ(),keyAuthorization:void 0})},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/authorize/consent, accept`,name:`Web app callback`},PJ],title:`Approval without a key`},{description:`A signed-in user’s request with a key opens the approval page. A Privy or secp256k1 owner signs the key on the server when the user approves.`,nodes:[{...MJ,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{edge:`Approve, POST /v1/authorize/consent`,name:`Authorize this app (approving)`,screen:(0,W.jsx)(ZK,{...xJ(),approving:!0})},{detail:`GET redirect_uri?code&state`,edge:`redirect`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Approval of a key`},{description:"A third-party app names the URL of its metadata document as `client_id`, and registers nothing. `/oauth2/authorize` fetches the document for the name and the redirect URIs, which sit on the document’s origin. The page names the host that serves the document, and marks no name as verified. The key names its expiry, limits, and scopes, since a third-party app receives no defaults, and only this page grants it, never the sign-in page.",nodes:[{detail:`GET /authorize?client_id=https://app.example.com/.well-known/oauth-client-metadata.json&key_authorization`,name:`Third-party app`},{edge:`302 /oauth2/authorize, GET client_id: the metadata document, 302 /authorize?…&sig`,name:`Authorize this app (third-party)`,screen:(0,W.jsx)(ZK,{...xJ(),app:`Example`,destination:`app.example.com`,verified:!1})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Third-party app callback`},{detail:`Tokens, account, and key_authorization`,edge:`POST /oauth2/token with code_verifier`,name:`Third-party app`}],title:`Third-party app`},{description:"A third-party app’s key that leaves out its expiry, limits, or scopes returns to the app with `missing_permissions`, before sign-in.",nodes:[{detail:`GET /authorize?client_id=https://app.example.com/.well-known/oauth-client-metadata.json&key_authorization (no limits)`,name:`Third-party app`},{detail:`GET redirect_uri?error=invalid_authorization_details`,edge:`302 /oauth2/authorize, missing_permissions`,name:`Third-party app callback`}],title:`Third-party key without permissions`},{description:`A passkey owns the account, so the approval returns the passkey step. The passkey signs the key’s digest, and the page approves again.`,nodes:[{...MJ,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{edge:`Approve, POST /v1/authorize/consent`,name:`Authorize this app (approving)`,screen:(0,W.jsx)(ZK,{...xJ(),approving:!0})},{detail:`Signs the key authorization, over the approving page`,edge:`step passkey`,name:`Authenticator prompt`},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/authorize/consent with passkey.assertion`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Approval of a key for a passkey account`},{description:"An app with the `tempo-id:sign` scope sends a challenge, and the approval page shows the message that the key signs.",nodes:[{detail:`GET /authorize?…&key_authorization&challenge`,name:`Native app`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app (challenge)`,screen:(0,W.jsx)(ZK,{...xJ(),app:`Tempo Mobile`,destination:`tempo`,keyAuthorization:{...bJ(),challenge:`Sign in to api.example.com
34
34
  Nonce: 8f2a91`}})},{detail:`tempo:/callback?code&state`,edge:`POST /v1/authorize/consent, accept`,name:`Native app callback`},{...PJ,detail:`Tokens, account, and key_authorization`,name:`Native app`}],title:`Approval with a challenge`},{description:`A user with more than one Tempo Account in the app’s realms chooses one. Each row shows the account’s balance on the chain of the request’s key, or Balance unavailable when the read fails. The choice continues the authorization to the approval page.`,nodes:[{...MJ,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /choose-account?…&sig`,name:`Choose a wallet`,screen:(0,W.jsx)(cq,{...DJ()})},{edge:`Or: a balance read fails`,name:`Choose a wallet (balance unavailable)`,screen:(0,W.jsx)(cq,{...DJ(),accounts:[_J[0],{..._J[1],balance:null}]})},{edge:`Choose, POST /v1/authorize/account`,name:`Choose a wallet (selecting)`,screen:(0,W.jsx)(cq,{...DJ(),selecting:_J[0].address})},{edge:`redirect /authorize?…&sig, GET /v1/authorize/request: account`,name:`Authorize this app (account)`,screen:(0,W.jsx)(ZK,{...xJ(),account:wJ()})},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/authorize/consent, accept`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Account step`},{description:`A user with more than one Tempo Account returns to the app in the same session. The selection holds, so the account step does not run, and the approval page shows the selected account. Sign-out from Tempo ID ends the selection.`,nodes:[{...MJ,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig, GET /v1/authorize/request: account`,name:`Authorize this app (selected account)`,screen:(0,W.jsx)(ZK,{...xJ(),account:wJ()})},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/authorize/consent, accept`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Approval with a selected account`},{description:"An app in several realms, such as web-shared, lists accounts from each. Each row then names its realm, apart from the `default` realm.",nodes:[{...MJ,detail:`GET /authorize?…&key_authorization`,name:`Web app in two realms`},{edge:`302 /oauth2/authorize, 302 /choose-account?…&sig`,name:`Choose a wallet (two realms)`,screen:(0,W.jsx)(cq,{...DJ(),accounts:[{..._J[0],realm:`Tempo Cash`},_J[1]]})},{edge:`Choose, POST /v1/authorize/account`,name:`Choose a wallet (two realms, selecting)`,screen:(0,W.jsx)(cq,{...DJ(),accounts:[{..._J[0],realm:`Tempo Cash`},_J[1]],selecting:_J[0].address})},{edge:`redirect /authorize?…&sig`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/authorize/consent, accept`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Account step across realms`},{description:"Denying returns the browser to the app with `error=access_denied`. The app receives no code.",nodes:[{...MJ,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{edge:`Deny`,name:`Authorize this app (denying)`,screen:(0,W.jsx)(ZK,{...xJ(),denying:!0})},{detail:`GET redirect_uri?error=access_denied&state`,edge:`POST /v1/authorize/consent, accept: false`,name:`Web app callback`}],title:`Denied approval`},{description:`Approval cannot sign some keys, so the page holds Approve and states why. Deny still returns to the app.`,nodes:[{...MJ,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig: no account, and no Privy app to create one`,name:`Authorize this app (no account)`,screen:(0,W.jsx)(ZK,{...xJ(),keyAuthorization:{...bJ(),refusal:`no_account`}})},{edge:`Or: a passkey whose relying party is not Tempo ID’s, or POST /v1/authorize/consent: webauthn_required`,name:`Authorize this app (passkey)`,screen:(0,W.jsx)(ZK,{...xJ(),keyAuthorization:{...bJ(),refusal:`passkey`}})},{edge:`Or: the key names an account that the user does not hold`,name:`Authorize this app (foreign account)`,screen:(0,W.jsx)(ZK,{...xJ(),keyAuthorization:{...bJ(),refusal:`foreign_account`}})},{edge:`Or: the accounts cannot be read`,name:`Authorize this app (unavailable)`,screen:(0,W.jsx)(ZK,{...xJ(),keyAuthorization:{...bJ(),refusal:`unavailable`}})},{detail:`GET redirect_uri?error=access_denied&state`,edge:`Deny, POST /v1/authorize/consent, accept: false`,name:`Web app callback`}],title:`Key that approval cannot sign`},{description:"A key that breaks a rule returns to the app with the refusal, as `/oauth2/authorize` returns one before sign-in. The `error` names the rule, such as `invalid_authorization_details` for an expired key, or `unauthorized_client` for a challenge without the `tempo-id:sign` scope.",nodes:[{...MJ,detail:`GET /authorize?…&key_authorization`},{detail:`GET redirect_uri?error&error_description`,edge:`302 /oauth2/authorize, key refused`,name:`Web app callback`}],title:`Refused key`},{description:`A changed or expired query, or a request without a known app, shows an invalid request, on the approval page and on the account step.`,nodes:[{detail:`GET /authorize?…&sig (changed)`,name:`Browser`},{edge:`200, request: null`,name:`This sign-in request is invalid`,screen:(0,W.jsx)(QK,{heading:`h4`})},{edge:`Or: GET /choose-account?…&sig (changed), 200, request: null`,name:`This sign-in request is invalid (account step)`,screen:(0,W.jsx)(QK,{heading:`h4`})}],title:`Invalid request`},{description:"`/oauth2/authorize` sends no refusal to a `redirect_uri` that the app has not registered. An unknown or disabled app, a third-party app whose metadata document fails, or an unregistered `redirect_uri`, shows the error page, signed in or out. The page maps `error` to fixed copy and never shows `error_description`.",nodes:[{...MJ,detail:`GET /authorize?client_id (unknown)`},{edge:`302 /oauth2/authorize, 302 /error?error=invalid_client`,name:`This app is not recognized`,screen:(0,W.jsx)(QK,{heading:`h4`,reason:`client`})},{edge:`Or: redirect_uri not registered, 302 /error?error=invalid_redirect`,name:`This app’s return address is not registered`,screen:(0,W.jsx)(QK,{heading:`h4`,reason:`redirect`})},{edge:`Or: another error, such as unsupported_response_type`,name:`This sign-in request is invalid (error page)`,screen:(0,W.jsx)(QK,{heading:`h4`})}],title:`Unknown app or redirect URI`},{description:"A backend runs the redirect flow and redeems the code with its client secret, so tokens never reach the browser. By default the request carries a key. The seeded backend uses only the `default` realm. Without a Privy app or secp256k1 owners there, as in the test harness, no account can sign the key. So the approval page holds Approve, and Deny signs the user in again without a key.",nodes:[{detail:`GET /auth/start on the backend, with a key`,name:`Backend playground`},{edge:`302 /authorize with state and code_challenge, 302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:{...SJ(),app:`Backend playground`}})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, no account to sign`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{edge:`after 500 ms, redirect /authorize?…&sig`,name:`Authorize this app (no account)`,screen:(0,W.jsx)(ZK,{...xJ(),app:`Backend playground`,destination:`backend.example.com`,keyAuthorization:{...bJ(),refusal:`no_account`}})},{detail:`GET /auth/callback?error=access_denied&state`,edge:`Deny, POST /v1/authorize/consent, accept: false`,name:`Backend callback`},{detail:`GET /auth/callback?code&state`,edge:`302 /auth/start?key=false, 302 /authorize, 302 /oauth2/authorize, 302, no screen`,name:`Backend callback`},{detail:`Tokens stay on the server, without a key`,edge:`POST /oauth2/token with client_secret`,name:`Backend session`}],title:`Backend app`}],title:`App authorization`},{flows:[{description:`The app's own pages send the code, verify it, and request the authorization. Tempo ID shows no screen.`,nodes:[{detail:`Web playground`,name:`App's sign-in`},{edge:NJ,name:`Sign in`,owner:`app`,screen:(0,W.jsx)(dJ,{})},{edge:`POST /v1/auth/code`,name:`Check your email`,owner:`app`,screen:(0,W.jsx)(pJ,{})},{edge:`POST /v1/auth/code/verify, POST /v1/account, POST /v1/authorize`,name:`Signed in`,owner:`app`,screen:(0,W.jsx)(mJ,{})}],title:`Headless email code`},{description:`A signed-in user skips the code. The app requests the authorization at once.`,nodes:[{detail:`Session cookie set`,name:`App's page`},{edge:`GET /v1/auth/session, POST /v1/authorize`,name:`Signed in`,owner:`app`,screen:(0,W.jsx)(mJ,{})}],title:`Headless, signed in`},{description:`The app's page runs the passkey ceremony with its client ID, which selects the app's realms, and its authorization request. The challenge is the key's digest, so one tap signs the user in and signs the key of the passkey's account, with no approval page.`,nodes:[{detail:`Web playground`,name:`App's sign-in`},{edge:NJ,name:`Sign in`,owner:`app`,screen:(0,W.jsx)(dJ,{})},{detail:`POST /v1/auth/passkey/options with client_id and authorize`,edge:`Continue with passkey`,name:`Authenticator prompt`},{edge:`POST /v1/auth/passkey/verify: user and authorization`,name:`Signed in`,owner:`app`,screen:(0,W.jsx)(mJ,{})}],title:`Headless passkey`},{description:`A wallet.tempo passkey without an email verifies one through the app's own code step. The passkey signs again with the code, which links it, and that tap signs the key of its account.`,nodes:[{detail:`Web playground`,name:`App's sign-in`},{edge:NJ,name:`Sign in`,owner:`app`,screen:(0,W.jsx)(dJ,{})},{detail:`POST /v1/auth/passkey/options with client_id`,edge:`Continue with passkey`,name:`Authenticator prompt`},{edge:`POST /v1/auth/passkey/verify: step email`,name:`Add your email`,owner:`app`,screen:(0,W.jsx)(fJ,{})},{edge:`POST /v1/auth/code`,name:`Check your email`,owner:`app`,screen:(0,W.jsx)(pJ,{})},{detail:`POST /v1/auth/passkey/options with link`,edge:`Code complete`,name:`Authenticator prompt`},{edge:`POST /v1/auth/code/verify with link and assertion: user and authorization`,name:`Signed in`,owner:`app`,screen:(0,W.jsx)(mJ,{})}],title:`Headless passkey without an email`},{description:"Google returns the browser to the app with a session. The app then requests the authorization. A user without a Tempo Account is refused with `rejected`, so the app reads the accounts, creates the first one if none exists, and requests the authorization again.",nodes:[{detail:`Web playground`,name:`App's sign-in`},{edge:NJ,name:`Sign in`,owner:`app`,screen:(0,W.jsx)(dJ,{})},{edge:`GET /v1/auth/oauth/google?client_id&return_to`,name:`Google`},{edge:`GET /callback/google, 302 return_to, GET /v1/auth/session, POST /v1/authorize: rejected, GET /v1/account, POST /v1/account, GET /v1/auth/session, POST /v1/authorize`,name:`Signed in`,owner:`app`,screen:(0,W.jsx)(mJ,{})}],title:`Headless Google`},{description:"A passkey signs only the key of its own account in a one-tap sign-in. When another passkey owns the account, the sign-in refuses the key with `webauthn_required`. The app signs in through a redirect without a key, which skips the approval page, since the playgrounds skip consent.",nodes:[{detail:`POST /v1/auth/passkey/verify: webauthn_required`,name:`App's sign-in`},{detail:`GET redirect_uri?code&state`,edge:`GET /authorize without key_authorization, 302 /oauth2/authorize, 302, no screen`,name:`Web app callback`},{edge:`POST /oauth2/token with code_verifier`,name:`Signed in`,owner:`app`,screen:(0,W.jsx)(mJ,{})}],title:`Headless passkey fallback`}],title:`Headless apps`},{flows:[{description:"`tempo-id login` requests a code with a new access key, and prints `verification_uri_complete`. Sign-in returns to the device page with the code filled in. The CLI's next poll receives the tokens and the signed key, and stores them.",nodes:[AJ,{detail:`GET /device?code`,edge:`Shows verification_uri_complete`,name:`Browser`},{edge:`302 /login?return_to=/device?code`,name:`Sign in`,screen:(0,W.jsx)(Z,{...Q(),device:!0})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),device:!0,email:vJ})},{edge:`POST /v1/auth/code/verify: 200`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),device:!0,email:vJ,verified:!0})},{edge:`after 500 ms, /device?code`,name:`Authorize a device`,screen:(0,W.jsx)(Mq,{...OJ(),request:kJ()})},{edge:`POST /v1/device/approve`,name:`Authorization successful`,screen:(0,W.jsx)(Mq,{...OJ(),request:kJ(),status:`approved`})},jJ],title:`Device code, signed out`},{description:"A user who opens the bare `verification_uri` types the code that the terminal shows.",nodes:[AJ,{detail:`GET /device`,edge:`Shows user_code and verification_uri`,name:`Browser`},{edge:`200 device page`,name:`Authorize a device (enter a code)`,screen:(0,W.jsx)(Mq,{...OJ()})},{edge:`Continue, GET /device?code`,name:`Authorize a device`,screen:(0,W.jsx)(Mq,{...OJ(),request:kJ()})},{edge:`POST /v1/device/approve`,name:`Authorization successful`,screen:(0,W.jsx)(Mq,{...OJ(),request:kJ(),status:`approved`})},jJ],title:`Device code, typed`},{description:"A device client that reads discovery uses the standard endpoints of RFC 8628. The browser takes the same steps as for `POST /v1/device/authorize`.",nodes:[{detail:`POST /device/code`,name:`Device client`},{detail:`GET /device?user_code`,edge:`Shows verification_uri_complete`,name:`Browser`},{edge:`302 /login?return_to=/device?user_code`,name:`Sign in`,screen:(0,W.jsx)(Z,{...Q(),device:!0})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),device:!0,email:vJ})},{edge:`POST /v1/auth/code/verify: 200`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),device:!0,email:vJ,verified:!0})},{edge:`after 500 ms, /device?code`,name:`Authorize a device`,screen:(0,W.jsx)(Mq,{...OJ(),request:{...kJ(),device:void 0,key_authorization:void 0}})},{edge:`Approve, POST /v1/device/approve`,name:`Authorization successful`,screen:(0,W.jsx)(Mq,{...OJ(),request:{...kJ(),device:void 0,key_authorization:void 0},status:`approved`})},{detail:`POST /oauth2/token with grant_type=urn:ietf:params:oauth:grant-type:device_code`,edge:`Next poll: tokens`,name:`Device client`}],title:`Device code, standard endpoints`},{description:`Denying ends the request. The CLI's next poll is refused.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`200 device page`,name:`Authorize a device`,screen:(0,W.jsx)(Mq,{...OJ(),request:kJ()})},{edge:`POST /v1/device/deny`,name:`Denied`,screen:(0,W.jsx)(Mq,{...OJ(),request:kJ(),status:`denied`})},{detail:`Exits with not_signed_in`,edge:`POST /v1/device/token: request_denied`,name:`tempo-id login`}],title:`Device code, denied`},{description:`A passkey owns the account, so the approval returns the passkey step. The passkey signs the key’s digest in this browser, and the page approves again.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`200 device page`,name:`Authorize a device`,screen:(0,W.jsx)(Mq,{...OJ(),request:kJ()})},{edge:`Approve, POST /v1/device/approve`,name:`Authorize a device (approving)`,screen:(0,W.jsx)(Mq,{...OJ(),approving:!0,request:kJ()})},{detail:`Signs the key authorization, over the approving page`,edge:`step passkey`,name:`Authenticator prompt`},{edge:`POST /v1/device/approve with passkey.assertion`,name:`Authorization successful`,screen:(0,W.jsx)(Mq,{...OJ(),request:kJ(),status:`approved`})},jJ],title:`Device approval for a passkey account`},{description:`Approval cannot sign some keys, so the page holds Approve and states why. Deny still ends the request.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`The key names an account that the user does not hold`,name:`Authorize a device (foreign account)`,screen:(0,W.jsx)(Mq,{...OJ(),request:{...kJ(),key_authorization:{...bJ(),refusal:`foreign_account`}}})},{edge:`Or: no account, and no Privy app to create one`,name:`Authorize a device (no account)`,screen:(0,W.jsx)(Mq,{...OJ(),request:{...kJ(),key_authorization:{...bJ(),refusal:`no_account`}}})},{edge:`Or: a passkey whose relying party is not Tempo ID’s, or POST /v1/device/approve: webauthn_required`,name:`Authorize a device (passkey)`,screen:(0,W.jsx)(Mq,{...OJ(),request:{...kJ(),key_authorization:{...bJ(),refusal:`passkey`}}})},{edge:`Or: the accounts cannot be read`,name:`Authorize a device (unavailable)`,screen:(0,W.jsx)(Mq,{...OJ(),request:{...kJ(),key_authorization:{...bJ(),refusal:`unavailable`}}})},{detail:`POST /v1/device/token: request_denied`,edge:`Deny, POST /v1/device/deny`,name:`tempo-id login`}],title:`Device key that approval cannot sign`},{description:"A CLI with the `tempo-id:sign` scope sends a challenge, and the device page shows the message that the key signs.",nodes:[{detail:`POST /v1/device/authorize with key_authorization and challenge`,name:`CLI`},{edge:`GET /device?code, 200 device page`,name:`Authorize a device (challenge)`,screen:(0,W.jsx)(Mq,{...OJ(),request:{...kJ(),challenge:`Sign in to api.example.com
35
35
  Nonce: 8f2a91`}})},{edge:`Approve, POST /v1/device/approve, or the passkey step first`,name:`Authorization successful`,screen:(0,W.jsx)(Mq,{...OJ(),request:kJ(),status:`approved`})},{detail:`Tokens, and key_authorization bound to the challenge’s hash`,edge:`POST /v1/device/token: authorization_pending, then tokens`,name:`CLI`}],title:`Device code with a challenge`},{description:`A code that is already approved or denied shows its outcome again, without the decision buttons.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`200, status: approved`,name:`Authorization successful`,screen:(0,W.jsx)(Mq,{...OJ(),request:kJ(),status:`approved`})}],title:`Decided device code`},{description:"A code that no one approves before `expires_in` ends the login. The CLI stores nothing, and the user runs `tempo-id login` again.",nodes:[AJ,{detail:`Exits with not_signed_in`,edge:`POST /v1/device/token: authorization_pending, then device_code_expired`,name:`tempo-id login`}],title:`tempo-id login, expired`},{description:`The CLI reads the stored session, refreshes its access token when it expires within 30 seconds, and reads the user.`,nodes:[{detail:`~/.tempo/id/credentials.json`,name:`tempo-id whoami`},{detail:`Email and Tempo Account`,edge:`POST /oauth2/token with refresh_token within 30 s of expiry, GET /oauth2/userinfo`,name:`tempo-id whoami`}],title:`tempo-id whoami`},{description:`Each device request holds the code field or the decision buttons, and shows a spinner, until it settles.`,nodes:[{detail:`GET /device`,name:`Browser`},{edge:`Continue, GET /device?code`,name:`Authorize a device (fetching)`,screen:(0,W.jsx)(Mq,{...OJ(),code:`BDWP-HQPK`,fetching:!0})},{edge:`Approve, POST /v1/device/approve`,name:`Authorize a device (approving)`,screen:(0,W.jsx)(Mq,{...OJ(),approving:!0,request:kJ()})},{edge:`Or: Deny, POST /v1/device/deny`,name:`Authorize a device (denying)`,screen:(0,W.jsx)(Mq,{...OJ(),denying:!0,request:kJ()})}],title:`Device code in progress`},{description:"A device app without a display name could be anyone’s, so the request omits `app`, and the page flags an unverified app.",nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`200 device page, request without app`,name:`Authorize a device (unverified app)`,screen:(0,W.jsx)(Mq,{...OJ(),request:{...kJ(),app:void 0}})}],title:`Unverified device app`},{description:`A code that matches no pending request, or one that another user holds, keeps the code form.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`unknown_code`,name:`Authorize a device (unknown code)`,screen:(0,W.jsx)(Mq,{...OJ(),code:`BDWP-HQPX`,error:`Invalid or expired code. Check the code in the terminal.`,invalid:!0})}],title:`Unknown device code`},{description:`Each user’s code lookups share one rate limit, so the page refuses a lookup over it and keeps the code form.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`Lookup over the rate limit`,name:`Authorize a device (rate limited)`,screen:(0,W.jsx)(Mq,{...OJ(),code:`BDWP-HQPK`,error:`Too many requests. Try again in 1 minute.`,invalid:!0})}],title:`Device code lookup rate limited`}],title:`Device grant`},{flows:[{description:`Sign-out ends the session and revokes its refresh tokens, then opens the sign-in page.`,nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{name:`Your account`,screen:(0,W.jsx)(HG,{...EJ()})},{edge:`Sign out, POST /v1/auth/logout`,name:`Your account (signing out)`,screen:(0,W.jsx)(HG,{...EJ(),signingOut:!0})},{edge:`200, then /login`,name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})}],title:`Sign-out`},{description:`An app signs the user out with its ID token. Tempo ID ends the session that the hint names, if this browser holds it, and redirects to the app.`,nodes:[{detail:`GET /oauth2/end-session?id_token_hint&post_logout_redirect_uri&state`,name:`Web app`},{detail:`GET post_logout_redirect_uri?state`,edge:`302, no screen`,name:`Web app`}],title:`RP-initiated logout`},{description:"A cross-site form POST carries no `SameSite=Lax` session cookie, so Tempo ID seals the parameters and continues as a GET, which carries the cookie.",nodes:[{detail:`POST /oauth2/end-session with id_token_hint, post_logout_redirect_uri, and state`,name:`Web app`},{detail:`GET /oauth2/end-session?continuation`,edge:`303, no session cookie`,name:`Browser`},{detail:`GET post_logout_redirect_uri?state`,edge:`302, no screen`,name:`Web app`}],title:`RP-initiated logout, form POST`},{description:`An app's own Sign out ends the Tempo ID session. The app forgets the sign-in even if the request fails, and shows the error.`,nodes:[{detail:`Web playground`,name:`App's page`},{edge:`GET /v1/auth/session, POST /v1/authorize`,name:`Signed in`,owner:`app`,screen:(0,W.jsx)(mJ,{})},{edge:`Sign out, POST /v1/auth/logout`,name:`Sign in`,owner:`app`,screen:(0,W.jsx)(dJ,{})}],title:`Headless sign-out`},{description:`The CLI revokes the stored refresh token at the deployment that issued it, and deletes the session even if the revocation fails.`,nodes:[{detail:`~/.tempo/id/credentials.json`,name:`tempo-id logout`},{detail:`Session deleted`,edge:`POST /oauth2/revoke with the refresh token`,name:`tempo-id logout`}],title:`tempo-id logout`}],title:`Sign-out`},{flows:[{description:`A refused send keeps the first step, with the refusal below the email field, which it marks invalid. The user can try again or pick another method.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`POST /v1/auth/code: 503`,name:`Sign in (send failed)`,screen:(0,W.jsx)(Z,{...Q(),error:yJ,invalid:!0})}],title:`Send failed`},{description:`A canceled prompt or a refused passkey keeps the first step, with the error below the email field. The email field is not marked invalid, since no address was sent.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Canceled prompt, or POST /v1/auth/passkey/verify refused`,name:`Sign in (passkey failed)`,screen:(0,W.jsx)(Z,{...Q(),error:`Passkey sign-in was canceled. Try again, or continue with email.`})}],title:`Passkey failed`},{description:`A refused code clears the field and marks it invalid, so the next code can be typed at once.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`POST /v1/auth/code/verify: 401`,name:`Check your email (wrong code)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,error:`Invalid or expired code. Request a new one.`,invalid:!0})}],title:`Wrong code`},{description:`A passkey that does not sign again, or whose assertion is refused, drops the link. The code field clears and takes focus, so the next code signs in with email only.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Canceled prompt, or POST /v1/auth/code/verify with link: webauthn_rejected`,name:`Check your email (link failed)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,error:`Your passkey did not confirm the sign-in. Enter the code again to sign in with email only.`,invalid:!0})}],title:`Passkey link failed`},{description:`A resent code shows Code sent on the disabled button for 5 seconds, then Resend code again. A hidden status announces the send. The code field keeps its value.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Resend code, POST /v1/auth/code`,name:`Check your email (resent)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,resend:`sent`})}],title:`Resent code`},{description:`A refused resend keeps the code step and its code, with the refusal below the code field. The code stays valid, so the field is not marked invalid.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Resend code, POST /v1/auth/code: 429`,name:`Check your email (resend refused)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,error:`Too many requests. Try again in 1 minute.`})}],title:`Resend refused`},{description:`A failed selection keeps the account step, so the user can choose again. The page does not reload, so an ended session or an expired request shows its refusal in the same place.`,nodes:[{detail:`GET /choose-account?…&sig`,name:`Browser`},{edge:`POST /v1/authorize/account: 503`,name:`Choose a wallet (failed)`,screen:(0,W.jsx)(cq,{...DJ(),error:yJ})},{edge:`Or: POST /v1/authorize/account: session_required`,name:`Choose a wallet (session ended)`,screen:(0,W.jsx)(cq,{...DJ(),error:`Sign in first.`})},{edge:`Or: POST /v1/authorize/account: authorization_expired`,name:`Choose a wallet (request expired)`,screen:(0,W.jsx)(cq,{...DJ(),error:`Expired authorization request: the request from the app is no longer valid. Return to the app, and start again.`})}],title:`Account selection failed`},{description:`A failed decision keeps the approval page, with the refusal below the buttons.`,nodes:[{detail:`GET /authorize?…&sig`,name:`Browser`},{edge:`POST /v1/authorize/consent: 503`,name:`Authorize this app (failed)`,screen:(0,W.jsx)(ZK,{...xJ(),error:yJ})}],title:`Approval failed`},{description:`A spent authorization rate limit refuses Approve, as it refuses the grant at sign-in. The approval page stays until the limit resets.`,nodes:[{detail:`GET /authorize?…&sig`,name:`Browser`},{edge:`Approve, POST /v1/authorize/consent: 429 rate_limited`,name:`Authorize this app (rate limited)`,screen:(0,W.jsx)(ZK,{...xJ(),error:`Too many requests. Try again in 1 minute.`})}],title:`Approval rate limited`},{description:`A canceled prompt or a refused assertion keeps the approval page, and Approve starts a new passkey step.`,nodes:[{detail:`GET /authorize?…&sig`,name:`Browser`},{edge:`Canceled prompt, or POST /v1/authorize/consent with passkey.assertion: webauthn_rejected`,name:`Authorize this app (passkey failed)`,screen:(0,W.jsx)(ZK,{...xJ(),error:`The passkey request was canceled. Approve again, or deny the request.`})}],title:`Passkey approval failed`},{description:`A session that ends before the decision reloads the page, and the loader sends the browser to sign-in with the signed query. A sign-in already spent this request, so the next sign-in opens the approval page again.`,nodes:[{detail:`GET /authorize?…&sig`,name:`Browser`},{edge:`200 approval page`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{edge:`Approve, POST /v1/authorize/consent: session_required, reload, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: 200`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{edge:`after 500 ms, redirect /authorize?…&sig`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Approval, session expired`},{description:`A user who was signed in when the request arrived reached the approval page without a sign-in, so the request is unspent. The sign-in after the reload grants the key and returns to the app at once.`,nodes:[{detail:`GET /authorize?…&sig`,name:`Browser`},{edge:`200 approval page`,name:`Authorize this app`,screen:(0,W.jsx)(ZK,{...xJ()})},{edge:`Approve, POST /v1/authorize/consent: session_required, reload, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,W.jsx)(Z,{...Q(),request:SJ()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,W.jsx)(Z,{...Q(),email:vJ})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, grants the key`,name:`Check your email (accepted)`,screen:(0,W.jsx)(Z,{...Q(),email:vJ,verified:!0})},{detail:`GET redirect_uri?code&state`,edge:`after 500 ms, redirect`,name:`Web app callback`},{...PJ,detail:`Tokens, account, and key_authorization`}],title:`Approval, session expired, unspent request`},{description:`A failed decision keeps the device page with the request, and the refusal below the buttons.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`POST /v1/device/approve: 503`,name:`Authorize a device (failed)`,screen:(0,W.jsx)(Mq,{...OJ(),error:yJ,request:kJ()})}],title:`Device decision failed`},{description:`A session that ends before the decision reloads the page, and sign-in returns to the same code. The request is bound to its user, so another user’s sign-in shows the unknown code.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`200 device page`,name:`Authorize a device`,screen:(0,W.jsx)(Mq,{...OJ(),request:kJ()})},{edge:`Approve, POST /v1/device/approve: session_required, reload, 302 /login?return_to=/device?code`,name:`Sign in`,screen:(0,W.jsx)(Z,{...Q()})},{edge:`Sign-in, /device?code`,name:`Authorize a device`,screen:(0,W.jsx)(Mq,{...OJ(),request:kJ()})}],title:`Device decision, session expired`},{description:`A canceled prompt or a refused assertion keeps the device page, and Approve starts a new passkey step.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`Canceled prompt, or POST /v1/device/approve with passkey.assertion: webauthn_rejected`,name:`Authorize a device (passkey failed)`,screen:(0,W.jsx)(Mq,{...OJ(),error:`The passkey request was canceled. Approve again, or deny the request.`,request:kJ()})}],title:`Device passkey approval failed`},{description:`A failed sign-out keeps the account page, with the refusal above the button.`,nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{edge:`POST /v1/auth/logout: 503`,name:`Your account (sign-out failed)`,screen:(0,W.jsx)(HG,{...EJ(),error:yJ})}],title:`Sign-out failed`}],title:`Request failures`}]}var $;(function(e){e.app=1,e.appAddress=1,e.appButton=Np({axes:{tone:[`brand`,`google`,`quiet`]},defaults:{},className:`z-tempo_2d_id-cvNCQ9-styles-appButton-align-items-0 z-tempo_2d_id-cvNCQ9-styles-appButton-border-1 z-tempo_2d_id-cvNCQ9-styles-appButton-border-radius-2 z-tempo_2d_id-cvNCQ9-styles-appButton-cursor-3 z-tempo_2d_id-cvNCQ9-styles-appButton-display-4 z-tempo_2d_id-cvNCQ9-styles-appButton-gap-5 z-tempo_2d_id-cvNCQ9-styles-appButton-h-6 z-tempo_2d_id-cvNCQ9-styles-appButton-justify-content-7 z-tempo_2d_id-cvNCQ9-styles-appButton-padding-inline-8 z-tempo_2d_id-cvNCQ9-styles-appButton-font-family-9 z-tempo_2d_id-cvNCQ9-styles-appButton-font-size-10 z-tempo_2d_id-cvNCQ9-styles-appButton-font-weight-11 z-tempo_2d_id-cvNCQ9-styles-appButton-letter-spacing-12 z-tempo_2d_id-cvNCQ9-styles-appButton-line-height-13 z-tempo_2d_id-cvNCQ9-styles-appButton-w-14 z-tempo_2d_id-cvNCQ9-styles-appButton-bg-15 z-tempo_2d_id-cvNCQ9-styles-appButton-text-16 z-tempo_2d_id-cvNCQ9-styles-appButton-bg-17 z-tempo_2d_id-cvNCQ9-styles-appButton-text-18 z-tempo_2d_id-cvNCQ9-styles-appButton-bg-19 z-tempo_2d_id-cvNCQ9-styles-appButton-text-20`}),e.appDescription=1,e.appDivider=1,e.appField=1,e.appHeader=1,e.appInput=1,e.appLabel=1,e.appTitle=1,e.arrow=1,e.artboard=1,e.canvas=1,e.code=1,e.detail=1,e.edge=1,e.external=Np({axes:{kind:[`Entry`,`Exit`,`External`]},defaults:{},className:`z-tempo_2d_id-cvNCQ9-styles-external-bg-0 z-tempo_2d_id-cvNCQ9-styles-external-border-1 z-tempo_2d_id-cvNCQ9-styles-external-border-color-2 z-tempo_2d_id-cvNCQ9-styles-external-border-radius-3 z-tempo_2d_id-cvNCQ9-styles-external-display-4 z-tempo_2d_id-cvNCQ9-styles-external-flex-shrink-5 z-tempo_2d_id-cvNCQ9-styles-external-gap-6 z-tempo_2d_id-cvNCQ9-styles-external-p-7 z-tempo_2d_id-cvNCQ9-styles-external-w-8 z-tempo_2d_id-cvNCQ9-styles-external-border-color-9 z-tempo_2d_id-cvNCQ9-styles-external-border-style-10 z-tempo_2d_id-cvNCQ9-styles-external-border-color-11 z-tempo_2d_id-cvNCQ9-styles-external-border-style-12`}),e.externalName=1,e.flow=1,e.flowDescription=1,e.flowHeader=1,e.flowTitle=1,e.frame=1,e.frameLabel=1,e.head=1,e.intro=1,e.kind=1,e.lede=1,e.line=1,e.row=1,e.section=1,e.sectionTitle=1,e.shaft=1,e.step=1,e.title=1})($||={});var IJ={IndexRoute:qG.update({id:`/`,path:`/`,getParentRoute:()=>CG}),AuthorizeRoute:rq.update({id:`/authorize`,path:`/authorize`,getParentRoute:()=>CG}),ChooseAccountRoute:dq.update({id:`/choose-account`,path:`/choose-account`,getParentRoute:()=>CG}),DepositRoute:Dq.update({id:`/deposit`,path:`/deposit`,getParentRoute:()=>CG}),DeviceRoute:Iq.update({id:`/device`,path:`/device`,getParentRoute:()=>CG}),ErrorRoute:Vq.update({id:`/error`,path:`/error`,getParentRoute:()=>CG}),LoginRoute:Jq.update({id:`/login`,path:`/login`,getParentRoute:()=>CG}),Char91_Char93FlowsRoute:rJ.update({id:`/_/flows`,path:`/_/flows`,getParentRoute:()=>CG})},LJ=CG._addFileChildren(IJ);function RJ(){return uf({defaultPreloadStaleTime:0,parseSearch:zJ,routeTree:LJ,scrollRestoration:!0,stringifySearch:BJ})}function zJ(e){let t=new URLSearchParams(e);return Object.fromEntries([...new Set(t.keys())].map(e=>{let n=t.getAll(e);return[e,n.length>1?n:n[0]]}))}function BJ(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(r!==void 0)for(let e of Array.isArray(r)?r:[r])t.append(n,String(e));let n=t.toString();return n?`?${n}`:``}async function VJ(){let e=await RJ(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(ku),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.ids.get().length||await za(e),e}var HJ=VJ;function UJ(){return HJ().finally(()=>window.$_TSR?.h())}var WJ;function GJ(){return WJ||=UJ(),(0,W.jsx)(Pu,{promise:WJ,children:e=>(0,W.jsx)(pf,{router:e})})}var KJ=Nn();(0,U.startTransition)(()=>{(0,KJ.hydrateRoot)(document,(0,W.jsx)(U.StrictMode,{children:(0,W.jsx)(GJ,{})}))});export{vL as A,$N as B,OL as C,AL as D,ML as E,pI as F,aO as H,fI as I,iI as L,KI as M,AI as N,jL as O,OI as P,uP as R,kL as S,EL as T,HD as U,tP as V,hR as _,yz as a,vR as b,vz as c,mz as d,pz as f,pR as g,fR as h,Tz as i,_L as j,NL as k,hz as l,lR as m,Ez as n,Cz as o,uz as p,wz as r,_z as s,tB as t,gz as u,gR as v,CL as w,sR as x,_R as y,dP as z};