// Generated by src/admin/ui/plugin.ts — do not edit by hand. // Run `pnpm build:ui` to regenerate from the TanStack Start SPA build. /* eslint-disable */ /** A single built UI file: text inline as UTF-8, binary as base64. */ export type Asset = { content: string contentType: string encoding?: 'base64' } /** The prerendered SPA shell HTML (assets normalized to relative URLs). */ export const shell = 'Tempo API Admin
' /** Content-hashed UI assets, keyed by their path under the mount (e.g. `assets/index-*.js`). */ export const assets: Record = { 'assets/api-keys-BPzJGciF.js': { content: 'import{a8 as Z,a9 as q,P as _,r as x,aa as Q,ab as X,ac as G,j as e,V as p,ad as H,ae as J,af as F,ag as A,a2 as W,c as K,ah as Y,ai as ee,aj as se,ak as ae}from"./index-DetZ1d0r.js";import{u as ne,R as te}from"./refresh-cw-DrqSvGhU.js";import{I as k,F as re}from"./Input-3nKp-F7T.js";import{u as oe,C as ie,a as le}from"./clipboard-DHXvtInv.js";import{R as P,C as ce}from"./Rows-Cud9pG1r.js";import{S as de}from"./Select-DnF193sj.js";import{P as me,C as M,N as T}from"./Page-CXChQl7o.js";import{C as xe}from"./Checkbox-DRTNsWbJ.js";import{D as l}from"./Dialog-BUpC5JqE.js";import{d as O}from"./format-Dy1GQ0to.js";import{S as ue}from"./search-eQU6ap2m.js";import{P as pe,T as he}from"./trash-2-DmnQRcCN.js";import{P as fe}from"./pencil-BiAyQW3i.js";import{T as ge}from"./triangle-alert-B8wLicNU.js";import"./useValueChanged-CTPdEny_.js";import"./useScrollLock-DC_n164h.js";import"./FormContext-BdJHfunf.js";import"./useAriaLabelledBy-uECG1FTb.js";const je=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],U=Z("x",je);function Qe(){const s=q.useSearch(),n=_({from:q.fullPath}),[a,t]=x.useState(!1),[r,i]=x.useState(s.query??""),c=s.environment??"production",u=Q(),h=X.useQuery(s),o=G.useMutation(),v=(h.data?.data??[]).filter(j=>j.environment===c&&De(j,s.query));x.useEffect(()=>i(s.query??""),[s.query]);function b(j){const f=g=>{const S=j.get(g);return typeof S=="string"?S.trim():""},N=f("name");if(!N){alert("Enter a name that identifies what uses this key.");return}const D=[...new Set(f("allowedIps").split(/[,\\n]/).map(g=>g.trim()).filter(Boolean))],y=f("expiresAt"),z=y?new Date(y).toISOString():void 0,C=s.orgId??f("orgId"),R=f("rateLimit"),d=R?Number(R):void 0,I=f("environment")==="sandbox"?"sandbox":"production",w=["read","write"].map(g=>{const S=f(`zoneChainId_${g}`);return{chainId:S,scope:S?F(S,g):void 0}});if(w.some(({chainId:g,scope:S})=>g&&!S)){alert("Enter a positive integer Zone chain ID.");return}const E=[...new Set([...j.getAll("scopes").filter(g=>typeof g=="string"),...w.flatMap(({scope:g})=>g?[g]:[])])];if(E.length===0){alert("Select at least one scope.");return}o.mutate({allowedIps:D,environment:I,...z===void 0?{}:{expiresAt:z},name:N,...C?{orgId:C}:{},...s.projectId?{projectId:s.projectId}:{},...d===void 0?{}:{rateLimits:{"*":{limit:d,period:"minute"}}},scopes:E},{onError:g=>alert(g.message),onSuccess:()=>t(!1)})}return e.jsx(l.Root,{onOpenChange:t,open:a,children:e.jsxs(me,{title:"API Keys",description:s.projectId?`Keys for project ${s.projectId}`:s.orgId?`Keys for organization ${s.orgId}`:"Manage keys that authenticate requests to the API",action:e.jsxs(e.Fragment,{children:[e.jsx(de,{"aria-label":"Filter keys by environment",items:[{label:"Production",value:"production"},{label:"Sandbox",value:"sandbox"}],onChange:j=>{n({search:{...j==="sandbox"?{environment:"sandbox"}:{},...s.orgId?{orgId:s.orgId}:{},...s.projectId?{projectId:s.projectId}:{},...s.query?{query:s.query}:{}},to:"/api-keys"})},value:c}),e.jsx(l.Trigger,{render:e.jsxs(p,{variant:"primary",children:[e.jsx(pe,{className:"size-4"}),"Provision a key"]})})]}),children:[o.data?e.jsx(V,{onDismiss:()=>o.reset(),token:o.data.token}):null,e.jsxs("form",{className:"flex gap-2",onSubmit:j=>{j.preventDefault();const f=r.trim();n({search:{...c==="sandbox"?{environment:c}:{},...s.orgId?{orgId:s.orgId}:{},...s.projectId?{projectId:s.projectId}:{},...f?{query:f}:{}},to:"/api-keys"})},children:[e.jsx("div",{className:"min-w-0 flex-1",children:e.jsx(k,{"aria-label":"Search API keys",onChange:j=>i(j.target.value),placeholder:"Name, key ID, organization, project, creator, or scope",value:r})}),e.jsxs(p,{type:"submit",children:[e.jsx(ue,{className:"size-4"}),"Search"]})]}),e.jsx(Ne,{currentUser:u.data?.auth.identity?.email,environment:c,error:h.error,keys:v,loading:h.isPending,query:s.query}),e.jsx(l.Popup,{className:"flex max-h-[calc(100dvh-2rem)] flex-col overflow-hidden",children:e.jsx(be,{onSubmit:b,orgId:s.orgId,pending:o.isPending,projectId:s.projectId})})]})})}function V(s){const{copy:n,notifying:a}=oe();return e.jsxs(M,{className:"flex flex-col gap-3 p-4",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("span",{className:"text-label-14 text-foreground",children:s.title??"Key provisioned"}),e.jsx("span",{className:"text-label-12 text-foreground-secondary",children:"Copy this token now, it won\'t be shown again."})]}),e.jsx(p.Icon,{className:"-mt-2 -mr-2",onClick:s.onDismiss,size:"lg",title:"Dismiss",variant:"plain",children:e.jsx(U,{})})]}),e.jsxs("button",{"aria-label":`Copy ${s.token}`,className:"group flex w-full cursor-pointer items-center gap-3 border border-border bg-secondary px-3 py-2.5 text-left transition-colors hover:bg-secondary-hover",onClick:()=>n(s.token),type:"button",children:[e.jsx("code",{className:"min-w-0 flex-1 truncate text-copy-14 text-foreground",children:s.token}),e.jsx("span",{className:"text-foreground-secondary group-hover:text-foreground",children:a?e.jsx(ie,{className:"size-4"}):e.jsx(le,{className:"size-4"})})]})]})}function be(s){const n=H.useQuery(),a=s.projectId?{label:"Project",value:s.projectId}:s.orgId?{label:"Organization",value:s.orgId}:void 0;return e.jsxs(e.Fragment,{children:[e.jsx(l.Title,{children:"Provision a Key"}),e.jsx(l.Description,{children:a?`Create an API key owned by this ${a.label.toLowerCase()}.`:"Create a key that authenticates requests to the API."}),e.jsxs("form",{className:"mt-6 flex min-h-0 flex-1 flex-col gap-8",onSubmit:t=>{t.preventDefault(),s.onSubmit(new FormData(t.currentTarget))},children:[a?e.jsxs("div",{className:"border border-border bg-secondary p-3",children:[e.jsxs("p",{className:"text-label-12 text-foreground-secondary",children:["Destination ",a.label]}),e.jsx("p",{className:"mt-1 truncate font-mono text-label-13 text-foreground",children:a.value}),s.projectId&&s.orgId?e.jsxs("p",{className:"mt-1 truncate font-mono text-label-12 text-foreground-secondary",children:["Organization ",s.orgId]}):null]}):null,e.jsxs(re,{className:"min-h-0 flex-1 gap-6 overflow-y-auto overscroll-contain",variant:"default",children:[e.jsx(B,{orgId:s.orgId}),e.jsx(k,{label:"Name",name:"name",placeholder:"e.g. Explorer testnet",required:!0}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("span",{className:"label-13 text-foreground-secondary",children:"Environment"}),e.jsxs("select",{className:"flex h-[40px] w-full items-center gap-[10px] rounded-body border-[2px] border-transparent bg-secondary px-[12px] copy-14 text-foreground outline-none hover:bg-secondary-hover active:bg-secondary-active focus-visible:border-focus focus-visible:bg-secondary-hover",defaultValue:"production",name:"environment",children:[e.jsx("option",{value:"production",children:"Production"}),e.jsx("option",{value:"sandbox",children:"Sandbox"})]})]}),e.jsx(k,{label:"Expires at (optional)",min:Se(new Date(Date.now()+2*6e4)),name:"expiresAt",type:"datetime-local"}),e.jsx(k,{defaultValue:"10000",label:"Rate limit",min:0,name:"rateLimit",placeholder:"Requests per minute",suffix:"req/min",type:"number"}),e.jsxs("label",{className:"flex min-w-0 flex-col gap-2",children:[e.jsx("span",{className:"text-label-13 text-foreground-secondary",children:"IP allowlist (optional)"}),e.jsx("textarea",{className:"min-h-24 w-full resize-y rounded-body border-2 border-transparent bg-secondary px-3 py-2.5 font-mono text-copy-13 text-foreground outline-none placeholder:font-sans placeholder:text-foreground-secondary/50 hover:bg-secondary-hover focus-visible:border-focus focus-visible:bg-secondary-hover",name:"allowedIps",placeholder:`203.0.113.10\n198.51.100.0/24`,rows:4}),e.jsx("span",{className:"text-label-12 text-foreground-secondary",children:"Separate exact IP addresses or CIDR ranges with commas or new lines. Leave empty for unrestricted access."})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("span",{className:"label-13 text-foreground-secondary",children:"Scopes"}),n.isPending?e.jsx("span",{className:"text-label-13 text-foreground-secondary",children:"Loading scopes…"}):n.error?e.jsx("span",{className:"text-label-13 text-negative",children:n.error.message}):e.jsx("div",{className:"border border-border",children:e.jsx(P,{variant:"surface",children:(n.data?.data??[]).map(t=>{const r=J(t.scope);return r?e.jsx(ve,{access:r,description:t.description},t.scope):e.jsxs(P.Row,{className:"min-h-[56px] py-3",render:e.jsx("label",{className:"cursor-pointer"}),style:{height:"auto"},children:[e.jsx(xe,{defaultChecked:t.scope==="data:read",name:"scopes",value:t.scope}),e.jsxs("span",{className:"flex min-w-0 flex-col gap-0.5",children:[e.jsx("span",{className:"text-label-13 text-foreground",children:t.scope}),e.jsx("span",{className:"text-label-12 text-foreground-secondary",children:t.description})]})]},t.scope)})})})]})]}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(l.Close,{render:e.jsx(p,{type:"button",children:"Cancel"})}),e.jsx(p,{loading:s.pending,type:"submit",variant:"primary",children:"Provision key"})]})]})]})}function B(s){const n=x.useId(),a=x.useId(),t=x.useId(),[r,i]=x.useState(-1),[c,u]=x.useState(!1),[h,o]=x.useState(!1),[v,b]=x.useState(s.orgId??""),j=ye(v,300),f=A(v),N=f?A(j):void 0,D=ne({...W.options({query:N}),enabled:!!(N&&!s.orgId)}),y=N&&f===N?D.data?.pages.flatMap(d=>d.data)??[]:[],z=v.trim(),C=!!(h&&f&&!c),R=z.length<3?"Type at least 3 characters to search.":f!==N||D.isFetching?"Searching organizations…":D.error?D.error.message:"No organizations found.";return x.useEffect(()=>i(y.length?0:-1),[N,y.length]),s.orgId?e.jsx(k,{label:"Organization",name:"orgId",readOnly:!0,value:s.orgId}):e.jsxs("div",{className:"flex min-w-0 flex-col gap-2",children:[e.jsxs("div",{className:"relative",children:[e.jsx(k,{"aria-activedescendant":C&&r>=0?`${t}-${r}`:void 0,"aria-autocomplete":"list","aria-controls":t,"aria-describedby":a,"aria-expanded":C,autoComplete:"off",id:n,label:"Organization (optional)",name:"orgId",onBlur:()=>o(!1),onChange:d=>{u(!1),b(d.target.value)},onFocus:()=>{u(!1),o(!0)},onKeyDown:d=>{if(d.key==="Escape"&&C){d.preventDefault(),d.stopPropagation(),u(!0);return}if(!C||y.length===0)return;if(d.key==="ArrowDown"){d.preventDefault(),i(w=>(w+1)%y.length);return}if(d.key==="ArrowUp"){d.preventDefault(),i(w=>w<=0?y.length-1:w-1);return}const I=y[r];d.key==="Enter"&&I&&(d.preventDefault(),u(!0),b(I.id))},placeholder:"Search name or paste org_…",role:"combobox",value:v}),C?e.jsx("div",{"aria-describedby":a,className:"absolute top-full z-10 mt-1 max-h-64 w-full overflow-auto border border-border bg-surface py-1 shadow-lg",id:t,role:"listbox",children:y.length?y.map((d,I)=>e.jsxs("div",{"aria-selected":I===r,className:K("flex cursor-pointer flex-col gap-1 px-3 py-2 hover:bg-secondary-hover",I===r?"bg-secondary-hover":void 0),id:`${t}-${I}`,onClick:()=>{u(!0),b(d.id)},onMouseDown:w=>w.preventDefault(),onMouseMove:()=>i(I),role:"option",children:[e.jsx("span",{className:"truncate text-label-14 text-foreground",children:d.name}),e.jsx("span",{className:"truncate font-mono text-label-12 text-foreground-secondary",children:d.id})]},d.id)):e.jsx("div",{className:"px-3 py-2 text-label-13 text-foreground-secondary",role:"status",children:R})}):null]}),e.jsx("p",{className:"text-label-12 text-foreground-secondary",id:a,children:"Search by name, ID, or member email. Leave blank for a one-off key."})]})}function ye(s,n){const[a,t]=x.useState(s);return x.useEffect(()=>{const r=setTimeout(()=>t(s),n);return()=>clearTimeout(r)},[n,s]),a}function ve(s){const[n,a]=x.useState(""),[t,r]=x.useState([]),i=F(n,s.access),c=i?t.includes(i):!1,u=n&&!i?"Enter a positive integer chain ID.":c?"Zone already added.":!1;function h(){!i||c||(r(o=>[...o,i]),a(""))}return e.jsxs(P.Row,{className:"min-h-[56px] flex-col items-stretch py-3",style:{height:"auto"},children:[e.jsxs("span",{className:"flex min-w-0 flex-col gap-0.5",children:[e.jsx("span",{className:"text-label-13 text-foreground",children:Y[s.access]}),e.jsx("span",{className:"text-label-12 text-foreground-secondary",children:s.description})]}),e.jsxs("div",{className:"flex items-start gap-2 max-sm:flex-col",children:[e.jsx("div",{className:"min-w-0 flex-1 max-sm:w-full",children:e.jsx(k,{"aria-label":"Zone chain ID",autoComplete:"off",error:u,inputMode:"numeric",name:`zoneChainId_${s.access}`,onChange:o=>a(o.target.value),onKeyDown:o=>{o.key==="Enter"&&(o.preventDefault(),h())},pattern:"[0-9]*",placeholder:"421700001",prefix:"zone:",suffix:`:${s.access}`,value:n})}),e.jsx(p,{className:"max-sm:w-full",disabled:!i||c,onClick:h,type:"button",children:"Add zone"})]}),t.length>0?e.jsx("ul",{className:"flex flex-col gap-2",children:t.map(o=>e.jsxs("li",{className:"flex min-w-0 items-center gap-2 border border-border bg-secondary py-1 pr-1 pl-2",children:[e.jsx("input",{name:"scopes",type:"hidden",value:o}),e.jsx("code",{className:"min-w-0 flex-1 truncate text-label-12 text-foreground",children:o}),e.jsx(p.Icon,{onClick:()=>r(v=>v.filter(b=>b!==o)),size:"md",title:`Remove ${o}`,variant:"plain",children:e.jsx(U,{className:"size-4"})})]},o))}):null]})}function Ne(s){return e.jsx(M,{children:s.loading?e.jsx(T,{children:"Loading keys…"}):s.error?e.jsx(T,{children:s.error.message}):s.keys.length===0?e.jsx(T,{children:s.query?`No ${s.environment} keys match “${s.query}”.`:`No ${s.environment} keys yet.`}):e.jsx(P,{variant:"surface",children:s.keys.map(n=>e.jsx(Ie,{currentUser:s.currentUser,record:n},n.id))})})}function Ie(s){const{currentUser:n,record:a}=s,[t,r]=x.useState(!1),i=a.rateLimits?.["*"];return e.jsxs(e.Fragment,{children:[e.jsxs(P.Row,{className:"min-h-[44px] py-2",onClick:()=>r(c=>!c),style:{height:"auto"},children:[e.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[e.jsxs("span",{className:"flex min-w-0 items-baseline gap-2",children:[e.jsx("span",{className:"truncate text-label-14 text-foreground",children:a.name??"Unnamed key"}),a.environment==="sandbox"?e.jsx("span",{className:"shrink-0 rounded-none bg-warning-subtle px-2 py-0.5 text-label-12 font-normal text-warning",children:"sandbox"}):null]}),a.organizationName?e.jsx("span",{className:"truncate text-label-12 text-foreground-secondary",children:a.organizationName}):null]}),e.jsx("span",{className:"shrink-0 text-label-12 text-foreground-secondary",children:O(a.createdAt)}),e.jsx(ce,{"aria-hidden":!0,className:"size-4 shrink-0 text-foreground-secondary opacity-70 transition-transform data-[open]:rotate-90","data-open":t?"":void 0})]}),t?e.jsxs(P.Panel,{children:[e.jsxs("dl",{className:"flex flex-wrap gap-x-10 gap-y-4 px-5 py-4",children:[e.jsx(m,{label:"Key ID",children:a.id}),e.jsx(m,{label:"Environment",children:a.environment??"production"}),e.jsx(m,{label:"Rate limit",children:i===void 0?"Inherited":`${i.limit} req/${i.period==="minute"?"min":"sec"}`}),e.jsxs(m,{label:"Token",children:["···",a.tokenLast4]}),e.jsx(m,{label:"Organization",children:$(a)}),e.jsx(m,{label:"Project",children:L(a)}),e.jsx(m,{label:"Provisioned by",children:a.createdByLabel??"Unknown"}),a.expiresAt?e.jsx(m,{label:"Expires",children:O(a.expiresAt)}):null,e.jsx(m,{className:"w-full",label:"IP allowlist",children:a.allowedIps.length===0?"Unrestricted":e.jsx("span",{className:"flex flex-wrap gap-x-3 gap-y-1 font-mono",children:a.allowedIps.map(c=>e.jsx("span",{className:"break-all",children:c},c))})}),e.jsx(m,{className:"w-full",label:"Scopes",children:a.scopes.length===0?"—":e.jsx("span",{className:"flex flex-wrap gap-x-3 gap-y-1",children:a.scopes.map(c=>e.jsx("span",{className:"text-label-13 text-foreground",children:c},c))})})]}),e.jsxs("div",{className:"flex justify-end gap-2 border-t border-border px-5 py-3",children:[e.jsx(we,{record:a}),e.jsx(ke,{record:a}),e.jsx(Ce,{currentUser:n,record:a})]})]}):null]})}function we(s){const{record:n}=s,[a,t]=x.useState(!1),r=ee.useMutation();return e.jsxs(l.Root,{onOpenChange:t,open:a,children:[e.jsx(l.Trigger,{render:e.jsxs(p,{size:"small",children:[e.jsx(fe,{className:"size-4"}),"Edit"]})}),e.jsxs(l.Popup,{children:[e.jsx(l.Title,{children:"Edit API key"}),e.jsx(l.Description,{children:n.orgId===n.id?"Update its name or associate it with an organization. New activity may take about a minute to appear there.":"Use a name that identifies the service or integration using this key."}),e.jsxs("form",{className:"mt-6 flex flex-col gap-6",onSubmit:i=>{i.preventDefault();const c=new FormData(i.currentTarget),u=c.get("name"),h=c.get("orgId");typeof u!="string"||!u.trim()||r.mutate({id:n.id,input:{name:u.trim(),...typeof h=="string"&&h.trim()?{orgId:h.trim()}:{}}},{onError:o=>alert(o.message),onSuccess:()=>t(!1)})},children:[e.jsx(k,{autoFocus:!0,defaultValue:n.name??"",label:"Name",name:"name",placeholder:"e.g. Explorer testnet",required:!0}),n.orgId===n.id?e.jsx(B,{}):null,e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(l.Close,{render:e.jsx(p,{type:"button",children:"Cancel"})}),e.jsx(p,{loading:r.isPending,type:"submit",variant:"primary",children:"Save changes"})]})]},a?"open":"closed")]})]})}function ke(s){const{record:n}=s,[a,t]=x.useState(!1),r=se.useMutation();return e.jsxs(l.Root,{onOpenChange:i=>{!i&&r.isPending||(t(i),i||r.reset())},open:a,children:[e.jsx(l.Trigger,{render:e.jsxs(p,{size:"small",children:[e.jsx(te,{className:"size-4"}),"Rotate key"]})}),e.jsx(l.Popup,{children:r.data?e.jsxs(e.Fragment,{children:[e.jsx(l.Title,{children:"Key rotated"}),e.jsx(l.Description,{children:"Copy the replacement token now. The source key remains active until it is revoked."}),e.jsx("div",{className:"mt-5",children:e.jsx(V,{onDismiss:()=>t(!1),title:"Replacement key provisioned",token:r.data.token})})]}):e.jsxs(e.Fragment,{children:[e.jsxs(l.Title,{children:["Rotate ",n.name??"API key","?"]}),e.jsx(l.Description,{children:"This creates a replacement with the same scopes, ownership, limits, and restrictions. The source key remains active."}),e.jsxs("dl",{className:"mt-5 grid grid-cols-2 gap-4 border border-border bg-secondary p-4",children:[e.jsx(m,{className:"col-span-2",label:"Key ID",children:e.jsx("code",{className:"break-all",children:n.id})}),e.jsx(m,{label:"Environment",children:n.environment}),e.jsx(m,{label:"Organization",children:$(n)}),e.jsx(m,{label:"Project",children:L(n)}),e.jsx(m,{label:"Scopes",children:n.scopes.length})]}),r.error?e.jsx("p",{className:"mt-3 text-copy-13 text-negative",children:r.error.message}):null,e.jsxs("div",{className:"mt-6 flex justify-end gap-2",children:[e.jsx(l.Close,{render:e.jsx(p,{disabled:r.isPending,type:"button",children:"Cancel"})}),e.jsx(p,{loading:r.isPending,onClick:()=>r.mutate(n.id),variant:"primary",children:"Rotate key"})]})]})})]})}function Ce(s){const{currentUser:n,record:a}=s,[t,r]=x.useState(""),[i,c]=x.useState(!1),u=ae.useMutation(),h=a.name??a.id,o=a.createdByLabel,v=!!o&&!!n&&o.toLowerCase()!==n.toLowerCase();return e.jsxs(l.Root,{onOpenChange:b=>{c(b),b||r("")},open:i,children:[e.jsx(l.Trigger,{render:e.jsxs(p,{size:"small",variant:"negative",children:[e.jsx(he,{className:"size-4"}),"Revoke key"]})}),e.jsxs(l.Popup,{children:[e.jsxs(l.Title,{children:["Revoke ",a.name??"API key","?"]}),e.jsx(l.Description,{children:"Requests using this key will fail immediately. This action cannot be undone."}),e.jsxs("dl",{className:"mt-5 grid grid-cols-2 gap-4 border border-border bg-secondary p-4",children:[e.jsx(m,{className:"col-span-2",label:"Key ID",children:e.jsx("code",{className:"break-all",children:a.id})}),e.jsx(m,{label:"Environment",children:a.environment}),e.jsx(m,{label:"Organization",children:$(a)}),e.jsx(m,{label:"Project",children:L(a)}),e.jsx(m,{label:"Provisioned by",children:o??"Unknown"}),e.jsx(m,{label:"Rate limit",children:a.rateLimits?.["*"]===void 0?"Inherited":`${a.rateLimits["*"].limit} req/${a.rateLimits["*"].period==="minute"?"min":"sec"}`})]}),v?e.jsxs("div",{className:"mt-4 flex gap-3 border border-warning bg-warning-subtle p-3 text-warning",children:[e.jsx(ge,{className:"mt-0.5 size-4 shrink-0"}),e.jsxs("p",{className:"text-copy-13",children:["This key was provisioned by ",o,". Confirm it is no longer in use before revoking it."]})]}):null,e.jsx("div",{className:"mt-5",children:e.jsx(k,{autoComplete:"off",label:`Type “${h}” to confirm`,onChange:b=>r(b.target.value),value:t})}),u.error?e.jsx("p",{className:"mt-3 text-copy-13 text-negative",children:u.error.message}):null,e.jsxs("div",{className:"mt-6 flex justify-end gap-2",children:[e.jsx(l.Close,{render:e.jsx(p,{type:"button",children:"Cancel"})}),e.jsx(p,{disabled:t!==h,loading:u.isPending,onClick:()=>u.mutate(a.id,{onSuccess:()=>c(!1)}),variant:"negative",children:"Revoke key"})]})]})]})}function m(s){return e.jsxs("div",{className:K("flex min-w-0 flex-col gap-1",s.className),children:[e.jsx("dt",{className:"text-label-12 text-foreground-secondary",children:s.label}),e.jsx("dd",{className:"min-w-0 text-label-13 text-foreground",children:s.children})]})}function Se(s){const a=Math.ceil(s.getTime()/6e4)*6e4;return new Date(a-s.getTimezoneOffset()*6e4).toISOString().slice(0,16)}function De(s,n){const a=n?.trim().toLowerCase();return a?[s.createdBy,s.createdByLabel,s.id,s.name,s.organizationName,s.orgId,s.projectId,s.projectName,s.tokenLast4,...s.allowedIps,...s.scopes].some(t=>t?.toLowerCase().includes(a)):!0}function $(s){return s.organizationName?`${s.organizationName} (${s.orgId})`:"-"}function L(s){return!s.projectId||!s.projectName?"-":`${s.projectName} (${s.projectId})`}export{Qe as component};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/ccip-BsjXn5Xv.js': { content: 'import{aR as R,aS as L,aT as M,aU as C,aV as O,aW as N,aX as A,aY as H,aZ as g,a_ as U,a$ as k,b0 as v,b1 as B,b2 as m,b3 as j,B as y,b4 as P,s as S,b5 as _,b6 as W,n as q,b7 as J,b8 as w,b9 as $,ba as x,bb as V}from"./index-DetZ1d0r.js";function X(e){const{abi:r,data:a}=e,s=R(a,0,4),t=r.find(n=>n.type==="function"&&s===L(M(n)));if(!t)throw new C(s,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:t.name,args:"inputs"in t&&t.inputs&&t.inputs.length>0?O(t.inputs,R(a,4)):void 0}}const p="/docs/contract/encodeErrorResult";function F(e){const{abi:r,errorName:a,args:s}=e;let t=r[0];if(a){const u=N({abi:r,args:s,name:a});if(!u)throw new A(a,{docsPath:p});t=u}if(t.type!=="error")throw new A(void 0,{docsPath:p});const n=M(t),o=L(n);let c="0x";if(s&&s.length>0){if(!t.inputs)throw new H(t.name,{docsPath:p});c=g(t.inputs,s)}return U([o,c])}const b="/docs/contract/encodeFunctionResult";function Y(e){const{abi:r,functionName:a,result:s}=e;let t=r[0];if(a){const o=N({abi:r,name:a});if(!o)throw new k(a,{docsPath:b});t=o}if(t.type!=="function")throw new k(void 0,{docsPath:b});if(!t.outputs)throw new v(t.name,{docsPath:b});const n=(()=>{if(t.outputs.length===0)return[];if(t.outputs.length===1)return[s];if(Array.isArray(s))return s;throw new B(s)})();return g(t.outputs,n)}const T="x-batch-gateway:true";async function D(e){const{data:r,ccipRequest:a}=e,{args:[s]}=X({abi:m,data:r}),t=[],n=[];return await Promise.all(s.map(async(o,c)=>{try{n[c]=o.urls.includes(T)?await D({data:o.data,ccipRequest:a}):await a(o),t[c]=!1}catch(u){t[c]=!0,n[c]=Z(u)}})),Y({abi:m,functionName:"query",result:[t,n]})}function Z(e){return e.name==="HttpRequestError"&&e.status?F({abi:m,errorName:"HttpError",args:[e.status,e.shortMessage]}):F({abi:[j],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}class z extends y{constructor({callbackSelector:r,cause:a,data:s,extraData:t,sender:n,urls:o}){super(a.shortMessage||"An error occurred while fetching for an offchain result.",{cause:a,metaMessages:[...a.metaMessages||[],a.metaMessages?.length?"":[],"Offchain Gateway Call:",o&&[" Gateway URL(s):",...o.map(c=>` ${P(c)}`)],` Sender: ${n}`,` Data: ${s}`,` Callback selector: ${r}`,` Extra data: ${t}`].flat(),name:"OffchainLookupError"})}}class K extends y{constructor({result:r,url:a}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${P(a)}`,`Response: ${S(r)}`],name:"OffchainLookupResponseMalformedError"})}}class Q extends y{constructor({sender:r,to:a}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${a}`,`OffchainLookup sender address: ${r}`],name:"OffchainLookupSenderMismatchError"})}}const rt="0x556f1830",tt={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function st(e,{blockNumber:r,blockTag:a,data:s,requestOptions:t,to:n}){const{args:o}=_({data:s,abi:[tt]}),[c,u,l,i,d]=o,{ccipRead:h}=e,E=h&&typeof h?.request=="function"?h.request:at;try{if(!W(n,c))throw new Q({sender:c,to:n});const f=u.includes(T)?await D({data:l,ccipRequest:I=>E({...I,requestOptions:t})}):await E({data:l,requestOptions:t,sender:c,urls:u}),{data:G}=await q(e,{blockNumber:r,blockTag:a,data:J([i,g([{type:"bytes"},{type:"bytes"}],[f,d])]),requestOptions:t,to:n});return G}catch(f){throw t?.signal?.aborted?w(t.signal):$(f)?f:new z({callbackSelector:i,cause:f,data:s,extraData:d,sender:c,urls:u})}}async function at({data:e,requestOptions:r,sender:a,urls:s}){let t=new Error("An unknown error occurred.");for(let n=0;n({checked(a){return e.indeterminate?{}:a?{[ie.checked]:""}:{[ie.unchecked]:""}},...ue}),[e.indeterminate])}const dt=r.createContext(void 0);function ct(e=!0){const a=r.useContext(dt);if(a===void 0&&!e)throw new Error(de(3));return a}const fe=r.createContext(void 0);function ut(){const e=r.useContext(fe);if(e===void 0)throw new Error(de(14));return e}const lt="data-parent",ft=r.forwardRef(function(a,c){const{checked:E,className:pe,defaultChecked:_=!1,"aria-labelledby":K,disabled:w=!1,form:u,id:v,indeterminate:I=!1,inputRef:O,name:D,onCheckedChange:S,parent:i=!1,readOnly:g=!1,render:$,required:C=!1,uncheckedValue:V,value:B,nativeButton:N=!1,style:mt,...me}=a,{clearErrors:he}=Ye(),{disabled:ve,name:ge,setDirty:Ce,setFilled:G,setFocused:J,setTouched:xe,state:X,validationMode:be,validityData:ke,shouldValidateOnChange:ye,validation:Pe}=Qe(),Ee=st(),{labelId:Ie,controlId:Re,registerControlId:x,getDescriptionProps:Y}=Ze(),n=ct(),R=n?.parent,M=R&&n.allValues,l=ve||Ee.disabled||n?.disabled||w,b=ge??D,o=B??b,Q=re(),Me=re();let f=Re;M?f=i?Me:`${R.id}-${o}`:v&&(f=v);let q={};M&&(i?q=n.parent.getParentProps():o&&(q=n.parent.getChildProps(o)));const{checked:Z=E,indeterminate:T=I,onCheckedChange:Se,...Ve}=q,k=n?.value,A=n?.setValue,ee=n?.defaultValue,H=r.useRef(null),j=qe(()=>Symbol("checkbox-control")),L=r.useRef(!1),{getButtonProps:Be,buttonRef:Ne}=He({disabled:l,native:N}),p=n?.validation??Pe,[s,Te]=Ae({controlled:o&&k&&!i?k.includes(o):Z,default:o&&ee&&!i?ee.includes(o):_,name:"Checkbox",state:"checked"});ae(()=>{x!==oe&&(L.current=!0,x(j.current,f))},[f,x,j]),r.useEffect(()=>{const t=j.current;return()=>{!L.current||x===oe||(L.current=!1,x(t,void 0))}},[x,j]),et(H,Q,s,void 0,!n);const m=r.useRef(null),je=Le(O,m,p.inputRef),Fe=tt(K,Ie,m,!N,f??void 0);ae(()=>{m.current&&(m.current.indeterminate=T,s&&G(!0))},[s,T,G]),Ue(s,()=>{n&&!i||(he(b),G(s),Ce(s!==ke.initialValue),ye()?p.commit(s):p.commit(s,!0))});const Ke=We({checked:s,disabled:l,form:u,name:i?void 0:b,id:N?void 0:f??void 0,required:C,ref:je,style:b?_e:$e,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(t){if(t.nativeEvent.defaultPrevented)return;if(g){t.preventDefault();return}const d=t.currentTarget.checked,y=Je(Xe,t.nativeEvent);if(Se?.(d,y),S?.(d,y),!y.isCanceled&&(Te(d),o&&k&&A&&!i&&!M)){const h=d?[...k,o]:k.filter(F=>F!==o);A(h,y)}},onFocus(){H.current?.focus()}},B!==void 0?{value:(n?s&&B:B)||""}:ze,Y,n?p.getValidationProps:p.getInputValidationProps),te=M?!!Z:s,ne=M&&T||I;r.useEffect(()=>{if(!R||!o)return;const t=R.disabledStatesRef.current;return t.set(o,l),()=>{t.delete(o)}},[R,l,o]);const U=r.useMemo(()=>({...X,checked:te,disabled:l,readOnly:g,required:C,indeterminate:ne}),[X,te,l,g,C,ne]),we=le(U),Oe=ce("span",a,{state:U,ref:[Ne,H,c,n?.registerControlRef],props:[{id:N?f??void 0:Q,role:"checkbox","aria-checked":T?"mixed":s,"aria-readonly":g||void 0,"aria-required":C||void 0,"aria-labelledby":Fe,[lt]:i?"":void 0,onFocus(){J(!0)},onBlur(){const t=m.current;t&&(xe(!0),J(!1),be==="onBlur"&&p.commit(n?k:t.checked))},onKeyDown(t){if(t.key!=="Enter"||(t.preventBaseUIHandler(),t.defaultPrevented))return;const d=m.current?.form??null,y=t.currentTarget,h=t.nativeEvent,F=t.preventDefault,W=h.preventDefault;let z=!1;t.preventDefault=()=>{z=!0,F.call(t)},h.preventDefault=()=>{z=!0,W.call(h)},W.call(h),se(y).queueMicrotask(()=>{t.preventDefault=F,h.preventDefault=W,z||it(d)?.click()})},onClick(t){if(g||l)return;t.preventDefault();const d=m.current;d&&d.dispatchEvent(new(se(d)).PointerEvent("click",{bubbles:!0,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}},Y,p.getValidationProps,me,Ve,Be],stateAttributesMapping:we});return P.jsxs(fe.Provider,{value:U,children:[Oe,!s&&!n&&b&&!i&&V!==void 0&&P.jsx("input",{type:"hidden",form:u,name:b,value:V}),P.jsx("input",{...Ke,suppressHydrationWarning:!0})]})}),pt=r.forwardRef(function(a,c){const{render:E,className:pe,style:_,keepMounted:K=!1,...w}=a,u=ut(),v=u.checked||u.indeterminate,{mounted:I,transitionStatus:O,setMounted:D}=nt(v),S=r.useRef(null),i={...u,transitionStatus:O};rt({open:v,ref:S,onComplete(){v||D(!1)}});const $={...le(u),...at,...ue},C=K||I,V=ce("span",a,{ref:[c,S],state:i,stateAttributesMapping:$,props:w});return C?V:null});function kt({className:e,...a}){return P.jsx(ft,{className:c=>De("flex size-[18px] shrink-0 items-center justify-center rounded-button border-[2px] border-border bg-secondary text-on-invert outline-none transition-colors hover:bg-secondary-hover focus-visible:border-focus data-[checked]:border-[var(--background-color-invert)] data-[checked]:bg-invert",typeof e=="function"?e(c):e),...a,children:P.jsx(pt,{className:"flex data-[unchecked]:hidden",children:P.jsx(Ge,{className:"size-3"})})})}export{kt as C};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/clipboard-DHXvtInv.js': { content: 'import{a8 as c,r as e}from"./index-DetZ1d0r.js";const u=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],f=c("check",u);const p=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],d=c("copy",p);function h(a={}){const{timeout:o=800}=a,[n,r]=e.useState(!1),t=e.useRef(null);return{copy:e.useCallback(async s=>{t.current&&clearTimeout(t.current);try{if(!navigator.clipboard)throw new Error("Clipboard API not supported");return await navigator.clipboard.writeText(s),r(!0),t.current=setTimeout(()=>r(!1),o),!0}catch(i){return console.error("useCopy: Failed to copy text:",i),!1}},[o]),notifying:n}}export{f as C,d as a,h as u};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/Dialog-BUpC5JqE.js': { content: 'import{r as a,j as R,c as te}from"./index-DetZ1d0r.js";import{E as B,f as V,g as T,b as W,j as A,k as ne,u as _,m as oe,l as se}from"./useValueChanged-CTPdEny_.js";import{F as G,P as Y,c as s,p as q,t as H,C as U,a as re,b as J,d as ae,e as ie,f as le,I as ue,i as de,g as ce,h as pe,j as ge,k as fe,l as me,m as Ce,n as Se,o as Pe,R as xe,s as Re,q as he,r as Oe,v as Ee,w as ye,x as Ie,y as De,z as Te}from"./useScrollLock-DC_n164h.js";function ve(){return new G({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Y,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function we(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:ve(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:B,inactiveTriggerProps:B,popupProps:B}}function be(e,t,n=!1){return new G({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}const F=s(e=>e.triggerIdProp??e.activeTriggerId),K=s(e=>e.openProp??e.open),L=s(e=>(e.popupElement?.id??e.floatingId)||void 0);function $(e,t){return t!==void 0&&K(e)&&F(e)===t}function ke(e,t){return $(e,t)?!0:t!==void 0&&K(e)&&F(e)==null&&e.triggerCount===1}const Me={open:K,mounted:s(e=>e.mounted),transitionStatus:s(e=>e.transitionStatus),floatingRootContext:s(e=>e.floatingRootContext),triggerCount:s(e=>e.triggerCount),preventUnmountingOnClose:s(e=>e.preventUnmountingOnClose),payload:s(e=>e.payload),activeTriggerId:F,activeTriggerElement:s(e=>e.mounted?e.activeTriggerElement:null),popupId:L,isTriggerActive:s((e,t)=>t!==void 0&&F(e)===t),isOpenedByTrigger:s((e,t)=>$(e,t)),isMountedByTrigger:s((e,t)=>t!==void 0&&F(e)===t&&e.mounted),triggerProps:s((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:s((e,t)=>ke(e,t)?L(e):void 0),popupProps:s(e=>e.popupProps),popupElement:s(e=>e.popupElement),positionerElement:s(e=>e.positionerElement)},Q=a.createContext(!1),X=a.createContext(void 0);function I(e){const t=a.useContext(X);if(e===!1&&t===void 0)throw new Error(V(27));return t}const Ne={...q,...H},Be=a.forwardRef(function(t,n){const{render:i,className:l,style:u,forceRender:r=!1,...d}=t,{store:c}=I(),o=c.useState("open"),x=c.useState("nested"),C=c.useState("mounted"),S=c.useState("transitionStatus");return T("div",t,{state:{open:o,transitionStatus:S},ref:[c.context.backdropRef,n],stateAttributesMapping:Ne,props:[{role:"presentation",hidden:!C,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:r||!x})}),Fe=a.forwardRef(function(t,n){const{render:i,className:l,style:u,disabled:r=!1,nativeButton:d=!0,...c}=t,{store:o}=I(),x=o.useState("open"),{getButtonProps:C,buttonRef:S}=W({disabled:r,native:d}),g={disabled:r};function f(h){x&&o.setOpen(!1,A(ne,h.nativeEvent))}return T("button",t,{state:g,ref:[n,S],props:[{onClick:f},c,C]})}),je=a.forwardRef(function(t,n){const{render:i,className:l,style:u,id:r,...d}=t,{store:c}=I(),o=_(r);return c.useSyncedValueWithCleanup("descriptionElementId",o),T("p",t,{ref:n,props:[{id:o},d]})});let Ue=(function(e){return e.nestedDialogs="--nested-dialogs",e})({}),Ve=(function(e){return e[e.open=U.open]="open",e[e.closed=U.closed]="closed",e[e.startingStyle=U.startingStyle]="startingStyle",e[e.endingStyle=U.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e})({});const Z=a.createContext(void 0);function _e(){const e=a.useContext(Z);if(e===void 0)throw new Error(V(26));return e}const Ke={...q,...H,nestedDialogOpen(e){return e?{[Ve.nestedDialogOpen]:""}:null}},ze=a.forwardRef(function(t,n){const{render:i,className:l,style:u,finalFocus:r,initialFocus:d,...c}=t,{store:o}=I(),x=o.useState("descriptionElementId"),C=o.useState("disablePointerDismissal"),S=o.useState("floatingRootContext"),g=o.useState("popupProps"),f=o.useState("modal"),h=o.useState("mounted"),O=o.useState("nested"),E=o.useState("nestedOpenDialogCount"),m=o.useState("open"),y=o.useState("openMethod"),P=o.useState("titleElementId"),p=o.useState("transitionStatus"),v=o.useState("role"),w=S.useState("floatingId"),b=c.id??w;_e(),re({open:m,ref:o.context.popupRef,onComplete(){m&&o.context.onOpenChangeComplete?.(!0)}});function k(j){return j==="touch"?o.context.popupRef.current:!0}const M=d===void 0?k:d,N=E>0,D=o.useStateSetter("popupElement"),ee=T("div",t,{state:{open:m,nested:O,transitionStatus:p,nestedDialogOpen:N},props:[g,{id:b,"aria-labelledby":P??void 0,"aria-describedby":x??void 0,role:v,...J,hidden:!h,onKeyDown(j){ae.has(j.key)&&j.stopPropagation()},style:{[Ue.nestedDialogs]:E}},c],ref:[n,o.context.popupRef,D],stateAttributesMapping:Ke});return R.jsx(ie,{context:S,openInteractionType:y,disabled:!h,closeOnFocusOut:!C,initialFocus:M,returnFocus:r,modal:f!==!1,restoreFocus:"popup",children:ee})}),Le=a.forwardRef(function(t,n){const{keepMounted:i=!1,...l}=t,{store:u}=I(),r=u.useState("mounted"),d=u.useState("modal"),c=u.useState("open");return r||i?R.jsx(Z.Provider,{value:i,children:R.jsxs(le,{ref:n,...l,children:[r&&d===!0&&R.jsx(ue,{ref:u.context.internalBackdropRef,inert:de(!c)}),t.children]})}):null});function We(e){const{store:t,parentContext:n,actionsRef:i,isDrawer:l}=e,u=t.useState("open");ce(t,u),pe(t);const{forceUnmount:r}=ge(u,t),d=a.useCallback(()=>{t.setOpen(!1,A(se))},[t]);return a.useImperativeHandle(i,()=>({unmount:r,close:d}),[r,d]),{parentContext:n,isDrawer:l}}function Ae({store:e,dialogRoot:t}){const{parentContext:n,isDrawer:i}=t,l=e.useState("open"),u=e.useState("disablePointerDismissal"),r=e.useState("modal"),d=e.useState("popupElement"),c=e.useState("floatingRootContext"),[o,x]=a.useState(0),[C,S]=a.useState(0),g=o===0,f=fe(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:r==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(m){if(!e.context.outsidePressEnabledRef.current||"button"in m&&m.button!==0||"touches"in m&&m.touches.length!==1)return!1;const y=Se(m);if(g&&!u){const P=y;return r&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===P||e.context.backdropRef.current===P||Pe(P,d)&&!P?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:g});me(l&&r===!0,d),e.useContextCallback("onNestedDialogOpen",(m,y)=>{x(m),S(y)}),e.useContextCallback("onNestedDialogClose",()=>{x(0),S(0)}),a.useEffect(()=>(n?.onNestedDialogOpen&&l&&n.onNestedDialogOpen(o+1,C+(i?1:0)),n?.onNestedDialogClose&&!l&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&l&&n.onNestedDialogClose()}),[i,l,o,C,n]);const h=f.reference??B,O=f.trigger??B,E=a.useMemo(()=>oe(J,f.floating),[f.floating]);return Ce(e,{activeTriggerProps:h,inactiveTriggerProps:O,popupProps:E,nestedOpenDialogCount:o,nestedOpenDrawerCount:C}),null}const Ge={...Me,modal:s(e=>e.modal),nested:s(e=>e.nested),nestedOpenDialogCount:s(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:s(e=>e.nestedOpenDrawerCount),disablePointerDismissal:s(e=>e.disablePointerDismissal),openMethod:s(e=>e.openMethod),descriptionElementId:s(e=>e.descriptionElementId),titleElementId:s(e=>e.titleElementId),viewportElement:s(e=>e.viewportElement),role:s(e=>e.role)};class z extends xe{constructor(t,n,i=!1){const l=new Y,u=Ye(t);u.floatingRootContext=be(l,n,i),super(u,{popupRef:a.createRef(),backdropRef:a.createRef(),internalBackdropRef:a.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:l,onOpenChange:void 0,onOpenChangeComplete:void 0},Ge)}setOpen=(t,n)=>{if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!t&&n.trigger==null&&this.state.activeTriggerId!=null&&(n.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(t,n),n.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(t,n);const i={open:t};Re(i,t,n.trigger),this.update(i)};static useStore(t,n){return he(t,(l,u)=>new z(n,l,u),!0).store}}function Ye(e={}){return{...we(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}function qe(e,t="dialog"){const{children:n,open:i,defaultOpen:l=!1,onOpenChange:u,onOpenChangeComplete:r,disablePointerDismissal:d=!1,modal:c=!0,actionsRef:o,handle:x,triggerId:C,defaultTriggerId:S=null}=e,g=t==="drawer",f=t==="alert-dialog",h=f?!0:c,O=f||d,E=f?"alertdialog":"dialog",m=I(!0),P={modal:h,disablePointerDismissal:O,nested:!!m,role:E},p=z.useStore(x?.store,{open:l,openProp:i,activeTriggerId:S,triggerIdProp:C,...P});Oe(()=>{const D=i===void 0&&p.state.open===!1&&l===!0?{open:!0,activeTriggerId:S}:null;f?p.update(D?{...P,...D}:P):D&&p.update(D)}),p.useControlledProp("openProp",i),p.useControlledProp("triggerIdProp",C),p.useSyncedValues(P),p.useContextCallback("onOpenChange",u),p.useContextCallback("onOpenChangeComplete",r);const v=p.useState("open"),w=p.useState("mounted"),b=p.useState("payload"),k=We({store:p,actionsRef:o,parentContext:m?.store.context,isDrawer:g}),M=v||w,N=a.useMemo(()=>({store:p}),[p]);return R.jsx(Q.Provider,{value:!1,children:R.jsxs(X.Provider,{value:N,children:[M&&R.jsx(Ae,{store:p,dialogRoot:k}),typeof n=="function"?n({payload:b}):n]})})}function He(e){const t=a.useContext(Q)?"drawer":"dialog";return qe(e,t)}const Je=a.forwardRef(function(t,n){const{render:i,className:l,style:u,id:r,...d}=t,{store:c}=I(),o=_(r);return c.useSyncedValueWithCleanup("titleElementId",o),T("h2",t,{ref:n,props:[{id:o},d]})}),$e=a.forwardRef(function(t,n){const{render:i,className:l,style:u,disabled:r=!1,nativeButton:d=!0,id:c,payload:o,handle:x,...C}=t,S=I(!0),g=x?.store??S?.store;if(!g)throw new Error(V(79));const f=_(c),h=g.useState("floatingRootContext"),O=g.useState("isOpenedByTrigger",f),E=g.useState("triggerPopupId",f),m=a.useRef(null),{registerTrigger:y,isMountedByThisTrigger:P}=Ee(f,m,g,{payload:o}),{getButtonProps:p,buttonRef:v}=W({disabled:r,native:d}),w=ye(h,{enabled:h!=null}),b=Ie(()=>g.select("open"),N=>{g.set("openMethod",N)}),k={disabled:r,open:O},M=g.useState("triggerProps",P);return T("button",t,{state:k,ref:[v,n,y,m],props:[w.reference,M,b,{[De]:"",id:f,"aria-haspopup":"dialog","aria-expanded":O,"aria-controls":E},C,p],stateAttributesMapping:Te})});function Qe(e){return R.jsxs(Le,{children:[R.jsx(Be,{className:"fixed inset-0 z-40 bg-black/60 transition-opacity duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0"}),R.jsx(ze,{className:te("fixed left-1/2 top-1/2 z-50 w-[calc(100vw-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 border border-border bg-surface p-6 shadow-lg outline-none transition-opacity duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",e.className),children:e.children})]})}function Xe(e){return R.jsx(Je,{className:"text-heading-20 text-foreground",...e})}function Ze(e){return R.jsx(je,{className:"mt-1 text-copy-14 text-foreground-secondary",...e})}const st={Close:Fe,Description:Ze,Popup:Qe,Root:He,Title:Xe,Trigger:$e};export{st as D};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/early-access-BczUYE-z.js': { content: 'import{r as d,a5 as m,a6 as u,j as e,V as i,a7 as x}from"./index-DetZ1d0r.js";import{F as g,I as f}from"./Input-3nKp-F7T.js";import{P as y,C as p,N as l}from"./Page-CXChQl7o.js";import{D as a}from"./Dialog-BUpC5JqE.js";import{d as j}from"./format-Dy1GQ0to.js";import{P as h,T as b}from"./trash-2-DmnQRcCN.js";import"./useValueChanged-CTPdEny_.js";import"./useScrollLock-DC_n164h.js";function S(){const[t,r]=d.useState(!1),n=m.useQuery(),s=u.useMutation();return e.jsx(a.Root,{onOpenChange:r,open:t,children:e.jsxs(y,{title:"Early Access",description:"Accounts whose new organizations receive early access features by default.",action:e.jsx(a.Trigger,{render:e.jsxs(i,{variant:"primary",children:[e.jsx(h,{className:"size-4"}),"Add entry"]})}),children:[e.jsx(N,{entries:n.data?.data??[],error:n.error,loading:n.isPending}),e.jsx(a.Popup,{children:e.jsx(v,{onSubmit:o=>s.mutate(o,{onError:c=>alert(c.message),onSuccess:()=>r(!1)}),pending:s.isPending})})]})})}function v(t){function r(n){n.preventDefault();const s=new FormData(n.currentTarget).get("entry");typeof s!="string"||!s.trim()||t.onSubmit({entry:s.trim()})}return e.jsxs(e.Fragment,{children:[e.jsx(a.Title,{children:"Add Entry"}),e.jsx(a.Description,{children:"Grant early access features to new organizations created by a whole domain or a single email"}),e.jsxs("form",{className:"mt-6 flex flex-col gap-8",onSubmit:r,children:[e.jsx(g,{className:"gap-6",variant:"default",children:e.jsx(f,{autoComplete:"off",label:"Domain or email",name:"entry",placeholder:"example.org or user@example.org",required:!0,spellCheck:!1})}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(a.Close,{render:e.jsx(i,{type:"button",children:"Cancel"})}),e.jsx(i,{loading:t.pending,type:"submit",variant:"primary",children:"Add entry"})]})]})]})}function N(t){return e.jsx(p,{children:t.loading?e.jsx(l,{children:"Loading entries…"}):t.error?e.jsx(l,{children:t.error.message}):t.entries.length===0?e.jsx(l,{children:"No entries yet."}):e.jsx("ul",{className:"divide-y divide-border",children:t.entries.map(r=>e.jsx(E,{entry:r},r.entry))})})}function E(t){const{entry:r}=t,n=x.useMutation();function s(){confirm(`Remove ${r.entry}? Future organizations created by matching users start without early access features. Existing organizations keep their enabled billing sources.`)&&n.mutate({entry:r.entry},{onError:o=>alert(o.message)})}return e.jsxs("li",{className:"flex items-center justify-between gap-4 px-5 py-2.5",children:[e.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[e.jsx("span",{className:"truncate text-label-14 text-foreground",children:r.entry}),e.jsxs("span",{className:"text-label-12 text-foreground-secondary",children:["Added by ",r.createdBy," · ",j(r.createdAt)]})]}),e.jsx(i.Icon,{className:"text-foreground-secondary hover:text-negative",disabled:n.isPending,onClick:s,size:"lg",title:"Remove entry",variant:"plain",children:e.jsx(b,{})})]})}export{S as component};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/earn.vaults_._vaultId.edit-oAvIOenh.js': { content: 'import{aK as d,P as h,ay as b,aI as f,aJ as x,j as e,aB as g,V as j,aL as k}from"./index-DetZ1d0r.js";import{u as T}from"./useSuspenseQuery-BRwpEaa4.js";import{I as r,F as I}from"./Input-3nKp-F7T.js";import{E as o}from"./EarnVaultForm-DDi1053v.js";import{P as y}from"./Page-CXChQl7o.js";import"./Select-DnF193sj.js";import"./useValueChanged-CTPdEny_.js";import"./useScrollLock-DC_n164h.js";import"./FormContext-BdJHfunf.js";import"./triangle-alert-B8wLicNU.js";function N(){const{vaultId:a}=d.useParams(),s=d.useSearch(),n=h({from:d.fullPath}),l=s.chainId??b,t=T(f.options({chainId:l,vaultId:a})).data,i=x.useMutation();function m(p){p.preventDefault();const v=P(new FormData(p.currentTarget),{chainId:l,vault:t});i.mutate(v,{onSuccess:()=>{n({search:{chainId:l},to:"/earn/vaults"})}})}return e.jsx(y,{title:"Edit vault",description:"Update the curated verified vault details.",children:e.jsxs(o,{action:e.jsx(j,{loading:i.isPending,type:"submit",variant:"primary",children:"Save changes"}),chainId:l,error:i.error?.message,onChange:i.reset,onSubmit:m,children:[e.jsx(r,{disabled:!0,label:"Chain",value:S(l)}),e.jsx(r,{disabled:!0,label:"Address",value:t.vaultAddress}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("div",{className:"w-32 shrink-0",children:e.jsx(r,{disabled:!0,label:"Asset token",value:t.assetToken.symbol})}),e.jsx("div",{className:"flex-1",children:e.jsx(r,{defaultValue:t.label,label:"Label",name:"label",placeholder:t.shareToken.name,required:!0})})]}),e.jsxs(I.Inline,{children:[e.jsx(r,{disabled:!0,label:"Share token",value:t.shareToken.symbol}),e.jsx(r,{disabled:!0,label:"Engine",value:t.engine.type?g(t.engine.type):"Unknown"})]}),e.jsx(r,{autoCapitalize:"off",defaultValue:t.slug??void 0,label:"Slug",name:"slug",pattern:"[a-z0-9]+(?:-[a-z0-9]+)*",placeholder:"lowercase-kebab-case",required:!0}),e.jsx(o.Textarea,{defaultValue:t.description??void 0,label:"Description",name:"description",placeholder:"Describe this vault.",rows:3}),e.jsx(o.Textarea,{defaultValue:t.zone?.inputTokens.join(`\n`),label:"Private input tokens",name:"privateInputTokens",placeholder:"One token address per line",rows:3}),e.jsx(o.Textarea,{defaultValue:t.zone?.outputTokens.join(`\n`),label:"Private output tokens",name:"privateOutputTokens",placeholder:"One token address per line",rows:3})]})})}function P(a,s){const n=u(a,"slug");return{chainId:s.chainId,description:u(a,"description")||null,label:u(a,"label"),privateInputTokens:c(a,"privateInputTokens"),privateOutputTokens:c(a,"privateOutputTokens"),...n?{slug:n}:{},vaultAddress:s.vault.vaultAddress}}function c(a,s){return u(a,s).split(/[\\s,]+/).filter(Boolean)}function S(a){return k.find(s=>s.id===a)?.label??String(a)}function u(a,s){const n=a.get(s);return typeof n=="string"?n.trim():""}export{N as component};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/earn.vaults_.new-o-JN2vrj.js': { content: 'import{aH as c,P as b,ay as g,r as j,X as k,u as I,aI as T,aJ as y,j as e,aB as $,V as w}from"./index-DetZ1d0r.js";import{I as i,F as A}from"./Input-3nKp-F7T.js";import{E as r}from"./EarnVaultForm-DDi1053v.js";import{P as V}from"./Page-CXChQl7o.js";import"./Select-DnF193sj.js";import"./useValueChanged-CTPdEny_.js";import"./useScrollLock-DC_n164h.js";import"./FormContext-BdJHfunf.js";import"./triangle-alert-B8wLicNU.js";function q(){const s=c.useSearch(),n=b({from:c.fullPath}),t=s.chainId??g,[o,h]=j.useState(""),p=k(o),a=I(T.options({chainId:t,vaultId:o},{enabled:p})),d=y.useMutation();function m(l){if(l.preventDefault(),!a.data)return;const x=E(new FormData(l.currentTarget),{chainId:t,vault:a.data});d.mutate(x,{onError:f=>alert(f.message),onSuccess:()=>{n({search:{chainId:t},to:"/earn/vaults"})}})}return e.jsx(V,{title:"Add vault",description:"Add a vault to the curated verified vault list.",children:e.jsxs(r,{action:e.jsx(w,{disabled:!a.data,loading:d.isPending,type:"submit",variant:"primary",children:"Add vault"}),chainId:t,onChange:d.reset,onSubmit:m,children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("span",{className:"text-label-13 text-foreground-secondary",children:"Chain"}),e.jsx(r.ChainSelect,{className:"w-full",onChange:l=>{d.reset(),n({replace:!0,search:{chainId:l},to:"/earn/vaults/new"})},value:t})]}),e.jsx(r.AddressInput,{error:o&&!p?"Enter a valid address":a.isError?"Vault not found":!1,label:"Address",onChange:l=>h(l.target.value.trim()),required:!0,value:o}),a.data?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx("div",{className:"w-32 shrink-0",children:e.jsx(i,{disabled:!0,label:"Asset token",value:a.data.assetToken.symbol})}),e.jsx("div",{className:"flex-1",children:e.jsx(i,{defaultValue:a.data.label,label:"Label",name:"label",placeholder:a.data.shareToken.name,required:!0},`${t}-${a.data.id}-label`)})]}),e.jsxs(A.Inline,{children:[e.jsx(i,{disabled:!0,label:"Share token",value:a.data.shareToken.symbol}),e.jsx(i,{disabled:!0,label:"Engine",value:a.data.engine.type?$(a.data.engine.type):"Unknown"})]}),e.jsx(i,{autoCapitalize:"off",label:"Slug (optional)",name:"slug",pattern:"[a-z0-9]+(?:-[a-z0-9]+)*",placeholder:"Generated from the label when left blank"}),e.jsx(r.Textarea,{defaultValue:a.data.description??void 0,label:"Description",name:"description",placeholder:"Describe this vault.",rows:3},`${t}-${a.data.id}-description`),e.jsx(r.Textarea,{defaultValue:a.data.zone?.inputTokens.join(`\n`),label:"Private input tokens",name:"privateInputTokens",placeholder:"One token address per line",rows:3},`${t}-${a.data.id}-private-input-tokens`),e.jsx(r.Textarea,{defaultValue:a.data.zone?.outputTokens.join(`\n`),label:"Private output tokens",name:"privateOutputTokens",placeholder:"One token address per line",rows:3},`${t}-${a.data.id}-private-output-tokens`)]}):null]})})}function E(s,n){const t=u(s,"slug");return{chainId:n.chainId,description:u(s,"description")||null,label:u(s,"label"),privateInputTokens:v(s,"privateInputTokens"),privateOutputTokens:v(s,"privateOutputTokens"),...t?{slug:t}:{},vaultAddress:n.vault.vaultAddress}}function v(s,n){return u(s,n).split(/[\\s,]+/).filter(Boolean)}function u(s,n){const t=s.get(n);return typeof t=="string"?t.trim():""}export{q as component};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/earn.vaults-C4Ac0KQP.js': { content: 'import{j as e,c as v,ax as p,P as y,ay as k,az as w,V as c,a4 as b,r as C,aA as P,aB as z,Z as h,Y as f}from"./index-DetZ1d0r.js";import{u as E}from"./useSuspenseInfiniteQuery-BqhMYNDJ.js";import{u as I,C as R,a as A}from"./clipboard-DHXvtInv.js";import{R as m,C as $}from"./Rows-Cud9pG1r.js";import{E as T}from"./EarnVaultForm-DDi1053v.js";import{P as F,C as S,N as V}from"./Page-CXChQl7o.js";import{P as L,T as D}from"./trash-2-DmnQRcCN.js";import{E as M}from"./external-link-DPaXQLgQ.js";import{P as B}from"./pencil-BiAyQW3i.js";import"./Input-3nKp-F7T.js";import"./Select-DnF193sj.js";import"./useValueChanged-CTPdEny_.js";import"./useScrollLock-DC_n164h.js";import"./FormContext-BdJHfunf.js";import"./triangle-alert-B8wLicNU.js";function x(a){const{children:s,className:t,dot:l=!1,icon:o,intent:r="neutral",...u}=a;return e.jsxs("span",{className:v("inline-flex min-w-0 items-center gap-[4px] whitespace-nowrap rounded-button px-[6px] py-[2px] label-12",x.intentClassName[r],t),...u,children:[o?e.jsx("span",{className:"flex size-[12px] shrink-0 items-center justify-center [&>svg]:size-[12px]",children:o}):l?e.jsx("span",{"aria-hidden":"true",className:"size-[6px] shrink-0 rounded-full bg-current"}):null,e.jsx("span",{className:"min-w-0 overflow-hidden text-ellipsis",children:s})]})}(a=>{a.intentClassName={accent:"bg-accent-subtle text-on-accent-subtle",info:"bg-info-subtle text-info",negative:"bg-negative-subtle text-negative",neutral:"bg-secondary text-foreground-secondary",positive:"bg-positive-subtle text-positive",warning:"bg-warning-subtle text-warning"}})(x||(x={}));const Z={[f.id]:f.blockExplorers.default.url,[h.id]:h.blockExplorers.default.url};function re(){const a=p.useSearch(),s=y({from:p.fullPath}),t=a.chainId??k,l=E(w.options({chainId:t})),o=l.data.pages.flatMap(r=>r.data);return e.jsxs(F,{title:"Earn Vaults",description:"Manage verified Earn vaults and inspect their live contracts.",action:e.jsxs(e.Fragment,{children:[e.jsx(T.ChainSelect,{onChange:r=>{s({search:{chainId:r},to:"/earn/vaults"})},value:t}),e.jsxs(c,{render:e.jsx(b,{search:{chainId:t},to:"/earn/vaults/new"}),variant:"primary",children:[e.jsx(L,{className:"size-4"}),"Add vault"]})]}),children:[e.jsx(K,{chainId:t,vaults:o}),l.isFetchNextPageError?e.jsxs("div",{className:"flex items-center justify-center gap-3 text-copy-14 text-negative",role:"alert",children:[e.jsx("span",{children:l.error?.message??"Failed to load more Earn vaults."}),e.jsx(c,{onClick:()=>l.fetchNextPage(),children:"Retry"})]}):l.hasNextPage?e.jsx(c,{className:"self-center",loading:l.isFetchingNextPage,onClick:()=>l.fetchNextPage(),children:"Load more"}):null]})}function K(a){return e.jsx(S,{children:a.vaults.length===0?e.jsx(V,{children:"No verified Earn vaults on this chain."}):e.jsx(m,{variant:"surface",children:a.vaults.map(s=>e.jsx(O,{chainId:a.chainId,vault:s},s.id))})})}function O(a){const{vault:s}=a,[t,l]=C.useState(!1),o=P.useMutation(),r=Q.filter(i=>s.capabilities[i.name]);function u(){confirm(`Remove ${s.label} from verified vaults? It will remain discoverable by address.`)&&o.mutate({chainId:a.chainId,vaultId:s.vaultAddress},{onError:i=>alert(i.message)})}return e.jsxs(e.Fragment,{children:[e.jsxs(m.Row,{className:"min-h-[44px] py-2",onClick:()=>l(i=>!i),style:{height:"auto"},children:[e.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[e.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[e.jsx("span",{className:"truncate text-label-14 text-foreground",children:s.label}),s.engine.type?e.jsx(x,{children:z(s.engine.type)}):null]}),e.jsxs("span",{className:"truncate text-label-12 text-foreground-secondary",children:[s.assetToken.symbol," → ",s.shareToken.symbol]})]}),e.jsx("code",{className:"shrink-0 text-label-12 text-foreground-secondary max-sm:hidden",children:N(s.vaultAddress)}),e.jsx($,{"aria-hidden":!0,className:"size-4 shrink-0 text-foreground-secondary opacity-70 transition-transform data-[open]:rotate-90","data-open":t?"":void 0})]}),t?e.jsxs(m.Panel,{children:[e.jsxs("dl",{className:"flex flex-wrap gap-x-10 gap-y-4 px-5 py-4",children:[s.description?e.jsx(n,{className:"w-full",label:"Description",children:s.description}):null,e.jsx(n,{label:"Vault address",children:e.jsx(d,{value:s.vaultAddress})}),e.jsx(n,{label:"Slug",children:s.slug??"—"}),e.jsx(n,{label:"Asset token",children:e.jsx(g,{token:s.assetToken})}),e.jsx(n,{label:"Share token",children:e.jsx(g,{token:s.shareToken})}),e.jsx(n,{label:"Engine",children:e.jsx(d,{value:s.engine.address})}),e.jsx(n,{label:"Venue",children:s.engine.venue?e.jsx(d,{value:s.engine.venue}):"—"}),e.jsx(n,{label:"Access",children:s.access.status==="open"?"Open":"Allowlisted"}),e.jsx(n,{label:"Private Zone",children:s.zone?`${s.zone.name} (${s.zone.chainId})`:"—"}),s.zone?e.jsxs(e.Fragment,{children:[e.jsx(n,{className:"w-full",label:"Private input tokens",children:e.jsx(j,{addresses:s.zone.inputTokens})}),e.jsx(n,{className:"w-full",label:"Private output tokens",children:e.jsx(j,{addresses:s.zone.outputTokens})})]}):null,e.jsx(n,{className:"w-full",label:"Capabilities",children:r.length===0?"—":e.jsx("span",{className:"flex flex-wrap gap-x-3 gap-y-1",children:r.map(i=>e.jsx("span",{className:"text-label-13 text-foreground",children:i.label},i.name))})})]}),e.jsxs("div",{className:"flex items-center justify-end gap-2 border-t border-border px-5 py-3",children:[e.jsxs("a",{className:"mr-auto flex items-center gap-1.5 text-label-12 text-foreground-secondary hover:text-foreground",href:`${Z[a.chainId]}/address/${s.vaultAddress}`,rel:"noreferrer",target:"_blank",children:["Explorer",e.jsx(M,{className:"size-3"})]}),e.jsxs(c,{render:e.jsx(b,{params:{vaultId:s.vaultAddress},search:{chainId:a.chainId},to:"/earn/vaults/$vaultId/edit"}),size:"small",children:[e.jsx(B,{className:"size-4"}),"Edit"]}),e.jsxs(c,{loading:o.isPending,onClick:u,size:"small",variant:"negative",children:[e.jsx(D,{className:"size-4"}),"Remove"]})]})]}):null]})}function n(a){return e.jsxs("div",{className:v("flex min-w-0 flex-col gap-1",a.className),children:[e.jsx("dt",{className:"text-label-12 text-foreground-secondary",children:a.label}),e.jsx("dd",{className:"min-w-0 text-label-13 text-foreground",children:a.children})]})}function g(a){return e.jsxs("span",{className:"flex flex-col gap-0.5",children:[e.jsxs("span",{children:[a.token.name," (",a.token.symbol,")"]}),e.jsx(d,{value:a.token.address})]})}function j(a){return e.jsx("span",{className:"flex flex-wrap gap-x-3 gap-y-1",children:a.addresses.map(s=>e.jsx(d,{value:s},s))})}function d(a){const{copy:s,notifying:t}=I();return e.jsxs("button",{"aria-label":`Copy ${a.value}`,className:"flex w-fit cursor-pointer items-center gap-1.5 font-mono text-label-12 text-foreground-secondary hover:text-foreground",onClick:()=>s(a.value),title:"Copy address",type:"button",children:[N(a.value),t?e.jsx(R,{className:"size-3"}):e.jsx(A,{className:"size-3"})]})}function N(a){return`${a.slice(0,6)}…${a.slice(-6)}`}const Q=[{label:"Deposits",name:"deposit"},{label:"In-kind deposits",name:"inKindDeposit"},{label:"Redemptions",name:"redeem"},{label:"Bounded redemptions",name:"boundedRedeem"},{label:"Exact withdrawals",name:"exactWithdraw"},{label:"Asynchronous redemptions",name:"asyncRedeem"},{label:"Private routing",name:"privateRouting"},{label:"Router swaps",name:"routerSwaps"}];export{re as component};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/EarnVaultForm-DDi1053v.js': { content: 'import{j as e,V as d,a4 as i,aL as x}from"./index-DetZ1d0r.js";import{F as u,I as f}from"./Input-3nKp-F7T.js";import{S as h}from"./Select-DnF193sj.js";import{T as m}from"./triangle-alert-B8wLicNU.js";function s(r){return e.jsxs("form",{className:"flex w-full max-w-2xl flex-col border border-border bg-surface",onChange:r.onChange,onSubmit:r.onSubmit,children:[e.jsxs("div",{className:"flex flex-col gap-5 p-5",children:[e.jsx(u,{className:"gap-6",variant:"default",children:r.children}),r.error?e.jsx(s.Error,{children:r.error}):null]}),e.jsxs("div",{className:"flex justify-end gap-2 border-t border-border px-5 py-3",children:[e.jsx(d,{render:e.jsx(i,{search:{chainId:r.chainId},to:"/earn/vaults"}),children:"Cancel"}),r.action]})]})}(r=>{function n(a){return e.jsx(f,{...a,autoCapitalize:"off",autoComplete:"off",pattern:"0x[a-fA-F0-9]{40}",placeholder:a.placeholder??"0x…",spellCheck:!1})}r.AddressInput=n;function t(a){return e.jsx(h,{"aria-label":"Earn vault chain",className:a.className,items:x.map(l=>({label:l.label,value:String(l.id)})),onChange:l=>a.onChange(Number(l)),value:String(a.value)})}r.ChainSelect=t;function o(a){return e.jsxs("div",{className:"flex items-start gap-3 border border-negative bg-negative-subtle p-3 text-copy-13 text-negative",role:"alert",children:[e.jsx(m,{className:"mt-0.5 size-4 shrink-0"}),e.jsx("p",{className:"whitespace-pre-line",children:a.children})]})}r.Error=o;function c({label:a,...l}){return e.jsxs("label",{className:"flex min-w-0 flex-col gap-2 text-label-13 text-foreground-secondary",children:[a,e.jsx("textarea",{...l,className:"w-full resize-y rounded-body border-2 border-transparent bg-secondary px-3 py-2.5 text-copy-13 text-foreground outline-none placeholder:text-foreground-secondary/50 hover:bg-secondary-hover focus-visible:border-focus focus-visible:bg-secondary-hover"})]})}r.Textarea=c})(s||(s={}));export{s as E};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/external-link-DPaXQLgQ.js': { content: 'import{a8 as a}from"./index-DetZ1d0r.js";const e=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],n=a("external-link",e);export{n as E};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/format-Dy1GQ0to.js': { content: 'function t(e){return new Date(e).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"})}function n(e){return new Intl.DateTimeFormat("en",{dateStyle:"medium"}).format(new Date(e))}export{t as d,n as m};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/FormContext-BdJHfunf.js': { content: 'import{r as s}from"./index-DetZ1d0r.js";import{N as n,f as R,E as T,u as b,a as C,o as x,c as p,p as h}from"./useValueChanged-CTPdEny_.js";let g=(function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const y={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},I={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},L={disabled:!1,...I},w={valid(e){return e===null?null:e?{[g.valid]:""}:{[g.invalid]:""}}},S={invalid:void 0,name:void 0,validityData:{state:y,errors:[],error:"",value:"",initialValue:null},setValidityData:n,disabled:void 0,touched:I.touched,setTouched:n,dirty:I.dirty,setDirty:n,filled:I.filled,setFilled:n,focused:I.focused,setFocused:n,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:L,markedDirtyRef:{current:!1},registerFieldControl:n,validation:{getValidationProps:(e=T)=>e,getInputValidationProps:(e=T)=>e,inputRef:{current:null},commit:async()=>{}}},_=s.createContext(S);function M(e=!0){const t=s.useContext(_);if(t.setValidityData===n&&!e)throw new Error(R(28));return t}const F=s.createContext({controlId:void 0,registerControlId:n,labelId:void 0,setLabelId:n,messageIds:[],setMessageIds:n,getDescriptionProps:e=>e});function V(){return s.useContext(F)}function P(e={}){const{id:t,implicit:i=!1,controlRef:u}=e,{controlId:l,registerControlId:r}=V(),a=b(t),o=i?l:void 0,d=C(()=>Symbol("labelable-control")),f=s.useRef(!1),v=s.useRef(t!=null),m=x(()=>{!f.current||r===n||(f.current=!1,r(d.current,void 0))});return p(()=>{if(r===n)return;let c;if(i){const E=u?.current;h(E)&&E.closest("label")!=null?c=t??null:c=o??a}else if(t!=null)v.current=!0,c=t;else if(v.current)c=a;else{m();return}if(c===void 0){m();return}f.current=!0,r(d.current,c)},[t,u,o,r,i,a,d,m]),s.useEffect(()=>m,[m]),l??a}function A({controlled:e,default:t,name:i,state:u="value"}){const{current:l}=s.useRef(e!==void 0),[r,a]=s.useState(t),o=l?e:r,d=s.useCallback(f=>{l||a(f)},[]);return[o,d]}function k(e,t,i,u,l=!0){const{registerFieldControl:r}=M(),a=s.useRef(null);a.current||(a.current=Symbol()),p(()=>{const o=a.current;return!o||!l?void 0:(r(o,{controlRef:e,getValue:u,id:t,value:i}),()=>{r(o,void 0)})},[e,l,u,t,r,i])}const D=s.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:n,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function B(){return s.useContext(D)}export{M as a,V as b,A as c,k as d,P as e,w as f,B as u};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/index-DetZ1d0r.js': { content: 'const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./verified-tokens-Br5iLeNp.js","./Input-3nKp-F7T.js","./clipboard-DHXvtInv.js","./Select-DnF193sj.js","./useValueChanged-CTPdEny_.js","./useScrollLock-DC_n164h.js","./FormContext-BdJHfunf.js","./Page-CXChQl7o.js","./Checkbox-DRTNsWbJ.js","./useAriaLabelledBy-uECG1FTb.js","./Dialog-BUpC5JqE.js","./trash-2-DmnQRcCN.js","./external-link-DPaXQLgQ.js","./organizations-DFRZ-wln.js","./organizations-BJNHGVKM.js","./useSuspenseInfiniteQuery-BqhMYNDJ.js","./Rows-Cud9pG1r.js","./format-Dy1GQ0to.js","./search-eQU6ap2m.js","./early-access-BczUYE-z.js","./api-keys-BPzJGciF.js","./refresh-cw-DrqSvGhU.js","./pencil-BiAyQW3i.js","./triangle-alert-B8wLicNU.js","./organizations_._orgId-BPXaZlm4.js","./SwitchThumb-Cg2L3acw.js","./organizations_._orgId-rZ8CDnaB.js","./useSuspenseQuery-BRwpEaa4.js","./earn.vaults-C4Ac0KQP.js","./EarnVaultForm-DDi1053v.js","./earn.vaults_.new-o-JN2vrj.js","./earn.vaults_._vaultId.edit-oAvIOenh.js"])))=>i.map(i=>d[i]);\nfunction YA(e,t){for(var n=0;ni[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Bw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cp={exports:{}},zu={};var $6;function XA(){if($6)return zu;$6=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,s,u){var l=null;if(u!==void 0&&(l=""+u),s.key!==void 0&&(l=""+s.key),"key"in s){u={};for(var f in s)f!=="key"&&(u[f]=s[f])}else u=s;return s=u.ref,{$$typeof:e,type:i,key:l,ref:s!==void 0?s:null,props:u}}return zu.Fragment=t,zu.jsx=n,zu.jsxs=n,zu}var k6;function JA(){return k6||(k6=1,cp.exports=XA()),cp.exports}var F=JA(),lp={exports:{}},ve={};var N6;function WA(){if(N6)return ve;N6=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),g=Symbol.iterator;function v($){return $===null||typeof $!="object"?null:($=g&&$[g]||$["@@iterator"],typeof $=="function"?$:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function _($,Z,se){this.props=$,this.context=Z,this.refs=E,this.updater=se||x}_.prototype.isReactComponent={},_.prototype.setState=function($,Z){if(typeof $!="object"&&typeof $!="function"&&$!=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,$,Z,"setState")},_.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function O(){}O.prototype=_.prototype;function M($,Z,se){this.props=$,this.context=Z,this.refs=E,this.updater=se||x}var R=M.prototype=new O;R.constructor=M,S(R,_.prototype),R.isPureReactComponent=!0;var z=Array.isArray;function I(){}var C={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function L($,Z,se){var ae=se.ref;return{$$typeof:e,type:$,key:Z,ref:ae!==void 0?ae:null,props:se}}function D($,Z){return L($.type,Z,$.props)}function K($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function J($){var Z={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(se){return Z[se]})}var te=/\\/+/g;function ue($,Z){return typeof $=="object"&&$!==null&&$.key!=null?J(""+$.key):Z.toString(36)}function X($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(I,I):($.status="pending",$.then(function(Z){$.status==="pending"&&($.status="fulfilled",$.value=Z)},function(Z){$.status==="pending"&&($.status="rejected",$.reason=Z)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function N($,Z,se,ae,le){var ge=typeof $;(ge==="undefined"||ge==="boolean")&&($=null);var we=!1;if($===null)we=!0;else switch(ge){case"bigint":case"string":case"number":we=!0;break;case"object":switch($.$$typeof){case e:case t:we=!0;break;case m:return we=$._init,N(we($._payload),Z,se,ae,le)}}if(we)return le=le($),we=ae===""?"."+ue($,0):ae,z(le)?(se="",we!=null&&(se=we.replace(te,"$&/")+"/"),N(le,Z,se,"",function(zt){return zt})):le!=null&&(K(le)&&(le=D(le,se+(le.key==null||$&&$.key===le.key?"":(""+le.key).replace(te,"$&/")+"/")+we)),Z.push(le)),1;we=0;var Ve=ae===""?".":ae+":";if(z($))for(var ze=0;ze<$.length;ze++)ae=$[ze],ge=Ve+ue(ae,ze),we+=N(ae,Z,se,ge,le);else if(ze=v($),typeof ze=="function")for($=ze.call($),ze=0;!(ae=$.next()).done;)ae=ae.value,ge=Ve+ue(ae,ze++),we+=N(ae,Z,se,ge,le);else if(ge==="object"){if(typeof $.then=="function")return N(X($),Z,se,ae,le);throw Z=String($),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return we}function G($,Z,se){if($==null)return $;var ae=[],le=0;return N($,ae,"","",function(ge){return Z.call(se,ge,le++)}),ae}function ne($){if($._status===-1){var Z=$._result;Z=Z(),Z.then(function(se){($._status===0||$._status===-1)&&($._status=1,$._result=se)},function(se){($._status===0||$._status===-1)&&($._status=2,$._result=se)}),$._status===-1&&($._status=0,$._result=Z)}if($._status===1)return $._result.default;throw $._result}var ce=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},fe={map:G,forEach:function($,Z,se){G($,function(){Z.apply(this,arguments)},se)},count:function($){var Z=0;return G($,function(){Z++}),Z},toArray:function($){return G($,function(Z){return Z})||[]},only:function($){if(!K($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return ve.Activity=b,ve.Children=fe,ve.Component=_,ve.Fragment=n,ve.Profiler=s,ve.PureComponent=M,ve.StrictMode=i,ve.Suspense=d,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,ve.__COMPILER_RUNTIME={__proto__:null,c:function($){return C.H.useMemoCache($)}},ve.cache=function($){return function(){return $.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function($,Z,se){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var ae=S({},$.props),le=$.key;if(Z!=null)for(ge in Z.key!==void 0&&(le=""+Z.key),Z)!B.call(Z,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&Z.ref===void 0||(ae[ge]=Z[ge]);var ge=arguments.length-2;if(ge===1)ae.children=se;else if(1>>1,fe=N[ce];if(0>>1;ce<$;){var Z=2*(ce+1)-1,se=N[Z],ae=Z+1,le=N[ae];if(0>s(se,ne))aes(le,se)?(N[ce]=le,N[ae]=ne,ce=ae):(N[ce]=se,N[Z]=ne,ce=Z);else if(aes(le,ne))N[ce]=le,N[ae]=ne,ce=ae;else break e}}return G}function s(N,G){var ne=N.sortIndex-G.sortIndex;return ne!==0?ne:N.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var d=[],h=[],m=1,b=null,g=3,v=!1,x=!1,S=!1,E=!1,_=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function R(N){for(var G=n(h);G!==null;){if(G.callback===null)i(h);else if(G.startTime<=N)i(h),G.sortIndex=G.expirationTime,t(d,G);else break;G=n(h)}}function z(N){if(S=!1,R(N),!x)if(n(d)!==null)x=!0,I||(I=!0,J());else{var G=n(h);G!==null&&X(z,G.startTime-N)}}var I=!1,C=-1,B=5,L=-1;function D(){return E?!0:!(e.unstable_now()-LN&&D());){var ce=b.callback;if(typeof ce=="function"){b.callback=null,g=b.priorityLevel;var fe=ce(b.expirationTime<=N);if(N=e.unstable_now(),typeof fe=="function"){b.callback=fe,R(N),G=!0;break t}b===n(d)&&i(d),R(N)}else i(d);b=n(d)}if(b!==null)G=!0;else{var $=n(h);$!==null&&X(z,$.startTime-N),G=!1}}break e}finally{b=null,g=ne,v=!1}G=void 0}}finally{G?J():I=!1}}}var J;if(typeof M=="function")J=function(){M(K)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ue=te.port2;te.port1.onmessage=K,J=function(){ue.postMessage(null)}}else J=function(){_(K,0)};function X(N,G){C=_(function(){N(e.unstable_now())},G)}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(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125ce?(N.sortIndex=ne,t(h,N),n(d)===null&&N===n(h)&&(S?(O(C),C=-1):S=!0,X(z,ne-ce))):(N.sortIndex=fe,t(d,N),x||v||(x=!0,I||(I=!0,J()))),N},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(N){var G=g;return function(){var ne=g;g=G;try{return N.apply(this,arguments)}finally{g=ne}}}})(hp)),hp}var U6;function t9(){return U6||(U6=1,dp.exports=e9()),dp.exports}var pp={exports:{}},Pt={};var D6;function n9(){if(D6)return Pt;D6=1;var e=zc();function t(d){var h="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),pp.exports=n9(),pp.exports}var q6;function r9(){if(q6)return Ru;q6=1;var e=t9(),t=zc(),n=$w();function i(r){var a="https://react.dev/errors/"+r;if(1fe||(r.current=ce[fe],ce[fe]=null,fe--)}function se(r,a){fe++,ce[fe]=r.current,r.current=a}var ae=$(null),le=$(null),ge=$(null),we=$(null);function Ve(r,a){switch(se(ge,a),se(le,r),se(ae,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?i6(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=i6(a),r=a6(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Z(ae),se(ae,r)}function ze(){Z(ae),Z(le),Z(ge)}function zt(r){r.memoizedState!==null&&se(we,r);var a=ae.current,o=a6(a,r.type);a!==o&&(se(le,r),se(ae,o))}function on(r){le.current===r&&(Z(ae),Z(le)),we.current===r&&(Z(we),Au._currentValue=ne)}var Gt,un;function Rt(r){if(Gt===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\\n( *(at )?)/);Gt=a&&a[1]||"",un=-1)":-1p||k[c]!==q[p]){var Y=`\n`+k[c].replace(" at new "," at ");return r.displayName&&Y.includes("")&&(Y=Y.replace("",r.displayName)),Y}while(1<=c&&0<=p);break}}}finally{Sn=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Rt(o):""}function Gc(r,a){switch(r.tag){case 26:case 27:case 5:return Rt(r.type);case 16:return Rt("Lazy");case 13:return r.child!==a&&a!==null?Rt("Suspense Fallback"):Rt("Suspense");case 19:return Rt("SuspenseList");case 0:case 15:return cr(r.type,!1);case 11:return cr(r.type.render,!1);case 1:return cr(r.type,!0);case 31:return Rt("Activity");default:return""}}function lr(r){try{var a="",o=null;do a+=Gc(r,o),o=r,r=r.return;while(r);return a}catch(c){return`\nError generating stack: `+c.message+`\n`+c.stack}}var na=Object.prototype.hasOwnProperty,jn=e.unstable_scheduleCallback,$o=e.unstable_cancelCallback,Vc=e.unstable_shouldYield,Yd=e.unstable_requestPaint,Ct=e.unstable_now,Ge=e.unstable_getCurrentPriorityLevel,wt=e.unstable_ImmediatePriority,Qn=e.unstable_UserBlockingPriority,es=e.unstable_NormalPriority,PE=e.unstable_LowPriority,jb=e.unstable_IdlePriority,OE=e.log,IE=e.unstable_setDisableYieldValue,ko=null,cn=null;function Wr(r){if(typeof OE=="function"&&IE(r),cn&&typeof cn.setStrictMode=="function")try{cn.setStrictMode(ko,r)}catch{}}var ln=Math.clz32?Math.clz32:kE,BE=Math.log,$E=Math.LN2;function kE(r){return r>>>=0,r===0?32:31-(BE(r)/$E|0)|0}var Kc=256,Qc=262144,Zc=4194304;function ra(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Yc(r,a,o){var c=r.pendingLanes;if(c===0)return 0;var p=0,y=r.suspendedLanes,w=r.pingedLanes;r=r.warmLanes;var A=c&134217727;return A!==0?(c=A&~y,c!==0?p=ra(c):(w&=A,w!==0?p=ra(w):o||(o=A&~r,o!==0&&(p=ra(o))))):(A=c&~y,A!==0?p=ra(A):w!==0?p=ra(w):o||(o=c&~r,o!==0&&(p=ra(o)))),p===0?0:a!==0&&a!==p&&(a&y)===0&&(y=p&-p,o=a&-a,y>=o||y===32&&(o&4194048)!==0)?a:p}function No(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function NE(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lb(){var r=Zc;return Zc<<=1,(Zc&62914560)===0&&(Zc=4194304),r}function Xd(r){for(var a=[],o=0;31>o;o++)a.push(r);return a}function jo(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function jE(r,a,o,c,p,y){var w=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var A=r.entanglements,k=r.expirationTimes,q=r.hiddenUpdates;for(o=w&~o;0"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var FE=/[\\n"\\\\]/g;function An(r){return r.replace(FE,function(a){return"\\\\"+a.charCodeAt(0).toString(16)+" "})}function rh(r,a,o,c,p,y,w,A){r.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?r.type=w:r.removeAttribute("type"),a!=null?w==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+En(a)):r.value!==""+En(a)&&(r.value=""+En(a)):w!=="submit"&&w!=="reset"||r.removeAttribute("value"),a!=null?ih(r,w,En(a)):o!=null?ih(r,w,En(o)):c!=null&&r.removeAttribute("value"),p==null&&y!=null&&(r.defaultChecked=!!y),p!=null&&(r.checked=p&&typeof p!="function"&&typeof p!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?r.name=""+En(A):r.removeAttribute("name")}function Jb(r,a,o,c,p,y,w,A){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(r.type=y),a!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||a!=null)){nh(r);return}o=o!=null?""+En(o):"",a=a!=null?""+En(a):o,A||a===r.value||(r.value=a),r.defaultValue=a}c=c??p,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=A?r.checked:!!c,r.defaultChecked=!!c,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(r.name=w),nh(r)}function ih(r,a,o){a==="number"&&Wc(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function ss(r,a,o,c){if(r=r.options,a){a={};for(var p=0;p"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ch=!1;if(hr)try{var Ho={};Object.defineProperty(Ho,"passive",{get:function(){ch=!0}}),window.addEventListener("test",Ho,Ho),window.removeEventListener("test",Ho,Ho)}catch{ch=!1}var ti=null,lh=null,tl=null;function ag(){if(tl)return tl;var r,a=lh,o=a.length,c,p="value"in ti?ti.value:ti.textContent,y=p.length;for(r=0;r=Go),fg=" ",dg=!1;function hg(r,a){switch(r){case"keyup":return g4.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ls=!1;function w4(r,a){switch(r){case"compositionend":return pg(a);case"keypress":return a.which!==32?null:(dg=!0,fg);case"textInput":return r=a.data,r===fg&&dg?null:r;default:return null}}function x4(r,a){if(ls)return r==="compositionend"||!yh&&hg(r,a)?(r=ag(),tl=lh=ti=null,ls=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:o,offset:a-r};r=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Sg(o)}}function Ag(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Ag(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Tg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=Wc(r.document);a instanceof r.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)r=a.contentWindow;else break;a=Wc(r.document)}return a}function gh(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var R4=hr&&"documentMode"in document&&11>=document.documentMode,fs=null,vh=null,Zo=null,wh=!1;function _g(r,a,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;wh||fs==null||fs!==Wc(c)||(c=fs,"selectionStart"in c&&gh(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Zo&&Qo(Zo,c)||(Zo=c,c=Ql(vh,"onSelect"),0>=w,p-=w,Zn=1<<32-ln(a)+p|o<Se?(Me=pe,pe=null):Me=pe.sibling;var Pe=V(U,pe,H[Se],W);if(Pe===null){pe===null&&(pe=Me);break}r&&pe&&Pe.alternate===null&&a(U,pe),j=y(Pe,j,Se),Ce===null?me=Pe:Ce.sibling=Pe,Ce=Pe,pe=Me}if(Se===H.length)return o(U,pe),Re&&yr(U,Se),me;if(pe===null){for(;SeSe?(Me=pe,pe=null):Me=pe.sibling;var Ei=V(U,pe,Pe.value,W);if(Ei===null){pe===null&&(pe=Me);break}r&&pe&&Ei.alternate===null&&a(U,pe),j=y(Ei,j,Se),Ce===null?me=Ei:Ce.sibling=Ei,Ce=Ei,pe=Me}if(Pe.done)return o(U,pe),Re&&yr(U,Se),me;if(pe===null){for(;!Pe.done;Se++,Pe=H.next())Pe=ee(U,Pe.value,W),Pe!==null&&(j=y(Pe,j,Se),Ce===null?me=Pe:Ce.sibling=Pe,Ce=Pe);return Re&&yr(U,Se),me}for(pe=c(pe);!Pe.done;Se++,Pe=H.next())Pe=Q(pe,U,Se,Pe.value,W),Pe!==null&&(r&&Pe.alternate!==null&&pe.delete(Pe.key===null?Se:Pe.key),j=y(Pe,j,Se),Ce===null?me=Pe:Ce.sibling=Pe,Ce=Pe);return r&&pe.forEach(function(ZA){return a(U,ZA)}),Re&&yr(U,Se),me}function Ue(U,j,H,W){if(typeof H=="object"&&H!==null&&H.type===S&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case v:e:{for(var me=H.key;j!==null;){if(j.key===me){if(me=H.type,me===S){if(j.tag===7){o(U,j.sibling),W=p(j,H.props.children),W.return=U,U=W;break e}}else if(j.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===B&&pa(me)===j.type){o(U,j.sibling),W=p(j,H.props),tu(W,H),W.return=U,U=W;break e}o(U,j);break}else a(U,j);j=j.sibling}H.type===S?(W=ca(H.props.children,U.mode,W,H.key),W.return=U,U=W):(W=fl(H.type,H.key,H.props,null,U.mode,W),tu(W,H),W.return=U,U=W)}return w(U);case x:e:{for(me=H.key;j!==null;){if(j.key===me)if(j.tag===4&&j.stateNode.containerInfo===H.containerInfo&&j.stateNode.implementation===H.implementation){o(U,j.sibling),W=p(j,H.children||[]),W.return=U,U=W;break e}else{o(U,j);break}else a(U,j);j=j.sibling}W=Mh(H,U.mode,W),W.return=U,U=W}return w(U);case B:return H=pa(H),Ue(U,j,H,W)}if(X(H))return de(U,j,H,W);if(J(H)){if(me=J(H),typeof me!="function")throw Error(i(150));return H=me.call(H),be(U,j,H,W)}if(typeof H.then=="function")return Ue(U,j,gl(H),W);if(H.$$typeof===M)return Ue(U,j,pl(U,H),W);vl(U,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,j!==null&&j.tag===6?(o(U,j.sibling),W=p(j,H),W.return=U,U=W):(o(U,j),W=_h(H,U.mode,W),W.return=U,U=W),w(U)):o(U,j)}return function(U,j,H,W){try{eu=0;var me=Ue(U,j,H,W);return Ss=null,me}catch(pe){if(pe===xs||pe===ml)throw pe;var Ce=dn(29,pe,null,U.mode);return Ce.lanes=W,Ce.return=U,Ce}}}var ma=Zg(!0),Yg=Zg(!1),si=!1;function Lh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uh(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function oi(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ui(r,a,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Be&2)!==0){var p=c.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),c.pending=a,a=ll(r),Ig(r,null,o),a}return cl(r,c,a,o),ll(r)}function nu(r,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var c=a.lanes;c&=r.pendingLanes,o|=c,a.lanes=o,Db(r,o)}}function Dh(r,a){var o=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var p=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var w={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?p=y=w:y=y.next=w,o=o.next}while(o!==null);y===null?p=y=a:y=y.next=a}else p=y=a;o={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:c.shared,callbacks:c.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=a:r.next=a,o.lastBaseUpdate=a}var Hh=!1;function ru(){if(Hh){var r=ws;if(r!==null)throw r}}function iu(r,a,o,c){Hh=!1;var p=r.updateQueue;si=!1;var y=p.firstBaseUpdate,w=p.lastBaseUpdate,A=p.shared.pending;if(A!==null){p.shared.pending=null;var k=A,q=k.next;k.next=null,w===null?y=q:w.next=q,w=k;var Y=r.alternate;Y!==null&&(Y=Y.updateQueue,A=Y.lastBaseUpdate,A!==w&&(A===null?Y.firstBaseUpdate=q:A.next=q,Y.lastBaseUpdate=k))}if(y!==null){var ee=p.baseState;w=0,Y=q=k=null,A=y;do{var V=A.lane&-536870913,Q=V!==A.lane;if(Q?(_e&V)===V:(c&V)===V){V!==0&&V===vs&&(Hh=!0),Y!==null&&(Y=Y.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var de=r,be=A;V=a;var Ue=o;switch(be.tag){case 1:if(de=be.payload,typeof de=="function"){ee=de.call(Ue,ee,V);break e}ee=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=be.payload,V=typeof de=="function"?de.call(Ue,ee,V):de,V==null)break e;ee=b({},ee,V);break e;case 2:si=!0}}V=A.callback,V!==null&&(r.flags|=64,Q&&(r.flags|=8192),Q=p.callbacks,Q===null?p.callbacks=[V]:Q.push(V))}else Q={lane:V,tag:A.tag,payload:A.payload,callback:A.callback,next:null},Y===null?(q=Y=Q,k=ee):Y=Y.next=Q,w|=V;if(A=A.next,A===null){if(A=p.shared.pending,A===null)break;Q=A,A=Q.next,Q.next=null,p.lastBaseUpdate=Q,p.shared.pending=null}}while(!0);Y===null&&(k=ee),p.baseState=k,p.firstBaseUpdate=q,p.lastBaseUpdate=Y,y===null&&(p.shared.lanes=0),hi|=w,r.lanes=w,r.memoizedState=ee}}function Xg(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function Jg(r,a){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;ry?y:8;var w=N.T,A={};N.T=A,o0(r,!1,a,o);try{var k=p(),q=N.S;if(q!==null&&q(A,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var Y=j4(k,c);ou(r,a,Y,bn(r))}else ou(r,a,c,bn(r))}catch(ee){ou(r,a,{then:function(){},status:"rejected",reason:ee},bn())}finally{G.p=y,w!==null&&A.types!==null&&(w.types=A.types),N.T=w}}function F4(){}function a0(r,a,o,c){if(r.tag!==5)throw Error(i(476));var p=C1(r).queue;R1(r,p,a,ne,o===null?F4:function(){return P1(r),o(c)})}function C1(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vr,lastRenderedState:ne},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vr,lastRenderedState:o},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function P1(r){var a=C1(r);a.next===null&&(a=r.alternate.memoizedState),ou(r,a.next.queue,{},bn())}function s0(){return Et(Au)}function O1(){return rt().memoizedState}function I1(){return rt().memoizedState}function G4(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var o=bn();r=oi(o);var c=ui(a,r,o);c!==null&&(Jt(c,a,o),nu(c,a,o)),a={cache:$h()},r.payload=a;return}a=a.return}}function V4(r,a,o){var c=bn();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Rl(r)?$1(a,o):(o=Ah(r,a,o,c),o!==null&&(Jt(o,r,c),k1(o,a,c)))}function B1(r,a,o){var c=bn();ou(r,a,o,c)}function ou(r,a,o,c){var p={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Rl(r))$1(a,p);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=a.lastRenderedReducer,y!==null))try{var w=a.lastRenderedState,A=y(w,o);if(p.hasEagerState=!0,p.eagerState=A,fn(A,w))return cl(r,a,p,0),He===null&&ul(),!1}catch{}if(o=Ah(r,a,p,c),o!==null)return Jt(o,r,c),k1(o,a,c),!0}return!1}function o0(r,a,o,c){if(c={lane:2,revertLane:L0(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Rl(r)){if(a)throw Error(i(479))}else a=Ah(r,o,c,2),a!==null&&Jt(a,r,2)}function Rl(r){var a=r.alternate;return r===xe||a!==null&&a===xe}function $1(r,a){As=Sl=!0;var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}function k1(r,a,o){if((o&4194048)!==0){var c=a.lanes;c&=r.pendingLanes,o|=c,a.lanes=o,Db(r,o)}}var uu={readContext:Et,use:Tl,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};uu.useEffectEvent=Je;var N1={readContext:Et,use:Tl,useCallback:function(r,a){return $t().memoizedState=[r,a===void 0?null:a],r},useContext:Et,useEffect:w1,useImperativeHandle:function(r,a,o){o=o!=null?o.concat([r]):null,Ml(4194308,4,A1.bind(null,a,r),o)},useLayoutEffect:function(r,a){return Ml(4194308,4,r,a)},useInsertionEffect:function(r,a){Ml(4,2,r,a)},useMemo:function(r,a){var o=$t();a=a===void 0?null:a;var c=r();if(ba){Wr(!0);try{r()}finally{Wr(!1)}}return o.memoizedState=[c,a],c},useReducer:function(r,a,o){var c=$t();if(o!==void 0){var p=o(a);if(ba){Wr(!0);try{o(a)}finally{Wr(!1)}}}else p=a;return c.memoizedState=c.baseState=p,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:p},c.queue=r,r=r.dispatch=V4.bind(null,xe,r),[c.memoizedState,r]},useRef:function(r){var a=$t();return r={current:r},a.memoizedState=r},useState:function(r){r=e0(r);var a=r.queue,o=B1.bind(null,xe,a);return a.dispatch=o,[r.memoizedState,o]},useDebugValue:r0,useDeferredValue:function(r,a){var o=$t();return i0(o,r,a)},useTransition:function(){var r=e0(!1);return r=R1.bind(null,xe,r.queue,!0,!1),$t().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,o){var c=xe,p=$t();if(Re){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),He===null)throw Error(i(349));(_e&127)!==0||i1(c,a,o)}p.memoizedState=o;var y={value:o,getSnapshot:a};return p.queue=y,w1(s1.bind(null,c,y,r),[r]),c.flags|=2048,_s(9,{destroy:void 0},a1.bind(null,c,y,o,a),null),o},useId:function(){var r=$t(),a=He.identifierPrefix;if(Re){var o=Yn,c=Zn;o=(c&~(1<<32-ln(c)-1)).toString(32)+o,a="_"+a+"R_"+o,o=El++,0<\\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof c.is=="string"?w.createElement("select",{is:c.is}):w.createElement("select"),c.multiple?y.multiple=!0:c.size&&(y.size=c.size);break;default:y=typeof c.is=="string"?w.createElement(p,{is:c.is}):w.createElement(p)}}y[xt]=a,y[Vt]=c;e:for(w=a.child;w!==null;){if(w.tag===5||w.tag===6)y.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===a)break e;for(;w.sibling===null;){if(w.return===null||w.return===a)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}a.stateNode=y;e:switch(Tt(y,p,c),p){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&xr(a)}}return Qe(a),x0(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,o),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==c&&xr(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(i(166));if(r=ge.current,bs(a)){if(r=a.stateNode,o=a.memoizedProps,c=null,p=St,p!==null)switch(p.tag){case 27:case 5:c=p.memoizedProps}r[xt]=a,r=!!(r.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||n6(r.nodeValue,o)),r||ii(a,!0)}else r=Zl(r).createTextNode(c),r[xt]=a,a.stateNode=r}return Qe(a),null;case 31:if(o=a.memoizedState,r===null||r.memoizedState!==null){if(c=bs(a),o!==null){if(r===null){if(!c)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[xt]=a}else la(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Qe(a),r=!1}else o=Ph(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return a.flags&256?(pn(a),a):(pn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return Qe(a),null;case 13:if(c=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(p=bs(a),c!==null&&c.dehydrated!==null){if(r===null){if(!p)throw Error(i(318));if(p=a.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[xt]=a}else la(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Qe(a),p=!1}else p=Ph(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(pn(a),a):(pn(a),null)}return pn(a),(a.flags&128)!==0?(a.lanes=o,a):(o=c!==null,r=r!==null&&r.memoizedState!==null,o&&(c=a.child,p=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(p=c.alternate.memoizedState.cachePool.pool),y=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==p&&(c.flags|=2048)),o!==r&&o&&(a.child.flags|=8192),Bl(a,a.updateQueue),Qe(a),null);case 4:return ze(),r===null&&q0(a.stateNode.containerInfo),Qe(a),null;case 10:return br(a.type),Qe(a),null;case 19:if(Z(nt),c=a.memoizedState,c===null)return Qe(a),null;if(p=(a.flags&128)!==0,y=c.rendering,y===null)if(p)lu(c,!1);else{if(We!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(y=xl(r),y!==null){for(a.flags|=128,lu(c,!1),r=y.updateQueue,a.updateQueue=r,Bl(a,r),a.subtreeFlags=0,r=o,o=a.child;o!==null;)Bg(o,r),o=o.sibling;return se(nt,nt.current&1|2),Re&&yr(a,c.treeForkCount),a.child}r=r.sibling}c.tail!==null&&Ct()>Ll&&(a.flags|=128,p=!0,lu(c,!1),a.lanes=4194304)}else{if(!p)if(r=xl(y),r!==null){if(a.flags|=128,p=!0,r=r.updateQueue,a.updateQueue=r,Bl(a,r),lu(c,!0),c.tail===null&&c.tailMode==="hidden"&&!y.alternate&&!Re)return Qe(a),null}else 2*Ct()-c.renderingStartTime>Ll&&o!==536870912&&(a.flags|=128,p=!0,lu(c,!1),a.lanes=4194304);c.isBackwards?(y.sibling=a.child,a.child=y):(r=c.last,r!==null?r.sibling=y:a.child=y,c.last=y)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=Ct(),r.sibling=null,o=nt.current,se(nt,p?o&1|2:o&1),Re&&yr(a,c.treeForkCount),r):(Qe(a),null);case 22:case 23:return pn(a),Fh(),c=a.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(o&536870912)!==0&&(a.flags&128)===0&&(Qe(a),a.subtreeFlags&6&&(a.flags|=8192)):Qe(a),o=a.updateQueue,o!==null&&Bl(a,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048),r!==null&&Z(ha),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),br(it),Qe(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function X4(r,a){switch(Rh(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return br(it),ze(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return on(a),null;case 31:if(a.memoizedState!==null){if(pn(a),a.alternate===null)throw Error(i(340));la()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(pn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));la()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return Z(nt),null;case 4:return ze(),null;case 10:return br(a.type),null;case 22:case 23:return pn(a),Fh(),r!==null&&Z(ha),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return br(it),null;case 25:return null;default:return null}}function ov(r,a){switch(Rh(a),a.tag){case 3:br(it),ze();break;case 26:case 27:case 5:on(a);break;case 4:ze();break;case 31:a.memoizedState!==null&&pn(a);break;case 13:pn(a);break;case 19:Z(nt);break;case 10:br(a.type);break;case 22:case 23:pn(a),Fh(),r!==null&&Z(ha);break;case 24:br(it)}}function fu(r,a){try{var o=a.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var p=c.next;o=p;do{if((o.tag&r)===r){c=void 0;var y=o.create,w=o.inst;c=y(),w.destroy=c}o=o.next}while(o!==p)}}catch(A){ke(a,a.return,A)}}function fi(r,a,o){try{var c=a.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var y=p.next;c=y;do{if((c.tag&r)===r){var w=c.inst,A=w.destroy;if(A!==void 0){w.destroy=void 0,p=a;var k=o,q=A;try{q()}catch(Y){ke(p,k,Y)}}}c=c.next}while(c!==y)}}catch(Y){ke(a,a.return,Y)}}function uv(r){var a=r.updateQueue;if(a!==null){var o=r.stateNode;try{Jg(a,o)}catch(c){ke(r,r.return,c)}}}function cv(r,a,o){o.props=ga(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(c){ke(r,a,c)}}function du(r,a){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof o=="function"?r.refCleanup=o(c):o.current=c}}catch(p){ke(r,a,p)}}function Xn(r,a){var o=r.ref,c=r.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(p){ke(r,a,p)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){ke(r,a,p)}else o.current=null}function lv(r){var a=r.type,o=r.memoizedProps,c=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break e;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(p){ke(r,r.return,p)}}function S0(r,a,o){try{var c=r.stateNode;vA(c,r.type,o,a),c[Vt]=a}catch(p){ke(r,r.return,p)}}function fv(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&gi(r.type)||r.tag===4}function E0(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||fv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&gi(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function A0(r,a,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(r),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=dr));else if(c!==4&&(c===27&&gi(r.type)&&(o=r.stateNode,a=null),r=r.child,r!==null))for(A0(r,a,o),r=r.sibling;r!==null;)A0(r,a,o),r=r.sibling}function $l(r,a,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?o.insertBefore(r,a):o.appendChild(r);else if(c!==4&&(c===27&&gi(r.type)&&(o=r.stateNode),r=r.child,r!==null))for($l(r,a,o),r=r.sibling;r!==null;)$l(r,a,o),r=r.sibling}function dv(r){var a=r.stateNode,o=r.memoizedProps;try{for(var c=r.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);Tt(a,c,o),a[xt]=r,a[Vt]=o}catch(y){ke(r,r.return,y)}}var Sr=!1,ot=!1,T0=!1,hv=typeof WeakSet=="function"?WeakSet:Set,mt=null;function J4(r,a){if(r=r.containerInfo,V0=nf,r=Tg(r),gh(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var p=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var w=0,A=-1,k=-1,q=0,Y=0,ee=r,V=null;t:for(;;){for(var Q;ee!==o||p!==0&&ee.nodeType!==3||(A=w+p),ee!==y||c!==0&&ee.nodeType!==3||(k=w+c),ee.nodeType===3&&(w+=ee.nodeValue.length),(Q=ee.firstChild)!==null;)V=ee,ee=Q;for(;;){if(ee===r)break t;if(V===o&&++q===p&&(A=w),V===y&&++Y===c&&(k=w),(Q=ee.nextSibling)!==null)break;ee=V,V=ee.parentNode}ee=Q}o=A===-1||k===-1?null:{start:A,end:k}}else o=null}o=o||{start:0,end:0}}else o=null;for(K0={focusedElem:r,selectionRange:o},nf=!1,mt=a;mt!==null;)if(a=mt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,mt=r;else for(;mt!==null;){switch(a=mt,y=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o title"))),Tt(y,c,o),y[xt]=r,yt(y),c=y;break e;case"link":var w=v6("link","href",p).get(c+(o.href||""));if(w){for(var A=0;AUe&&(w=Ue,Ue=be,be=w);var U=Eg(A,be),j=Eg(A,Ue);if(U&&j&&(Q.rangeCount!==1||Q.anchorNode!==U.node||Q.anchorOffset!==U.offset||Q.focusNode!==j.node||Q.focusOffset!==j.offset)){var H=ee.createRange();H.setStart(U.node,U.offset),Q.removeAllRanges(),be>Ue?(Q.addRange(H),Q.extend(j.node,j.offset)):(H.setEnd(j.node,j.offset),Q.addRange(H))}}}}for(ee=[],Q=A;Q=Q.parentNode;)Q.nodeType===1&&ee.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;Ao?32:o,N.T=null,o=O0,O0=null;var y=yi,w=Mr;if(ct=0,Ps=yi=null,Mr=0,(Be&6)!==0)throw Error(i(331));var A=Be;if(Be|=4,Av(y.current),xv(y,y.current,w,o),Be=A,gu(0,!1),cn&&typeof cn.onPostCommitFiberRoot=="function")try{cn.onPostCommitFiberRoot(ko,y)}catch{}return!0}finally{G.p=p,N.T=c,Hv(r,a)}}function Fv(r,a,o){a=_n(o,a),a=f0(r.stateNode,a,2),r=ui(r,a,2),r!==null&&(jo(r,2),Jn(r))}function ke(r,a,o){if(r.tag===3)Fv(r,r,o);else for(;a!==null;){if(a.tag===3){Fv(a,r,o);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(pi===null||!pi.has(c))){r=_n(o,r),o=G1(2),c=ui(a,o,2),c!==null&&(V1(o,c,a,r),jo(c,2),Jn(c));break}}a=a.return}}function k0(r,a,o){var c=r.pingCache;if(c===null){c=r.pingCache=new tA;var p=new Set;c.set(a,p)}else p=c.get(a),p===void 0&&(p=new Set,c.set(a,p));p.has(o)||(z0=!0,p.add(o),r=sA.bind(null,r,a,o),a.then(r,r))}function sA(r,a,o){var c=r.pingCache;c!==null&&c.delete(a),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,He===r&&(_e&o)===o&&(We===4||We===3&&(_e&62914560)===_e&&300>Ct()-jl?(Be&2)===0&&Os(r,0):R0|=o,Cs===_e&&(Cs=0)),Jn(r)}function Gv(r,a){a===0&&(a=Lb()),r=ua(r,a),r!==null&&(jo(r,a),Jn(r))}function oA(r){var a=r.memoizedState,o=0;a!==null&&(o=a.retryLane),Gv(r,o)}function uA(r,a){var o=0;switch(r.tag){case 31:case 13:var c=r.stateNode,p=r.memoizedState;p!==null&&(o=p.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(a),Gv(r,o)}function cA(r,a){return jn(r,a)}var Gl=null,Bs=null,N0=!1,Vl=!1,j0=!1,bi=0;function Jn(r){r!==Bs&&r.next===null&&(Bs===null?Gl=Bs=r:Bs=Bs.next=r),Vl=!0,N0||(N0=!0,fA())}function gu(r,a){if(!j0&&Vl){j0=!0;do for(var o=!1,c=Gl;c!==null;){if(r!==0){var p=c.pendingLanes;if(p===0)var y=0;else{var w=c.suspendedLanes,A=c.pingedLanes;y=(1<<31-ln(42|r)+1)-1,y&=p&~(w&~A),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,Zv(c,y))}else y=_e,y=Yc(c,c===He?y:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(y&3)===0||No(c,y)||(o=!0,Zv(c,y));c=c.next}while(o);j0=!1}}function lA(){Vv()}function Vv(){Vl=N0=!1;var r=0;bi!==0&&xA()&&(r=bi);for(var a=Ct(),o=null,c=Gl;c!==null;){var p=c.next,y=Kv(c,a);y===0?(c.next=null,o===null?Gl=p:o.next=p,p===null&&(Bs=o)):(o=c,(r!==0||(y&3)!==0)&&(Vl=!0)),c=p}ct!==0&&ct!==5||gu(r),bi!==0&&(bi=0)}function Kv(r,a){for(var o=r.suspendedLanes,c=r.pingedLanes,p=r.expirationTimes,y=r.pendingLanes&-62914561;0A)break;var Y=k.transferSize,ee=k.initiatorType;Y&&r6(ee)&&(k=k.responseEnd,w+=Y*(k"u"?null:document;function y6(r,a,o){var c=$s;if(c&&typeof a=="string"&&a){var p=An(a);p=\'link[rel="\'+r+\'"][href="\'+p+\'"]\',typeof o=="string"&&(p+=\'[crossorigin="\'+o+\'"]\'),p6.has(p)||(p6.add(p),r={rel:r,crossOrigin:o,href:a},c.querySelector(p)===null&&(a=c.createElement("link"),Tt(a,"link",r),yt(a),c.head.appendChild(a)))}}function CA(r){zr.D(r),y6("dns-prefetch",r,null)}function PA(r,a){zr.C(r,a),y6("preconnect",r,a)}function OA(r,a,o){zr.L(r,a,o);var c=$s;if(c&&r&&a){var p=\'link[rel="preload"][as="\'+An(a)+\'"]\';a==="image"&&o&&o.imageSrcSet?(p+=\'[imagesrcset="\'+An(o.imageSrcSet)+\'"]\',typeof o.imageSizes=="string"&&(p+=\'[imagesizes="\'+An(o.imageSizes)+\'"]\')):p+=\'[href="\'+An(r)+\'"]\';var y=p;switch(a){case"style":y=ks(r);break;case"script":y=Ns(r)}On.has(y)||(r=b({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:r,as:a},o),On.set(y,r),c.querySelector(p)!==null||a==="style"&&c.querySelector(Su(y))||a==="script"&&c.querySelector(Eu(y))||(a=c.createElement("link"),Tt(a,"link",r),yt(a),c.head.appendChild(a)))}}function IA(r,a){zr.m(r,a);var o=$s;if(o&&r){var c=a&&typeof a.as=="string"?a.as:"script",p=\'link[rel="modulepreload"][as="\'+An(c)+\'"][href="\'+An(r)+\'"]\',y=p;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Ns(r)}if(!On.has(y)&&(r=b({rel:"modulepreload",href:r},a),On.set(y,r),o.querySelector(p)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Eu(y)))return}c=o.createElement("link"),Tt(c,"link",r),yt(c),o.head.appendChild(c)}}}function BA(r,a,o){zr.S(r,a,o);var c=$s;if(c&&r){var p=is(c).hoistableStyles,y=ks(r);a=a||"default";var w=p.get(y);if(!w){var A={loading:0,preload:null};if(w=c.querySelector(Su(y)))A.loading=5;else{r=b({rel:"stylesheet",href:r,"data-precedence":a},o),(o=On.get(y))&&ep(r,o);var k=w=c.createElement("link");yt(k),Tt(k,"link",r),k._p=new Promise(function(q,Y){k.onload=q,k.onerror=Y}),k.addEventListener("load",function(){A.loading|=1}),k.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Xl(w,a,c)}w={type:"stylesheet",instance:w,count:1,state:A},p.set(y,w)}}}function $A(r,a){zr.X(r,a);var o=$s;if(o&&r){var c=is(o).hoistableScripts,p=Ns(r),y=c.get(p);y||(y=o.querySelector(Eu(p)),y||(r=b({src:r,async:!0},a),(a=On.get(p))&&tp(r,a),y=o.createElement("script"),yt(y),Tt(y,"link",r),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(p,y))}}function kA(r,a){zr.M(r,a);var o=$s;if(o&&r){var c=is(o).hoistableScripts,p=Ns(r),y=c.get(p);y||(y=o.querySelector(Eu(p)),y||(r=b({src:r,async:!0,type:"module"},a),(a=On.get(p))&&tp(r,a),y=o.createElement("script"),yt(y),Tt(y,"link",r),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(p,y))}}function m6(r,a,o,c){var p=(p=ge.current)?Yl(p):null;if(!p)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=ks(o.href),o=is(p).hoistableStyles,c=o.get(a),c||(c={type:"style",instance:null,count:0,state:null},o.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=ks(o.href);var y=is(p).hoistableStyles,w=y.get(r);if(w||(p=p.ownerDocument||p,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(r,w),(y=p.querySelector(Su(r)))&&!y._p&&(w.instance=y,w.state.loading=5),On.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},On.set(r,o),y||NA(p,r,o,w.state))),a&&c===null)throw Error(i(528,""));return w}if(a&&c!==null)throw Error(i(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ns(o),o=is(p).hoistableScripts,c=o.get(a),c||(c={type:"script",instance:null,count:0,state:null},o.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function ks(r){return\'href="\'+An(r)+\'"\'}function Su(r){return\'link[rel="stylesheet"][\'+r+"]"}function b6(r){return b({},r,{"data-precedence":r.precedence,precedence:null})}function NA(r,a,o,c){r.querySelector(\'link[rel="preload"][as="style"][\'+a+"]")?c.loading=1:(a=r.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),Tt(a,"link",o),yt(a),r.head.appendChild(a))}function Ns(r){return\'[src="\'+An(r)+\'"]\'}function Eu(r){return"script[async]"+r}function g6(r,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var c=r.querySelector(\'style[data-href~="\'+An(o.href)+\'"]\');if(c)return a.instance=c,yt(c),c;var p=b({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),yt(c),Tt(c,"style",p),Xl(c,o.precedence,r),a.instance=c;case"stylesheet":p=ks(o.href);var y=r.querySelector(Su(p));if(y)return a.state.loading|=4,a.instance=y,yt(y),y;c=b6(o),(p=On.get(p))&&ep(c,p),y=(r.ownerDocument||r).createElement("link"),yt(y);var w=y;return w._p=new Promise(function(A,k){w.onload=A,w.onerror=k}),Tt(y,"link",c),a.state.loading|=4,Xl(y,o.precedence,r),a.instance=y;case"script":return y=Ns(o.src),(p=r.querySelector(Eu(y)))?(a.instance=p,yt(p),p):(c=o,(p=On.get(y))&&(c=b({},o),tp(c,p)),r=r.ownerDocument||r,p=r.createElement("script"),yt(p),Tt(p,"link",c),r.head.appendChild(p),a.instance=p);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,Xl(c,o.precedence,r));return a.instance}function Xl(r,a,o){for(var c=o.querySelectorAll(\'link[rel="stylesheet"][data-precedence],style[data-precedence]\'),p=c.length?c[c.length-1]:null,y=p,w=0;w title"):null)}function jA(r,a,o){if(o===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(r=a.disabled,typeof a.precedence=="string"&&r==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function x6(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function LA(r,a,o,c){if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=ks(c.href),y=a.querySelector(Su(p));if(y){a=y._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=Wl.bind(r),a.then(r,r)),o.state.loading|=4,o.instance=y,yt(y);return}y=a.ownerDocument||a,c=b6(c),(p=On.get(p))&&ep(c,p),y=y.createElement("link"),yt(y);var w=y;w._p=new Promise(function(A,k){w.onload=A,w.onerror=k}),Tt(y,"link",c),o.instance=y}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=Wl.bind(r),a.addEventListener("load",o),a.addEventListener("error",o))}}var np=0;function UA(r,a){return r.stylesheets&&r.count===0&&tf(r,r.stylesheets),0np?50:800)+a);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(p)}}:null}function Wl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tf(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var ef=null;function tf(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,ef=new Map,a.forEach(DA,r),ef=null,Wl.call(r))}function DA(r,a){if(!(a.state.loading&4)){var o=ef.get(r);if(o)var c=o.get(null);else{o=new Map,ef.set(r,o);for(var p=r.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),fp.exports=r9(),fp.exports}var a9=i9(),s9="__TSS_CONTEXT",ty=Symbol.for("TSS_SERVER_FUNCTION"),o9="application/x-tss-framed",Rr={JSON:0,CHUNK:1,END:2,ERROR:3},u9=/;\\s*v=(\\d+)/;function c9(e){const t=e.match(u9);return t?parseInt(t[1],10):void 0}function l9(e){const t=c9(e);if(t!==void 0&&t!==1)throw new Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var kw=()=>window.__TSS_START_OPTIONS__;const Nw=!1;function Hu(e){return e[e.length-1]}function f9(e){return typeof e=="function"}function Ea(e,t){return f9(e)?e(t):e}const jw=Object.prototype.hasOwnProperty,G6=Object.prototype.propertyIsEnumerable;function Lw(e){for(const t in e)if(jw.call(e,t))return!0;return!1}const d9=()=>Object.create(null),xa=(e,t)=>Aa(e,t,d9);function Aa(e,t,n=()=>({}),i=0){if(e===t)return e;if(i>500)return t;const s=t,u=Q6(e)&&Q6(s);if(!u&&!(Hf(e)&&Hf(s)))return s;const l=u?e:V6(e);if(!l)return s;const f=u?s:V6(s);if(!f)return s;const d=l.length,h=f.length,m=u?new Array(h):n();let b=0;for(let g=0;g"u")return!0;const n=t.prototype;return!(!K6(n)||!n.hasOwnProperty("isPrototypeOf"))}function K6(e){return Object.prototype.toString.call(e)==="[object Object]"}function Q6(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nt(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,s=e.length;is||!Nt(e[l],t[l],n)))return!1;return s===u}return!1}function Ia(e){let t,n;const i=new Promise((s,u)=>{t=s,n=u});return i.status="pending",i.resolve=s=>{i.status="resolved",i.value=s,t(s),e?.(s)},i.reject=s=>{i.status="rejected",n(s)},i}function h9(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function qu(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function p9(e){return e.replace(/[\\x00-\\x1f\\x7f]/g,"")}function Z6(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return p9(t)}const y9=["http:","https:","mailto:","tel:"];function qf(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}const m9={"&":"\\\\u0026",">":"\\\\u003e","<":"\\\\u003c","\\u2028":"\\\\u2028","\\u2029":"\\\\u2029"},b9=/[&><\\u2028\\u2029]/g;function g9(e){return e.replace(b9,t=>m9[t])}function Cu(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\\\\x00-\\x1f\\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,i="",s;for(;(s=t.exec(e))!==null;)i+=Z6(e.slice(n,s.index))+s[0],n=t.lastIndex;i=i+Z6(n?e.slice(n):e);let u=!1;return i.startsWith("//")&&(u=!0,i="/"+i.replace(/^\\/+/,"")),{path:i,handledProtocolRelativeURL:u}}function v9(e){return/\\s|[^\\u0000-\\u007F]/.test(e)?e.replace(/\\s|[^\\u0000-\\u007F]/gu,encodeURIComponent):e}function w9(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{u.next&&(u.prev?(u.prev.next=u.next,u.next.prev=u.prev,u.next=void 0,i&&(i.next=u,u.prev=i)):(u.next.prev=void 0,n=u.next,u.next=void 0,i&&(u.prev=i,i.next=u)),i=u)};return{get(u){const l=t.get(u);if(l)return s(l),l.value},set(u,l){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===i&&(i=void 0)}const f=t.get(u);if(f)f.value=l,s(f);else{const d={key:u,value:l,prev:i};i&&(i.next=d),i=d,n||(n=d),t.set(u,d)}},clear(){t.clear(),n=void 0,i=void 0}}}const Oi=4,Uw=5;function x9(e){const t=e.indexOf("{");if(t===-1)return null;const n=e.indexOf("}",t);return n===-1||t+1>=e.length?null:[t,n]}function Dw(e,t,n=new Uint16Array(6)){const i=e.indexOf("/",t),s=i===-1?e.length:i,u=e.substring(t,s);if(!u||!u.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n;if(u==="$"){const f=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=f,n[4]=f,n[5]=f,n}if(u.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=s,n[4]=s,n[5]=s,n;const l=x9(u);if(l){const[f,d]=l,h=u.charCodeAt(f+1);if(h===45){if(f+2!C.parse&&C.caseSensitive===M&&C.prefix===R&&C.suffix===z);if(I)x=I;else{const C=mp(1,n.fullPath??n.from,M,R,z);x=C,C.depth=u,C.parent=s,s.dynamic??=[],s.dynamic.push(C)}break}case 3:{const _=d.substring(S,v[1]),O=d.substring(v[4],E),M=m&&!!(_||O),R=_?M?_:_.toLowerCase():void 0,z=O?M?O:O.toLowerCase():void 0,I=!b&&s.optional?.find(C=>!C.parse&&C.caseSensitive===M&&C.prefix===R&&C.suffix===z);if(I)x=I;else{const C=mp(3,n.fullPath??n.from,M,R,z);x=C,C.parent=s,C.depth=u,s.optional??=[],s.optional.push(C)}break}case 2:{const _=d.substring(S,v[1]),O=d.substring(v[4],E),M=m&&!!(_||O),R=_?M?_:_.toLowerCase():void 0,z=O?M?O:O.toLowerCase():void 0,I=mp(2,n.fullPath??n.from,M,R,z);x=I,I.parent=s,I.depth=u,s.wildcard??=[],s.wildcard.push(I)}}s=x}if(b&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const v=Ta(n.fullPath??n.from);v.kind=Uw,v.parent=s,u++,v.depth=u,s.pathless??=[],s.pathless.push(v),s=v}const g=(n.path||!n.children)&&!n.isRoot;if(g&&d.endsWith("/")){const v=Ta(n.fullPath??n.from);v.kind=Oi,v.parent=s,u++,v.depth=u,s.index=v,s=v}s.parse=b??null,s.priority=n.options?.params?.priority??0,g&&!s.route&&(s.route=n,s.fullPath=n.fullPath??n.from)}if(n.children)for(const d of n.children)yd(e,t,d,f,s,u,l)}function yp(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function zi(e){if(e.pathless)for(const t of e.pathless)zi(t);if(e.static)for(const t of e.static.values())zi(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())zi(t);if(e.dynamic?.length){e.dynamic.sort(yp);for(const t of e.dynamic)zi(t)}if(e.optional?.length){e.optional.sort(yp);for(const t of e.optional)zi(t)}if(e.wildcard?.length){e.wildcard.sort(yp);for(const t of e.wildcard)zi(t)}}function Ta(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function mp(e,t,n,i,s){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:i,suffix:s}}function S9(e,t){const n=Ta("/"),i=new Uint16Array(6);for(const s of e)yd(!1,i,s,1,n,0);zi(n),t.masksTree=n,t.flatCache=Fu(1e3)}function E9(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const i=Am(e,t.masksTree);return t.flatCache.set(e,i),i}function A9(e,t,n,i,s){e||="/",i||="/";const u=t?`case\\0${e}`:e;let l=s.singleCache.get(u);return l||(l=Ta("/"),yd(t,new Uint16Array(6),{from:e},1,l,0),s.singleCache.set(u,l)),Am(i,l,n)}function T9(e,t,n=!1){const i=n?e:`nofuzz\\0${e}`,s=t.matchCache.get(i);if(s!==void 0)return s;e||="/";let u;try{u=Am(e,t.segmentTree,n)}catch(l){if(l instanceof URIError)u=null;else throw l}return u&&(u.branch=qw(u.route)),t.matchCache.set(i,u),u}function _9(e){return e==="/"?e:e.replace(/\\/{1,}$/,"")}function M9(e,t=!1,n){const i=Ta(e.fullPath),s=new Uint16Array(6),u={},l={};let f=0;return yd(t,s,e,1,i,0,d=>{if(n?.(d,f),d.id in u&&nn(),u[d.id]=d,f!==0&&d.path){const h=_9(d.fullPath);(!l[h]||d.fullPath.endsWith("/"))&&(l[h]=d)}f++}),zi(i),{processedTree:{segmentTree:i,singleCache:Fu(1e3),matchCache:Fu(1e3),flatCache:null,masksTree:null},routesById:u,routesByPath:l}}function Am(e,t,n=!1){const i=e.split("/"),s=R9(e,i,t,n);if(!s)return null;const[u]=Hw(e,i,s);return{route:s.node.route,rawParams:u}}function Hw(e,t,n){const i=z9(n.node);let s=null;const u=Object.create(null);let l=n.extract?.part??0,f=n.extract?.node??0,d=n.extract?.path??0,h=n.extract?.segment??0;for(;f=0;C--){const B=b.wildcard[C],{prefix:L,suffix:D}=B;if(!(L&&(R||!(B.caseSensitive?z:I??=z.toLowerCase()).startsWith(L)))){if(D){if(R)continue;const K=t.slice(g).join("/").slice(-D.length);if((B.caseSensitive?K:K.toLowerCase())!==D)continue}f.push({node:B,index:l,skipped:v,depth:x+1,statics:S,dynamics:E,optionals:_,extract:O,rawParams:M})}}if(b.optional){const C=v|1<=0;L--){const D=b.optional[L];f.push({node:D,index:g,skipped:C,depth:B,statics:S,dynamics:E,optionals:_,extract:O,rawParams:M})}if(!R)for(let L=b.optional.length-1;L>=0;L--){const D=b.optional[L],{prefix:K,suffix:J}=D;if(K||J){const te=D.caseSensitive?z:I??=z.toLowerCase();if(K&&!te.startsWith(K)||J&&!te.endsWith(J))continue}f.push({node:D,index:g+1,skipped:v,depth:B,statics:S,dynamics:E,optionals:_+lf(l,g),extract:O,rawParams:M})}}if(!R&&b.dynamic&&z)for(let C=b.dynamic.length-1;C>=0;C--){const B=b.dynamic[C],{prefix:L,suffix:D}=B;if(L||D){const K=B.caseSensitive?z:I??=z.toLowerCase();if(L&&!K.startsWith(L)||D&&!K.endsWith(D))continue}f.push({node:B,index:g+1,skipped:v,depth:x+1,statics:S,dynamics:E+lf(l,g),optionals:_,extract:O,rawParams:M})}if(!R&&b.staticInsensitive){const C=b.staticInsensitive.get(I??=z.toLowerCase());C&&f.push({node:C,index:g+1,skipped:v,depth:x+1,statics:S+lf(l,g),dynamics:E,optionals:_,extract:O,rawParams:M})}if(!R&&b.static){const C=b.static.get(z);C&&f.push({node:C,index:g+1,skipped:v,depth:x+1,statics:S+lf(l,g),dynamics:E,optionals:_,extract:O,rawParams:M})}if(b.pathless){const C=x+1;for(let B=b.pathless.length-1;B>=0;B--){const L=b.pathless[B];f.push({node:L,index:g,skipped:v,depth:C,statics:S,dynamics:E,optionals:_,extract:O,rawParams:M})}}}if(h)return h;if(i&&d){let m=d.index;for(let g=0;ge.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Oi)>(e.node.kind===Oi)||t.node.kind===Oi==(e.node.kind===Oi)&&t.depth>e.depth))):!0}function Of(e){return Tm(e.filter(t=>t!==void 0).join("/"))}function Tm(e){return e.replace(/\\/{2,}/g,"/")}function Fw(e){return e==="/"?e:e.replace(/^\\/{1,}/,"")}function Lr(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\\/{1,}$/,""):e}function Gw(e){return Lr(Fw(e))}function Ff(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function P9(e,t,n){return Ff(e,n)===Ff(t,n)}function O9({base:e,to:t,trailingSlash:n="never",cache:i}){const s=t.startsWith("/"),u=!s&&t===".";let l;if(i){l=s?t:u?e:e+"\\0"+t;const h=i.get(l);if(h)return h}let f;if(u)f=e.split("/");else if(s)f=t.split("/");else{for(f=e.split("/");f.length>1&&Hu(f)==="";)f.pop();const h=t.split("/");for(let m=0,b=h.length;m1&&(Hu(f)===""?n==="never"&&f.pop():n==="always"&&f.push(""));const d=Tm(f.join("/"))||"/";return l&&i&&i.set(l,d),d}function I9(e){const t=new Map(e.map(s=>[encodeURIComponent(s),s])),n=Array.from(t.keys()).map(s=>s.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")).join("|"),i=new RegExp(n,"g");return s=>s.replace(i,u=>t.get(u)??u)}function bp(e,t,n){const i=t[e];return typeof i!="string"?i:e==="_splat"?/^[a-zA-Z0-9\\-._~!/]*$/.test(i)?i:i.split("/").map(s=>J6(s,n)).join("/"):J6(i,n)}function X6({path:e,params:t,decoder:n,...i}){let s=!1;const u=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:u,isMissingParams:s};if(!e.includes("$"))return{interpolatedPath:e,usedParams:u,isMissingParams:s};const l=e.length;let f=0,d,h="";for(;f{t[0]==="?"&&(t=t.substring(1));const n=B9(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function j9(e,t){const n=typeof t=="function";function i(s){if(typeof s=="object"&&s!==null)try{return e(s)}catch{}else if(n&&typeof s=="string")try{return t(s),e(s)}catch{}return s}return s=>{const u=Vw(s,i);return u?`?${u}`:""}}const Ca="__root__";function _m(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function en(e){return e instanceof Response&&!!e.options}function L9(e){if(e!==null&&typeof e=="object"&&e.isSerializedRedirect)return _m(e)}const ny=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},U9=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),md=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Pa=(e,t,n=!0)=>{const i={...e.router.options.context??{}},s=n?t:t-1;for(let u=0;u<=s;u++){const l=e.matches[u];if(!l)continue;const f=e.router.getMatch(l.id);f&&Object.assign(i,f.__routeContext,f.__beforeLoadContext)}return i},W6=(e,t)=>{if(!e.matches.length)return;const n=t.routeId,i=e.matches.findIndex(l=>l.routeId===e.router.routeTree.id),s=i>=0?i:0;let u=n?e.matches.findIndex(l=>l.routeId===n):e.firstBadMatchIndex??e.matches.length-1;u<0&&(u=s);for(let l=u;l>=0;l--){const f=e.matches[l];if(e.router.looseRoutesById[f.routeId].options.notFoundComponent)return l}return n?u:s},Ii=(e,t,n)=>{if(!(!en(n)&&!gt(n)))throw en(n)&&n.redirectHandled&&!n.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,i=>({...i,status:en(n)?"redirected":gt(n)?"notFound":i.status==="pending"?"success":i.status,context:Pa(e,t.index),isFetching:!1,error:n})),gt(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),en(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n))),n},Kw=(e,t)=>{const n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},e2=(e,t,n)=>{const i=Pa(e,n);e.updateMatch(t,s=>({...s,context:i}))},Pu=(e,t,n)=>{const{id:i,routeId:s}=e.matches[t],u=e.router.looseRoutesById[s];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Ii(e,e.router.getMatch(i),n);try{u.options.onError?.(n)}catch(l){n=l,Ii(e,e.router.getMatch(i),n)}e.updateMatch(i,l=>(l._nonReactive.beforeLoadPromise?.resolve(),l._nonReactive.beforeLoadPromise=void 0,l._nonReactive.loadPromise?.resolve(),{...l,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!en(n)&&!gt(n)&&(e.serialError??=n)},Qw=(e,t,n,i)=>{if(i._nonReactive.pendingTimeout!==void 0)return;const s=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!md(e,t)&&(n.options.loader||n.options.beforeLoad||Yw(n))&&typeof s=="number"&&s!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){const u=setTimeout(()=>{ny(e)},s);i._nonReactive.pendingTimeout=u}},D9=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;Qw(e,t,n,i);const s=()=>{const u=e.router.getMatch(t);u.preload&&(u.status==="redirected"||u.status==="notFound")&&Ii(e,u,u.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},H9=(e,t,n,i)=>{const s=e.router.getMatch(t);let u=s._nonReactive.loadPromise;s._nonReactive.loadPromise=Ia(()=>{u?.resolve(),u=void 0});const{paramsError:l,searchError:f}=s;l&&Pu(e,n,l),f&&Pu(e,n,f),Qw(e,t,i,s);const d=new AbortController;let h=!1;const m=()=>{h||(h=!0,e.updateMatch(t,R=>({...R,isFetching:"beforeLoad",fetchCount:R.fetchCount+1,abortController:d})))},b=()=>{s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,R=>({...R,isFetching:!1}))};if(!i.options.beforeLoad){e.router.batch(()=>{m(),b()});return}s._nonReactive.beforeLoadPromise=Ia();const g={...Pa(e,n,!1),...s.__routeContext},{search:v,params:x,cause:S}=s,E=md(e,t),_={search:v,abortController:d,params:x,preload:E,context:g,location:e.location,navigate:R=>e.router.navigate({...R,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:E?"preload":S,matches:e.matches,routeId:i.id,...e.router.options.additionalContext},O=R=>{if(R===void 0){e.router.batch(()=>{m(),b()});return}(en(R)||gt(R))&&(m(),Pu(e,n,R)),e.router.batch(()=>{m(),e.updateMatch(t,z=>({...z,__beforeLoadContext:R})),b()})};let M;try{if(M=i.options.beforeLoad(_),qu(M))return m(),M.catch(R=>{Pu(e,n,R)}).then(O)}catch(R){m(),Pu(e,n,R)}O(M)},q9=(e,t)=>{const{id:n,routeId:i}=e.matches[t],s=e.router.looseRoutesById[i],u=()=>f(),l=()=>H9(e,n,t,s),f=()=>{if(Kw(e,n))return;const d=D9(e,n,s);return qu(d)?d.then(l):l()};return u()},F9=(e,t,n)=>{const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const s={ssr:e.router.options.ssr,matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([n.options.head?.(s),n.options.scripts?.(s),n.options.headers?.(s)]).then(([u,l,f])=>({meta:u?.meta,links:u?.links,headScripts:u?.scripts,headers:f,scripts:l,styles:u?.styles}))},Zw=(e,t,n,i,s)=>{const u=t[i-1],{params:l,loaderDeps:f,abortController:d,cause:h}=e.router.getMatch(n),m=Pa(e,i),b=md(e,n);return{params:l,deps:f,preload:!!b,parentMatchPromise:u,abortController:d,context:m,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:b?"preload":h,route:s,...e.router.options.additionalContext}},t2=async(e,t,n,i,s)=>{try{const u=e.router.getMatch(n);try{(!(Nw??e.router.isServer)||u.ssr===!0)&&Gu(s);const l=s.options.loader,f=typeof l=="function"?l:l?.handler,d=f?.(Zw(e,t,n,i,s)),h=!!f&&qu(d);if((h||s._lazyPromise||s._componentsPromise||s.options.head||s.options.scripts||s.options.headers||u._nonReactive.minPendingPromise)&&e.updateMatch(n,b=>({...b,isFetching:"loader"})),f){const b=h?await d:d;Ii(e,e.router.getMatch(n),b),b!==void 0&&e.updateMatch(n,g=>({...g,loaderData:b}))}s._lazyPromise&&await s._lazyPromise;const m=u._nonReactive.minPendingPromise;m&&await m,s._componentsPromise&&await s._componentsPromise,e.updateMatch(n,b=>({...b,error:void 0,context:Pa(e,i),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let f=l;if(f?.name==="AbortError"){if(u.abortController.signal.aborted){u._nonReactive.loaderPromise?.resolve(),u._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,h=>({...h,status:h.status==="pending"?"success":h.status,isFetching:!1,context:Pa(e,i)}));return}const d=u._nonReactive.minPendingPromise;d&&await d,gt(l)&&await s.options.notFoundComponent?.preload?.(),Ii(e,e.router.getMatch(n),l);try{s.options.onError?.(l)}catch(h){f=h,Ii(e,e.router.getMatch(n),h)}!en(f)&&!gt(f)&&await Gu(s,["errorComponent"]),e.updateMatch(n,h=>({...h,error:f,context:Pa(e,i),status:"error",isFetching:!1}))}}catch(u){const l=e.router.getMatch(n);l&&(l._nonReactive.loaderPromise=void 0),Ii(e,l,u)}},G9=async(e,t,n)=>{async function i(v,x,S,E,_){const O=Date.now()-x.updatedAt,M=v?_.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:_.options.staleTime??e.router.options.defaultStaleTime??0,R=_.options.shouldReload,z=typeof R=="function"?R(Zw(e,t,s,n,_)):R,{status:I,invalid:C}=E,B=O>=M&&(!!e.forceStaleReload||E.cause==="enter"||S!==void 0&&S!==E.id);l=I==="success"&&(C||(z??B)),v&&_.options.preload===!1||(l&&!e.sync&&m?(f=!0,(async()=>{try{await t2(e,t,s,n,_);const L=e.router.getMatch(s);L._nonReactive.loaderPromise?.resolve(),L._nonReactive.loadPromise?.resolve(),L._nonReactive.loaderPromise=void 0,L._nonReactive.loadPromise=void 0}catch(L){en(L)&&await e.router.navigate(L.options)}})()):I!=="success"||l?await t2(e,t,s,n,_):e2(e,s,n))}const{id:s,routeId:u}=e.matches[n];let l=!1,f=!1;const d=e.router.looseRoutesById[u],h=d.options.loader,m=((typeof h=="function"?void 0:h?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(Kw(e,s)){if(!e.router.getMatch(s))return e.matches[n];e2(e,s,n)}else{const v=e.router.getMatch(s),x=e.router.stores.matchesId.get()[n],S=(x&&e.router.stores.matchStores.get(x)||null)?.routeId===u?x:e.router.stores.matches.get().find(_=>_.routeId===u)?.id,E=md(e,s);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!e.sync&&!v.preload&&m)return v;await v._nonReactive.loaderPromise;const _=e.router.getMatch(s),O=_._nonReactive.error||_.error;O&&Ii(e,_,O),_.status==="pending"&&await i(E,v,S,_,d)}else{const _=E&&!e.router.stores.matchStores.has(s),O=e.router.getMatch(s);O._nonReactive.loaderPromise=Ia(),_!==O.preload&&e.updateMatch(s,M=>({...M,preload:_})),await i(E,v,S,O,d)}}const b=e.router.getMatch(s);f||(b._nonReactive.loaderPromise?.resolve(),b._nonReactive.loadPromise?.resolve(),b._nonReactive.loadPromise=void 0),clearTimeout(b._nonReactive.pendingTimeout),b._nonReactive.pendingTimeout=void 0,f||(b._nonReactive.loaderPromise=void 0),b._nonReactive.dehydrated=void 0;const g=f?b.isFetching:!1;return g!==b.isFetching||b.invalid!==!1?(e.updateMatch(s,v=>({...v,isFetching:g,invalid:!1})),e.router.getMatch(s)):b};async function n2(e){const t=e,n=[];U9(t.router)&&ny(t);let i;for(let g=0;g({..._,...E?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:h},isFetching:!1})),m=g,await Gu(x,["notFoundComponent"])}else if(!t.preload){const g=t.matches[0];g.globalNotFound||t.router.getMatch(g.id)?.globalNotFound&&t.updateMatch(g.id,v=>({...v,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const g=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Gu(g,["errorComponent"])}for(let g=0;g<=m;g++){const{id:v,routeId:x}=t.matches[g],S=t.router.looseRoutesById[x];try{const E=F9(t,v,S);if(E){const _=await E;t.updateMatch(v,O=>({...O,..._}))}}catch(E){console.error(`Error executing head for route ${x}:`,E)}}const b=ny(t);if(qu(b)&&await b,h)throw h;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function r2(e,t){const n=t.map(i=>e.options[i]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Gu(e,t=If){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(i=>{const{id:s,...u}=i.options;Object.assign(e.options,u),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const n=()=>e._componentsLoaded?void 0:t===If?(()=>{if(e._componentsPromise===void 0){const i=r2(e,If);i?e._componentsPromise=i.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():r2(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Yw(e){for(const t of If)if(e.options[t]?.preload)return!0;return!1}const If=["component","errorComponent","pendingComponent","notFoundComponent"];function V9(e){return{input:({url:t})=>{for(const n of e)t=ry(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Xw(e[n],t);return t}}}function K9(e){const t=Gw(e.basepath),n=`/${t}`,i=e.caseSensitive?n:n.toLowerCase(),s=`${i}/`;return{input:({url:u})=>{const l=e.caseSensitive?u.pathname:u.pathname.toLowerCase();return l===i?u.pathname="/":l.startsWith(s)&&(u.pathname=u.pathname.slice(n.length)),u},output:({url:u})=>(u.pathname=Of(["/",t,u.pathname]),u)}}function ry(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Xw(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Q9(e,t){const{createMutableStore:n,createReadonlyStore:i,batch:s,init:u}=t,l=new Map,f=new Map,d=new Map,h=n(e.status),m=n(e.loadedAt),b=n(e.isLoading),g=n(e.isTransitioning),v=n(e.location),x=n(e.resolvedLocation),S=n(e.statusCode),E=n(e.redirect),_=n([]),O=n([]),M=n([]),R=i(()=>vp(l,_.get())),z=i(()=>vp(f,O.get())),I=i(()=>vp(d,M.get())),C=i(()=>_.get()[0]),B=i(()=>_.get().some(G=>l.get(G)?.get().status==="pending")),L=i(()=>({locationHref:v.get().href,resolvedLocationHref:x.get()?.href,status:h.get()})),D=i(()=>({status:h.get(),loadedAt:m.get(),isLoading:b.get(),isTransitioning:g.get(),matches:R.get(),location:v.get(),resolvedLocation:x.get(),statusCode:S.get(),redirect:E.get()})),K=Fu(64);function J(G){let ne=K.get(G);return ne||(ne=i(()=>{const ce=_.get();for(const fe of ce){const $=l.get(fe);if($&&$.routeId===G)return $.get()}}),K.set(G,ne)),ne}const te={status:h,loadedAt:m,isLoading:b,isTransitioning:g,location:v,resolvedLocation:x,statusCode:S,redirect:E,matchesId:_,pendingIds:O,cachedIds:M,matches:R,pendingMatches:z,cachedMatches:I,firstId:C,hasPending:B,matchRouteDeps:L,matchStores:l,pendingMatchStores:f,cachedMatchStores:d,__store:D,getRouteMatchStore:J,setMatches:ue,setPending:X,setCached:N};ue(e.matches),u?.(te);function ue(G){wp(G,l,_,n,s)}function X(G){wp(G,f,O,n,s)}function N(G){wp(G,d,M,n,s)}return te}function vp(e,t){const n=[];for(const i of t){const s=e.get(i);s&&n.push(s.get())}return n}function wp(e,t,n,i,s){const u=e.map(f=>f.id),l=new Set(u);s(()=>{for(const f of t.keys())l.has(f)||t.delete(f);for(const f of e){const d=t.get(f.id);if(!d){const h=i(f);h.routeId=f.routeId,t.set(f.id,h);continue}d.routeId=f.routeId,d.get()!==f&&d.set(f)}w9(n.get(),u)||n.set(u)})}var ki="__TSR_index",i2="popstate",a2="beforeunload";function Z9(e){let t=e.getLocation();const n=new Set,i=l=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:l}))},s=l=>{e.notifyOnIndexChange??!0?i(l):t=e.getLocation()},u=async({task:l,navigateOpts:f,...d})=>{if(f?.ignoreBlocker??!1){l();return}const h=e.getBlockers?.()??[],m=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&h.length&&m)for(const b of h){const g=Gf(d.path,d.state);if(await b.blockerFn({currentLocation:t,nextLocation:g,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:l=>(n.add(l),()=>{n.delete(l)}),push:(l,f,d)=>{const h=t.state[ki];f=s2(h+1,f),u({task:()=>{e.pushState(l,f),i({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:f})},replace:(l,f,d)=>{const h=t.state[ki];f=s2(h,f),u({task:()=>{e.replaceState(l,f),i({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:f})},go:(l,f)=>{u({task:()=>{e.go(l),s({type:"GO",index:l})},navigateOpts:f,type:"GO"})},back:l=>{u({task:()=>{e.back(l?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{u({task:()=>{e.forward(l?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[ki]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const f=e.getBlockers?.()??[];return e.setBlockers([...f,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(h=>h!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:i}}function s2(e,t){t||(t={});const n=Mm();return{...t,key:n,__TSR_key:n,[ki]:e}}function Y9(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const u=()=>s,l=B=>s=B,f=(B=>B),d=(()=>Gf(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const B=Mm();t.history.replaceState({[ki]:0,key:B,__TSR_key:B},"")}let h=d(),m,b=!1,g=!1,v=!1,x=!1;const S=()=>h;let E,_;const O=()=>{E&&(C._ignoreSubscribers=!0,(E.isPush?t.history.pushState:t.history.replaceState)(E.state,"",E.href),C._ignoreSubscribers=!1,E=void 0,_=void 0,m=void 0)},M=(B,L,D)=>{const K=f(L);_||(m=h),h=Gf(L,D),E={href:K,state:D,isPush:E?.isPush||B==="push"},_||(_=Promise.resolve().then(()=>O()))},R=B=>{h=d(),C.notify({type:B})},z=async()=>{if(g){g=!1;return}const B=d(),L=B.state[ki]-h.state[ki],D=L===1,K=L===-1,J=!D&&!K||b;b=!1;const te=J?"GO":K?"BACK":"FORWARD",ue=J?{type:"GO",index:L}:{type:K?"BACK":"FORWARD"};if(v)v=!1;else{const X=u();if(typeof document<"u"&&X.length){for(const N of X)if(await N.blockerFn({currentLocation:h,nextLocation:B,action:te})){g=!0,t.history.go(1),C.notify(ue);return}}}h=d(),C.notify(ue)},I=B=>{if(x){x=!1;return}let L=!1;const D=u();if(typeof document<"u"&&D.length)for(const K of D){const J=K.enableBeforeUnload??!0;if(J===!0){L=!0;break}if(typeof J=="function"&&J()===!0){L=!0;break}}if(L)return B.preventDefault(),B.returnValue=""},C=Z9({getLocation:S,getLength:()=>t.history.length,pushState:(B,L)=>M("push",B,L),replaceState:(B,L)=>M("replace",B,L),back:B=>(B&&(v=!0),x=!0,t.history.back()),forward:B=>{B&&(v=!0),x=!0,t.history.forward()},go:B=>{b=!0,t.history.go(B)},createHref:B=>f(B),flush:O,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(a2,I,{capture:!0}),t.removeEventListener(i2,z)},onBlocked:()=>{m&&h!==m&&(h=m)},getBlockers:u,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(a2,I,{capture:!0}),t.addEventListener(i2,z),t.history.pushState=function(...B){const L=n.apply(t.history,B);return C._ignoreSubscribers||R("PUSH"),L},t.history.replaceState=function(...B){const L=i.apply(t.history,B);return C._ignoreSubscribers||R("REPLACE"),L},C}function X9(e){let t=e.replace(/[\\x00-\\x1f\\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\\/+/,"")),t}function Gf(e,t){const n=X9(e),i=n.indexOf("#"),s=n.indexOf("?"),u=Mm();return{href:n,pathname:n.substring(0,i>0?s>0?Math.min(i,s):i:s>0?s:n.length),hash:i>-1?n.substring(i):"",search:s>-1?n.slice(s,i===-1?void 0:i):"",state:t||{[ki]:0,key:u,__TSR_key:u}}}function Mm(){return(Math.random()+1).toString(36).substring(7)}function J9(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Js(e,t){const n=t,i=e;return{fromLocation:n,toLocation:i,pathChanged:n?.pathname!==i.pathname,hrefChanged:n?.href!==i.href,hashChanged:n?.hash!==i.hash}}const iy=new WeakMap;var W9=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=n=>n(),this.update=n=>{const i=this.options,s=this.basepath??i?.basepath??"/",u=this.basepath===void 0,l=i?.rewrite;if(this.options={...i,...n},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=I9(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Y9()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let m;this.resolvePathCache=Fu(1e3),m=this.buildRouteTree(),this.setRoutes(m)}if(!this.stores&&this.latestLocation){const m=this.getStoreConfig(this);this.batch=m.batch,this.stores=Q9(tT(this.latestLocation),m),dT(this)}let f=!1;const d=this.options.basepath??"/",h=this.options.rewrite;if(u||s!==d||l!==h){this.basepath=d;const m=[],b=Gw(d);b&&b!=="/"&&m.push(K9({basepath:d})),h&&m.push(h),this.rewrite=m.length===0?void 0:m.length===1?m[0]:V9(m),this.history&&this.updateLatestLocation(),f=!0}f&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=M9(this.routeTree,this.options.caseSensitive,(i,s)=>{i.init({originalIndex:s})});return this.options.routeMasks&&S9(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,i)=>{const s={eventType:n,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=(n,i)=>{const s=({pathname:d,search:h,hash:m,href:b,state:g})=>{if(!this.rewrite&&!/[ \\x00-\\x1f\\x7f\\u0080-\\uffff]/.test(d)){const _=this.options.parseSearch(h),O=this.options.stringifySearch(_);return{href:d+O+m,publicHref:d+O+m,pathname:Cu(d).path,external:!1,searchStr:O,search:xa(i?.search,_),hash:Cu(m.slice(1)).path,state:Aa(i?.state,g)}}const v=new URL(b,this.origin),x=ry(this.rewrite,v),S=this.options.parseSearch(x.search),E=this.options.stringifySearch(S);return x.search=E,{href:x.href.replace(x.origin,""),publicHref:b,pathname:Cu(x.pathname).path,external:!!this.rewrite&&x.origin!==this.origin,searchStr:E,search:xa(i?.search,S),hash:Cu(x.hash.slice(1)).path,state:Aa(i?.state,g)}},u=s(n),{__tempLocation:l,__tempKey:f}=u.state;if(l&&(!f||f===this.tempLocationKey)){const d=s(l);return d.state.key=u.state.key,d.state.__TSR_key=u.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:u}}return u},this.resolvePathWithBase=(n,i)=>O9({base:n,to:i.includes("//")?Tm(i):i,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>nT({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(n=>{this.cancelMatch(n)}),this.stores.matchesId.get().forEach(n=>{if(this.stores.pendingMatchStores.has(n))return;const i=this.stores.matchStores.get(n)?.get();i&&(i.status==="pending"||i.isFetching==="loader")&&this.cancelMatch(n)})},this.buildLocation=n=>{const i=(u={})=>{const l=u._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutesLightweight(l);u.from;const d=u.unsafeRelative==="path"?l.pathname:u.from??f.fullPath,h=u.to?`${u.to}`:void 0,m=f.search,b=Object.assign(Object.create(null),f.params),g=h?.charCodeAt(0)===47?"/":this.resolvePathWithBase(d,"."),v=h?this.resolvePathWithBase(g,h):g,x=u.params===!1||u.params===null?Object.create(null):(u.params??!0)===!0?b:Object.assign(b,Ea(u.params,b)),S=this.routesByPath[Lr(v)];let E;if(S)E=this.getRouteBranch(S);else if(v.includes("$"))E=[];else{const K=this.getMatchedRoutes(v);E=K.matchedRoutes,this.options.notFoundRoute&&(!K.foundRoute||K.foundRoute.path!=="/"&&K.routeParams["**"])&&(E=[...E,this.options.notFoundRoute])}if(E.length&&Lw(x))for(const K of E){const J=K.options.params?.stringify??K.options.stringifyParams;if(J)try{Object.assign(x,J(x))}catch{}}const _=n.leaveParams?v:Cu(X6({path:v,params:x,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let O=m;if(n._includeValidateSearch&&this.options.search?.strict){const K={};E.forEach(J=>{if(J.options.validateSearch)try{Object.assign(K,Bf(J.options.validateSearch,{...K,...O}))}catch{}}),O=K}O=rT({search:O,dest:u,destRoutes:E,_includeValidateSearch:n._includeValidateSearch}),O=xa(m,O);const M=this.options.stringifySearch(O),R=u.hash===!0?l.hash:u.hash?Ea(u.hash,l.hash):void 0,z=R?`#${R}`:"";let I=u.state===!0?l.state:u.state?Ea(u.state,l.state):{};I=Aa(l.state,I);const C=`${_}${M}${z}`;let B,L,D=!1;if(this.rewrite){const K=new URL(C,this.origin),J=Xw(this.rewrite,K);B=K.href.replace(K.origin,""),J.origin!==this.origin?(L=J.href,D=!0):L=J.pathname+J.search+J.hash}else B=v9(C),L=B;return{publicHref:L,href:B,pathname:_,search:O,searchStr:M,state:I,hash:R??"",external:D,unmaskOnReload:u.unmaskOnReload}},s=(u={},l)=>{const f=i(u);let d=l?i(l):void 0;if(!d){const h=Object.create(null);if(this.options.routeMasks){const m=E9(f.pathname,this.processedTree);if(m){Object.assign(h,m.rawParams);const{from:b,params:g,...v}=m.route,x=g===!1||g===null?Object.create(null):(g??!0)===!0?h:Object.assign(h,Ea(g,h));l={from:n.from,...v,params:x},d=i(l)}}}return d&&(f.maskedLocation=d),f};return n.mask?s(n,{from:n.from,...n.mask}):s(n)},this.commitLocation=async({viewTransition:n,ignoreBlocker:i,...s})=>{let u;const l=()=>{const h=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];h.forEach(b=>{s.state[b]=this.latestLocation.state[b]});const m=Nt(s.state,this.latestLocation.state);return h.forEach(b=>{delete s.state[b]}),m},f=Lr(this.latestLocation.href)===Lr(s.href);let d=this.commitLocationPromise;if(this.commitLocationPromise=Ia(()=>{d?.resolve(),d=void 0}),f&&l())this.load();else{let{maskedLocation:h,hashScrollIntoView:m,...b}=s;h&&(b={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=m??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,u=s.replace?"REPLACE":"PUSH",this.history[u==="REPLACE"?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:i})}return this._scroll.next=s.resetScroll??!0,this.history.subscribers.size||this.load(u?{action:{type:u}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:s,viewTransition:u,ignoreBlocker:l,href:f,...d}={})=>{if(f){const b=this.history.location.state.__TSR_index,g=Gf(f,{__TSR_index:n?b:b+1}),v=new URL(g.pathname,this.origin);d.to=ry(this.rewrite,v).pathname,d.search=this.options.parseSearch(g.search),d.hash=g.hash.slice(1)}const h=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=h;const m=this.commitLocation({...h,viewTransition:u,replace:n,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===h&&(this.pendingBuiltLocation=void 0)}),m},this.navigate=async({to:n,reloadDocument:i,href:s,publicHref:u,...l})=>{let f=!1;if(s)try{new URL(`${s}`),f=!0}catch{}if(f&&!i&&(i=!0),i){if(n!==void 0||!s){const h=this.buildLocation({to:n,...l});s=s??h.publicHref,u=u??h.publicHref}const d=!f&&u?u:s;if(qf(d,this.protocolAllowlist))return Promise.resolve();if(!l.ignoreBlocker){const h=this.history.getBlockers?.()??[];for(const m of h)if(m?.blockerFn&&await m.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:s,to:n,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const n=this.matchRoutes(this.latestLocation),i=this.stores.cachedMatches.get().filter(s=>!n.some(u=>u.id===s.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(n),this.stores.setCached(i)})},this.load=async n=>{const i=n?.action?.type;let s,u,l;const f=this.stores.resolvedLocation.get()??this.stores.location.get();for(l=new Promise(h=>{this.startTransition(async()=>{try{this.beforeLoad(),i?iy.set(this.latestLocation,i):iy.delete(this.latestLocation);const m=this.latestLocation,b=Js(m,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...b}),this.emit({type:"onBeforeLoad",...b}),await n2({router:this,sync:n?.sync,forceStaleReload:f.href===m.href,matches:this.stores.pendingMatches.get(),location:m,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let g=null,v=null,x=null,S=null;this.batch(()=>{const E=this.stores.pendingMatches.get(),_=E.length,O=this.stores.matches.get();g=_?O.filter(z=>!this.stores.pendingMatchStores.has(z.id)):null;const M=new Set;for(const z of this.stores.pendingMatchStores.values())z.routeId&&M.add(z.routeId);const R=new Set;for(const z of this.stores.matchStores.values())z.routeId&&R.add(z.routeId);v=_?O.filter(z=>!M.has(z.routeId)):null,x=_?E.filter(z=>!R.has(z.routeId)):null,S=_?E.filter(z=>R.has(z.routeId)):O,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),_&&(this.stores.setMatches(E),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...g.filter(z=>z.status!=="error"&&z.status!=="notFound"&&z.status!=="redirected")]),this.clearExpiredCache())});for(const[E,_]of[[v,"onLeave"],[x,"onEnter"],[S,"onStay"]])if(E)for(const O of E)this.looseRoutesById[O.routeId].options[_]?.(O)})})}})}catch(m){en(m)?(s=m,this.navigate({...s.options,replace:!0,ignoreBlocker:!0})):gt(m)&&(u=m);const b=s?s.status:u?404:this.stores.matches.get().some(g=>g.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(b),this.stores.redirect.set(s)})}this.latestLoadPromise===l&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),h()})}),this.latestLoadPromise=l,await l;this.latestLoadPromise&&l!==this.latestLoadPromise;)await this.latestLoadPromise;let d;this.hasNotFoundMatch()?d=404:this.stores.matches.get().some(h=>h.status==="error")&&(d=500),d!==void 0&&this.stores.statusCode.set(d)},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let s;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const u=this.latestLocation,l=this.stores.resolvedLocation.get(),f=typeof i.types=="function"?i.types(Js(u,l)):i.types;if(f===!1){n();return}s={update:n,types:f}}else s=n;document.startViewTransition(s)}else n()},this.updateMatch=(n,i)=>{this.startTransition(()=>{const s=this.stores.pendingMatchStores.get(n);if(s){s.set(i);return}const u=this.stores.matchStores.get(n);if(u){u.set(i);return}const l=this.stores.cachedMatchStores.get(n);if(l){const f=i(l.get());f.status==="redirected"?this.stores.cachedMatchStores.delete(n)&&this.stores.cachedIds.set(d=>d.filter(h=>h!==n)):l.set(f)}})},this.getMatch=n=>this.stores.cachedMatchStores.get(n)?.get()??this.stores.pendingMatchStores.get(n)?.get()??this.stores.matchStores.get(n)?.get(),this.invalidate=n=>{const i=s=>n?.filter?.(s)??!0?{...s,invalid:!0,...n?.forcePending||s.status==="error"||s.status==="notFound"?{status:"pending",error:void 0}:void 0}:s;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(i)),this.stores.setCached(this.stores.cachedMatches.get().map(i)),this.stores.setPending(this.stores.pendingMatches.get().map(i))}),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.getParsedLocationHref=n=>n.publicHref||"/",this.resolveRedirect=n=>{const i=n.headers.get("Location");if(!n.options.href||n.options._builtLocation){const s=n.options._builtLocation??this.buildLocation(n.options),u=this.getParsedLocationHref(s);n.options.href=u,n.headers.set("Location",u)}else if(i)try{const s=new URL(i);if(this.origin&&s.origin===this.origin){const u=s.pathname+s.search+s.hash;n.options.href=u,n.headers.set("Location",u)}}catch{}if(n.options.href&&!n.options._builtLocation&&qf(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const i=n?.filter;i!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(s=>!i(s))):this.stores.setCached([])},this.clearExpiredCache=()=>{const n=Date.now(),i=s=>{const u=this.looseRoutesById[s.routeId];if(!u.options.loader)return!0;const l=(s.preload?u.options.preloadGcTime??this.options.defaultPreloadGcTime:u.options.gcTime??this.options.defaultGcTime)??300*1e3;return s.status==="error"?!0:n-s.updatedAt>=l};this.clearCache({filter:i})},this.loadRouteChunk=Gu,this.preloadRoute=async n=>{const i=n._builtLocation??this.buildLocation(n);let s=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const u=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),l=new Set([...u,...this.stores.cachedIds.get()]),f=s.filter(d=>!l.has(d.id));if(f.length){const d=this.stores.cachedMatches.get();this.stores.setCached([...d,...f])}try{return s=await n2({router:this,matches:s,location:i,preload:!0,updateMatch:(d,h)=>{u.has(d)?s=s.map(m=>m.id===d?h(m):m):this.updateMatch(d,h)}}),s}catch(d){if(en(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:i});gt(d)||console.error(d);return}},this.matchRoute=(n,i)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},u=this.buildLocation(s);if(i?.pending&&this.stores.status.get()!=="pending")return!1;const l=(i?.pending===void 0?!this.stores.isLoading.get():i.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),f=A9(u.pathname,i?.caseSensitive??!1,i?.fuzzy??!1,l.pathname,this.processedTree);return!f||n.params&&!Nt(f.rawParams,n.params,{partial:!0})?!1:i?.includeSearch??!0?Nt(l.search,u.search,{partial:!0})?f.rawParams:!1:f.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(n=>n.status==="notFound"||n.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??k9,parseSearch:e.parseSearch??$9,protocolAllowlist:e.protocolAllowlist??y9}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=qw(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const n=this.getMatchedRoutes(e.pathname),{foundRoute:i,routeParams:s}=n;let{matchedRoutes:u}=n,l=!1;(i?i.path!=="/"&&s["**"]:Lr(e.pathname))&&(this.options.notFoundRoute?u=[...u,this.options.notFoundRoute]:l=!0);const f=l?aT(this.options.notFoundMode,u):void 0,d=new Array(u.length),h=new Map;for(const m of this.stores.matchStores.values())m.routeId&&h.set(m.routeId,m.get());for(let m=0;mthis.navigate({...O,_fromLocation:e}),buildLocation:this.buildLocation,cause:b.cause,abortController:b.abortController,preload:!!b.preload,matches:d,routeId:g.id};b.__routeContext=g.options.context(_)??void 0}b.context={...E,...b.__routeContext,...b.__beforeLoadContext}}}return d}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),i=Hu(t),s={...e.search};for(const h of t)try{Object.assign(s,Bf(h.options.validateSearch,s))}catch{}const u=Hu(this.stores.matchesId.get()),l=u&&this.stores.matchStores.get(u)?.get(),f=l&&l.routeId===i.id&&l.pathname===e.pathname;let d;if(f)d=l.params;else{const h=Object.assign(Object.create(null),n);for(const m of t)try{o2(m,h)}catch{}d=h}return{matchedRoutes:t,fullPath:i.fullPath,search:s,params:d}}},Vf=class extends Error{},eT=class extends Error{};function tT(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Bf(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Vf("Async validation not supported");if(n.issues)throw new Vf(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function nT({pathname:e,routesById:t,processedTree:n}){const i=Object.create(null),s=Lr(e);let u;const l=T9(s,n,!0);return l&&(u=l.route,Object.assign(i,l.rawParams)),{matchedRoutes:l?.branch||[t.__root__],routeParams:i,foundRoute:u}}function rT({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){return iT(n)(e,t,i??!1)}function iT(e){let t,n;const i=[];for(const u of e){const l=u.options;if("search"in l)l.search?.middlewares&&i.push(...l.search.middlewares);else if(l.preSearchFilters||l.postSearchFilters){const d=({search:h,next:m})=>{const b=m(l.preSearchFilters?l.preSearchFilters.reduce((g,v)=>v(g),h):h);return l.postSearchFilters?l.postSearchFilters.reduce((g,v)=>v(g),b):b};i.push(d)}const f=l.validateSearch;if(f){const d=({search:h,next:m,meta:b})=>{const g=m(h);if(n)try{const v=Bf(f,g);if(b&&v)for(const x in v)x in g||(b.defaulted||=new Map).set(x,v[x]);return{...g,...v}}catch{}return g};i.push(d)}}const s=(u,l,f)=>{if(u>=i.length){if(!t.search)return{};if(t.search===!0)return l;const h=Ea(t.search,l);return f&&(f.explicit=h),h}const d=(h,m)=>{if(m){const b=f||{};return{search:s(u+1,h,b),meta:b}}return s(u+1,h,f)};return i[u]({search:l,next:d,meta:f})};return function(l,f,d){return t=f,n=d,s(0,l)}}function aT(e,t){if(e!=="root")for(let n=t.length-1;n>=0;n--){const i=t[n];if(i.children)return i.id}return Ca}function o2(e,t){const n=e.options.params?.parse??e.options.parseParams;if(n){const i=n(t);if(i===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,i)}}function sT(){try{return sessionStorage}catch{return}}const oT="tsr-scroll-restoration-v1_3",Jw=sT();function uT(){try{return JSON.parse(Jw?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function cT(){try{Jw?.setItem(oT,JSON.stringify(Gs))}catch{}}const Gs=uT(),u2="data-scroll-restoration-id",lT=e=>e.state.__TSR_key||e.href;function fT(e){const t=e.getAttribute(u2);if(t)return`[${u2}="${t}"]`;let n="",i=e,s;for(;s=i.parentNode;){let u=1,l=i;for(;l=l.previousElementSibling;)u++;const f=`${i.localName}:nth-child(${u})`;n=n?`${f} > ${n}`:f,i=s}return n}let df=!1;const Vs="window";function ay(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function c2(e){const t=[];for(const n of e){if(n===Vs)continue;const i=ay(n);i&&t.push(i)}return t}function dT(e,t){const n=e.options.scrollRestoration,i=e._scroll;n&&(i.restoring=!0);const s=e.options.getScrollRestorationKey||lT,u=new Map,l=(h,m,b)=>{const g=u.get(h)||{};g.scrollX=m,g.scrollY=b,u.set(h,g)},f=h=>{if(!(df||!i.restoring))if(h.target===document)l(Vs,scrollX,scrollY);else{const m=h.target;l(m,m.scrollLeft,m.scrollTop)}},d=h=>{if(!i.restoring)return;const m=Gs[h]||={};for(const[b,g]of u)b===Vs?m[Vs]=g:b.isConnected&&(m[fT(b)]=g)};n&&!i.restoration&&(i.restoration=!0,df=!1,history.scrollRestoration="manual",document.addEventListener("scroll",f,!0),e.subscribe("onBeforeLoad",h=>{h.fromLocation&&d(s(h.fromLocation)),u.clear()}),addEventListener("pagehide",()=>{d(s(e.stores.resolvedLocation.get()??e.stores.location.get())),cT()})),!i.reset&&(i.reset=!0,e.subscribe("onRendered",h=>{const m=e.options.scrollRestorationBehavior,b=e.options.scrollToTopSelectors,g=i.next;let v;if(u.clear(),g||(i.next=!0),typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const x=s(h.toLocation),S=h.fromLocation&&s(h.fromLocation);if(i.restoring&&S&&S!==x){const E=Gs[S];if(E){let _=Gs[x];for(const O in E){if(O===Vs){if(g)continue}else{const M=ay(O);if(!M||g&&b&&(v??=c2(b),v.includes(M)))continue}_||(_=Gs[x]={}),_[O]??=E[O]}}}df=!0;try{const E=h.toLocation.hash,_=h.toLocation.state.__hashScrollIntoViewOptions??!0;let O=!1;if(g){const M=iy.get(h.toLocation),R=E&&_&&(M==="PUSH"||M==="REPLACE"),z=i.restoring?Gs[x]:void 0;if(z)for(const I in z){const{scrollX:C,scrollY:B}=z[I];if(I===Vs){if(R)continue;scrollTo({top:B,left:C,behavior:m}),O=!0}else{const L=ay(I);L&&(L.scrollLeft=C,L.scrollTop=B)}}if(!O&&!E){const I={top:0,left:0,behavior:m};if(scrollTo(I),b){v??=c2(b);for(const C of v)C.scrollTo(I)}}}!O&&E&&_&&document.getElementById(E)?.scrollIntoView(_)}finally{df=!1}}))}const nr=Symbol.for("TSR_DEFERRED_PROMISE");function hT(e,t){const n=e;return n[nr]||(n[nr]={status:"pending"},n.then(i=>{n[nr].status="success",n[nr].data=i}).catch(i=>{n[nr].status="error",n[nr].error={data:J9(i),__isServerError:!0}})),n}const pT="Error preloading route! ☝️";function Ww(e,t){if(e)return typeof e=="string"?e:e[t]}function yT(e){return e?.scriptFormat??"module"}function mT(e,t,n){const i=bT(t),s=Ww(n,"script")??i.crossOrigin;return{...yT(e)==="iife"?{rel:"preload",as:"script"}:{rel:"modulepreload"},href:i.href,...s?{crossOrigin:s}:{}}}function bT(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}function hf(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}const n=new Set;for(const i of t){const s=JSON.stringify(i);n.has(s)||(n.add(s),e.push(i))}}function gT(e){return typeof e=="string"?{href:e,crossOrigin:void 0}:e}var ex=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,i=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),i?this._path=Ca:this.parentRoute||nn();let s=i?Ca:n?.path;s&&s!=="/"&&(s=Fw(s));const u=n?.id||s;let l=i?Ca:Of([this.parentRoute.id==="__root__"?"":this.parentRoute.id,u]);s==="__root__"&&(s="/"),l!=="__root__"&&(l=Of(["/",l]));const f=l==="__root__"?"/":Of([this.parentRoute.fullPath,s]);this._path=s,this._id=l,this._fullPath=f,this._to=Lr(f)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>_m({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an \'id\' and a \'path\' option.")}},vT=class extends ex{constructor(e){super(e)}},wT=(e=>(e[e.AggregateError=1]="AggregateError",e[e.ArrowFunction=2]="ArrowFunction",e[e.ErrorPrototypeStack=4]="ErrorPrototypeStack",e[e.ObjectAssign=8]="ObjectAssign",e[e.BigIntTypedArray=16]="BigIntTypedArray",e[e.RegExp=32]="RegExp",e))(wT||{}),Fr=Symbol.asyncIterator,tx=Symbol.hasInstance,Ws=Symbol.isConcatSpreadable,Gr=Symbol.iterator,nx=Symbol.match,rx=Symbol.matchAll,ix=Symbol.replace,ax=Symbol.search,sx=Symbol.species,ox=Symbol.split,ux=Symbol.toPrimitive,eo=Symbol.toStringTag,cx=Symbol.unscopables,lx={[Fr]:0,[tx]:1,[Ws]:2,[Gr]:3,[nx]:4,[rx]:5,[ix]:6,[ax]:7,[sx]:8,[ox]:9,[ux]:10,[eo]:11,[cx]:12},xT={0:Fr,1:tx,2:Ws,3:Gr,4:nx,5:rx,6:ix,7:ax,8:sx,9:ox,10:ux,11:eo,12:cx},P=void 0,ST={2:!0,3:!1,1:P,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},ET={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},AT={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function Ie(e,t,n,i,s,u,l,f,d,h,m,b){return{t:e,i:t,s:n,c:i,m:s,p:u,e:l,a:f,f:d,b:h,o:m,l:b}}function Zi(e){return Ie(2,P,e,P,P,P,P,P,P,P,P,P)}var fx=Zi(2),dx=Zi(3),TT=Zi(1),_T=Zi(0),MT=Zi(4),zT=Zi(5),RT=Zi(6),CT=Zi(7);function PT(e){switch(e){case\'"\':return\'\\\\"\';case"\\\\":return"\\\\\\\\";case`\n`:return"\\\\n";case"\\r":return"\\\\r";case"\\b":return"\\\\b";case"\t":return"\\\\t";case"\\f":return"\\\\f";case"<":return"\\\\x3C";case"\\u2028":return"\\\\u2028";case"\\u2029":return"\\\\u2029";default:return P}}function Yi(e){let t="",n=0,i;for(let s=0,u=e.length;so_(e),gx=class extends Error{constructor(e,t){super(u_(e)),this.cause=t}},l2=class extends gx{constructor(e){super("parsing",e)}},c_=class extends gx{constructor(e){super("deserialization",e)}};function Zr(e){return`Seroval Error (specific: ${e})`}var bd=class extends Error{constructor(t){super(Zr(1)),this.value=t}},vx=class extends Error{constructor(e){super(Zr(2))}},l_=class extends Error{constructor(e){super(Zr(3))}},Rc=class extends Error{constructor(e){super(Zr(4))}},f_=class extends Error{constructor(e){super(Zr(5)),this.value=e}},d_=class extends Error{constructor(e){super(Zr(6))}},h_=class extends Error{constructor(e){super(Zr(7))}},Yr=class extends Error{constructor(e){super(Zr(8))}},p_=class extends Error{constructor(e){super(Zr(9))}},y_=class{constructor(e,t){this.value=e,this.replacement=t}},gd=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},m_=(e,t)=>{e.s(t),e.p.s=1,e.p.v=t},b_=(e,t)=>{e.f(t),e.p.s=2,e.p.v=t};gd.toString();m_.toString();b_.toString();var g_=()=>{let e=[],t=[],n=!0,i=!1,s=0,u=(d,h,m)=>{for(m=0;m{for(h=0,m=e.length;h(n&&(h=s++,t[h]=d),l(d),()=>{n&&(t[h]=t[s],t[s--]=void 0)});return{__SEROVAL_STREAM__:!0,on:d=>f(d),next:d=>{n&&(e.push(d),u(d,"next"))},throw:d=>{n&&(e.push(d),u(d,"throw"),n=!1,i=!1,t.length=0)},return:d=>{n&&(e.push(d),u(d,"return"),n=!1,i=!0,t.length=0)}}},v_=e=>t=>()=>{let n=0,i={[e]:()=>i,next:()=>{if(n>t.d)return{done:!0,value:void 0};let s=n++,u=t.v[s];if(s===t.t)throw u;return{done:s===t.d,value:u}}};return i},w_=(e,t)=>n=>()=>{let i=0,s=-1,u=!1,l=[],f=[],d=(m=0,b=f.length)=>{for(;m{let b=f.shift();b&&b.s({done:!1,value:m}),l.push(m)},throw:m=>{let b=f.shift();b&&b.f(m),d(),s=l.length,u=!0,l.push(m)},return:m=>{let b=f.shift();b&&b.s({done:!0,value:m}),d(),s=l.length,l.push(m)}});let h={[e]:()=>h,next:()=>{if(s===-1){let g=i++;if(g>=l.length){let v=t();return f.push(v),v.p}return{done:!1,value:l[g]}}if(i>s)return{done:!0,value:void 0};let m=i++,b=l[m];if(m!==s)return{done:!1,value:b};if(u)throw b;return{done:!0,value:b}}};return h},wx=e=>{let t=atob(e),n=t.length,i=new Uint8Array(n);for(let s=0;s{}),t}var C_=w_(Fr,gd);function P_(e){return C_(e)}async function O_(e){try{return[1,await e]}catch(t){return[0,t]}}function I_(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function $f(e,t){e.marked.add(t)}function B_(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function vd(e,t){let n=e.refs.get(t);return n!=null?($f(e,n),{type:1,value:LT(n)}):{type:0,value:B_(e,t)}}function Rm(e,t){let n=vd(e,t);return n.type===1?n:px(t)?{type:2,value:qT(n.value,t)}:n}function _a(e,t){let n=Rm(e,t);if(n.type!==0)return n.value;if(t in lx)return HT(n.value,t);throw new bd(t)}function wd(e,t){let n=vd(e,M_[t]);return n.type===1?n.value:Ie(26,n.value,t,P,P,P,P,P,P,P,P,P)}function $_(e){let t=vd(e,T_);return t.type===1?t.value:Ie(27,t.value,P,P,P,P,P,P,_a(e,Gr),P,P,P)}function k_(e){let t=vd(e,__);return t.type===1?t.value:Ie(29,t.value,P,P,P,P,P,[wd(e,1),_a(e,Fr)],P,P,P,P)}function N_(e,t,n,i){return Ie(n?11:10,e,P,P,P,i,P,P,P,P,mx(t),P)}function j_(e,t,n,i){return Ie(8,t,P,P,P,P,{k:n,v:i},P,wd(e,0),P,P,P)}function L_(e,t,n){let i=new Uint8Array(n),s="";for(let u=0,l=i.length;u{$f(this.base,t),dt(this,e,f).then(d=>{u.push(n_(t,d))},d=>{s(d),l()})},throw:f=>{$f(this.base,t),dt(this,e,f).then(d=>{u.push(r_(t,d)),i(u),l()},d=>{s(d),l()})},return:f=>{$f(this.base,t),dt(this,e,f).then(d=>{u.push(i_(t,d)),i(u),l()},d=>{s(d),l()})}})}async function W_(e,t,n,i){return t_(n,wd(e.base,4),await new Promise(J_.bind(e,t,n,i)))}async function eM(e,t,n,i){let s=[];for(let u=0,l=i.v.length;u(e[e.Vanilla=1]="Vanilla",e[e.Cross=2]="Cross",e))(iM||{});function Ex(e,t){for(let n=0,i=t.length;n0)for(let u=0,l=n.v,f=s.length;uuM)throw new Yr(t);return ht(e,t.i,new RegExp(n,t.m))}throw new vx(t)}function EM(e,t,n){let i=ht(e,n.i,new Set);for(let s=0,u=n.a,l=u.length;ssM)throw new Yr(t);return ht(e,t.i,wx(Xi(t.s)))}function _M(e,t,n){var i;let s=aM(n.c),u=qe(e,t,n.f),l=(i=n.b)!=null?i:0;if(l<0||l>u.byteLength)throw new Yr(n);return ht(e,n.i,new s(u,l,n.l))}function MM(e,t,n){var i;let s=qe(e,t,n.f),u=(i=n.b)!=null?i:0;if(u<0||u>s.byteLength)throw new Yr(n);return ht(e,n.i,new DataView(s,u,n.l))}function Rx(e,t,n,i){if(n.p){let s=zx(e,t,n.p,{});Object.defineProperties(i,Object.getOwnPropertyDescriptors(s))}return i}function zM(e,t,n){let i=ht(e,n.i,new AggregateError([],Xi(n.m)));return Rx(e,t,n,i)}function RM(e,t,n){let i=sy(n,AT,n.s),s=ht(e,n.i,new i(Xi(n.m)));return Rx(e,t,n,s)}function CM(e,t,n){let i=gd(),s=ht(e,n.i,i.p),u=qe(e,t,n.f);return n.s?i.s(u):i.f(u),s}function PM(e,t,n){return ht(e,n.i,Object(qe(e,t,n.f)))}function OM(e,t,n){let i=e.base.plugins;if(i){let s=Xi(n.c);for(let u=0,l=i.length;ue.base.depthLimit)throw new p_(e.base.depthLimit);switch(t+=1,n.t){case 2:return sy(n,ST,n.s);case 0:return Number(n.s);case 1:return Xi(String(n.s));case 3:if(String(n.s).length>oM)throw new Yr(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return yM(e,n);case 9:return mM(e,t,n);case 10:case 11:return wM(e,t,n);case 5:return xM(e,n);case 6:return SM(e,n);case 7:return EM(e,t,n);case 8:return AM(e,t,n);case 19:return TM(e,n);case 16:case 15:return _M(e,t,n);case 20:return MM(e,t,n);case 14:return zM(e,t,n);case 13:return RM(e,t,n);case 12:return CM(e,t,n);case 17:return sy(n,xT,n.s);case 21:return PM(e,t,n);case 25:return OM(e,t,n);case 22:return IM(e,n);case 23:return BM(e,t,n);case 24:return $M(e,t,n);case 28:return kM(e,t,n);case 30:return NM(e,t,n);case 31:return jM(e,t,n);case 32:return LM(e,t,n);case 33:return UM(e,t,n);case 34:return DM(e,t,n);case 27:return HM(e,t,n);case 29:return qM(e,t,n);case 35:return FM(e,t,n);default:throw new vx(n)}}function GM(e,t){try{return qe(e,0,t)}catch(n){throw new c_(n)}}var VM=()=>T;VM.toString();function h2(e,t){let n=Ax(t.plugins),i=fM({plugins:n,refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit});return GM(i,e)}async function KM(e,t={}){let n=Ax(t.plugins),i=U_(1,{plugins:n,disabledFeatures:t.disabledFeatures});return{t:await rM(i,e),f:i.base.features,m:Array.from(i.base.marked)}}function QM(e){return{tag:"$TSR/t/"+e.key,test:e.test,parse:{sync(t,n,i){return{v:n.parse(e.toSerializable(t))}},async async(t,n,i){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,i){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,i){return e.fromSerializable(n.deserialize(t.v))}}}var ZM=class{constructor(e,t){this.stream=e,this.hint=t?.hint??"binary"}};const Kf=globalThis.Buffer,Cx=!!Kf&&typeof Kf.from=="function";function Px(e){if(e.length===0)return"";if(Cx)return Kf.from(e).toString("base64");const t=32768,n=[];for(let i=0;inew ReadableStream({start(t){e.on({next(n){try{t.enqueue(Ox(n))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),XM=new TextEncoder,JM=e=>new ReadableStream({start(t){e.on({next(n){try{typeof n=="string"?t.enqueue(XM.encode(n)):t.enqueue(Ox(n.$b64))}catch{}},throw(n){t.error(n)},return(){try{t.close()}catch{}}})}}),WM="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v===\'string\'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i{try{for(;;){const{done:i,value:s}=await n.read();if(i){t.return(void 0);break}t.next(Px(s))}}catch(i){t.throw(i)}finally{n.releaseLock()}})(),t}function y2(e){const t=Xa(),n=e.getReader(),i=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:s,value:u}=await n.read();if(s){try{const l=i.decode();l.length>0&&t.next(l)}catch{}t.return(void 0);break}try{const l=i.decode(u,{stream:!0});l.length>0&&t.next(l)}catch{t.next({$b64:Px(u)})}}}catch(s){t.throw(s)}finally{n.releaseLock()}})(),t}const tz={tag:"tss/RawStream",extends:[{tag:"tss/RawStreamFactory",test(e){return e===Ou},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return WM},deserialize(e,t,n){return Ou}},{tag:"tss/RawStreamFactoryText",test(e){return e===Iu},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return ez},deserialize(e,t,n){return Iu}}],test(e){return e instanceof ZM},parse:{sync(e,t,n){const i=e.hint==="text"?Iu:Ou;return{hint:t.parse(e.hint),factory:t.parse(i),stream:t.parse(Xa())}},async async(e,t,n){const i=e.hint==="text"?Iu:Ou,s=e.hint==="text"?y2(e.stream):p2(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(i),stream:await t.parse(s)}},stream(e,t,n){const i=e.hint==="text"?Iu:Ou,s=e.hint==="text"?y2(e.stream):p2(e.stream);return{hint:t.parse(e.hint),factory:t.parse(i),stream:t.parse(s)}}},serialize(e,t,n){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t,n){const i=t.deserialize(e.stream);return t.deserialize(e.hint)==="text"?JM(i):YM(i)}};function nz(e){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(t,n,i){return e(typeof n?.deserialize=="function"?n.deserialize(t.streamId):t.streamId)}}}const rz={tag:"$TSR/Error",test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return"new Error("+t.serialize(e.message)+")"},deserialize(e,t){return new Error(t.deserialize(e.message))}};var Ri={},Ix=e=>new ReadableStream({start:t=>{e.on({next:n=>{try{t.enqueue(n)}catch{}},throw:n=>{t.error(n)},return:()=>{try{t.close()}catch{}}})}}),iz={tag:"seroval-plugins/web/ReadableStreamFactory",test(e){return e===Ri},parse:{sync(){return Ri},async async(){return await Promise.resolve(Ri)},stream(){return Ri}},serialize(){return Ix.toString()},deserialize(){return Ri}};function m2(e){let t=Xa(),n=e.getReader();async function i(){try{let s=await n.read();s.done?t.return(s.value):(t.next(s.value),await i())}catch(s){t.throw(s)}}return i().catch(()=>{}),t}var az={tag:"seroval/plugins/web/ReadableStream",extends:[iz],test(e){return typeof ReadableStream>"u"?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Ri),stream:t.parse(Xa())}},async async(e,t){return{factory:await t.parse(Ri),stream:await t.parse(m2(e))}},stream(e,t){return{factory:t.parse(Ri),stream:t.parse(m2(e))}}},serialize(e,t){return"("+t.serialize(e.factory)+")("+t.serialize(e.stream)+")"},deserialize(e,t){let n=t.deserialize(e.stream);return Ix(n)}},sz=az;const oz=[rz,tz,sz];function uz(){return[...kw()?.serializationAdapters?.map(QM)??[],...oz]}var b2=new TextDecoder,cz=new Uint8Array(0),g2=16*1024*1024,v2=32*1024*1024,w2=1024,x2=1e5;function lz(e){const t=new Map,n=new Map,i=new Set;let s=!1,u=null,l=0,f;const d=new ReadableStream({start(b){f=b},cancel(){s=!0;try{u?.cancel()}catch{}t.forEach(b=>{try{b.error(new Error("Framed response cancelled"))}catch{}}),t.clear(),n.clear(),i.clear()}});function h(b){const g=n.get(b);if(g)return g;if(i.has(b))return new ReadableStream({start(x){x.close()}});if(n.size>=w2)throw new Error(`Too many raw streams in framed response (max ${w2})`);const v=new ReadableStream({start(x){t.set(b,x)},cancel(){i.add(b),t.delete(b),n.delete(b)}});return n.set(b,v),v}function m(b){return h(b),t.get(b)}return(async()=>{const b=e.getReader();u=b;const g=[];let v=0;function x(){if(v<9)return null;const E=g[0];if(E.length>=9)return{type:E[0],streamId:(E[1]<<24|E[2]<<16|E[3]<<8|E[4])>>>0,length:(E[5]<<24|E[6]<<16|E[7]<<8|E[8])>>>0};const _=new Uint8Array(9);let O=0,M=9;for(let R=0;R0;R++){const z=g[R],I=Math.min(z.length,M);_.set(z.subarray(0,I),O),O+=I,M-=I}return{type:_[0],streamId:(_[1]<<24|_[2]<<16|_[3]<<8|_[4])>>>0,length:(_[5]<<24|_[6]<<16|_[7]<<8|_[8])>>>0}}function S(E){if(E===0)return cz;const _=new Uint8Array(E);let O=0,M=E;for(;M>0&&g.length>0;){const R=g[0];if(!R)break;const z=Math.min(R.length,M);_.set(R.subarray(0,z),O),O+=z,M-=z,z===R.length?g.shift():g[0]=R.subarray(z)}return v-=E,_}try{for(;;){const{done:E,value:_}=await b.read();if(s||E)break;if(_){if(v+_.length>v2)throw new Error(`Framed response buffer exceeded ${v2} bytes`);for(g.push(_),v+=_.length;;){const O=x();if(!O)break;const{type:M,streamId:R,length:z}=O;if(M!==Rr.JSON&&M!==Rr.CHUNK&&M!==Rr.END&&M!==Rr.ERROR)throw new Error(`Unknown frame type: ${M}`);if(M===Rr.JSON){if(R!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(R===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(z>g2)throw new Error(`Frame payload too large: ${z} bytes (max ${g2})`);const I=9+z;if(vx2)throw new Error(`Too many frames in framed response (max ${x2})`);S(9);const C=S(z);switch(M){case Rr.JSON:try{f.enqueue(b2.decode(C))}catch{}break;case Rr.CHUNK:{const B=m(R);B&&B.enqueue(C);break}case Rr.END:{const B=m(R);if(i.add(R),B){try{B.close()}catch{}t.delete(R)}break}case Rr.ERROR:{const B=m(R);if(i.add(R),B){const L=b2.decode(C);B.error(new Error(L)),t.delete(R)}break}}}}}if(v!==0)throw new Error("Incomplete frame at end of framed response");try{f.close()}catch{}t.forEach(E=>{try{E.close()}catch{}}),t.clear()}catch(E){try{f.error(E)}catch{}t.forEach(_=>{try{_.error(E)}catch{}}),t.clear()}finally{try{b.releaseLock()}catch{}u=null}})(),{getOrCreateStream:h,jsonChunks:d}}var Vu=null;async function oy(e){e.length>0&&await Promise.allSettled(e)}var fz=Object.prototype.hasOwnProperty;function Bx(e){for(const t in e)if(fz.call(e,t))return!0;return!1}async function dz(e,t,n){Vu||(Vu=uz());const i=t[0],s=i.fetch??n,u=i.data instanceof FormData?"formData":"payload",l=i.headers?new Headers(i.headers):new Headers;if(l.set("x-tsr-serverFn","true"),u==="payload"&&l.set("accept",`${o9}, application/x-ndjson, application/json`),i.method==="GET"){if(u==="formData")throw new Error("FormData is not supported with GET requests");const d=await $x(i);if(d!==void 0){const h=Vw({payload:d});e.includes("?")?e+=`&${h}`:e+=`?${h}`}}let f;if(i.method==="POST"){const d=await hz(i);d?.contentType&&l.set("content-type",d.contentType),f=d?.body}return await pz(async()=>s(e,{method:i.method,headers:l,signal:i.signal,body:f}))}async function $x(e){let t=!1;const n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&Bx(e.context)&&(t=!0,n.context=e.context),t)return kx(n)}async function kx(e){return JSON.stringify(await Promise.resolve(KM(e,{plugins:Vu})))}async function hz(e){if(e.data instanceof FormData){let n;return e.context&&Bx(e.context)&&(n=await kx(e.context)),n!==void 0&&e.data.set(s9,n),{body:e.data}}const t=await $x(e);if(t)return{body:t,contentType:"application/json"}}async function pz(e){let t;try{t=await e()}catch(i){if(i instanceof Response)t=i;else throw console.log(i),i}if(t.headers.get("x-tss-raw")==="true")return t;const n=t.headers.get("content-type");if(n||nn(),t.headers.get("x-tss-serialized")){let i;if(n.includes("application/x-tss-framed")){if(l9(n),!t.body)throw new Error("No response body for framed response");const{getOrCreateStream:s,jsonChunks:u}=lz(t.body),l=[nz(s),...Vu||[]],f=new Map;i=await yz({jsonStream:u,onMessage:d=>h2(d,{refs:f,plugins:l}),onError(d,h){console.error(d,h)}})}else if(n.includes("application/json")){const s=await t.json(),u=[];i=h2(s,{plugins:Vu}),await oy(u)}if(i||nn(),i instanceof Error)throw i;return i}if(n.includes("application/json")){const i=await t.json(),s=L9(i);if(s)throw s;if(gt(i))throw i;return i}if(!t.ok)throw new Error(await t.text());return t}async function yz({jsonStream:e,onMessage:t,onError:n}){const i=e.getReader(),{value:s,done:u}=await i.read();if(u||!s)throw new Error("Stream ended before first object");const l=JSON.parse(s);let f=!1;const d=(async()=>{try{for(;;){const{value:b,done:g}=await i.read();if(g)break;if(b)try{const v=[];try{t(JSON.parse(b))}finally{}await oy(v)}catch(v){n?.(`Invalid JSON: ${b}`,v)}}}catch(b){f||n?.("Stream processing error:",b)}})();let h;const m=[];try{h=t(l)}catch(b){throw f=!0,i.cancel().catch(()=>{}),b}return await oy(m),Promise.resolve(h).catch(()=>{f=!0,i.cancel().catch(()=>{})}),d.finally(()=>{try{i.releaseLock()}catch{}}),h}function mz(e){const t="/./_serverFn/"+e;return Object.assign((...s)=>{const u=kw()?.serverFns?.fetch;return dz(t,s,u??fetch)},{url:t,serverFnMeta:{id:e},[ty]:!0})}var bz={key:"$TSS/serverfn",test:e=>typeof e!="function"||!(ty in e)?!1:!!e[ty],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>mz(e)};function S2(e){return e.replaceAll("\\0","/").replaceAll("�","/")}function gz(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function vz(e){window.$_TSR||nn();const t=e.options.serializationAdapters;if(t?.length){const E=new Map;t.forEach(_=>{E.set(_.key,_.fromSerializable)}),window.$_TSR.t=E,window.$_TSR.buffer.forEach(_=>_())}window.$_TSR.initialized=!0,window.$_TSR.router||nn();const n=window.$_TSR.router;n.matches.forEach(E=>{E.i=S2(E.i)}),n.lastMatchId&&(n.lastMatchId=S2(n.lastMatchId));const{manifest:i,dehydratedData:s,lastMatchId:u}=n;e.ssr={manifest:i};const l=document.querySelector(\'meta[property="csp-nonce"]\')?.content;e.options.ssr={nonce:l},await e.options.hydrate?.(s);const f=e.matchRoutes(e.stores.location.get()),d=Promise.all(f.map(E=>e.loadRouteChunk(e.looseRoutesById[E.routeId])));function h(E){const _=e.looseRoutesById[E.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(_){const O=Ia();E._nonReactive.minPendingPromise=O,E._forcePending=!0,setTimeout(()=>{O.resolve(),e.updateMatch(E.id,M=>(M._nonReactive.minPendingPromise=void 0,{...M,_forcePending:void 0}))},_)}}function m(E){const _=e.looseRoutesById[E.routeId];_&&(_.options.ssr=E.ssr)}let b;f.forEach(E=>{const _=n.matches.find(O=>O.i===E.id);if(!_){E._nonReactive.dehydrated=!1,E.ssr=!1,m(E);return}gz(E,_),m(E),E._nonReactive.dehydrated=E.ssr!==!1,(E.ssr==="data-only"||E.ssr===!1)&&b===void 0&&(b=E.index,h(E))}),e.stores.setMatches(f);const g=e.stores.matches.get(),v=e.stores.location.get();await Promise.all(g.map(async E=>{try{const _=e.looseRoutesById[E.routeId],O=g[E.index-1]?.context??e.options.context;if(_.options.context){const I={deps:E.loaderDeps,params:E.params,context:O??{},location:v,navigate:C=>e.navigate({...C,_fromLocation:v}),buildLocation:e.buildLocation,cause:E.cause,abortController:E.abortController,preload:!1,matches:f,routeId:_.id};E.__routeContext=_.options.context(I)??void 0}E.context={...O,...E.__routeContext,...E.__beforeLoadContext};const M={ssr:e.options.ssr,matches:g,match:E,params:E.params,loaderData:E.loaderData},R=await _.options.head?.(M),z=await _.options.scripts?.(M);E.meta=R?.meta,E.links=R?.links,E.headScripts=R?.scripts,E.styles=R?.styles,E.scripts=z}catch(_){if(gt(_))E.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${E.routeId}`,_);else throw E.error=_,console.error(`Error during hydration for route ${E.routeId}:`,_),_}}));const x=f[f.length-1].id!==u;if(!f.some(E=>E.ssr===!1)&&!x)return f.forEach(E=>{E._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),d;const S=Promise.resolve().then(()=>e.load()).catch(E=>{console.error("Error during router hydration:",E)});if(x){const E=f[1];E||nn(),h(E),E._displayPending=!0,E._nonReactive.displayPendingPromise=S,S.then(()=>{e.batch(()=>{e.stores.status.get()==="pending"&&(e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(E.id,_=>({..._,_displayPending:void 0,displayPendingPromise:void 0}))})})}return d}var Qf=re.use,Nu=typeof window<"u"?re.useLayoutEffect:re.useEffect;function Sp(e){const t=re.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function wz(e,t,n={},i={}){re.useEffect(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!="function")return;const s=new IntersectionObserver(([u])=>{t(u)},n);return s.observe(e.current),()=>{s.disconnect()}},[t,n,i.disabled,e])}function xz(e){const t=re.useRef(null);return re.useImperativeHandle(e,()=>t.current,[]),t}function Sz({promise:e}){if(Qf)return Qf(e);const t=hT(e);if(t[nr].status==="pending")throw t;if(t[nr].status==="error")throw t[nr].error;return t[nr].data}function Ez(e){const t=F.jsx(Az,{...e});return e.fallback?F.jsx(re.Suspense,{fallback:e.fallback,children:t}):t}function Az(e){const t=Sz(e);return e.children(t)}function Pm(e){const t=e.errorComponent??Om;return F.jsx(Tz,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?re.createElement(t,{error:n,reset:i}):e.children})}var Tz=class extends re.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Om({error:e}){const[t,n]=re.useState(!1);return F.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[F.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[F.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),F.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),F.jsx("div",{style:{height:".25rem"}}),t?F.jsx("div",{children:F.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?F.jsx("code",{children:e.message}):null})}):null]})}function _z({children:e,fallback:t=null}){return Im()?F.jsx(so.Fragment,{children:e}):F.jsx(so.Fragment,{children:t})}function Im(){return so.useSyncExternalStore(Mz,()=>!0,()=>!1)}function Mz(){return()=>{}}var Nx=re.createContext(null);function Mt(e){return re.useContext(Nx)}var xd=re.createContext(void 0),zz=re.createContext(void 0),Ye=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(Ye||{});function Rz({update:e,notify:t,unwatched:n}){return{link:i,unlink:s,propagate:u,checkDirty:l,shallowPropagate:f};function i(h,m,b){const g=m.depsTail;if(g!==void 0&&g.dep===h)return;const v=g!==void 0?g.nextDep:m.deps;if(v!==void 0&&v.dep===h){v.version=b,m.depsTail=v;return}const x=h.subsTail;if(x!==void 0&&x.version===b&&x.sub===m)return;const S=m.depsTail=h.subsTail={version:b,dep:h,sub:m,prevDep:g,nextDep:v,prevSub:x,nextSub:void 0};v!==void 0&&(v.prevDep=S),g!==void 0?g.nextDep=S:m.deps=S,x!==void 0?x.nextSub=S:h.subs=S}function s(h,m=h.sub){const b=h.dep,g=h.prevDep,v=h.nextDep,x=h.nextSub,S=h.prevSub;return v!==void 0?v.prevDep=g:m.depsTail=g,g!==void 0?g.nextDep=v:m.deps=v,x!==void 0?x.prevSub=S:b.subsTail=S,S!==void 0?S.nextSub=x:(b.subs=x)===void 0&&n(b),v}function u(h){let m=h.nextSub,b;e:do{const g=h.sub;let v=g.flags;if(v&60?v&12?v&4?!(v&48)&&d(h,g)?(g.flags=v|40,v&=1):v=0:g.flags=v&-9|32:v=0:g.flags=v|32,v&2&&t(g),v&1){const x=g.subs;if(x!==void 0){const S=(h=x).nextSub;S!==void 0&&(b={value:m,prev:b},m=S);continue}}if((h=m)!==void 0){m=h.nextSub;continue}for(;b!==void 0;)if(h=b.value,b=b.prev,h!==void 0){m=h.nextSub;continue e}break}while(!0)}function l(h,m){let b,g=0,v=!1;e:do{const x=h.dep,S=x.flags;if(m.flags&16)v=!0;else if((S&17)===17){if(e(x)){const E=x.subs;E.nextSub!==void 0&&f(E),v=!0}}else if((S&33)===33){(h.nextSub!==void 0||h.prevSub!==void 0)&&(b={value:h,prev:b}),h=x.deps,m=x,++g;continue}if(!v){const E=h.nextDep;if(E!==void 0){h=E;continue}}for(;g--;){const E=m.subs,_=E.nextSub!==void 0;if(_?(h=b.value,b=b.prev):h=E,v){if(e(m)){_&&f(E),m=h.sub;continue}v=!1}else m.flags&=-33;m=h.sub;const O=h.nextDep;if(O!==void 0){h=O;continue e}}return v}while(!0)}function f(h){do{const m=h.sub,b=m.flags;(b&48)===32&&(m.flags=b|16,(b&6)===2&&t(m))}while((h=h.nextSub)!==void 0)}function d(h,m){let b=m.depsTail;for(;b!==void 0;){if(b===h)return!0;b=b.prevDep}return!1}}function Cz(e,t,n){const i=typeof e=="object",s=i?e:void 0;return{next:(i?e.next:e)?.bind(s),error:(i?e.error:t)?.bind(s),complete:(i?e.complete:n)?.bind(s)}}const uy=[];let kf=0;const{link:E2,unlink:Pz,propagate:Oz,checkDirty:jx,shallowPropagate:A2}=Rz({update(e){return e._update()},notify(e){uy[cy++]=e,e.flags&=~Ye.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Ye.Mutable|Ye.Dirty,Zf(e))}});let yf=0,cy=0,tr,ly=0;function Lx(e){try{++ly,e()}finally{--ly||Ux()}}function Zf(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=Pz(n,e)}function Ux(){if(!(ly>0)){for(;yf{s.get(),f.current?l.next?.(s._snapshot):f.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(u){const l=tr,f=t?.compare??Object.is;if(n)tr=s,++kf,s.depsTail=void 0;else if(u===void 0)return!1;n&&(s.flags=Ye.Mutable|Ye.RecursedCheck);try{const d=s._snapshot,h=typeof u=="function"?u(d):u===void 0&&n?i(d):u;return d===void 0||!f(d,h)?(s._snapshot=h,!0):!1}finally{tr=l,n&&(s.flags&=~Ye.RecursedCheck),Zf(s)}}};return n?(s.flags=Ye.Mutable|Ye.Dirty,s.get=function(){const u=s.flags;if(u&Ye.Dirty||u&Ye.Pending&&jx(s.deps,s)){if(s._update()){const l=s.subs;l!==void 0&&A2(l)}}else u&Ye.Pending&&(s.flags=u&~Ye.Pending);return tr!==void 0&&E2(s,tr,kf),s._snapshot}):s.set=function(u){if(s._update(u)){const l=s.subs;l!==void 0&&(Oz(l),A2(l),Ux())}},s}function Iz(e){const t=()=>{const i=tr;tr=n,++kf,n.depsTail=void 0,n.flags=Ye.Watching|Ye.RecursedCheck;try{return e()}finally{tr=i,n.flags&=~Ye.RecursedCheck,Zf(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Ye.Watching|Ye.RecursedCheck,notify(){const i=this.flags;i&Ye.Dirty||i&Ye.Pending&&jx(this.deps,this)?t():this.flags=Ye.Watching},stop(){this.flags=Ye.None,this.depsTail=void 0,Zf(this)}};return t(),n}var Ep={exports:{}},Ap={},Tp={exports:{}},_p={};var _2;function Bz(){if(_2)return _p;_2=1;var e=zc();function t(b,g){return b===g&&(b!==0||1/b===1/g)||b!==b&&g!==g}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,u=e.useLayoutEffect,l=e.useDebugValue;function f(b,g){var v=g(),x=i({inst:{value:v,getSnapshot:g}}),S=x[0].inst,E=x[1];return u(function(){S.value=v,S.getSnapshot=g,d(S)&&E({inst:S})},[b,v,g]),s(function(){return d(S)&&E({inst:S}),b(function(){d(S)&&E({inst:S})})},[b]),l(v),v}function d(b){var g=b.getSnapshot;b=b.value;try{var v=g();return!n(b,v)}catch{return!0}}function h(b,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return _p.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,_p}var M2;function $z(){return M2||(M2=1,Tp.exports=Bz()),Tp.exports}var z2;function kz(){if(z2)return Ap;z2=1;var e=zc(),t=$z();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var i=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,u=e.useRef,l=e.useEffect,f=e.useMemo,d=e.useDebugValue;return Ap.useSyncExternalStoreWithSelector=function(h,m,b,g,v){var x=u(null);if(x.current===null){var S={hasValue:!1,value:null};x.current=S}else S=x.current;x=f(function(){function _(I){if(!O){if(O=!0,M=I,I=g(I),v!==void 0&&S.hasValue){var C=S.value;if(v(C,I))return R=C}return R=I}if(C=R,i(M,I))return C;var B=g(I);return v!==void 0&&v(C,B)?(M=I,C):(M=I,R=B)}var O=!1,M,R,z=b===void 0?null:b;return[function(){return _(m())},z===null?void 0:function(){return _(z())}]},[m,b,g,v]);var E=s(h,x[0],x[1]);return l(function(){S.hasValue=!0,S.value=E},[E]),d(E),E},Ap}var R2;function Nz(){return R2||(R2=1,Ep.exports=kz()),Ep.exports}var jz=Nz();function Lz(e,t){return e===t}function et(e,t,n=Lz){const i=re.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:f}=e.subscribe(l);return f},[e]),s=re.useCallback(()=>e?.get(),[e]);return jz.useSyncExternalStoreWithSelector(i,s,s,t,n)}var Uz={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Ja(e){const t=Mt(),n=re.useContext(e.from?zz:xd),i=e.from??n,s=i?e.from?t.stores.getRouteMatchStore(i):t.stores.matchStores.get(i):void 0,u=re.useRef(void 0);return et(s??Uz,l=>{if((e.shouldThrow??!0)&&!l&&nn(),l===void 0)return;const f=e.select?e.select(l):l;if(e.structuralSharing??t.options.defaultStructuralSharing){const d=Aa(u.current,f);return u.current=d,d}return f})}function Dx(e){return Ja({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Hx(e){const{select:t,...n}=e;return Ja({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function qx(e){return Ja({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Fx(e){return Ja({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Gx(e){const t=Mt();return re.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Vx(e){return Ja({...e,select:t=>e.select?e.select(t.context):t.context})}var Dz=$w();function Hz(e,t){const n=Mt(),i=xz(t),{activeProps:s,inactiveProps:u,activeOptions:l,to:f,preload:d,preloadDelay:h,preloadIntentProximity:m,hashScrollIntoView:b,replace:g,startTransition:v,resetScroll:x,viewTransition:S,children:E,target:_,disabled:O,style:M,className:R,onClick:z,onBlur:I,onFocus:C,onMouseEnter:B,onMouseLeave:L,onTouchStart:D,ignoreBlocker:K,params:J,search:te,hash:ue,state:X,mask:N,reloadDocument:G,unsafeRelative:ne,from:ce,_fromLocation:fe,...$}=e,Z=Im(),se=re.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),ae=et(n.stores.location,Ge=>Ge,(Ge,wt)=>Ge.href===wt.href),le=re.useMemo(()=>{const Ge={_fromLocation:ae,...se};return n.buildLocation(Ge)},[n,ae,se]),ge=le.maskedLocation?le.maskedLocation.publicHref:le.publicHref,we=le.maskedLocation?le.maskedLocation.external:le.external,Ve=re.useMemo(()=>Qz(ge,we,n.history,O),[O,we,ge,n.history]),ze=re.useMemo(()=>{if(Ve?.external)return qf(Ve.href,n.protocolAllowlist)?void 0:Ve.href;if(!Zz(f)&&!(typeof f!="string"||f.indexOf(":")===-1))try{return new URL(f),qf(f,n.protocolAllowlist)?void 0:f}catch{}},[f,Ve,n.protocolAllowlist]),zt=re.useMemo(()=>{if(ze)return!1;if(l?.exact){if(!P9(ae.pathname,le.pathname,n.basepath))return!1}else{const Ge=Ff(ae.pathname,n.basepath),wt=Ff(le.pathname,n.basepath);if(!(Ge.startsWith(wt)&&(Ge.length===wt.length||Ge[wt.length]==="/")))return!1}return(l?.includeSearch??!0)&&!Nt(ae.search,le.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?Z&&ae.hash===le.hash:!0},[l?.exact,l?.explicitUndefined,l?.includeHash,l?.includeSearch,ae,ze,Z,le.hash,le.pathname,le.search,n.basepath]),on=zt?Ea(s,{})??qz:Mp,Gt=zt?Mp:Ea(u,{})??Mp,un=[R,on.className,Gt.className].filter(Boolean).join(" "),Rt=(M||on.style||Gt.style)&&{...M,...on.style,...Gt.style},[Sn,cr]=re.useState(!1),Gc=re.useRef(!1),lr=e.reloadDocument||ze?!1:d??n.options.defaultPreload,na=h??n.options.defaultPreloadDelay??0,jn=re.useCallback(()=>{n.preloadRoute({...se,_builtLocation:le}).catch(Ge=>{console.warn(Ge),console.warn(pT)})},[n,se,le]);wz(i,re.useCallback(Ge=>{Ge?.isIntersecting&&jn()},[jn]),Kz,{disabled:!!O||lr!=="viewport"}),re.useEffect(()=>{Gc.current||!O&&lr==="render"&&(jn(),Gc.current=!0)},[O,jn,lr]);const $o=Ge=>{const wt=Ge.currentTarget.getAttribute("target"),Qn=_!==void 0?_:wt;if(!O&&!Yz(Ge)&&!Ge.defaultPrevented&&(!Qn||Qn==="_self")&&Ge.button===0){Ge.preventDefault(),Dz.flushSync(()=>{cr(!0)});const es=n.subscribe("onResolved",()=>{es(),cr(!1)});n.navigate({...se,replace:g,resetScroll:x,hashScrollIntoView:b,startTransition:v,viewTransition:S,ignoreBlocker:K})}};if(ze)return{...$,ref:i,href:ze,...E&&{children:E},..._&&{target:_},...O&&{disabled:O},...M&&{style:M},...R&&{className:R},...z&&{onClick:z},...I&&{onBlur:I},...C&&{onFocus:C},...B&&{onMouseEnter:B},...L&&{onMouseLeave:L},...D&&{onTouchStart:D}};const Vc=Ge=>{if(O||lr!=="intent")return;if(!na){jn();return}const wt=Ge.currentTarget;if(Bu.has(wt))return;const Qn=setTimeout(()=>{Bu.delete(wt),jn()},na);Bu.set(wt,Qn)},Yd=Ge=>{O||lr!=="intent"||jn()},Ct=Ge=>{if(O||!lr||!na)return;const wt=Ge.currentTarget,Qn=Bu.get(wt);Qn&&(clearTimeout(Qn),Bu.delete(wt))};return{...$,...on,...Gt,href:Ve?.href,ref:i,onClick:Ls([z,$o]),onBlur:Ls([I,Ct]),onFocus:Ls([C,Vc]),onMouseEnter:Ls([B,Vc]),onMouseLeave:Ls([L,Ct]),onTouchStart:Ls([D,Yd]),disabled:!!O,target:_,...Rt&&{style:Rt},...un&&{className:un},...O&&Fz,...zt&&Gz,...Z&&Sn&&Vz}}var Mp={},qz={className:"active"},Fz={role:"link","aria-disabled":!0},Gz={"data-status":"active","aria-current":"page"},Vz={"data-transitioning":"transitioning"},Bu=new WeakMap,Kz={rootMargin:"100px"},Ls=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Qz(e,t,n,i){if(!i)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function Zz(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Pc=re.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:s,...u}=Hz(i,t),l=typeof i.children=="function"?i.children({isActive:u["data-status"]==="active"}):i.children;if(!n){const{disabled:f,...d}=u;return re.createElement("a",d,l)}return re.createElement(n,u,l)});function Yz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Xz=class extends ex{constructor(t){super(t),this.useMatch=n=>Ja({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Vx({...n,from:this.id}),this.useSearch=n=>Fx({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>qx({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Hx({...n,from:this.id}),this.useLoaderData=n=>Dx({...n,from:this.id}),this.useNavigate=()=>Gx({from:this.fullPath}),this.Link=so.forwardRef((n,i)=>F.jsx(Pc,{ref:i,from:this.fullPath,...n}))}};function Jz(e){return new Xz(e)}function Wz(){return e=>tR(e)}var eR=class extends vT{constructor(e){super(e),this.useMatch=t=>Ja({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Vx({...t,from:this.id}),this.useSearch=t=>Fx({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>qx({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Hx({...t,from:this.id}),this.useLoaderData=t=>Dx({...t,from:this.id}),this.useNavigate=()=>Gx({from:this.fullPath}),this.Link=so.forwardRef((t,n)=>F.jsx(Pc,{ref:n,from:this.fullPath,...t}))}};function tR(e){return new eR(e)}function Xr(e){return new nR(e,{silent:!0}).createRoute}var nR=class{constructor(e,t){this.path=e,this.createRoute=n=>{const i=Jz(n);return i.isRoot=!1,i},this.silent=t?.silent}};function ir(e,t){let n,i,s,u;const l=()=>(n||(n=e().then(d=>{n=void 0,i=d[t??"default"]}).catch(d=>{if(s=d,h9(s)&&s instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const h=`tanstack_router_reload:${s.message}`;sessionStorage.getItem(h)||(sessionStorage.setItem(h,"1"),u=!0)}})),n),f=function(h){if(u)throw window.location.reload(),new Promise(()=>{});if(s)throw s;if(!i)if(Qf)Qf(l());else throw l();return re.createElement(i,h)};return f.preload=l,f}function rR(e){const t=Mt(),n=`not-found-${et(t.stores.location,i=>i.pathname)}-${et(t.stores.status,i=>i)}`;return F.jsx(Pm,{getResetKey:()=>n,onCatch:(i,s)=>{if(gt(i))e.onCatch?.(i,s);else throw i},errorComponent:({error:i})=>{if(gt(i))return e.fallback?.(i);throw i},children:e.children})}function iR(){return F.jsx("p",{children:"Not Found"})}function Ks(e){return F.jsx(F.Fragment,{children:e.children})}function Kx(e,t,n){return t.options.notFoundComponent?F.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?F.jsx(e.options.defaultNotFoundComponent,{...n}):F.jsx(iR,{})}function aR(e){return null}function sR(){return aR(Mt()),null}var Qx=re.memo(function({matchId:t}){const n=Mt(),i=n.stores.matchStores.get(t);i||nn();const s=et(n.stores.loadedAt,l=>l),u=et(i,l=>l);return F.jsx(oR,{router:n,matchId:t,resetKey:s,matchState:re.useMemo(()=>{const l=u.routeId,f=n.routesById[l].parentRoute?.id;return{routeId:l,ssr:u.ssr,_displayPending:u._displayPending,parentRouteId:f}},[u._displayPending,u.routeId,u.ssr,n.routesById])})});function oR({router:e,matchId:t,resetKey:n,matchState:i}){const s=e.routesById[i.routeId],u=s.options.pendingComponent??e.options.defaultPendingComponent,l=u?F.jsx(u,{}):null,f=s.options.errorComponent??e.options.defaultErrorComponent,d=s.options.onCatch??e.options.defaultOnCatch,h=s.isRoot?s.options.notFoundComponent??e.options.notFoundRoute?.options.component:s.options.notFoundComponent,m=i.ssr===!1||i.ssr==="data-only",b=(!s.isRoot||s.options.wrapInSuspense||m)&&(s.options.wrapInSuspense??u??(s.options.errorComponent?.preload||m))?re.Suspense:Ks,g=f?Pm:Ks,v=h?rR:Ks;return F.jsxs(s.isRoot?s.options.shellComponent??Ks:Ks,{children:[F.jsx(xd.Provider,{value:t,children:F.jsx(b,{fallback:l,children:F.jsx(g,{getResetKey:()=>n,errorComponent:f||Om,onCatch:(x,S)=>{if(gt(x))throw x.routeId??=i.routeId,x;d?.(x,S)},children:F.jsx(v,{fallback:x=>{if(x.routeId??=i.routeId,!h||x.routeId&&x.routeId!==i.routeId||!x.routeId&&!s.isRoot)throw x;return re.createElement(h,x)},children:m||i._displayPending?F.jsx(_z,{fallback:l,children:F.jsx(C2,{matchId:t})}):F.jsx(C2,{matchId:t})})})})}),i.parentRouteId===Ca?F.jsxs(F.Fragment,{children:[F.jsx(uR,{resetKey:n}),e.options.scrollRestoration&&Nw?F.jsx(sR,{}):null]}):null]})}function uR({resetKey:e}){const t=Mt(),n=re.useRef(void 0);return Nu(()=>{const i=t.latestLocation.href;(n.current===void 0||n.current!==i)&&(t.emit({type:"onRendered",...Js(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=i)},[t.latestLocation.state.__TSR_key,e,t]),null}var C2=re.memo(function({matchId:t}){const n=Mt(),i=(m,b)=>n.getMatch(m.id)?._nonReactive[b]??m._nonReactive[b],s=n.stores.matchStores.get(t);s||nn();const u=et(s,m=>m),l=u.routeId,f=n.routesById[l],d=re.useMemo(()=>{const m=(n.routesById[l].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:l,loaderDeps:u.loaderDeps,params:u._strictParams,search:u._strictSearch});return m?JSON.stringify(m):void 0},[l,u.loaderDeps,u._strictParams,u._strictSearch,n.options.defaultRemountDeps,n.routesById]),h=re.useMemo(()=>{const m=f.options.component??n.options.defaultComponent;return m?F.jsx(m,{},d):F.jsx(Zx,{})},[d,f.options.component,n.options.defaultComponent]);if(u._displayPending)throw i(u,"displayPendingPromise");if(u._forcePending)throw i(u,"minPendingPromise");if(u.status==="pending"){const m=f.options.pendingMinMs??n.options.defaultPendingMinMs;if(m){const b=n.getMatch(u.id);if(b&&!b._nonReactive.minPendingPromise){const g=Ia();b._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),b._nonReactive.minPendingPromise=void 0},m)}}throw i(u,"loadPromise")}if(u.status==="notFound")return gt(u.error)||nn(),Kx(n,f,u.error);if(u.status==="redirected")throw en(u.error)||nn(),i(u,"loadPromise");if(u.status==="error")throw u.error;return h}),Zx=re.memo(function(){const t=Mt(),n=re.useContext(xd);let i,s=!1,u;{const h=n?t.stores.matchStores.get(n):void 0;[i,s]=et(h,m=>[m?.routeId,m?.globalNotFound??!1]),u=et(t.stores.matchesId,m=>m[m.findIndex(b=>b===n)+1])}const l=i?t.routesById[i]:void 0,f=t.options.defaultPendingComponent?F.jsx(t.options.defaultPendingComponent,{}):null;if(s)return l||nn(),Kx(t,l,void 0);if(!u)return null;const d=F.jsx(Qx,{matchId:u});return i===Ca?F.jsx(re.Suspense,{fallback:f,children:d}):d});function cR(){const e=Mt(),t=re.useRef({router:e,mounted:!1}),[n,i]=re.useState(!1),s=et(e.stores.isLoading,b=>b),u=et(e.stores.hasPending,b=>b),l=Sp(s),f=s||n||u,d=Sp(f),h=s||u,m=Sp(h);return e.startTransition=b=>{i(!0),re.startTransition(()=>{b(),i(!1)})},re.useEffect(()=>{const b=e.history.subscribe(e.load),g=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Lr(e.latestLocation.publicHref)!==Lr(g.publicHref)&&e.commitLocation({...g,replace:!0}),()=>{b()}},[e,e.history]),Nu(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(g){console.error(g)}})()},[e]),Nu(()=>{l&&!s&&e.emit({type:"onLoad",...Js(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,e,s]),Nu(()=>{m&&!h&&e.emit({type:"onBeforeRouteMount",...Js(e.stores.location.get(),e.stores.resolvedLocation.get())})},[h,m,e]),Nu(()=>{if(d&&!f){const b=Js(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...b}),Lx(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())})}},[f,d,e]),null}function lR(){const e=Mt(),t=e.routesById[Ca].options.pendingComponent??e.options.defaultPendingComponent,n=t?F.jsx(t,{}):null,i=F.jsxs(typeof document<"u"&&e.ssr?Ks:re.Suspense,{fallback:n,children:[F.jsx(cR,{}),F.jsx(fR,{})]});return e.options.InnerWrap?F.jsx(e.options.InnerWrap,{children:i}):i}function fR(){const e=Mt(),t=et(e.stores.firstId,s=>s),n=et(e.stores.loadedAt,s=>s),i=t?F.jsx(Qx,{matchId:t}):null;return F.jsx(xd.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?i:F.jsx(Pm,{getResetKey:()=>n,errorComponent:Om,onCatch:void 0,children:i})})}function Yx(){const e=Mt();return et(e.stores.matchRouteDeps,t=>t),re.useCallback(t=>{const{pending:n,caseSensitive:i,fuzzy:s,includeSearch:u,...l}=t;return e.matchRoute(l,{pending:n,caseSensitive:i,fuzzy:s,includeSearch:u})},[e])}var dR=e=>({createMutableStore:T2,createReadonlyStore:T2,batch:Lx}),hR=e=>new pR(e),pR=class extends W9{constructor(e){super(e,dR)}};function yR({router:e,children:t,...n}){Lw(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=F.jsx(Nx.Provider,{value:e,children:t});return e.options.Wrap?F.jsx(e.options.Wrap,{children:i}):i}function mR({router:e,...t}){return F.jsx(yR,{router:e,...t,children:F.jsx(lR,{})})}function P2(e,t){if(t)for(const[n,i]of Object.entries(t))n!=="suppressHydrationWarning"&&i!==void 0&&i!==!1&&e.setAttribute(n,typeof i=="boolean"?"":String(i))}function Xx(e){const{attrs:t,children:n,nonce:i,preventScriptHoist:s}=e;switch(e.tag){case"title":return F.jsx("title",{...t,suppressHydrationWarning:!0,children:n});case"meta":return F.jsx("meta",{...t,suppressHydrationWarning:!0});case"link":return F.jsx("link",{...t,precedence:t?.precedence??(t?.rel==="stylesheet"?"default":void 0),nonce:i,suppressHydrationWarning:!0});case"style":return e.inlineCss,F.jsx("style",{...t,dangerouslySetInnerHTML:{__html:n},nonce:i});case"script":return F.jsx(bR,{attrs:t,preventScriptHoist:s,children:n});default:return null}}function bR({attrs:e,children:t,preventScriptHoist:n}){Mt();const i=Im(),s=typeof e?.type=="string"&&e.type!==""&&e.type!=="text/javascript"&&e.type!=="module";if(re.useEffect(()=>{if(!s){if(e?.src){const u=(()=>{try{const f=document.baseURI||window.location.href;return new URL(e.src,f).href}catch{return e.src}})();for(const f of document.querySelectorAll("script[src]"))if(f.src===u)return;const l=document.createElement("script");return P2(l,e),document.head.appendChild(l),()=>l.remove()}if(typeof t=="string"){const u=typeof e?.type=="string"?e.type:"text/javascript",l=typeof e?.nonce=="string"?e.nonce:void 0;for(const d of document.querySelectorAll("script:not([src])")){if(!(d instanceof HTMLScriptElement))continue;const h=d.getAttribute("type")??"text/javascript",m=d.getAttribute("nonce")??void 0;if(d.textContent===t&&h===u&&m===l)return}const f=document.createElement("script");return f.textContent=t,P2(f,e),document.head.appendChild(f),()=>f.remove()}}},[e,t,s]),s&&typeof t=="string")return F.jsx("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!i){if(e?.src)return F.jsx("script",{...e,suppressHydrationWarning:!0});if(typeof t=="string")return F.jsx("script",{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var gR=e=>{const t=Mt(),n=t.options.ssr?.nonce,i=et(t.stores.matches,b=>b.map(g=>g.meta).filter(g=>g!==void 0),Nt),s=re.useMemo(()=>{const b=[],g={};let v;for(let x=i.length-1;x>=0;x--){const S=i[x];for(let E=S.length-1;E>=0;E--){const _=S[E];if(_)if(_.title)v||(v={tag:"title",children:_.title});else if("script:ld+json"in _)try{const O=JSON.stringify(_["script:ld+json"]);b.push({tag:"script",attrs:{type:"application/ld+json"},children:g9(O)})}catch{}else{const O=_.name??_.property;if(O){if(g[O])continue;g[O]=!0}b.push({tag:"meta",attrs:{..._,nonce:n}})}}}return v&&b.push(v),n&&b.push({tag:"meta",attrs:{property:"csp-nonce",content:n}}),b.reverse(),b},[i,n]),u=et(t.stores.matches,b=>b.flatMap(g=>g.links??[]).filter(g=>g!==void 0).map(g=>({tag:"link",attrs:{...g,nonce:n}})),Nt),l=et(t.stores.matches,b=>{const g=t.ssr?.manifest,v=[];return g&&(b.forEach(x=>{g.routes[x.routeId]?.css?.forEach(S=>{const E=gT(S);v.push({tag:"link",attrs:{rel:"stylesheet",...E,crossOrigin:Ww(e,"stylesheet")??E.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),g.inlineStyle&&v.push({tag:"style",attrs:{...g.inlineStyle.attrs,nonce:n},children:g.inlineStyle.children,inlineCss:!0})),v},Nt),f=et(t.stores.matches,b=>{const g=[],v=t.ssr?.manifest;return v&&b.forEach(x=>{v.routes[x.routeId]?.preloads?.forEach(S=>{g.push({tag:"link",attrs:{...mT(v,S,e),nonce:n}})})}),g},Nt),d=et(t.stores.matches,b=>b.flatMap(g=>g.styles??[]).filter(g=>g!==void 0).map(({children:g,...v})=>({tag:"style",attrs:{...v,nonce:n},children:g})),Nt),h=et(t.stores.matches,b=>b.flatMap(g=>g.headScripts??[]).filter(g=>g!==void 0).map(({children:g,...v})=>({tag:"script",attrs:{...v,nonce:n},children:g})),Nt),m=[];return hf(m,s),m.push(...f),hf(m,u),m.push(...l),hf(m,d),hf(m,h),m};function vR(e){const t=gR(e.assetCrossOrigin),n=Mt().options.ssr?.nonce;return F.jsx(F.Fragment,{children:t.map(i=>re.createElement(Xx,{...i,key:`tsr-meta-${JSON.stringify(i)}`,nonce:n}))})}var wR=()=>{const e=Mt(),t=e.options.ssr?.nonce,n=u=>{const l=[],f=e.ssr?.manifest;if(!f)return[];for(const d of u){const h=f.routes[d.routeId]?.scripts;if(h)for(const m of h)l.push({tag:"script",attrs:{...m.attrs,nonce:t},children:m.children,...typeof m.attrs?.src=="string"?{preventScriptHoist:!0}:{}})}return l},i=u=>u.map(l=>l.scripts).flat(1).filter(Boolean).map(({children:l,...f})=>({tag:"script",attrs:{...f,suppressHydrationWarning:!0,nonce:t},children:l})),s=et(e.stores.matches,n,Nt);return xR(e,et(e.stores.matches,i,Nt),s)};function xR(e,t,n){const i=[...t,...n];return F.jsx(F.Fragment,{children:i.map((s,u)=>re.createElement(Xx,{...s,key:`tsr-scripts-${s.tag}-${u}`}))})}var ju=(e,t)=>{const n={type:"request",...t||e},i=s=>ju({},Object.assign(n,{validator:s,inputValidator:s}));return{options:n,middleware:s=>ju({},Object.assign(n,{middleware:s})),validator:i,inputValidator:i,client:s=>ju({},Object.assign(n,{client:s})),server:s=>ju({},Object.assign(n,{server:s}))}};function Jx(e,t){for(let n=0,i=t.length;n({getOptions:async()=>{const t=await e();if(t.serializationAdapters){const n=new Set;Jx(n,t.serializationAdapters),t.serializationAdapters=Array.from(n)}return t},createMiddleware:ju});const O2=SR(()=>({defaultSsr:!1}));var Eo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ER=class extends Eo{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Bm=new ER,AR={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},TR=class{#e=AR;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Ur=new TR;function _R(e){setTimeout(e,0)}var MR=typeof window>"u"||"Deno"in globalThis;function lt(){}function zR(e,t){return typeof e=="function"?e(t):e}function fy(e){return typeof e=="number"&&e>=0&&e!==1/0}function Wx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ni(e,t){return typeof e=="function"?e(t):e}function wn(e,t){return typeof e=="function"?e(t):e}function I2(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:u,queryKey:l,stale:f}=e;if(l){if(i){if(t.queryHash!==$m(l,t.options))return!1}else if(!Ku(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||s&&s!==t.state.fetchStatus||u&&!u(t))}function B2(e,t){const{exact:n,status:i,predicate:s,mutationKey:u}=e;if(u){if(!t.options.mutationKey)return!1;if(n){if(Ba(t.options.mutationKey)!==Ba(u))return!1}else if(!Ku(t.options.mutationKey,u))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function $m(e,t){return(t?.queryKeyHashFn||Ba)(e)}function Ba(e){return JSON.stringify(e,(t,n)=>dy(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function Ku(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ku(e[n],t[n])):!1}var RR=Object.prototype.hasOwnProperty;function eS(e,t,n=0){if(e===t)return e;if(n>500)return t;const i=$2(e)&&$2(t);if(!i&&!(dy(e)&&dy(t)))return t;const u=(i?e:Object.keys(e)).length,l=i?t:Object.keys(t),f=l.length,d=i?new Array(f):{};let h=0;for(let m=0;m{Ur.setTimeout(t,e)})}function hy(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?eS(e,t):t}function PR(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function OR(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var km=Symbol();function tS(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===km?()=>Promise.reject(new Error(`Missing queryFn: \'${e.queryHash}\'`)):e.queryFn}function Nm(e,t){return typeof e=="function"?e(...t):!!e}function IR(e,t,n){let i=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),i||(i=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var Qu=(()=>{let e=()=>MR;return{isServer(){return e()},setIsServer(t){e=t}}})();function py(){let e,t;const n=new Promise((s,u)=>{e=s,t=u});n.status="pending",n.catch(()=>{});function i(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},n.reject=s=>{i({status:"rejected",reason:s}),t(s)},n}function BR(e){let t;if(e.then(n=>(t=n,n),lt)?.catch(lt),t!==void 0)return{data:t}}function nS(e){return e}function $R(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function kR(e,t,n){const i=()=>{const s=e.promise?.then(t).catch(u=>n(u)?Promise.reject(new Error("redacted")):Promise.reject(u));return s?.catch(lt),s};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status==="pending"&&{promise:i()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function NR(e){return e.state.isPaused}function rS(e){return e.state.status==="success"}function jR(e){return!0}function LR(e,t={}){const n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??NR,i=e.getMutationCache().getAll().flatMap(d=>n(d)?[$R(d)]:[]),s=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??rS,u=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??jR,l=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??nS,f=e.getQueryCache().getAll().flatMap(d=>s(d)?[kR(d,l,u)]:[]);return{mutations:i,queries:f}}function UR(e,t,n){if(typeof t!="object"||t===null)return;const i=e.getMutationCache(),s=e.getQueryCache(),u=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??nS,l=t.mutations||[],f=t.queries||[];l.forEach(({state:d,...h})=>{i.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...h},d)}),f.forEach(({queryKey:d,state:h,queryHash:m,meta:b,promise:g,dehydratedAt:v,queryType:x})=>{const S=g?BR(g):void 0,E=h.data===void 0?S?.data:h.data,_=E===void 0?E:u(E);let O=s.get(m);const M=O?.state.status==="pending",R=O?.state.fetchStatus==="fetching";if(O){const z=S&&v!==void 0&&v>O.state.dataUpdatedAt;if(h.dataUpdatedAt>O.state.dataUpdatedAt||z){const{fetchStatus:I,...C}=h;O.setState({...C,data:_,...h.status==="pending"&&_!==void 0&&{status:"success",...!R&&{fetchStatus:"idle"}}})}}else O=s.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:d,queryHash:m,meta:b,_type:x},{...h,data:_,fetchStatus:"idle",status:h.status==="pending"&&_!==void 0?"success":h.status});g&&!S&&!M&&!R&&(v===void 0||v>O.state.dataUpdatedAt)&&O.fetch(void 0,{initialPromise:Promise.resolve(g).then(u)}).catch(lt)})}var DR=_R;function HR(){let e=[],t=0,n=f=>{f()},i=f=>{f()},s=DR;const u=f=>{t?e.push(f):s(()=>{n(f)})},l=()=>{const f=e;e=[],f.length&&s(()=>{i(()=>{f.forEach(d=>{n(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||l()}return d},batchCalls:f=>(...d)=>{u(()=>{f(...d)})},schedule:u,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{s=f}}}var ft=HR(),qR=class extends Eo{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Xf=new qR;function FR(e){return Math.min(1e3*2**e,3e4)}function iS(e){return(e??"online")==="online"?Xf.isOnline():!0}var yy=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function aS(e){let t=!1,n=0,i;const s=py(),u=()=>s.status!=="pending",l=S=>{if(!u()){const E=new yy(S);g(E),e.onCancel?.(E)}},f=()=>{t=!0},d=()=>{t=!1},h=()=>Bm.isFocused()&&(e.networkMode==="always"||Xf.isOnline())&&e.canRun(),m=()=>iS(e.networkMode)&&e.canRun(),b=S=>{u()||(i?.(),s.resolve(S))},g=S=>{u()||(i?.(),s.reject(S))},v=()=>new Promise(S=>{i=E=>{(u()||h())&&S(E)},e.onPause?.()}).then(()=>{i=void 0,u()||e.onContinue?.()}),x=()=>{if(u())return;let S;const E=n===0?e.initialPromise:void 0;try{S=E??e.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(b).catch(_=>{if(u())return;const O=e.retry??(Qu.isServer()?0:3),M=e.retryDelay??FR,R=typeof M=="function"?M(n,_):M,z=O===!0||typeof O=="number"&&nh()?void 0:v()).then(()=>{t?g(_):x()})})};return{promise:s,status:()=>s.status,cancel:l,continue:()=>(i?.(),s),cancelRetry:f,continueRetry:d,canStart:m,start:()=>(m()?x():v().then(x),s)}}var sS=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fy(this.gcTime)&&(this.#e=Ur.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qu.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Ur.clearTimeout(this.#e),this.#e=void 0)}};function GR(e){return{onFetch:(t,n)=>{const i=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,u=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const h=async()=>{let m=!1;const b=x=>{IR(x,()=>t.signal,()=>m=!0)},g=tS(t.options,t.fetchOptions),v=async(x,S,E)=>{if(m)return Promise.reject(t.signal.reason);if(S==null&&x.pages.length)return Promise.resolve(x);const O=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return b(I),I})(),M=await g(O),{maxPages:R}=t.options,z=E?OR:PR;return{pages:z(x.pages,M,R),pageParams:z(x.pageParams,S,R)}};if(s&&u.length){const x=s==="backward",S=x?oS:my,E={pages:u,pageParams:l},_=S(i,E);f=await v(E,_,x)}else{const x=e??u.length;do{const S=d===0?l[0]??i.initialPageParam:my(i,f);if(d>0&&S==null)break;f=await v(f,S),d++}while(dt.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function my(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function oS(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function UD(e,t){return t?my(e,t)!=null:!1}function DD(e,t){return!t||!e.getPreviousPageParam?!1:oS(e,t)!=null}var VR=class extends sS{#e;#t;#n;#r;#a;#i;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#r=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=j2(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=j2(this.options);t.data!==void 0&&(this.setState(N2(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const n=hy(this.state.data,e,this.options);return this.#u({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#u({type:"setState",state:e})}cancel(e){const t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(lt).catch(lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>wn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===km||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ni(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Wx(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#s||this.#l()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},s=()=>{const d=tS(this.options,t),m=(()=>{const b={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(b),b})();return this.#s=!1,this.options.persister?this.options.persister(d,m,this):d(m)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:s};return i(d),d})();(this.#e==="infinite"?GR(this.options.pages):this.options.behavior)?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#u({type:"fetch",meta:l.fetchOptions?.meta}),this.#i=aS({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:d=>{d instanceof yy&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(d,h)=>{this.#u({type:"failed",failureCount:d,error:h})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const d=await this.#i.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#r.config.onSuccess?.(d,this),this.#r.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof yy){if(d.silent)return this.#i.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#u({type:"error",error:d}),this.#r.config.onError?.(d,this),this.#r.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#u(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...uS(n.data,this.options),fetchMeta:e.meta??null};case"success":const i={...n,...N2(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?i:void 0,i;case"error":const s=e.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),ft.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function uS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:iS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function N2(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function j2(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var KR=class extends Eo{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=py(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#a;#i;#o;#s;#l;#u;#p;#f;#d;#c;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),L2(this.#t,this.options)?this.#h():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return by(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return by(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#x(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Yf(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&U2(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),i&&(this.#t!==n||wn(this.options.enabled,this.#t)!==wn(t.enabled,this.#t)||Ni(this.options.staleTime,this.#t)!==Ni(t.staleTime,this.#t))&&this.#m();const s=this.#b();i&&(this.#t!==n||wn(this.options.enabled,this.#t)!==wn(t.enabled,this.#t)||s!==this.#c)&&this.#g(s)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return ZR(this,n)&&(this.#r=n,this.#i=this.options,this.#a=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,i)=>(this.trackProp(i),t?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(e){this.#y.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(lt)),t}#m(){this.#w();const e=Ni(this.options.staleTime,this.#t);if(Qu.isServer()||this.#r.isStale||!fy(e))return;const n=Wx(this.#r.dataUpdatedAt,e)+1;this.#f=Ur.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#b(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(e){this.#x(),this.#c=e,!(Qu.isServer()||wn(this.options.enabled,this.#t)===!1||!fy(this.#c)||this.#c===0)&&(this.#d=Ur.setInterval(()=>{(this.options.refetchIntervalInBackground||Bm.isFocused())&&this.#h()},this.#c))}#v(){this.#m(),this.#g(this.#b())}#w(){this.#f!==void 0&&(Ur.clearTimeout(this.#f),this.#f=void 0)}#x(){this.#d!==void 0&&(Ur.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const n=this.#t,i=this.options,s=this.#r,u=this.#a,l=this.#i,d=e!==n?e.state:this.#n,{state:h}=e;let m={...h},b=!1,g;if(t._optimisticResults){const B=this.hasListeners(),L=!B&&L2(e,t),D=B&&U2(e,n,t,i);(L||D)&&(m={...m,...uS(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:v,errorUpdatedAt:x,status:S}=m;g=m.data;let E=!1;if(t.placeholderData!==void 0&&g===void 0&&S==="pending"){let B;s?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(B=s.data,E=!0):B=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,B!==void 0&&(S="success",g=hy(s?.data,B,t),b=!0)}if(t.select&&g!==void 0&&!E)if(s&&g===u?.data&&t.select===this.#l)g=this.#u;else try{this.#l=t.select,g=t.select(g),g=hy(s?.data,g,t),this.#u=g,this.#s=null}catch(B){this.#s=B}this.#s&&(v=this.#s,g=this.#u,x=Date.now(),S="error");const _=m.fetchStatus==="fetching",O=S==="pending",M=S==="error",R=O&&_,z=g!==void 0,C={status:S,fetchStatus:m.fetchStatus,isPending:O,isSuccess:S==="success",isError:M,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:m.dataUpdatedAt,error:v,errorUpdatedAt:x,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:_,isRefetching:_&&!O,isLoadingError:M&&!z,isPaused:m.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:M&&z,isStale:jm(e,t),refetch:this.refetch,promise:this.#o,isEnabled:wn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const B=C.data!==void 0,L=C.status==="error"&&!B,D=te=>{L?te.reject(C.error):B&&te.resolve(C.data)},K=()=>{const te=this.#o=C.promise=py();D(te)},J=this.#o;switch(J.status){case"pending":e.queryHash===n.queryHash&&D(J);break;case"fulfilled":(L||C.data!==J.value)&&K();break;case"rejected":(!L||C.error!==J.reason)&&K();break}}return C}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#i=this.options,this.#a.data!==void 0&&(this.#p=this.#t),Yf(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!this.#y.size)return!0;const u=new Set(s??this.#y);return this.options.throwOnError&&u.add("error"),Object.keys(this.#r).some(l=>{const f=l;return this.#r[f]!==e[f]&&u.has(f)})};this.#E({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#E(e){ft.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function QR(e,t){return wn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&wn(t.retryOnMount,e)===!1)}function L2(e,t){return QR(e,t)||e.state.data!==void 0&&by(e,t,t.refetchOnMount)}function by(e,t,n){if(wn(t.enabled,e)!==!1&&Ni(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&jm(e,t)}return!1}function U2(e,t,n,i){return(e!==t||wn(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&jm(e,n)}function jm(e,t){return wn(t.enabled,e)!==!1&&e.isStaleByTime(Ni(t.staleTime,e))}function ZR(e,t){return!Yf(e.getCurrentResult(),t)}var YR=class extends sS{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||cS(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#a({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=aS({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(u,l)=>{this.#a({type:"failed",failureCount:u,error:l})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status==="pending",s=!this.#r.canStart();try{if(i)t();else{this.#a({type:"pending",variables:e,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#a({type:"pending",context:l,variables:e,isPaused:s})}const u=await this.#r.start();return await this.#n.config.onSuccess?.(u,e,this.state.context,this,n),await this.options.onSuccess?.(u,e,this.state.context,n),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(u,null,e,this.state.context,n),this.#a({type:"success",data:u}),u}catch(u){try{await this.#n.config.onError?.(u,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(u,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,u,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#a({type:"error",error:u}),u}finally{this.#n.runNext(this)}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ft.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function cS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var XR=class extends Eo{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const i=new YR({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){this.#e.add(e);const t=mf(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=mf(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const i=n.indexOf(e);i!==-1&&n.splice(i,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=mf(e);if(typeof t=="string"){const i=this.#t.get(t)?.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){const t=mf(e);return typeof t=="string"?this.#t.get(t)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ft.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>B2(t,n))}findAll(e={}){return this.getAll().filter(t=>B2(e,t))}notify(e){ft.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return ft.batch(()=>Promise.all(e.map(t=>t.continue().catch(lt))))}};function mf(e){return e.options.scope?.id}var JR=class extends Eo{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),Yf(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&Ba(t.mutationKey)!==Ba(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#a(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#a(){const e=this.#n?.state??cS();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#i(e){ft.batch(()=>{if(this.#r&&this.hasListeners()){const t=this.#t.variables,n=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#r.onSuccess?.(e.data,t,n,i)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(e.data,null,t,n,i)}catch(s){Promise.reject(s)}}else if(e?.type==="error"){try{this.#r.onError?.(e.error,t,n,i)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(void 0,e.error,t,n,i)}catch(s){Promise.reject(s)}}}this.listeners.forEach(t=>{t(this.#t)})})}},WR=class extends Eo{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const i=t.queryKey,s=t.queryHash??$m(i,t);let u=this.get(s);return u||(u=new VR({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(u)),u}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ft.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>I2(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>I2(e,n)):t}notify(e){ft.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ft.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ft.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},eC=class{#e;#t;#n;#r;#a;#i;#o;#s;constructor(e={}){this.#e=e.queryCache||new WR,this.#t=e.mutationCache||new XR,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=Bm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Xf.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ni(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),u=this.#e.get(i.queryHash)?.state.data,l=zR(t,u);if(l!==void 0)return this.#e.build(this,i).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return ft.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;ft.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return ft.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=ft.batch(()=>this.#e.findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(lt).catch(lt)}invalidateQueries(e,t={}){return ft.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=ft.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let u=s.fetch(void 0,n);return n.throwOnError||(u=u.catch(lt)),s.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(lt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Ni(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(lt).catch(lt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(lt).catch(lt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Xf.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Ba(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(i=>{Ku(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Ba(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(i=>{Ku(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=$m(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===km&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},lS=re.createContext(void 0),_t=e=>{const t=re.useContext(lS);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tC=({client:e,children:t})=>(re.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),F.jsx(lS.Provider,{value:e,children:t})),fS=re.createContext(!1),nC=()=>re.useContext(fS),rC=fS.Provider;function iC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var aC=re.createContext(iC()),sC=()=>re.useContext(aC),oC=(e,t,n)=>{const i=n?.state.error&&typeof e.throwOnError=="function"?Nm(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(t.isReset()||(e.retryOnMount=!1))},uC=e=>{re.useEffect(()=>{e.clearReset()},[e])},cC=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||Nm(n,[e.error,i])),HD=(e,t)=>t.state.data===void 0,lC=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},fC=(e,t)=>e.isLoading&&e.isFetching&&!t,dC=(e,t)=>e?.suspense&&t.isPending,D2=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function hC(e,t,n){const i=nC(),s=sC(),u=_t(),l=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(l);const f=u.getQueryCache().get(l.queryHash),d=e.subscribed!==!1;l._optimisticResults=i?"isRestoring":d?"optimistic":void 0,lC(l),oC(l,s,f),uC(s);const h=!u.getQueryCache().get(l.queryHash),[m]=re.useState(()=>new t(u,l)),b=m.getOptimisticResult(l),g=!i&&d;if(re.useSyncExternalStore(re.useCallback(v=>{const x=g?m.subscribe(ft.batchCalls(v)):lt;return m.updateResult(),x},[m,g]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),re.useEffect(()=>{m.setOptions(l)},[l,m]),dC(l,b))throw D2(l,m,s);if(cC({result:b,errorResetBoundary:s,throwOnError:l.throwOnError,query:f,suspense:l.suspense}))throw b.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(l,b),l.experimental_prefetchInRender&&!Qu.isServer()&&fC(b,i)&&(h?D2(l,m,s):f?.promise)?.catch(lt).finally(()=>{m.updateResult()}),l.notifyOnChangeProps?b:m.trackResult(b)}function Ao(e,t){return hC(e,KR)}function Dt(e,t){const n=_t(),[i]=re.useState(()=>new JR(n,e));re.useEffect(()=>{i.setOptions(e)},[i,e]);const s=re.useSyncExternalStore(re.useCallback(l=>i.subscribe(ft.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=re.useCallback((l,f)=>{i.mutate(l,f).catch(lt)},[i]);if(s.error&&Nm(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}function gy(){}function pC(e,{interval:t=1e3,onError:n=gy}={}){if(typeof e!="function")throw new Error("argument is not function.");let i=0,s=null,u=!1,l=!1;return async(...f)=>{if(s=f,!l){for(l=!0;u;)await new Promise(d=>Ur.setTimeout(d,t));for(;Date.now()Ur.setTimeout(d,i-Date.now()));l=!1,u=!0;try{await e(...s)}catch(d){try{n(d)}catch{}}i=Date.now()+t,u=!1}}}var yC=({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:n=1e3,serialize:i=JSON.stringify,deserialize:s=JSON.parse,retry:u})=>{if(e){const l=async f=>{try{const d=await i(f);await e.setItem(t,d);return}catch(d){return d}};return{persistClient:pC(async f=>{let d=f,h=await l(d),m=0;for(;h&&d;)m++,d=await u?.({persistedClient:d,error:h,errorCount:m}),d&&(h=await l(d))},{interval:n}),restoreClient:async()=>{const f=await e.getItem(t);if(f)return await s(f)},removeClient:()=>e.removeItem(t)}}return{persistClient:gy,restoreClient:()=>Promise.resolve(void 0),removeClient:gy}};const mC="1.2.4";let kn=class vy extends Error{constructor(t,n={}){const i=n.cause instanceof vy?n.cause.details:n.cause?.message?n.cause.message:n.details,s=n.cause instanceof vy&&n.cause.docsPath||n.docsPath,u=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...s?[`Docs: https://abitype.dev${s}`]:[],...i?[`Details: ${i}`]:[],`Version: abitype@${mC}`].join(`\n`);super(u),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=i,this.docsPath=s,this.metaMessages=n.metaMessages,this.shortMessage=t}};function Sd(e,t){return e.exec(t)?.groups}const dS=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,hS=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,pS=/^\\(.+?\\).*?$/,H2=/^tuple(?(\\[(\\d*)\\])*)$/;function wy(e){let t=e.type;if(H2.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let s=0;s[a-zA-Z$_][a-zA-Z0-9$_]*) \\{(?.*?)\\}$/;function mS(e){return yS.test(e)}function bC(e){return Sd(yS,e)}const q2=new Set(["memory","indexed","storage","calldata"]),gC=new Set(["calldata","memory","storage"]);let vC=class extends kn{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}},wC=class extends kn{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}};class xC extends kn{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}let SC=class extends kn{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}},EC=class extends kn{constructor({param:t,name:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}},AC=class extends kn{constructor({param:t,type:n,modifier:i}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${i}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}},TC=class extends kn{constructor({param:t,type:n,modifier:i}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${i}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${i}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}},_C=class extends kn{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}},MC=class extends kn{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}},zC=class extends kn{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}},RC=class extends kn{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}},CC=class extends kn{constructor({current:t,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}};function PC(e,t,n){let i="";if(n)for(const s of Object.entries(n)){if(!s)continue;let u="";for(const l of s[1])u+=`[${l.type}${l.name?`:${l.name}`:""}]`;i+=`(${s[0]}{${u}})`}return t?`${t}:${e}${i}`:`${e}${i}`}const zp=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]),OC=/^(?[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\spayable)?)(?(?:\\[\\d*?\\])+?)?(?:\\s(?calldata|indexed|memory|storage{1}))?(?:\\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,IC=/^\\((?.+?)\\)(?(?:\\[\\d*?\\])+?)?(?:\\s(?calldata|indexed|memory|storage{1}))?(?:\\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,BC=/^u?int$/;function Jf(e,t){const n=PC(e,t?.type,t?.structs);if(zp.has(n))return zp.get(n);const i=pS.test(e),s=Sd(i?IC:OC,e);if(!s)throw new SC({param:e});if(s.name&&kC(s.name))throw new EC({param:e,name:s.name});const u=s.name?{name:s.name}:{},l=s.modifier==="indexed"?{indexed:!0}:{},f=t?.structs??{};let d,h={};if(i){d="tuple";const b=Ci(s.type),g=[],v=b.length;for(let x=0;x[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\\[\\d*?\\])+?)?$/;function gS(e=[],t={},n=new Set){const i=[],s=e.length;for(let u=0;u{if(n.cause instanceof $r){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&typeof n.cause.details=="string"?n.cause.details:n.cause?.message?n.cause.message:n.details})(),s=n.cause instanceof $r&&n.cause.docsPath||n.docsPath,u=n.docsOrigin??$r.prototype.docsOrigin,l=`${u}${s??""}`,f=!!(n.version??$r.prototype.showVersion),d=n.version??$r.prototype.version,h=[t||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...i||s||f?["",i?`Details: ${i}`:void 0,s?`See: ${l}`:void 0,f?`Version: ${d}`:void 0]:[]].filter(m=>typeof m=="string").join(`\n`);super(h,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=n.cause,this.details=i,this.docs=l,this.docsOrigin=u,this.docsPath=s,this.shortMessage=t,this.showVersion=f,this.version=d}walk(t){return vS(this,t)}};Object.defineProperty(ye,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${DC()}`}});ye.setStaticOptions(ye.defaultStaticOptions);function vS(e,t){return t?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?vS(e.cause,t):t?null:e}const Us=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function HC(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Zu(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function $a(e,...t){if(!HC(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function qC(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Zu(e.outputLen),Zu(e.blockLen)}function oo(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function wS(e,t){$a(e);const n=t.outputLen;if(e.length>>t}const GC=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function VC(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function KC(e){for(let t=0;te:KC;function QC(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Ed(e){return typeof e=="string"&&(e=QC(e)),$a(e),e}function ZC(...e){let t=0;for(let i=0;ie().update(Ed(i)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function YC(e=32){if(Us&&typeof Us.getRandomValues=="function")return Us.getRandomValues(new Uint8Array(e));if(Us&&typeof Us.randomBytes=="function")return Uint8Array.from(Us.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}class xS extends Lm{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,qC(t);const i=Ed(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,u=new Uint8Array(s);u.set(i.length>s?t.create().update(i).digest():i);for(let l=0;lnew xS(e,t).update(n).digest();SS.create=(e,t)=>new xS(e,t);function XC(e,t,n,i){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,i);const s=BigInt(32),u=BigInt(4294967295),l=Number(n>>s&u),f=Number(n&u),d=i?4:0,h=i?0:4;e.setUint32(t+d,l,i),e.setUint32(t+h,f,i)}function JC(e,t,n){return e&t^~e&n}function WC(e,t,n){return e&t^e&n^t&n}class ES extends Lm{constructor(t,n,i,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=i,this.isLE=s,this.buffer=new Uint8Array(t),this.view=Rp(this.buffer)}update(t){oo(this),t=Ed(t),$a(t);const{view:n,buffer:i,blockLen:s}=this,u=t.length;for(let l=0;ls-l&&(this.process(i,0),l=0);for(let b=l;bm.length)throw new Error("_sha2: outputLen bigger than state");for(let b=0;b>V2&bf)}:{h:Number(e>>V2&bf)|0,l:Number(e&bf)|0}}function AS(e,t=!1){const n=e.length;let i=new Uint32Array(n),s=new Uint32Array(n);for(let u=0;ue>>>n,Q2=(e,t,n)=>e<<32-n|t>>>n,Ds=(e,t,n)=>e>>>n|t<<32-n,Hs=(e,t,n)=>e<<32-n|t>>>n,gf=(e,t,n)=>e<<64-n|t>>>n-32,vf=(e,t,n)=>e>>>n-32|t<<64-n,tP=(e,t,n)=>e<>>32-n,nP=(e,t,n)=>t<>>32-n,rP=(e,t,n)=>t<>>64-n,iP=(e,t,n)=>e<>>64-n;function Cr(e,t,n,i){const s=(t>>>0)+(i>>>0);return{h:e+n+(s/2**32|0)|0,l:s|0}}const aP=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),sP=(e,t,n,i)=>t+n+i+(e/2**32|0)|0,oP=(e,t,n,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(i>>>0),uP=(e,t,n,i,s)=>t+n+i+s+(e/2**32|0)|0,cP=(e,t,n,i,s)=>(e>>>0)+(t>>>0)+(n>>>0)+(i>>>0)+(s>>>0),lP=(e,t,n,i,s,u)=>t+n+i+s+u+(e/2**32|0)|0,fP=BigInt(0),$u=BigInt(1),dP=BigInt(2),hP=BigInt(7),pP=BigInt(256),yP=BigInt(113),TS=[],_S=[],MS=[];for(let e=0,t=$u,n=1,i=0;e<24;e++){[n,i]=[i,(2*n+3*i)%5],TS.push(2*(5*i+n)),_S.push((e+1)*(e+2)/2%64);let s=fP;for(let u=0;u<7;u++)t=(t<<$u^(t>>hP)*yP)%pP,t&dP&&(s^=$u<<($u<n>32?rP(e,t,n):tP(e,t,n),Y2=(e,t,n)=>n>32?iP(e,t,n):nP(e,t,n);function gP(e,t=24){const n=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let l=0;l<10;l++)n[l]=e[l]^e[l+10]^e[l+20]^e[l+30]^e[l+40];for(let l=0;l<10;l+=2){const f=(l+8)%10,d=(l+2)%10,h=n[d],m=n[d+1],b=Z2(h,m,1)^n[f],g=Y2(h,m,1)^n[f+1];for(let v=0;v<50;v+=10)e[l+v]^=b,e[l+v+1]^=g}let s=e[2],u=e[3];for(let l=0;l<24;l++){const f=_S[l],d=Z2(s,u,f),h=Y2(s,u,f),m=TS[l];s=e[m],u=e[m+1],e[m]=d,e[m+1]=h}for(let l=0;l<50;l+=10){for(let f=0;f<10;f++)n[f]=e[l+f];for(let f=0;f<10;f++)e[l+f]^=~n[(f+2)%10]&n[(f+4)%10]}e[0]^=mP[i],e[1]^=bP[i]}Hi(n)}class Um extends Lm{constructor(t,n,i,s=!1,u=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=n,this.outputLen=i,this.enableXOF=s,this.rounds=u,Zu(i),!(0=i&&this.keccak();const l=Math.min(i-this.posOut,u-s);t.set(n.subarray(this.posOut,this.posOut+l),s),this.posOut+=l,s+=l}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Zu(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(wS(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Hi(this.state)}_cloneInto(t){const{blockLen:n,suffix:i,outputLen:s,rounds:u,enableXOF:l}=this;return t||(t=new Um(n,i,s,l,u)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=u,t.suffix=i,t.outputLen=s,t.enableXOF=l,t.destroyed=this.destroyed,t}}const vP=(e,t,n)=>Ad(()=>new Um(t,e,n)),Dm=vP(1,136,256/8),wP=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ti=new Uint32Array(64);class xP extends ES{constructor(t=32){super(64,t,8,!1),this.A=Ai[0]|0,this.B=Ai[1]|0,this.C=Ai[2]|0,this.D=Ai[3]|0,this.E=Ai[4]|0,this.F=Ai[5]|0,this.G=Ai[6]|0,this.H=Ai[7]|0}get(){const{A:t,B:n,C:i,D:s,E:u,F:l,G:f,H:d}=this;return[t,n,i,s,u,l,f,d]}set(t,n,i,s,u,l,f,d){this.A=t|0,this.B=n|0,this.C=i|0,this.D=s|0,this.E=u|0,this.F=l|0,this.G=f|0,this.H=d|0}process(t,n){for(let b=0;b<16;b++,n+=4)Ti[b]=t.getUint32(n,!1);for(let b=16;b<64;b++){const g=Ti[b-15],v=Ti[b-2],x=Wn(g,7)^Wn(g,18)^g>>>3,S=Wn(v,17)^Wn(v,19)^v>>>10;Ti[b]=S+Ti[b-7]+x+Ti[b-16]|0}let{A:i,B:s,C:u,D:l,E:f,F:d,G:h,H:m}=this;for(let b=0;b<64;b++){const g=Wn(f,6)^Wn(f,11)^Wn(f,25),v=m+g+JC(f,d,h)+wP[b]+Ti[b]|0,S=(Wn(i,2)^Wn(i,13)^Wn(i,22))+WC(i,s,u)|0;m=h,h=d,d=f,f=l+v|0,l=u,u=s,s=i,i=v+S|0}i=i+this.A|0,s=s+this.B|0,u=u+this.C|0,l=l+this.D|0,f=f+this.E|0,d=d+this.F|0,h=h+this.G|0,m=m+this.H|0,this.set(i,s,u,l,f,d,h,m)}roundClean(){Hi(Ti)}destroy(){this.set(0,0,0,0,0,0,0,0),Hi(this.buffer)}}const RS=AS(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),SP=RS[0],EP=RS[1],_i=new Uint32Array(80),Mi=new Uint32Array(80);class CS extends ES{constructor(t=64){super(128,t,16,!1),this.Ah=It[0]|0,this.Al=It[1]|0,this.Bh=It[2]|0,this.Bl=It[3]|0,this.Ch=It[4]|0,this.Cl=It[5]|0,this.Dh=It[6]|0,this.Dl=It[7]|0,this.Eh=It[8]|0,this.El=It[9]|0,this.Fh=It[10]|0,this.Fl=It[11]|0,this.Gh=It[12]|0,this.Gl=It[13]|0,this.Hh=It[14]|0,this.Hl=It[15]|0}get(){const{Ah:t,Al:n,Bh:i,Bl:s,Ch:u,Cl:l,Dh:f,Dl:d,Eh:h,El:m,Fh:b,Fl:g,Gh:v,Gl:x,Hh:S,Hl:E}=this;return[t,n,i,s,u,l,f,d,h,m,b,g,v,x,S,E]}set(t,n,i,s,u,l,f,d,h,m,b,g,v,x,S,E){this.Ah=t|0,this.Al=n|0,this.Bh=i|0,this.Bl=s|0,this.Ch=u|0,this.Cl=l|0,this.Dh=f|0,this.Dl=d|0,this.Eh=h|0,this.El=m|0,this.Fh=b|0,this.Fl=g|0,this.Gh=v|0,this.Gl=x|0,this.Hh=S|0,this.Hl=E|0}process(t,n){for(let M=0;M<16;M++,n+=4)_i[M]=t.getUint32(n),Mi[M]=t.getUint32(n+=4);for(let M=16;M<80;M++){const R=_i[M-15]|0,z=Mi[M-15]|0,I=Ds(R,z,1)^Ds(R,z,8)^K2(R,z,7),C=Hs(R,z,1)^Hs(R,z,8)^Q2(R,z,7),B=_i[M-2]|0,L=Mi[M-2]|0,D=Ds(B,L,19)^gf(B,L,61)^K2(B,L,6),K=Hs(B,L,19)^vf(B,L,61)^Q2(B,L,6),J=oP(C,K,Mi[M-7],Mi[M-16]),te=uP(J,I,D,_i[M-7],_i[M-16]);_i[M]=te|0,Mi[M]=J|0}let{Ah:i,Al:s,Bh:u,Bl:l,Ch:f,Cl:d,Dh:h,Dl:m,Eh:b,El:g,Fh:v,Fl:x,Gh:S,Gl:E,Hh:_,Hl:O}=this;for(let M=0;M<80;M++){const R=Ds(b,g,14)^Ds(b,g,18)^gf(b,g,41),z=Hs(b,g,14)^Hs(b,g,18)^vf(b,g,41),I=b&v^~b&S,C=g&x^~g&E,B=cP(O,z,C,EP[M],Mi[M]),L=lP(B,_,R,I,SP[M],_i[M]),D=B|0,K=Ds(i,s,28)^gf(i,s,34)^gf(i,s,39),J=Hs(i,s,28)^vf(i,s,34)^vf(i,s,39),te=i&u^i&f^u&f,ue=s&l^s&d^l&d;_=S|0,O=E|0,S=v|0,E=x|0,v=b|0,x=g|0,{h:b,l:g}=Cr(h|0,m|0,L|0,D|0),h=f|0,m=d|0,f=u|0,d=l|0,u=i|0,l=s|0;const X=aP(D,J,ue);i=sP(X,L,K,te),s=X|0}({h:i,l:s}=Cr(this.Ah|0,this.Al|0,i|0,s|0)),{h:u,l}=Cr(this.Bh|0,this.Bl|0,u|0,l|0),{h:f,l:d}=Cr(this.Ch|0,this.Cl|0,f|0,d|0),{h,l:m}=Cr(this.Dh|0,this.Dl|0,h|0,m|0),{h:b,l:g}=Cr(this.Eh|0,this.El|0,b|0,g|0),{h:v,l:x}=Cr(this.Fh|0,this.Fl|0,v|0,x|0),{h:S,l:E}=Cr(this.Gh|0,this.Gl|0,S|0,E|0),{h:_,l:O}=Cr(this.Hh|0,this.Hl|0,_|0,O|0),this.set(i,s,u,l,f,d,h,m,b,g,v,x,S,E,_,O)}roundClean(){Hi(_i,Mi)}destroy(){Hi(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class AP extends CS{constructor(){super(48),this.Ah=Ot[0]|0,this.Al=Ot[1]|0,this.Bh=Ot[2]|0,this.Bl=Ot[3]|0,this.Ch=Ot[4]|0,this.Cl=Ot[5]|0,this.Dh=Ot[6]|0,this.Dl=Ot[7]|0,this.Eh=Ot[8]|0,this.El=Ot[9]|0,this.Fh=Ot[10]|0,this.Fl=Ot[11]|0,this.Gh=Ot[12]|0,this.Gl=Ot[13]|0,this.Hh=Ot[14]|0,this.Hl=Ot[15]|0}}const Hm=Ad(()=>new xP),TP=Ad(()=>new CS),_P=Ad(()=>new AP),PS=Hm;const qm=BigInt(0),Sy=BigInt(1);function Oc(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Fm(e){if(!Oc(e))throw new Error("Uint8Array expected")}function Yu(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function wf(e){const t=e.toString(16);return t.length&1?"0"+t:t}function OS(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?qm:BigInt("0x"+e)}const IS=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",MP=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Xu(e){if(Fm(e),IS)return e.toHex();let t="";for(let n=0;n=Pr._0&&e<=Pr._9)return e-Pr._0;if(e>=Pr.A&&e<=Pr.F)return e-(Pr.A-10);if(e>=Pr.a&&e<=Pr.f)return e-(Pr.a-10)}function Wf(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(IS)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const i=new Uint8Array(n);for(let s=0,u=0;stypeof e=="bigint"&&qm<=e;function Gm(e,t,n){return Cp(e)&&Cp(t)&&Cp(n)&&t<=e&&eqm;e>>=Sy,t+=1);return t}const Td=e=>(Sy<new Uint8Array(e),J2=e=>Uint8Array.from(e);function CP(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let i=Pp(e),s=Pp(e),u=0;const l=()=>{i.fill(1),s.fill(0),u=0},f=(...b)=>n(s,i,...b),d=(b=Pp(0))=>{s=f(J2([0]),b),i=f(),b.length!==0&&(s=f(J2([1]),b),i=f())},h=()=>{if(u++>=1e3)throw new Error("drbg: tried 1000 values");let b=0;const g=[];for(;b{l(),d(b);let v;for(;!(v=g(h()));)d();return l(),v}}const PP={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||Oc(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function _d(e,t,n={}){const i=(s,u,l)=>{const f=PP[u];if(typeof f!="function")throw new Error("invalid validator function");const d=e[s];if(!(l&&d===void 0)&&!f(d,e))throw new Error("param "+String(s)+" is invalid. Expected "+u+", got "+d)};for(const[s,u]of Object.entries(t))i(s,u,!1);for(const[s,u]of Object.entries(n))i(s,u,!0);return e}function W2(e){const t=new WeakMap;return(n,...i)=>{const s=t.get(n);if(s!==void 0)return s;const u=e(n,...i);return t.set(n,u),u}}function To(e,t){if(Ys(e)>t)throw new nO({givenSize:Ys(e),maxSize:t})}const Or={zero:48,nine:57,A:65,F:70,a:97,f:102};function e5(e){if(e>=Or.zero&&e<=Or.nine)return e-Or.zero;if(e>=Or.A&&e<=Or.F)return e-(Or.A-10);if(e>=Or.a&&e<=Or.f)return e-(Or.a-10)}function OP(e,t={}){const{dir:n,size:i=32}=t;if(i===0)return e;if(e.length>i)throw new rO({size:e.length,targetSize:i,type:"Bytes"});const s=new Uint8Array(i);for(let u=0;ut)throw new UP({givenSize:Ne(e),maxSize:t})}function IP(e,t){if(typeof t=="number"&&t>0&&t>Ne(e)-1)throw new qS({offset:t,position:"start",size:Ne(e)})}function BP(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Ne(e)!==n-t)throw new qS({offset:n,position:"end",size:Ne(e)})}function NS(e,t={}){const{dir:n,size:i=32}=t;if(i===0)return e;const s=e.replace("0x","");if(s.length>i*2)throw new DP({size:Math.ceil(s.length/2),targetSize:i,type:"Hex"});return`0x${s[n==="right"?"padEnd":"padStart"](i*2,"0")}`}function $P(e,t={}){const{dir:n="left"}=t;let i=e.replace("0x",""),s=0;for(let u=0;u{const s=i;return typeof s=="string"&&s.endsWith(Ey)?BigInt(s.slice(0,-Ey.length)):typeof t=="function"?t(n,s):s})}function Wa(e,t,n){return JSON.stringify(e,(i,s)=>typeof t=="function"?t(i,s):typeof s=="bigint"?s.toString()+Ey:s,n)}const NP=new TextEncoder,jP=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function jS(e,t={}){const{strict:n=!1}=t;if(!e)throw new t5(e);if(typeof e!="string")throw new t5(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new n5(e);if(!e.startsWith("0x"))throw new n5(e)}function Xe(...e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function Bc(e){return e instanceof Uint8Array?pt(e):Array.isArray(e)?pt(new Uint8Array(e)):e}function LS(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(Md(n,t.size),Fn(n,t.size)):n}function pt(e,t={}){let n="";for(let s=0;su||s>1n;return i<=l?i:i-u-1n}function uo(e,t={}){const{signed:n,size:i}=t;return Number(!n&&!i?e:De(e,t))}function DS(e,t={}){const{size:n}=t;let i=Wi(e);return n&&(To(i,n),i=GS(i)),new TextDecoder().decode(i)}function Hn(e,t={}){const{strict:n=!1}=t;try{return jS(e,{strict:n}),!0}catch{return!1}}let HS=class extends ye{constructor({max:t,min:n,signed:i,size:s,value:u}){super(`Number \\`${u}\\` is not in safe${s?` ${s*8}-bit`:""}${i?" signed":" unsigned"} integer range ${t?`(\\`${n}\\` to \\`${t}\\`)`:`(above \\`${n}\\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}};class t5 extends ye{constructor(t){super(`Value \\`${typeof t=="object"?Wa(t):t}\\` of type \\`${typeof t}\\` is an invalid hex type.`,{metaMessages:[\'Hex types must be represented as `"0x${string}"`.\']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class n5 extends ye{constructor(t){super(`Value \\`${t}\\` is an invalid hex value.`,{metaMessages:[\'Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).\']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class LP extends ye{constructor(t){super(`Hex value \\`"${t}"\\` is an odd length (${t.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}let UP=class extends ye{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \\`${n}\\` bytes. Given size: \\`${t}\\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}},qS=class extends ye{constructor({offset:t,position:n,size:i}){super(`Slice ${n==="start"?"starting":"ending"} at offset \\`${t}\\` is out-of-bounds (size: \\`${i}\\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}},DP=class extends ye{constructor({size:t,targetSize:n,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (\\`${t}\\`) exceeds padding size (\\`${n}\\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}};const HP=new TextDecoder,qP=new TextEncoder;function FP(e){if(!(e instanceof Uint8Array)){if(!e)throw new xf(e);if(typeof e!="object")throw new xf(e);if(!("BYTES_PER_ELEMENT"in e))throw new xf(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!=="Uint8Array")throw new xf(e)}}function GP(...e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);for(let i=0,s=0;i1||i[0]>1)throw new tO(i);return!!i[0]}function Dr(e,t={}){const{size:n}=t;typeof n<"u"&&To(e,n);const i=pt(e,t);return uo(i,t)}function WP(e,t={}){const{size:n}=t;let i=e;return typeof n<"u"&&(To(i,n),i=GS(i)),HP.decode(i)}function FS(e){return kS(e,{dir:"left"})}function GS(e){return kS(e,{dir:"right"})}function eO(e){try{return FP(e),!0}catch{return!1}}let tO=class extends ye{constructor(t){super(`Bytes value \\`${t}\\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}};class xf extends ye{constructor(t){super(`Value \\`${typeof t=="object"?Wa(t):t}\\` of type \\`${typeof t}\\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}let nO=class extends ye{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \\`${n}\\` bytes. Given size: \\`${t}\\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},rO=class extends ye{constructor({size:t,targetSize:n,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (\\`${t}\\`) exceeds padding size (\\`${n}\\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}};function sr(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,i=Dm(Vm(e));return n==="Bytes"?i:pt(i)}function r5(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,i=PS(Vm(e));return n==="Bytes"?i:pt(i)}function iO(e){return Hn(e)&&Ne(e)===32}let aO=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const i=this.keys().next().value;i&&this.delete(i)}return this}};const sO={checksum:new aO(8192)},Op=sO.checksum;function VS(e,t={}){const{compressed:n}=t,{prefix:i,x:s,y:u}=e;if(n===!1||typeof s=="bigint"&&typeof u=="bigint"){if(i!==4)throw new i5({prefix:i,cause:new dO});return}if(n===!0||typeof s=="bigint"&&typeof u>"u"){if(i!==3&&i!==2)throw new i5({prefix:i,cause:new fO});return}throw new lO({publicKey:e})}function oO(e){const t=(()=>{if(Hn(e))return Qm(e);if(eO(e))return uO(e);const{prefix:n,x:i,y:s}=e;return typeof i=="bigint"&&typeof s=="bigint"?{prefix:n??4,x:i,y:s}:{prefix:n,x:i}})();return VS(t),t}function uO(e){return Qm(pt(e))}function Qm(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new hO({publicKey:e});if(e.length===130){const i=BigInt(Ee(e,0,32)),s=BigInt(Ee(e,32,64));return{prefix:4,x:i,y:s}}if(e.length===132){const i=Number(Ee(e,0,1)),s=BigInt(Ee(e,1,33)),u=BigInt(Ee(e,33,65));return{prefix:i,x:s,y:u}}const t=Number(Ee(e,0,1)),n=BigInt(Ee(e,1,33));return{prefix:t,x:n}}function cO(e,t={}){return Wi(Zm(e,t))}function Zm(e,t={}){VS(e);const{prefix:n,x:i,y:s}=e,{includePrefix:u=!0}=t;return Xe(u?oe(n,{size:1}):"0x",oe(i,{size:32}),typeof s=="bigint"?oe(s,{size:32}):"0x")}class lO extends ye{constructor({publicKey:t}){super(`Value \\`${Wa(t)}\\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}let i5=class extends ye{constructor({prefix:t,cause:n}){super(`Prefix "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}};class fO extends ye{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class dO extends ye{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let hO=class extends ye{constructor({publicKey:t}){super(`Value \\`${t}\\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${Ne(Bc(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const pO=/^0x[a-fA-F0-9]{40}$/;function Gn(e,t={}){const{strict:n=!0}=t;if(!pO.test(e))throw new a5({address:e,cause:new yO});if(n){if(e.toLowerCase()===e)return;if(zd(e)!==e)throw new a5({address:e,cause:new mO})}}function zd(e){if(Op.has(e))return Op.get(e);Gn(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=sr(Km(t),{as:"Bytes"}),i=t.split("");for(let u=0;u<40;u+=2)n[u>>1]>>4>=8&&i[u]&&(i[u]=i[u].toUpperCase()),(n[u>>1]&15)>=8&&i[u+1]&&(i[u+1]=i[u+1].toUpperCase());const s=`0x${i.join("")}`;return Op.set(e,s),s}function KS(e,t={}){const{checksum:n=!1}=t;return Gn(e),n?zd(e):e}function ji(e,t={}){const n=sr(`0x${Zm(e).slice(4)}`).substring(26);return KS(`0x${n}`,t)}function td(e,t){return Gn(e,{strict:!1}),Gn(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()}function qi(e,t={}){const{strict:n=!0}=t??{};try{return Gn(e,{strict:n}),!0}catch{return!1}}let a5=class extends ye{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}};class yO extends ye{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class mO extends ye{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function Ty(e){let t=!0,n="",i=0,s="",u=!1;for(let l=0;l_y(Object.values(e)[u],s)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\[[0-9]{0,}\\])+$/.test(i)?Array.isArray(e)&&e.every(s=>_y(s,{...t,type:i.replace(/(\\[[0-9]{0,}\\])$/,"")})):!1}}function QS(e,t,n){for(const i in e){const s=e[i],u=t[i];if(s.type==="tuple"&&u.type==="tuple"&&"components"in s&&"components"in u)return QS(s.components,u.components,n[i]);const l=[s.type,u.type];if(l.includes("address")&&l.includes("bytes20")?!0:l.includes("address")&&l.includes("string")?qi(n[i],{strict:!1}):l.includes("address")&&l.includes("bytes")?qi(n[i],{strict:!1}):!1)return l}}function Ym(e,t,n){const{args:i=[],prepare:s=!0}={},u=Hn(t,{strict:!1}),l=e.filter(h=>u?h.type==="function"||h.type==="error"?ZS(h)===Ee(t,0,4):h.type==="event"?Lu(h)===t:!1:"name"in h&&h.name===t);if(l.length===0)throw new s5({name:t});if(l.length===1)return{...l[0],...s?{hash:Lu(l[0])}:{}};let f;for(const h of l){if(!("inputs"in h))continue;if(!i||i.length===0){if(!h.inputs||h.inputs.length===0)return{...h,...s?{hash:Lu(h)}:{}};continue}if(!h.inputs||h.inputs.length===0||h.inputs.length!==i.length)continue;if(i.every((b,g)=>{const v="inputs"in h&&h.inputs[g];return v?_y(b,v):!1})){if(f&&"inputs"in f&&f.inputs){const b=QS(h.inputs,f.inputs,i);if(b)throw new gO({abiItem:h,type:b[0]},{abiItem:f,type:b[1]})}f=h}}const d=(()=>{if(f)return f;const[h,...m]=l;return{...h,overloads:m}})();if(!d)throw new s5({name:t});return{...d,...s?{hash:Lu(d)}:{}}}function ZS(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,i]=e;return Ym(n,i)}return e[0]})();return Ee(Lu(t),0,4)}function bO(...e){const t=(()=>{if(Array.isArray(e[0])){const[i,s]=e;return Ym(i,s)}return e[0]})(),n=typeof t=="string"?t:xy(t);return Ty(n)}function Lu(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,i]=e;return Ym(n,i)}return e[0]})();return typeof t!="string"&&"hash"in t&&t.hash?t.hash:sr(Ji(bO(t)))}class gO extends ye{constructor(t,n){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\\`${t.type}\\` in \\`${Ty(xy(t.abiItem))}\\`, and`,`\\`${n.type}\\` in \\`${Ty(xy(n.abiItem))}\\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class s5 extends ye{constructor({name:t,data:n,type:i="item"}){const s=t?` with name "${t}"`:n?` with data "${n}"`:"";super(`ABI ${i}${s} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}const vO=/^(.*)\\[([0-9]*)\\]$/,wO=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,YS=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,o5=2n**256n-1n;function no(e,t,n){const{checksumAddress:i,staticPosition:s}=n,u=Wm(t.type);if(u){const[l,f]=u;return SO(e,{...t,type:f},{checksumAddress:i,length:l,staticPosition:s})}if(t.type==="tuple")return _O(e,t,{checksumAddress:i,staticPosition:s});if(t.type==="address")return xO(e,{checksum:i});if(t.type==="bool")return EO(e);if(t.type.startsWith("bytes"))return AO(e,t,{staticPosition:s});if(t.type.startsWith("uint")||t.type.startsWith("int"))return TO(e,t);if(t.type==="string")return MO(e,{staticPosition:s});throw new tb(t.type)}const u5=32,My=32;function xO(e,t={}){const{checksum:n=!1}=t,i=e.readBytes(32);return[(u=>n?zd(u):u)(pt(YP(i,-20))),32]}function SO(e,t,n){const{checksumAddress:i,length:s,staticPosition:u}=n;if(s===null){const d=Dr(e.readBytes(My)),h=u+d,m=h+u5;e.setPosition(h);const b=Dr(e.readBytes(u5)),g=co(t);let v=0;const x=[];for(let S=0;S48?XP(s,{signed:n}):Dr(s,{signed:n}),32]}function _O(e,t,n){const{checksumAddress:i,staticPosition:s}=n,u=t.components.length===0||t.components.some(({name:d})=>!d),l=u?[]:{};let f=0;if(co(t)){const d=Dr(e.readBytes(My)),h=s+d;for(let m=0;m0?Xe(h,d):h}}if(l)return{dynamic:!0,encoded:d}}return{dynamic:!1,encoded:Xe(...f.map(({encoded:d})=>d))}}function PO(e,{type:t}){const[,n]=t.split("bytes"),i=Ne(e);if(!n){let s=e;return i%32!==0&&(s=ka(s,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:Xe(Fn(oe(i,{size:32})),s)}}if(i!==Number.parseInt(n,10))throw new JS({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:ka(e)}}function OO(e){if(typeof e!="boolean")throw new ye(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \\`true\\` or \\`false\\`.`);return{dynamic:!1,encoded:Fn(LS(e))}}function IO(e,{signed:t,size:n}){if(typeof n=="number"){const i=2n**(BigInt(n)-(t?1n:0n))-1n,s=t?-i-1n:0n;if(e>i||el))}}function Wm(e){const t=e.match(/^(.*)\\[(\\d+)?\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function co(e){const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return e.components?.some(co);const n=Wm(e.type);return!!(n&&co({...e,type:n[1]}))}const kO={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new jO({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new NO({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new c5({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new c5({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function eb(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(kO);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}let c5=class extends ye{constructor({offset:t}){super(`Offset \\`${t}\\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}},NO=class extends ye{constructor({length:t,position:n}){super(`Position \\`${n}\\` is out of bounds (\\`0 < position < ${t}\\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}},jO=class extends ye{constructor({count:t,limit:n}){super(`Recursive read limit of \\`${n}\\` exceeded (recursive read count: \\`${t}\\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}};function LO(e,t,n={}){const{as:i="Array",checksumAddress:s=!1}=n,u=typeof t=="string"?Wi(t):t,l=eb(u);if(Ys(u)===0&&e.length>0)throw new HO;if(Ys(u)&&Ys(u)<32)throw new DO({data:typeof t=="string"?t:pt(t),parameters:e,size:Ys(u)});let f=0;const d=i==="Array"?[]:{};for(let h=0;hiO(u)?u:Ay(u))})}return t}function VO(e){if(!e||e.length===0)return[];const t=[];for(const{address:n,storageKeys:i}of e){for(let s=0;s{if(typeof e=="string"){if(e.length>3&&e.length%2!==0)throw new LP(e);return Wi(e)}return e})(),s=eb(i,{recursiveReadLimit:Number.POSITIVE_INFINITY});return t3(s,n)}function t3(e,t="Hex"){if(e.bytes.length===0)return t==="Hex"?pt(e.bytes):e.bytes;const n=e.readByte();if(n<128&&e.decrementPosition(1),n<192){const s=l5(e,n,128),u=e.readBytes(s);return t==="Hex"?pt(u):u}const i=l5(e,n,192);return ZO(e,i,t)}function l5(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 ye("Invalid RLP prefix")}function ZO(e,t,n){const i=e.position,s=[];for(;e.position-in3(t))):JO(e)}function XO(e){const t=e.reduce((s,u)=>s+u.length,0),n=r3(t);return{length:t<=55?1+t:1+n+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+n),n===1?s.pushUint8(t):n===2?s.pushUint16(t):n===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:u}of e)u(s)}}}function JO(e){const t=typeof e=="string"?Wi(e):e,n=r3(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+n),n===1?s.pushUint8(t.length):n===2?s.pushUint16(t.length):n===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function r3(e){if(e<=255)return 1;if(e<=65535)return 2;if(e<=16777215)return 3;if(e<=4294967295)return 4;throw new ye("Length is too large.")}const tn=BigInt(0),Ut=BigInt(1),Ma=BigInt(2),WO=BigInt(3),i3=BigInt(4),a3=BigInt(5),s3=BigInt(8);function Wt(e,t){const n=e%t;return n>=tn?n:t+n}function In(e,t,n){let i=e;for(;t-- >tn;)i*=i,i%=n;return i}function Ry(e,t){if(e===tn)throw new Error("invert: expected non-zero number");if(t<=tn)throw new Error("invert: expected positive modulus, got "+t);let n=Wt(e,t),i=t,s=tn,u=Ut;for(;n!==tn;){const f=i/n,d=i%n,h=s-u*f;i=n,n=d,s=u,u=h}if(i!==Ut)throw new Error("invert: does not exist");return Wt(s,t)}function o3(e,t){const n=(e.ORDER+Ut)/i3,i=e.pow(t,n);if(!e.eql(e.sqr(i),t))throw new Error("Cannot find square root");return i}function e7(e,t){const n=(e.ORDER-a3)/s3,i=e.mul(t,Ma),s=e.pow(i,n),u=e.mul(t,s),l=e.mul(e.mul(u,Ma),s),f=e.mul(u,e.sub(l,e.ONE));if(!e.eql(e.sqr(f),t))throw new Error("Cannot find square root");return f}function t7(e){if(e1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return o3;let u=s.pow(i,t);const l=(t+Ut)/Ma;return function(d,h){if(d.is0(h))return h;if(f5(d,h)!==1)throw new Error("Cannot find square root");let m=n,b=d.mul(d.ONE,u),g=d.pow(h,t),v=d.pow(h,l);for(;!d.eql(g,d.ONE);){if(d.is0(g))return d.ZERO;let x=1,S=d.sqr(g);for(;!d.eql(S,d.ONE);)if(x++,S=d.sqr(S),x===m)throw new Error("Cannot find square root");const E=Ut<(i[s]="function",i),t);return _d(e,n)}function a7(e,t,n){if(ntn;)n&Ut&&(i=e.mul(i,s)),s=e.sqr(s),n>>=Ut;return i}function u3(e,t,n=!1){const i=new Array(t.length).fill(n?e.ZERO:void 0),s=t.reduce((l,f,d)=>e.is0(f)?l:(i[d]=l,e.mul(l,f)),e.ONE),u=e.inv(s);return t.reduceRight((l,f,d)=>e.is0(f)?l:(i[d]=e.mul(l,i[d]),e.mul(l,f)),u),i}function f5(e,t){const n=(e.ORDER-Ut)/Ma,i=e.pow(t,n),s=e.eql(i,e.ONE),u=e.eql(i,e.ZERO),l=e.eql(i,e.neg(e.ONE));if(!s&&!u&&!l)throw new Error("invalid Legendre symbol result");return s?1:u?0:-1}function c3(e,t){t!==void 0&&Zu(t);const n=t!==void 0?t:e.toString(2).length,i=Math.ceil(n/8);return{nBitLength:n,nByteLength:i}}function _o(e,t,n=!1,i={}){if(e<=tn)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:s,nByteLength:u}=c3(e,t);if(u>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let l;const f=Object.freeze({ORDER:e,isLE:n,BITS:s,BYTES:u,MASK:Td(s),ZERO:tn,ONE:Ut,create:d=>Wt(d,e),isValid:d=>{if(typeof d!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof d);return tn<=d&&dd===tn,isOdd:d=>(d&Ut)===Ut,neg:d=>Wt(-d,e),eql:(d,h)=>d===h,sqr:d=>Wt(d*d,e),add:(d,h)=>Wt(d+h,e),sub:(d,h)=>Wt(d-h,e),mul:(d,h)=>Wt(d*h,e),pow:(d,h)=>a7(f,d,h),div:(d,h)=>Wt(d*Ry(h,e),e),sqrN:d=>d*d,addN:(d,h)=>d+h,subN:(d,h)=>d-h,mulN:(d,h)=>d*h,inv:d=>Ry(d,e),sqrt:i.sqrt||(d=>(l||(l=n7(e)),l(f,d))),toBytes:d=>n?$S(d,u):Ic(d,u),fromBytes:d=>{if(d.length!==u)throw new Error("Field.fromBytes: expected "+u+" bytes, got "+d.length);return n?BS(d):Oa(d)},invertBatch:d=>u3(f,d),cmov:(d,h,m)=>m?h:d});return Object.freeze(f)}function l3(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function f3(e){const t=l3(e);return t+Math.ceil(t/2)}function s7(e,t,n=!1){const i=e.length,s=l3(t),u=f3(t);if(i<16||i1024)throw new Error("expected "+u+"-1024 bytes of input, got "+i);const l=n?BS(e):Oa(e),f=Wt(l,t-Ut)+Ut;return n?$S(f,s):Ic(f,s)}const d5=BigInt(0),Cy=BigInt(1);function Ip(e,t){const n=t.negate();return e?n:t}function d3(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Bp(e,t){d3(e,t);const n=Math.ceil(t/e)+1,i=2**(e-1),s=2**e,u=Td(e),l=BigInt(e);return{windows:n,windowSize:i,mask:u,maxNumber:s,shiftBy:l}}function h5(e,t,n){const{windowSize:i,mask:s,maxNumber:u,shiftBy:l}=n;let f=Number(e&s),d=e>>l;f>i&&(f-=u,d+=Cy);const h=t*i,m=h+Math.abs(f)-1,b=f===0,g=f<0,v=t%2!==0;return{nextN:d,offset:m,isZero:b,isNeg:g,isNegF:v,offsetF:h}}function o7(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,i)=>{if(!(n instanceof t))throw new Error("invalid point at index "+i)})}function u7(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,i)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+i)})}const $p=new WeakMap,h3=new WeakMap;function kp(e){return h3.get(e)||1}function c7(e,t){return{constTimeNegate:Ip,hasPrecomputes(n){return kp(n)!==1},unsafeLadder(n,i,s=e.ZERO){let u=n;for(;i>d5;)i&Cy&&(s=s.add(u)),u=u.double(),i>>=Cy;return s},precomputeWindow(n,i){const{windows:s,windowSize:u}=Bp(i,t),l=[];let f=n,d=f;for(let h=0;h12?d=f-3:f>4?d=f-2:f>0&&(d=2);const h=Td(d),m=new Array(Number(h)+1).fill(l),b=Math.floor((t.BITS-1)/d)*d;let g=l;for(let v=b;v>=0;v-=d){m.fill(l);for(let S=0;S>BigInt(v)&h);m[_]=m[_].add(n[S])}let x=l;for(let S=m.length-1,E=l;S>0;S--)E=E.add(m[S]),x=x.add(E);if(g=g.add(x),v!==0)for(let S=0;S{const{Err:n}=Nr;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const i=t.length/2,s=wf(i);if(s.length/2&128)throw new n("tlv.encode: long form length too big");const u=i>127?wf(s.length/2|128):"";return wf(e)+u+s+t},decode(e,t){const{Err:n}=Nr;let i=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[i++]!==e)throw new n("tlv.decode: wrong tlv");const s=t[i++],u=!!(s&128);let l=0;if(!u)l=s;else{const d=s&127;if(!d)throw new n("tlv.decode(long): indefinite length not supported");if(d>4)throw new n("tlv.decode(long): byte length is too big");const h=t.subarray(i,i+d);if(h.length!==d)throw new n("tlv.decode: length bytes not complete");if(h[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const m of h)l=l<<8|m;if(i+=d,l<128)throw new n("tlv.decode(long): not minimal encoding")}const f=t.subarray(i,i+l);if(f.length!==l)throw new n("tlv.decode: wrong value length");return{v:f,l:t.subarray(i+l)}}},_int:{encode(e){const{Err:t}=Nr;if(e{const I=R.toAffine();return ed(Uint8Array.from([4]),n.toBytes(I.x),n.toBytes(I.y))}),u=t.fromBytes||(M=>{const R=M.subarray(1),z=n.fromBytes(R.subarray(0,n.BYTES)),I=n.fromBytes(R.subarray(n.BYTES,2*n.BYTES));return{x:z,y:I}});function l(M){const{a:R,b:z}=t,I=n.sqr(M),C=n.mul(I,M);return n.add(n.add(C,n.mul(M,R)),z)}function f(M,R){const z=n.sqr(R),I=l(M);return n.eql(z,I)}if(!f(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const d=n.mul(n.pow(t.a,jp),h7),h=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(d,h)))throw new Error("bad curve params: a or b");function m(M){return Gm(M,bt,t.n)}function b(M){const{allowedPrivateKeyLengths:R,nByteLength:z,wrapPrivateKey:I,n:C}=t;if(R&&typeof M!="bigint"){if(Oc(M)&&(M=Xu(M)),typeof M!="string"||!R.includes(M.length))throw new Error("invalid private key");M=M.padStart(z*2,"0")}let B;try{B=typeof M=="bigint"?M:Oa(Bn("private key",M,z))}catch{throw new Error("invalid private key, expected hex or "+z+" bytes, got "+typeof M)}return I&&(B=Wt(B,C)),to("private key",B,bt,C),B}function g(M){if(!(M instanceof S))throw new Error("ProjectivePoint expected")}const v=W2((M,R)=>{const{px:z,py:I,pz:C}=M;if(n.eql(C,n.ONE))return{x:z,y:I};const B=M.is0();R==null&&(R=B?n.ONE:n.inv(C));const L=n.mul(z,R),D=n.mul(I,R),K=n.mul(C,R);if(B)return{x:n.ZERO,y:n.ZERO};if(!n.eql(K,n.ONE))throw new Error("invZ was invalid");return{x:L,y:D}}),x=W2(M=>{if(M.is0()){if(t.allowInfinityPoint&&!n.is0(M.py))return;throw new Error("bad point: ZERO")}const{x:R,y:z}=M.toAffine();if(!n.isValid(R)||!n.isValid(z))throw new Error("bad point: x or y not FE");if(!f(R,z))throw new Error("bad point: equation left != right");if(!M.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class S{constructor(R,z,I){if(R==null||!n.isValid(R))throw new Error("x required");if(z==null||!n.isValid(z)||n.is0(z))throw new Error("y required");if(I==null||!n.isValid(I))throw new Error("z required");this.px=R,this.py=z,this.pz=I,Object.freeze(this)}static fromAffine(R){const{x:z,y:I}=R||{};if(!R||!n.isValid(z)||!n.isValid(I))throw new Error("invalid affine point");if(R instanceof S)throw new Error("projective point not allowed");const C=B=>n.eql(B,n.ZERO);return C(z)&&C(I)?S.ZERO:new S(z,I,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(R){const z=u3(n,R.map(I=>I.pz));return R.map((I,C)=>I.toAffine(z[C])).map(S.fromAffine)}static fromHex(R){const z=S.fromAffine(u(Bn("pointHex",R)));return z.assertValidity(),z}static fromPrivateKey(R){return S.BASE.multiply(b(R))}static msm(R,z){return l7(S,i,R,z)}_setWindowSize(R){O.setWindowSize(this,R)}assertValidity(){x(this)}hasEvenY(){const{y:R}=this.toAffine();if(n.isOdd)return!n.isOdd(R);throw new Error("Field doesn\'t support isOdd")}equals(R){g(R);const{px:z,py:I,pz:C}=this,{px:B,py:L,pz:D}=R,K=n.eql(n.mul(z,D),n.mul(B,C)),J=n.eql(n.mul(I,D),n.mul(L,C));return K&&J}negate(){return new S(this.px,n.neg(this.py),this.pz)}double(){const{a:R,b:z}=t,I=n.mul(z,jp),{px:C,py:B,pz:L}=this;let D=n.ZERO,K=n.ZERO,J=n.ZERO,te=n.mul(C,C),ue=n.mul(B,B),X=n.mul(L,L),N=n.mul(C,B);return N=n.add(N,N),J=n.mul(C,L),J=n.add(J,J),D=n.mul(R,J),K=n.mul(I,X),K=n.add(D,K),D=n.sub(ue,K),K=n.add(ue,K),K=n.mul(D,K),D=n.mul(N,D),J=n.mul(I,J),X=n.mul(R,X),N=n.sub(te,X),N=n.mul(R,N),N=n.add(N,J),J=n.add(te,te),te=n.add(J,te),te=n.add(te,X),te=n.mul(te,N),K=n.add(K,te),X=n.mul(B,L),X=n.add(X,X),te=n.mul(X,N),D=n.sub(D,te),J=n.mul(X,ue),J=n.add(J,J),J=n.add(J,J),new S(D,K,J)}add(R){g(R);const{px:z,py:I,pz:C}=this,{px:B,py:L,pz:D}=R;let K=n.ZERO,J=n.ZERO,te=n.ZERO;const ue=t.a,X=n.mul(t.b,jp);let N=n.mul(z,B),G=n.mul(I,L),ne=n.mul(C,D),ce=n.add(z,I),fe=n.add(B,L);ce=n.mul(ce,fe),fe=n.add(N,G),ce=n.sub(ce,fe),fe=n.add(z,C);let $=n.add(B,D);return fe=n.mul(fe,$),$=n.add(N,ne),fe=n.sub(fe,$),$=n.add(I,C),K=n.add(L,D),$=n.mul($,K),K=n.add(G,ne),$=n.sub($,K),te=n.mul(ue,fe),K=n.mul(X,ne),te=n.add(K,te),K=n.sub(G,te),te=n.add(G,te),J=n.mul(K,te),G=n.add(N,N),G=n.add(G,N),ne=n.mul(ue,ne),fe=n.mul(X,fe),G=n.add(G,ne),ne=n.sub(N,ne),ne=n.mul(ue,ne),fe=n.add(fe,ne),N=n.mul(G,fe),J=n.add(J,N),N=n.mul($,fe),K=n.mul(ce,K),K=n.sub(K,N),N=n.mul(ce,G),te=n.mul($,te),te=n.add(te,N),new S(K,J,te)}subtract(R){return this.add(R.negate())}is0(){return this.equals(S.ZERO)}wNAF(R){return O.wNAFCached(this,R,S.normalizeZ)}multiplyUnsafe(R){const{endo:z,n:I}=t;to("scalar",R,jr,I);const C=S.ZERO;if(R===jr)return C;if(this.is0()||R===bt)return this;if(!z||O.hasPrecomputes(this))return O.wNAFCachedUnsafe(this,R,S.normalizeZ);let{k1neg:B,k1:L,k2neg:D,k2:K}=z.splitScalar(R),J=C,te=C,ue=this;for(;L>jr||K>jr;)L&bt&&(J=J.add(ue)),K&bt&&(te=te.add(ue)),ue=ue.double(),L>>=bt,K>>=bt;return B&&(J=J.negate()),D&&(te=te.negate()),te=new S(n.mul(te.px,z.beta),te.py,te.pz),J.add(te)}multiply(R){const{endo:z,n:I}=t;to("scalar",R,bt,I);let C,B;if(z){const{k1neg:L,k1:D,k2neg:K,k2:J}=z.splitScalar(R);let{p:te,f:ue}=this.wNAF(D),{p:X,f:N}=this.wNAF(J);te=O.constTimeNegate(L,te),X=O.constTimeNegate(K,X),X=new S(n.mul(X.px,z.beta),X.py,X.pz),C=te.add(X),B=ue.add(N)}else{const{p:L,f:D}=this.wNAF(R);C=L,B=D}return S.normalizeZ([C,B])[0]}multiplyAndAddUnsafe(R,z,I){const C=S.BASE,B=(D,K)=>K===jr||K===bt||!D.equals(C)?D.multiplyUnsafe(K):D.multiply(K),L=B(this,z).add(B(R,I));return L.is0()?void 0:L}toAffine(R){return v(this,R)}isTorsionFree(){const{h:R,isTorsionFree:z}=t;if(R===bt)return!0;if(z)return z(S,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:R,clearCofactor:z}=t;return R===bt?this:z?z(S,this):this.multiplyUnsafe(t.h)}toRawBytes(R=!0){return Yu("isCompressed",R),this.assertValidity(),s(S,this,R)}toHex(R=!0){return Yu("isCompressed",R),Xu(this.toRawBytes(R))}}S.BASE=new S(t.Gx,t.Gy,n.ONE),S.ZERO=new S(n.ZERO,n.ONE,n.ZERO);const{endo:E,nBitLength:_}=t,O=c7(S,E?Math.ceil(_/2):_);return{CURVE:t,ProjectivePoint:S,normPrivateKeyToScalar:b,weierstrassEquation:l,isWithinCurveOrder:m}}function y7(e){const t=p3(e);return _d(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function m7(e){const t=y7(e),{Fp:n,n:i,nByteLength:s,nBitLength:u}=t,l=n.BYTES+1,f=2*n.BYTES+1;function d(X){return Wt(X,i)}function h(X){return Ry(X,i)}const{ProjectivePoint:m,normPrivateKeyToScalar:b,weierstrassEquation:g,isWithinCurveOrder:v}=p7({...t,toBytes(X,N,G){const ne=N.toAffine(),ce=n.toBytes(ne.x),fe=ed;return Yu("isCompressed",G),G?fe(Uint8Array.from([N.hasEvenY()?2:3]),ce):fe(Uint8Array.from([4]),ce,n.toBytes(ne.y))},fromBytes(X){const N=X.length,G=X[0],ne=X.subarray(1);if(N===l&&(G===2||G===3)){const ce=Oa(ne);if(!Gm(ce,bt,n.ORDER))throw new Error("Point is not on curve");const fe=g(ce);let $;try{$=n.sqrt(fe)}catch(ae){const le=ae instanceof Error?": "+ae.message:"";throw new Error("Point is not on curve"+le)}const Z=($&bt)===bt;return(G&1)===1!==Z&&($=n.neg($)),{x:ce,y:$}}else if(N===f&&G===4){const ce=n.fromBytes(ne.subarray(0,n.BYTES)),fe=n.fromBytes(ne.subarray(n.BYTES,2*n.BYTES));return{x:ce,y:fe}}else{const ce=l,fe=f;throw new Error("invalid Point, expected length of "+ce+", or uncompressed "+fe+", got "+N)}}});function x(X){const N=i>>bt;return X>N}function S(X){return x(X)?d(-X):X}const E=(X,N,G)=>Oa(X.slice(N,G));class _{constructor(N,G,ne){to("r",N,bt,i),to("s",G,bt,i),this.r=N,this.s=G,ne!=null&&(this.recovery=ne),Object.freeze(this)}static fromCompact(N){const G=s;return N=Bn("compactSignature",N,G*2),new _(E(N,0,G),E(N,G,2*G))}static fromDER(N){const{r:G,s:ne}=Nr.toSig(Bn("DER",N));return new _(G,ne)}assertValidity(){}addRecoveryBit(N){return new _(this.r,this.s,N)}recoverPublicKey(N){const{r:G,s:ne,recovery:ce}=this,fe=C(Bn("msgHash",N));if(ce==null||![0,1,2,3].includes(ce))throw new Error("recovery id invalid");const $=ce===2||ce===3?G+t.n:G;if($>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const Z=(ce&1)===0?"02":"03",se=m.fromHex(Z+Np($,n.BYTES)),ae=h($),le=d(-fe*ae),ge=d(ne*ae),we=m.BASE.multiplyAndAddUnsafe(se,le,ge);if(!we)throw new Error("point at infinify");return we.assertValidity(),we}hasHighS(){return x(this.s)}normalizeS(){return this.hasHighS()?new _(this.r,d(-this.s),this.recovery):this}toDERRawBytes(){return Wf(this.toDERHex())}toDERHex(){return Nr.hexFromSig(this)}toCompactRawBytes(){return Wf(this.toCompactHex())}toCompactHex(){const N=s;return Np(this.r,N)+Np(this.s,N)}}const O={isValidPrivateKey(X){try{return b(X),!0}catch{return!1}},normPrivateKeyToScalar:b,randomPrivateKey:()=>{const X=f3(t.n);return s7(t.randomBytes(X),t.n)},precompute(X=8,N=m.BASE){return N._setWindowSize(X),N.multiply(BigInt(3)),N}};function M(X,N=!0){return m.fromPrivateKey(X).toRawBytes(N)}function R(X){if(typeof X=="bigint")return!1;if(X instanceof m)return!0;const G=Bn("key",X).length,ne=n.BYTES,ce=ne+1,fe=2*ne+1;if(!(t.allowedPrivateKeyLengths||s===ce))return G===ce||G===fe}function z(X,N,G=!0){if(R(X)===!0)throw new Error("first arg must be private key");if(R(N)===!1)throw new Error("second arg must be public key");return m.fromHex(N).multiply(b(X)).toRawBytes(G)}const I=t.bits2int||function(X){if(X.length>8192)throw new Error("input is too large");const N=Oa(X),G=X.length*8-u;return G>0?N>>BigInt(G):N},C=t.bits2int_modN||function(X){return d(I(X))},B=Td(u);function L(X){return to("num < 2^"+u,X,jr,B),Ic(X,s)}function D(X,N,G=K){if(["recovered","canonical"].some(ze=>ze in G))throw new Error("sign() legacy options not supported");const{hash:ne,randomBytes:ce}=t;let{lowS:fe,prehash:$,extraEntropy:Z}=G;fe==null&&(fe=!0),X=Bn("msgHash",X),p5(G),$&&(X=Bn("prehashed msgHash",ne(X)));const se=C(X),ae=b(N),le=[L(ae),L(se)];if(Z!=null&&Z!==!1){const ze=Z===!0?ce(n.BYTES):Z;le.push(Bn("extraEntropy",ze))}const ge=ed(...le),we=se;function Ve(ze){const zt=I(ze);if(!v(zt))return;const on=h(zt),Gt=m.BASE.multiply(zt).toAffine(),un=d(Gt.x);if(un===jr)return;const Rt=d(on*d(we+un*ae));if(Rt===jr)return;let Sn=(Gt.x===un?0:2)|Number(Gt.y&bt),cr=Rt;return fe&&x(Rt)&&(cr=S(Rt),Sn^=1),new _(un,cr,Sn)}return{seed:ge,k2sig:Ve}}const K={lowS:t.lowS,prehash:!1},J={lowS:t.lowS,prehash:!1};function te(X,N,G=K){const{seed:ne,k2sig:ce}=D(X,N,G),fe=t;return CP(fe.hash.outputLen,fe.nByteLength,fe.hmac)(ne,ce)}m.BASE._setWindowSize(8);function ue(X,N,G,ne=J){const ce=X;N=Bn("msgHash",N),G=Bn("publicKey",G);const{lowS:fe,prehash:$,format:Z}=ne;if(p5(ne),"strict"in ne)throw new Error("options.strict was renamed to lowS");if(Z!==void 0&&Z!=="compact"&&Z!=="der")throw new Error("format must be compact or der");const se=typeof ce=="string"||Oc(ce),ae=!se&&!Z&&typeof ce=="object"&&ce!==null&&typeof ce.r=="bigint"&&typeof ce.s=="bigint";if(!se&&!ae)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let le,ge;try{if(ae&&(le=new _(ce.r,ce.s)),se){try{Z!=="compact"&&(le=_.fromDER(ce))}catch(Sn){if(!(Sn instanceof Nr.Err))throw Sn}!le&&Z!=="der"&&(le=_.fromCompact(ce))}ge=m.fromHex(G)}catch{return!1}if(!le||fe&&le.hasHighS())return!1;$&&(N=t.hash(N));const{r:we,s:Ve}=le,ze=C(N),zt=h(Ve),on=d(ze*zt),Gt=d(we*zt),un=m.BASE.multiplyAndAddUnsafe(ge,on,Gt)?.toAffine();return un?d(un.x)===we:!1}return{CURVE:t,getPublicKey:M,getSharedSecret:z,sign:te,verify:ue,ProjectivePoint:m,Signature:_,utils:O}}function b7(e){return{hash:e,hmac:(t,...n)=>SS(e,t,ZC(...n)),randomBytes:YC}}function Rd(e,t){const n=i=>m7({...e,...b7(i)});return{...n(t),create:n}}const y3=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),y5=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),g7=BigInt(0),v7=BigInt(1),Py=BigInt(2),m5=(e,t)=>(e+t/Py)/t;function w7(e){const t=y3,n=BigInt(3),i=BigInt(6),s=BigInt(11),u=BigInt(22),l=BigInt(23),f=BigInt(44),d=BigInt(88),h=e*e*e%t,m=h*h*e%t,b=In(m,n,t)*m%t,g=In(b,n,t)*m%t,v=In(g,Py,t)*h%t,x=In(v,s,t)*v%t,S=In(x,u,t)*x%t,E=In(S,f,t)*S%t,_=In(E,d,t)*E%t,O=In(_,f,t)*S%t,M=In(O,n,t)*m%t,R=In(M,l,t)*x%t,z=In(R,i,t)*h%t,I=In(z,Py,t);if(!Oy.eql(Oy.sqr(I),e))throw new Error("Cannot find square root");return I}const Oy=_o(y3,void 0,void 0,{sqrt:w7}),Cd=Rd({a:g7,b:BigInt(7),Fp:Oy,n:y5,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=y5,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-v7*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),u=n,l=BigInt("0x100000000000000000000000000000000"),f=m5(u*e,t),d=m5(-i*e,t);let h=Wt(e-f*n-d*s,t),m=Wt(-f*i-d*u,t);const b=h>l,g=m>l;if(b&&(h=t-h),g&&(m=t-m),h>l||m>l)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:b,k1:h,k2neg:g,k2:m}}}},Hm),x7=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:Cd},Symbol.toStringTag,{value:"Module"}));function $c(e,t={}){const{recovered:n}=t;if(typeof e.r>"u")throw new Lp({signature:e});if(typeof e.s>"u")throw new Lp({signature:e});if(n&&typeof e.yParity>"u")throw new Lp({signature:e});if(e.r<0n||e.r>o5)throw new z7({value:e.r});if(e.s<0n||e.s>o5)throw new R7({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new Od({value:e.yParity})}function S7(e){return rb(pt(e))}function rb(e){if(e.length!==130&&e.length!==132)throw new M7({signature:e});const t=BigInt(Ee(e,0,32)),n=BigInt(Ee(e,32,64)),i=(()=>{const s=+`0x${e.slice(130)}`;if(!Number.isNaN(s))try{return ab(s)}catch{throw new Od({value:s})}})();return typeof i>"u"?{r:t,s:n}:{r:t,s:n,yParity:i}}function m3(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return Pd(e)}function Pd(e){const t=typeof e=="string"?rb(e):e instanceof Uint8Array?S7(e):typeof e.r=="string"?ib(e):e.v?E7(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return $c(t),t}function E7(e){return{r:e.r,s:e.s,yParity:ab(e.v)}}function ib(e){const t=(()=>{const n=e.v?Number(e.v):void 0;let i=e.yParity?Number(e.yParity):void 0;if(typeof n=="number"&&typeof i!="number"&&(i=ab(n)),typeof i!="number")throw new Od({value:e.yParity});return i})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function A7(e){const[t,n,i]=e;return Pd({r:n==="0x"?0n:BigInt(n),s:i==="0x"?0n:BigInt(i),yParity:t==="0x"?0:Number(t)})}function T7(e){$c(e);const t=e.r,n=e.s;return Xe(oe(t,{size:32}),oe(n,{size:32}),typeof e.yParity=="number"?oe(sb(e.yParity),{size:1}):"0x")}function b3(e){const{r:t,s:n,yParity:i}=e;return{r:oe(t,{size:32}),s:oe(n,{size:32}),yParity:i===0?"0x0":"0x1"}}function _7(e){const{r:t,s:n,yParity:i}=e;return[i?"0x01":"0x",t===0n?"0x":Ay(oe(t)),n===0n?"0x":Ay(oe(n))]}function ab(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new C7({value:e})}function sb(e){if(e===0)return 27;if(e===1)return 28;throw new Od({value:e})}class M7 extends ye{constructor({signature:t}){super(`Value \\`${t}\\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${Ne(Bc(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}let Lp=class extends ye{constructor({signature:t}){super(`Signature \\`${Wa(t)}\\` is missing either an \\`r\\`, \\`s\\`, or \\`yParity\\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}};class z7 extends ye{constructor({value:t}){super(`Value \\`${t}\\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class R7 extends ye{constructor({value:t}){super(`Value \\`${t}\\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class Od extends ye{constructor({value:t}){super(`Value \\`${t}\\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class C7 extends ye{constructor({value:t}){super(`Value \\`${t}\\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function P7(e,t={}){return typeof e.chainId=="string"?g3(e):{...e,...t.signature}}function g3(e){const{address:t,chainId:n,nonce:i}=e,s=m3(e);return{address:t,chainId:Number(n),nonce:BigInt(i),...s}}function O7(e){return e.map(g3)}function I7(e){const{address:t,chainId:n,nonce:i,...s}=e;return{address:t,chainId:oe(n),nonce:oe(i),...b3(s)}}function B7(e){return e.map(I7)}const $7=new TextEncoder;Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[t,e.charCodeAt(0)]);const Sf={...Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63};function k7(e){const t=e.replace(/=+$/,""),n=t.length,i=new Uint8Array(n+3);$7.encodeInto(t+"===",i);for(let u=0,l=0;u>16,i[l+1]=f>>8&255,i[l+2]=f&255}const s=(n>>2)*3+(n%4&&n%4-1);return new Uint8Array(i.buffer,0,s)}const v3={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},w3={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function N7(e,t={}){if(!e)return null;const n=m3(e),i={...e,...n};return i.blockNumber=e.blockNumber?BigInt(e.blockNumber):null,"blockTimestamp"in e&&(i.blockTimestamp=e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0),i.data=e.input,i.gas=BigInt(e.gas??0n),i.nonce=BigInt(e.nonce??0n),i.transactionIndex=e.transactionIndex?Number(e.transactionIndex):null,i.value=BigInt(e.value??0n),e.authorizationList&&(i.authorizationList=O7(e.authorizationList)),e.chainId&&(i.chainId=Number(e.chainId)),e.gasPrice&&(i.gasPrice=BigInt(e.gasPrice)),e.maxFeePerBlobGas&&(i.maxFeePerBlobGas=BigInt(e.maxFeePerBlobGas)),e.maxFeePerGas&&(i.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(i.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.type&&(i.type=w3[e.type]??e.type),n&&(i.v=sb(n.yParity)),i}function j7(e){return{address:e.address,amount:oe(e.amount),index:oe(e.index),validatorIndex:oe(e.validatorIndex)}}function L7(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:oe(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:oe(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:oe(e.gasLimit)},...typeof e.number=="bigint"&&{number:oe(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:oe(e.prevRandao)},...typeof e.time=="bigint"&&{time:oe(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(j7)}}}function x3(e){return ji(S3(e))}function S3(e){const{payload:t,signature:n}=e,{r:i,s,yParity:u}=n,f=new Cd.Signature(BigInt(i),BigInt(s)).addRecoveryBit(u).recoverPublicKey(Bc(t).substring(2));return oO(f)}function U7(e){const{hash:t,payload:n}=e;return e.address?td(e.address,x3({payload:n,signature:e.signature})):Cd.verify(e.signature,Vm(n),cO(e.publicKey),...t?[{prehash:!0,lowS:!0}]:[])}const E3=_o(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),D7=E3.create(BigInt("-3")),H7=BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),q7=Rd({a:D7,b:H7,Fp:E3,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},Hm),A3=_o(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff")),F7=A3.create(BigInt("-3")),G7=BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");Rd({a:F7,b:G7,Fp:A3,n:BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973"),Gx:BigInt("0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),Gy:BigInt("0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"),h:BigInt(1),lowS:!1},_P);const T3=_o(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")),V7=T3.create(BigInt("-3")),K7=BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00");Rd({a:V7,b:K7,Fp:T3,n:BigInt("0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409"),Gx:BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),Gy:BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},TP);const Q7=q7;function _3(e){const{hash:t,payload:n,publicKey:i,signature:s}=e;return Q7.verify(s,n instanceof Uint8Array?n:Wi(n),Zm(i).substring(2),{lowS:!0,...t?{prehash:!0}:{}})}var Up={exports:{}},b5;function Z7(){return b5||(b5=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function s(d,h,m){this.fn=d,this.context=h,this.once=m||!1}function u(d,h,m,b,g){if(typeof m!="function")throw new TypeError("The listener must be a function");var v=new s(m,b||d,g),x=n?n+h:h;return d._events[x]?d._events[x].fn?d._events[x]=[d._events[x],v]:d._events[x].push(v):(d._events[x]=v,d._eventsCount++),d}function l(d,h){--d._eventsCount===0?d._events=new i:delete d._events[h]}function f(){this._events=new i,this._eventsCount=0}f.prototype.eventNames=function(){var h=[],m,b;if(this._eventsCount===0)return h;for(b in m=this._events)t.call(m,b)&&h.push(n?b.slice(1):b);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(m)):h},f.prototype.listeners=function(h){var m=n?n+h:h,b=this._events[m];if(!b)return[];if(b.fn)return[b.fn];for(var g=0,v=b.length,x=new Array(v);gtypeof l>"u"?u:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${i}" was provided.`,{metaMessages:[`Serialized Transaction: "${n}"`,s.length>0?`Missing Attributes: ${s.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidSerializedError"})}},rI=class extends ye{constructor({maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\\`maxPriorityFeePerGas\\`${t?` = ${Iy(t)} gwei`:""}) cannot be higher than the fee cap (\\`maxFeePerGas\\`${n?` = ${Iy(n)} gwei`:""}).`].join(`\n`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.TipAboveFeeCapError"})}};function iI(e){const{challenge:t,metadata:n,origin:i,publicKey:s,rpId:u,signature:l}=e,{authenticatorData:f,clientDataJSON:d,userVerificationRequired:h}=n,m=Wi(f);if(m.length<37)return!1;if(u!==void 0){const S=m.slice(0,32),E=r5(Ji(u),{as:"Bytes"});if(!KP(S,E))return!1}const b=m[32];if((b&1)!==1||h&&(b&4)!==4||(b&8)!==8&&(b&16)===16)return!1;const g=JSON.parse(d);if(g.type!=="webauthn.get"||!g.challenge||pt(k7(g.challenge))!==t||i!==void 0&&!(Array.isArray(i)?i:[i]).includes(g.origin))return!1;const v=r5(Km(d),{as:"Bytes"}),x=GP(m,v);return _3({hash:!0,payload:x,publicKey:s,signature:l})}function aI(e){return iI(e)}const M3=new eC({defaultOptions:{queries:{gcTime:1e3*60*60*24,retry:!1,refetchOnWindowFocus:!1}}}),sI=yC({key:"tempo-admin",storage:typeof window>"u"?void 0:window.localStorage,serialize:Wa,deserialize:kP}),oI={buster:"rate-limit-periods",dehydrateOptions:{shouldDehydrateQuery:e=>e.queryKey[0]!=="config"&&e.queryKey[0]!=="organizations"&&rS(e)},maxAge:1e3*60*60*24,persister:sI};var uI=["added","removed","updated"];function v5(e){return uI.includes(e)}async function cI({queryClient:e,persister:t,maxAge:n=1e3*60*60*24,buster:i="",hydrateOptions:s}){try{const u=await t.restoreClient();if(u)if(u.timestamp){const l=Date.now()-u.timestamp>n,f=u.buster!==i;if(l||f)return t.removeClient();UR(e,u.clientState,s)}else return t.removeClient()}catch(u){throw await t.removeClient(),u}}async function w5({queryClient:e,persister:t,buster:n="",dehydrateOptions:i}){const s={buster:n,timestamp:Date.now(),clientState:LR(e,i)};await t.persistClient(s)}function lI(e){const t=e.queryClient.getQueryCache().subscribe(i=>{v5(i.type)&&w5(e)}),n=e.queryClient.getMutationCache().subscribe(i=>{v5(i.type)&&w5(e)});return()=>{t(),n()}}var fI=({children:e,persistOptions:t,onSuccess:n,onError:i,...s})=>{const[u,l]=re.useState(!0),f=re.useRef({persistOptions:t,onSuccess:n,onError:i}),d=re.useRef(!1);return re.useEffect(()=>{f.current={persistOptions:t,onSuccess:n,onError:i}}),re.useEffect(()=>{const h={...f.current.persistOptions,queryClient:s.client};return d.current||(d.current=!0,cI(h).then(()=>f.current.onSuccess?.()).catch(()=>f.current.onError?.()).finally(()=>{l(!1)})),u?void 0:lI(h)},[s.client,u]),F.jsx(tC,{...s,children:F.jsx(rC,{value:u,children:e})})};const z3=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();const dI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const hI=e=>e.replace(/^([A-Z])|[\\s-_]+(\\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase());const x5=e=>{const t=hI(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Dp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const pI=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},yI=re.createContext({}),mI=()=>re.useContext(yI),bI=re.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:i,className:s="",children:u,iconNode:l,...f},d)=>{const{size:h=24,strokeWidth:m=2,absoluteStrokeWidth:b=!1,color:g="currentColor",className:v=""}=mI()??{},x=i??b?Number(n??m)*24/Number(t??h):n??m;return re.createElement("svg",{ref:d,...Dp,width:t??h??Dp.width,height:t??h??Dp.height,stroke:e??g,strokeWidth:x,className:z3("lucide",v,s),...!u&&!pI(f)&&{"aria-hidden":"true"},...f},[...l.map(([S,E])=>re.createElement(S,E)),...Array.isArray(u)?u:[u]])});const ea=(e,t)=>{const n=re.forwardRef(({className:i,...s},u)=>re.createElement(bI,{ref:u,iconNode:t,className:z3(`lucide-${dI(x5(e))}`,`lucide-${e}`,i),...s}));return n.displayName=x5(e),n};const gI=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],vI=ea("badge-check",gI);const wI=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],xI=ea("building-2",wI);const SI=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],EI=ea("key-round",SI);const AI=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z",key:"yxxwt6"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],TI=ea("landmark",AI);const _I=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],R3=ea("log-out",_I);const MI=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],zI=ea("moon",MI);const RI=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],CI=ea("sun",RI);const PI=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],OI=ea("ticket",PI);function lo(...e){return e.filter(Boolean).join(" ")}function C3(e,t){return{...e,...t,className:lo(e.className,t.className)}}let S5=!1;function ro(e){const{children:t,className:n,disabled:i,icon:s,loading:u=!1,render:l,size:f="medium",variant:d="secondary",...h}=e,m=F.jsxs(F.Fragment,{children:[F.jsx("span",{"aria-hidden":"true",className:lo("pointer-events-none absolute inset-0 rounded-[inherit] border border-transparent",ro.chromeClassName[d]),"data-button-chrome":!0}),F.jsxs("span",{className:"relative inline-flex items-center justify-center gap-[inherit]",children:[u?F.jsx(II,{}):s?F.jsx("span",{className:"shrink-0",children:s}):null,t]})]}),b={className:lo("group relative inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-button border border-transparent font-normal focus-visible:outline focus-visible:outline-[2px] focus-visible:outline-offset-[2px] focus-visible:outline-focus data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[loading]:pointer-events-none",ro.sizeClassName[f],ro.variantClassName[d],n),"data-disabled":i?"":void 0,"data-loading":u?"":void 0,...h};return l&&re.isValidElement(l)?re.cloneElement(l,C3(l.props,b),m):F.jsx("button",{...b,disabled:i||u,children:m})}(e=>{e.variantClassName={negative:"text-on-negative",primary:"text-on-accent",secondary:"text-foreground"},e.chromeClassName={negative:"bg-negative group-hover:bg-negative-hover group-active:bg-negative-active group-hover:group-active:bg-negative-active",primary:"bg-accent group-hover:bg-accent-hover group-active:bg-accent-active group-hover:group-active:bg-accent-active",secondary:"bg-secondary group-hover:bg-secondary-hover group-active:bg-secondary-active group-hover:group-active:bg-secondary-active"},e.sizeClassName={large:"h-[44px] gap-[8px] px-[22px] button-16",medium:"h-[40px] gap-[8px] px-[16px] button-14",small:"h-[32px] gap-[6px] px-[12px] button-12"};function t(i){const s=re.useContext(t.Context),{children:u,className:l,plain:f=!1,ref:d,size:h="sm",title:m,variant:b,...g}=i,v=f?"plain":b??s?.variant??"default";return f&&BI(),F.jsx("button",{"aria-label":g["aria-label"]??m,className:lo("inline-flex shrink-0 cursor-pointer items-center justify-center rounded-button text-foreground-secondary focus-visible:outline focus-visible:outline-[2px] focus-visible:outline-offset-[2px] focus-visible:outline-focus",t.variantClassName[v],t.sizeClassName[h],l),ref:d,type:"button",...g,children:u})}e.Icon=t,(i=>{i.Context=re.createContext(void 0),i.variantClassName={default:"bg-secondary hover:bg-secondary-hover hover:text-foreground-secondary-hover active:bg-secondary-active",plain:"hover:bg-surface-hover hover:text-foreground-secondary-hover active:bg-surface-active active:text-foreground",surface:"border border-border bg-surface hover:bg-secondary-hover hover:text-foreground active:bg-secondary-active active:text-foreground"},i.sizeClassName={lg:"h-[32px] w-[32px] [&>svg]:h-[16px] [&>svg]:w-[16px]",md:"h-[32px] w-[32px] [&>svg]:h-[14px] [&>svg]:w-[14px]",sm:"h-[24px] w-[24px] [&>svg]:h-[12px] [&>svg]:w-[12px]",xs:"h-[20px] w-[20px] [&>svg]:h-[10px] [&>svg]:w-[10px]"}})(t=e.Icon||(e.Icon={}));function n(i){const{children:s,className:u,disabled:l,prefix:f,render:d,size:h="medium",suffix:m,...b}=i,g=F.jsxs(F.Fragment,{children:[f&&F.jsx("span",{className:"shrink-0",children:f}),s,m&&F.jsx("span",{className:"shrink-0",children:m})]}),v={className:lo("inline-flex shrink-0 cursor-pointer items-center justify-center gap-[4px] whitespace-nowrap rounded-button font-normal text-foreground-secondary hover:bg-surface-hover hover:text-foreground-secondary-hover active:bg-surface-active active:text-foreground [&:hover:active]:bg-surface-active [&:hover:active]:text-foreground focus-visible:outline focus-visible:outline-[2px] focus-visible:outline-offset-[2px] focus-visible:outline-focus data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n.sizeClassName[h],u),"data-disabled":l?"":void 0,...b};return d&&re.isValidElement(d)?re.cloneElement(d,C3(d.props,v),g):F.jsx("button",{...v,disabled:l,children:g})}e.Text=n,(i=>{i.sizeClassName={large:"px-[6px] py-[3px] label-14",medium:"px-[6px] py-[3px] label-13",small:"px-[5px] py-[2px] label-12"}})(n=e.Text||(e.Text={}))})(ro||(ro={}));function II(){return F.jsx("svg",{className:"h-[16px] w-[16px] animate-rgn-spin",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:Array.from({length:12},(e,t)=>F.jsx("line",{x1:"8",y1:"1.5",x2:"8",y2:"4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",opacity:.15+t/12*.85,transform:`rotate(${t*30} 8 8)`},t))})}function BI(){S5||(S5=!0,console.warn(\'Button.Icon: plain is deprecated. Use variant="plain" instead.\'))}const $I="0.1.1";function kI(){return $I}let fo=class kr extends Error{static setStaticOptions(t){kr.prototype.docsOrigin=t.docsOrigin,kr.prototype.showVersion=t.showVersion,kr.prototype.version=t.version}constructor(t,n={}){const i=(()=>{if(n.cause instanceof kr){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&typeof n.cause.details=="string"?n.cause.details:n.cause?.message?n.cause.message:n.details})(),s=n.cause instanceof kr&&n.cause.docsPath||n.docsPath,u=n.docsOrigin??kr.prototype.docsOrigin,l=`${u}${s??""}`,f=!!(n.version??kr.prototype.showVersion),d=n.version??kr.prototype.version,h=[t||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...i||s||f?["",i?`Details: ${i}`:void 0,s?`See: ${l}`:void 0,f?`Version: ${d}`:void 0]:[]].filter(m=>typeof m=="string").join(`\n`);super(h,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=n.cause,this.details=i,this.docs=l,this.docsOrigin=u,this.docsPath=s,this.shortMessage=t,this.showVersion=f,this.version=d}walk(t){return P3(this,t)}};Object.defineProperty(fo,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${kI()}`}});fo.setStaticOptions(fo.defaultStaticOptions);function P3(e,t){return t?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?P3(e.cause,t):t?null:e}const Ir={zero:48,nine:57,A:65,F:70,a:97,f:102};function E5(e){if(e>=Ir.zero&&e<=Ir.nine)return e-Ir.zero;if(e>=Ir.A&&e<=Ir.F)return e-(Ir.A-10);if(e>=Ir.a&&e<=Ir.f)return e-(Ir.a-10)}function O3(e,t){if(A5(e)>t)throw new UI({givenSize:A5(e),maxSize:t})}function NI(e,t={}){const{dir:n,size:i=32}=t;if(i===0)return e;const s=e.replace("0x","");if(s.length>i*2)throw new DI({size:Math.ceil(s.length/2),targetSize:i,type:"Hex"});return`0x${s[n==="right"?"padEnd":"padStart"](i*2,"0")}`}const jI=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function LI(e,t={}){let n="";for(let s=0;s{e.lcValues={dark:"68% 0.21",light:"66% 0.22"},e.angleBands=[[25,65],[115,155],[205,245],[295,335]],e.hueDelta=[28,72];function t(n){const[i,s]=e.angleBands[(n[2]??0)%e.angleBands.length]??e.angleBands[0],u=Math.round((((n[0]??0)<<8)+(n[1]??0))/65535*359),l=_5(n[4]??0,e.hueDelta[0],e.hueDelta[1]),f=(n[5]??0)%2===0?1:-1,d=(u+f*l+360)%360;return{angle:_5(n[3]??0,i,s),gradient:{from:u,to:d}}}e.getParts=t})(Na||(Na={}));function T5(e){return`light-dark(\n oklch(${Na.lcValues.light} ${e}),\n oklch(${Na.lcValues.dark} ${e})\n )`}function _5(e,t,n){return t+Math.round(e/255*(n-t))}const By=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],EH=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],B3=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],M5=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}];function Fi(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new aB(e.type);return`${e.name}(${Id(e.inputs,{includeName:t})})`}function Id(e,{includeName:t=!1}={}){return e?e.map(n=>VI(n,{includeName:t})).join(t?", ":","):""}function VI(e,{includeName:t}){return e.type.startsWith("tuple")?`(${Id(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function Vr(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function ut(e){return Vr(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const $3="2.55.13";let Hp={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${$3}`},ie=class $y extends Error{constructor(t,n={}){const i=n.cause instanceof $y?n.cause.details:n.cause?.message?n.cause.message:n.details,s=n.cause instanceof $y&&n.cause.docsPath||n.docsPath,u=Hp.getDocsUrl?.({...n,docsPath:s}),l=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...u?[`Docs: ${u}`]:[],...i?[`Details: ${i}`]:[],...Hp.version?[`Version: ${Hp.version}`]:[]].join(`\n`);super(l,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=i,this.docsPath=s,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=$3}walk(t){return k3(this,t)}};function k3(e,t){return t?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?k3(e.cause,t):t?null:e}class KI extends ie{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`\n`),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class z5 extends ie{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`\n`),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class N3 extends ie{constructor({data:t,params:n,size:i}){super([`Data size of ${i} bytes is too small for given parameters.`].join(`\n`),{metaMessages:[`Params: (${Id(n,{includeName:!0})})`,`Data: ${t} (${i} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=n,this.size=i}}class ob extends ie{constructor({cause:t}={}){super(\'Cannot decode zero data ("0x") with ABI parameters.\',{name:"AbiDecodingZeroDataError",cause:t})}}class QI extends ie{constructor({expectedLength:t,givenLength:n,type:i}){super([`ABI encoding array length mismatch for type ${i}.`,`Expected length: ${t}`,`Given length: ${n}`].join(`\n`),{name:"AbiEncodingArrayLengthMismatchError"})}}class ZI extends ie{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${ut(n)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class YI extends ie{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(`\n`),{name:"AbiEncodingLengthMismatchError"})}}class AH extends ie{constructor(t,{docsPath:n}){super([`Arguments (\\`args\\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\\`inputs\\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`\n`),{docsPath:n,name:"AbiErrorInputsNotFoundError"})}}class TH extends ie{constructor(t,{docsPath:n}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`\n`),{docsPath:n,name:"AbiErrorNotFoundError"})}}class j3 extends ie{constructor(t,{docsPath:n,cause:i}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`\n`),{docsPath:n,name:"AbiErrorSignatureNotFoundError",cause:i}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class XI extends ie{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class JI extends ie{constructor(t,{docsPath:n}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`\n`),{docsPath:n,name:"AbiEventSignatureNotFoundError"})}}class nd extends ie{constructor(t,{docsPath:n}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`\n`),{docsPath:n,name:"AbiFunctionNotFoundError"})}}class WI extends ie{constructor(t,{docsPath:n}){super([`Function "${t}" does not contain any \\`outputs\\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`\n`),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}}class _H extends ie{constructor(t,{docsPath:n}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`\n`),{docsPath:n,name:"AbiFunctionSignatureNotFoundError"})}}class eB extends ie{constructor(t,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\\`${t.type}\\` in \\`${Fi(t.abiItem)}\\`, and`,`\\`${n.type}\\` in \\`${Fi(n.abiItem)}\\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class R5 extends ie{constructor({abiItem:t,data:n,params:i,size:s}){super([`Data size of ${s} bytes is too small for non-indexed event parameters.`].join(`\n`),{metaMessages:[`Params: (${Id(i,{includeName:!0})})`,`Data: ${n} (${s} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=n,this.params=i,this.size=s}}class tB extends ie{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${Fi(t,{includeName:!0})}".`].join(`\n`),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class nB extends ie{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`\n`),{docsPath:n,name:"InvalidAbiEncodingType"})}}class rB extends ie{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`\n`),{docsPath:n,name:"InvalidAbiDecodingType"})}}class iB extends ie{constructor(t){super([`Value "${t}" is not a valid array.`].join(`\n`),{name:"InvalidArrayError"})}}class aB extends ie{constructor(t){super([`"${t}" is not a valid definition type.`,\'Valid types: "function", "event", "error"\'].join(`\n`),{name:"InvalidDefinitionTypeError"})}}class $n extends ie{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class L3 extends ie{constructor({offset:t,position:n,size:i}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${i}).`,{name:"SliceOffsetOutOfBoundsError"})}}class U3 extends ie{constructor({size:t,targetSize:n,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}}class C5 extends ie{constructor({size:t,targetSize:n,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} is expected to be ${n} ${i} long, but is ${t} ${i} long.`,{name:"InvalidBytesLengthError"})}}function Mo(e,{dir:t,size:n=32}={}){return typeof e=="string"?Li(e,{dir:t,size:n}):sB(e,{dir:t,size:n})}function Li(e,{dir:t,size:n=32}={}){if(n===null)return e;const i=e.replace("0x","");if(i.length>n*2)throw new U3({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function sB(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new U3({size:e.length,targetSize:n,type:"bytes"});const i=new Uint8Array(n);for(let s=0;st)throw new cB({givenSize:ut(e),maxSize:t})}function ja(e,t={}){const{signed:n}=t;t.size&&Vn(e,{size:t.size});const i=BigInt(e);if(!n)return i;const s=(e.length-2)/2,u=(1n<t.toString(16).padStart(2,"0"));function Ju(e,t={}){return typeof e=="number"||typeof e=="bigint"?he(e,t):typeof e=="string"?H3(e,t):typeof e=="boolean"?D3(e,t):Bt(e,t)}function D3(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(Vn(n,{size:t.size}),Mo(n,{size:t.size})):n}function Bt(e,t={}){let n="";for(let s=0;su||s=Br.zero&&e<=Br.nine)return e-Br.zero;if(e>=Br.A&&e<=Br.F)return e-(Br.A-10);if(e>=Br.a&&e<=Br.f)return e-(Br.a-10)}function ar(e,t={}){let n=e;t.size&&(Vn(n,{size:t.size}),n=Mo(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);const s=i.length/2,u=new Uint8Array(s);for(let l=0,f=0;lthis.maxSize){const i=super.keys().next().value;i!==void 0&&super.delete(i)}return this}}const mB=/^0x[a-fA-F0-9]{40}$/,qp=new kc(8192);function Ht(e,t){const{strict:n=!0}=t??{},i=`${e}.${n}`;if(qp.has(i))return qp.get(i);const s=mB.test(e)?e.toLowerCase()===e?!0:n?$d(e)===e:!0:!1;return qp.set(i,s),s}const Fp=new kc(8192);function $d(e,t){if(Fp.has(`${e}.${t}`))return Fp.get(`${e}.${t}`);const n=e.substring(2).toLowerCase(),i=zo(q3(n),"bytes"),s=n.split("");for(let l=0;l<40;l+=2)i[l>>1]>>4>=8&&s[l]&&(s[l]=s[l].toUpperCase()),(i[l>>1]&15)>=8&&s[l+1]&&(s[l+1]=s[l+1].toUpperCase());const u=`0x${s.join("")}`;return Fp.set(`${e}.${t}`,u),u}function za(e,t){if(!Ht(e,{strict:!1}))throw new $n({address:e});return $d(e,t)}class O5 extends ie{constructor({offset:t}){super(`Offset \\`${t}\\` cannot be negative.`,{name:"NegativeOffsetError"})}}class F3 extends ie{constructor({length:t,position:n}){super(`Position \\`${n}\\` is out of bounds (\\`0 < position < ${t}\\`).`,{name:"PositionOutOfBoundsError"})}}class bB extends ie{constructor({count:t,limit:n}){super(`Recursive read limit of \\`${n}\\` exceeded (recursive read count: \\`${t}\\`).`,{name:"RecursiveReadLimitExceededError"})}}const gB={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new bB({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new F3({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new O5({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new O5({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function cb(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(gB);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function Wu(e,t,n,{strict:i}={}){return Vr(e,{strict:!1})?vB(e,t,n,{strict:i}):K3(e,t,n,{strict:i})}function G3(e,t){if(typeof t=="number"&&t>0&&t>ut(e)-1)throw new L3({offset:t,position:"start",size:ut(e)})}function V3(e,t,n){if(typeof t=="number"&&typeof n=="number"&&ut(e)!==n-t)throw new L3({offset:n,position:"end",size:ut(e)})}function K3(e,t,n,{strict:i}={}){G3(e,t);const s=e.slice(t,n);return i&&V3(s,t,n),s}function vB(e,t,n,{strict:i}={}){G3(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return i&&V3(s,t,n),s}function wB(e,t={}){typeof t.size<"u"&&Vn(e,{size:t.size});const n=Bt(e);return ja(n,t)}function xB(e,t={}){let n=e;if(typeof t.size<"u"&&(Vn(n,{size:t.size}),n=Hr(n)),n.length>1||n[0]>1)throw new oB(n);return!!n[0]}function qr(e,t={}){typeof t.size<"u"&&Vn(e,{size:t.size});const n=Bt(e);return Gi(n,t)}function SB(e,t={}){let n=e;return typeof t.size<"u"&&(Vn(n,{size:t.size}),n=Hr(n,{dir:"right"})),new TextDecoder().decode(n)}function I5(e){return typeof e[0]=="string"?qt(e):EB(e)}function EB(e){let t=0;for(const s of e)t+=s.length;const n=new Uint8Array(t);let i=0;for(const s of e)n.set(s,i),i+=s.length;return n}function qt(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}const AB=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Q3(e,t){if(e.length!==t.length)throw new YI({expectedLength:e.length,givenLength:t.length});const n=TB({params:e,values:t});return fb(n)}function TB({params:e,values:t}){const n=[];for(let i=0;il))}}function zB(e,{param:t}){const[,n]=t.type.split("bytes"),i=ut(e);if(!n){let s=e;return i%32!==0&&(s=Li(s,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:qt([Li(he(i,{size:32})),s])}}if(i!==Number.parseInt(n,10))throw new ZI({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:Li(e,{dir:"right"})}}function RB(e){if(typeof e!="boolean")throw new ie(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \\`true\\` or \\`false\\`.`);return{dynamic:!1,encoded:Li(D3(e))}}function CB(e,{signed:t,size:n=256}){if(typeof n=="number"){const i=2n**(BigInt(n)-(t?1n:0n))-1n,s=t?-i-1n:0n;if(e>i||es))}}function kd(e){const t=e.match(/^(.*)\\[(\\d+)?\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function ky(e){const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return e.components.some(ky);const n=kd(t);return n?ky({...e,type:n[1]}):!1}function Nd(e,t){const n=typeof t=="string"?ar(t):t,i=cb(n);if(ut(n)===0&&e.length>0)throw new ob;if(ut(t)&&ut(t)<32)throw new N3({data:typeof t=="string"?t:Bt(t),params:e,size:ut(t)});let s=0;const u=[];for(let l=0;l48?wB(s,{signed:n}):qr(s,{signed:n}),32]}function jB(e,t,{staticPosition:n}){const i=t.components.length===0||t.components.some(({name:l})=>!l),s=i?[]:{};let u=0;if(ec(t)){const l=qr(e.readBytes(Ny)),f=n+l;for(let d=0;dzo(Bd(e));function DB(e){return UB(e)}const HB="1.2.3";class Ft extends Error{constructor(t,n={}){const i=n.cause instanceof Ft?n.cause.details:n.cause?.message?n.cause.message:n.details,s=n.cause instanceof Ft&&n.cause.docsPath||n.docsPath,u=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...s?[`Docs: https://abitype.dev${s}`]:[],...i?[`Details: ${i}`]:[],`Version: abitype@${HB}`].join(`\n`);super(u),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=i,this.docsPath=s,this.metaMessages=n.metaMessages,this.shortMessage=t}}function Jr(e,t){return e.exec(t)?.groups}const Z3=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Y3=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,X3=/^\\(.+?\\).*?$/,$5=/^tuple(?(\\[(\\d*)\\])*)$/;function jy(e){let t=e.type;if($5.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let s=0;s[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?.*?)\\)$/;function FB(e){return J3.test(e)}function GB(e){return Jr(J3,e)}const W3=/^event (?[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?.*?)\\)$/;function VB(e){return W3.test(e)}function KB(e){return Jr(W3,e)}const e8=/^function (?[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?.*?)\\)(?: (?external|public{1}))?(?: (?pure|view|nonpayable|payable{1}))?(?: returns\\s?\\((?.*?)\\))?$/;function QB(e){return e8.test(e)}function ZB(e){return Jr(e8,e)}const t8=/^struct (?[a-zA-Z$_][a-zA-Z0-9$_]*) \\{(?.*?)\\}$/;function n8(e){return t8.test(e)}function YB(e){return Jr(t8,e)}const r8=/^constructor\\((?.*?)\\)(?:\\s(?payable{1}))?$/;function XB(e){return r8.test(e)}function JB(e){return Jr(r8,e)}const i8=/^fallback\\(\\) external(?:\\s(?payable{1}))?$/;function WB(e){return i8.test(e)}function e$(e){return Jr(i8,e)}const t$=/^receive\\(\\) external payable$/;function n$(e){return t$.test(e)}const r$=new Set(["indexed"]),Ly=new Set(["calldata","memory","storage"]);class i$ extends Ft{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class a$ extends Ft{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class s$ extends Ft{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class o$ extends Ft{constructor({param:t,name:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class u$ extends Ft{constructor({param:t,type:n,modifier:i}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${i}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class c$ extends Ft{constructor({param:t,type:n,modifier:i}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${i}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${i}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class l$ extends Ft{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Ro extends Ft{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class f$ extends Ft{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class d$ extends Ft{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class h$ extends Ft{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class p$ extends Ft{constructor({current:t,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function y$(e,t,n){let i="";if(n)for(const s of Object.entries(n)){if(!s)continue;let u="";for(const l of s[1])u+=`[${l.type}${l.name?`:${l.name}`:""}]`;i+=`(${s[0]}{${u}})`}return t?`${t}:${e}${i}`:`${e}${i}`}const Gp=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function m$(e,t={}){if(QB(e))return b$(e,t);if(VB(e))return g$(e,t);if(FB(e))return v$(e,t);if(XB(e))return w$(e,t);if(WB(e))return x$(e);if(n$(e))return{type:"receive",stateMutability:"payable"};throw new f$({signature:e})}function b$(e,t={}){const n=ZB(e);if(!n)throw new Ro({signature:e,type:"function"});const i=qn(n.parameters),s=[],u=i.length;for(let f=0;f[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\spayable)?)(?(?:\\[\\d*?\\])+?)?(?:\\s(?calldata|indexed|memory|storage{1}))?(?:\\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,E$=/^\\((?.+?)\\)(?(?:\\[\\d*?\\])+?)?(?:\\s(?calldata|indexed|memory|storage{1}))?(?:\\s(?[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,A$=/^u?int$/;function La(e,t){const n=y$(e,t?.type,t?.structs);if(Gp.has(n))return Gp.get(n);const i=X3.test(e),s=Jr(i?E$:S$,e);if(!s)throw new s$({param:e});if(s.name&&_$(s.name))throw new o$({param:e,name:s.name});const u=s.name?{name:s.name}:{},l=s.modifier==="indexed"?{indexed:!0}:{},f=t?.structs??{};let d,h={};if(i){d="tuple";const b=qn(s.type),g=[],v=b.length;for(let x=0;x[a-zA-Z$_][a-zA-Z0-9$_]*)(?(?:\\[\\d*?\\])+?)?$/;function s8(e=[],t={},n=new Set){const i=[],s=e.length;for(let u=0;u{const t=typeof e=="string"?e:qB(e);return C$(t)};function u8(e){return DB(P$(e))}const db=u8,hb=e=>Wu(u8(e),0,4);function pb(e){const{abi:t,args:n=[],name:i}=e,s=Vr(i,{strict:!1}),u=t.filter(f=>s?f.type==="function"?hb(f)===i:f.type==="event"?db(f)===i:!1:"name"in f&&f.name===i);if(u.length===0)return;if(u.length===1)return u[0];let l;for(const f of u){if(!("inputs"in f))continue;if(!n||n.length===0){if(!f.inputs||f.inputs.length===0)return f;continue}if(!f.inputs||f.inputs.length===0||f.inputs.length!==n.length)continue;if(n.every((h,m)=>{const b="inputs"in f&&f.inputs[m];return b?Uy(h,b):!1})){if(l&&"inputs"in l&&l.inputs){const h=c8(f.inputs,l.inputs,n);if(h)throw new eB({abiItem:f,type:h[0]},{abiItem:l,type:h[1]})}l=f}}return l||u[0]}function Uy(e,t){const n=typeof e,i=t.type;switch(i){case"address":return Ht(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return i==="tuple"&&"components"in t?Object.values(t.components).every((s,u)=>n==="object"&&Uy(Object.values(e)[u],s)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\\[[0-9]{0,}\\])+$/.test(i)?Array.isArray(e)&&e.every(s=>Uy(s,{...t,type:i.replace(/(\\[[0-9]{0,}\\])$/,"")})):!1}}function c8(e,t,n){for(const i in e){const s=e[i],u=t[i];if(s.type==="tuple"&&u.type==="tuple"&&"components"in s&&"components"in u)return c8(s.components,u.components,n[i]);const l=[s.type,u.type];if(l.includes("address")&&l.includes("bytes20")?!0:l.includes("address")&&l.includes("string")?Ht(n[i],{strict:!1}):l.includes("address")&&l.includes("bytes")?Ht(n[i],{strict:!1}):!1)return l}}const Vp="/docs/contract/decodeFunctionResult";function l8(e){const{abi:t,args:n,functionName:i,data:s}=e;let u=t[0];if(i){const f=pb({abi:t,args:n,name:i});if(!f)throw new nd(i,{docsPath:Vp});u=f}if(u.type!=="function")throw new nd(void 0,{docsPath:Vp});if(!u.outputs)throw new WI(u.name,{docsPath:Vp});const l=Nd(u.outputs,s);if(l&&l.length>1)return l;if(l&&l.length===1)return l[0]}const k5="/docs/contract/encodeFunctionData";function O$(e){const{abi:t,args:n,functionName:i}=e;let s=t[0];if(i){const u=pb({abi:t,args:n,name:i});if(!u)throw new nd(i,{docsPath:k5});s=u}if(s.type!=="function")throw new nd(void 0,{docsPath:k5});return{abi:[s],functionName:hb(Fi(s))}}function Co(e){const{args:t}=e,{abi:n,functionName:i}=e.abi.length===1&&e.functionName?.startsWith("0x")?e:O$(e),s=n[0],u=i,l="inputs"in s&&s.inputs?Q3(s.inputs,t??[]):void 0;return qt([u,l??"0x"])}class Dy extends ie{constructor({blockNumber:t,chain:n,contract:i}){super(`Chain "${n.name}" does not support contract "${i.name}".`,{metaMessages:["This could be due to any of the following:",...t&&i.blockCreated&&i.blockCreated>t?[`- The contract "${i.name}" was not deployed until block ${i.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${i.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class I$ extends ie{constructor({chain:t,currentChainId:n}){super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class B$ extends ie{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`\n`),{name:"ChainNotFoundError"})}}class f8 extends ie{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class jd extends ie{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}function $$({blockNumber:e,chain:t,contract:n}){const i=t?.contracts?.[n];if(!i)throw new Dy({chain:t,contract:{name:n}});if(e&&i.blockCreated&&i.blockCreated>e)throw new Dy({blockNumber:e,chain:t,contract:{name:n,blockCreated:i.blockCreated}});return i.address}function vt(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}const k$={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},N$={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},j$={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function L$(e){const{abi:t,data:n,cause:i}=e,s=Wu(n,0,4);if(s==="0x")throw new ob({cause:i});const l=[...t||[],N$,j$].find(f=>f.type==="error"&&s===hb(Fi(f)));if(!l)throw new j3(s,{docsPath:"/docs/contract/decodeErrorResult",cause:i});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?Nd(l.inputs,Wu(n,4)):void 0,errorName:l.name}}const Ui=(e,t,n)=>JSON.stringify(e,(i,s)=>typeof s=="bigint"?s.toString():s,n);function d8({abiItem:e,args:t,includeFunctionName:n=!0,includeName:i=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((s,u)=>`${i&&s.name?`${s.name}: `:""}${typeof t[u]=="object"?Ui(t[u]):t[u]}`).join(", ")})`}const rd={wei:0,gwei:9,szabo:12,finney:15,ether:18};function h8(e,t=0){if(!Number.isInteger(t)||t<0)throw new p8({decimals:t});let n=e.toString();const i=n.startsWith("-");i&&(n=n.slice(1)),n=n.padStart(t,"0");let[s,u]=[n.slice(0,n.length-t),n.slice(n.length-t)];return u=u.replace(/(0+)$/,""),`${i?"-":""}${s||"0"}${u?`.${u}`:""}`}function U$(e,t="wei"){return h8(e,rd.ether-rd[t])}function D$(e,t="wei"){return h8(e,rd.gwei-rd[t])}function MH(e,t=0){if(!Number.isInteger(t)||t<0)throw new p8({decimals:t});if(!/^-?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)$/.test(e))throw new q$({value:e});let[n="",i="0"]=e.split(".");const s=n.startsWith("-");if(s&&(n=n.slice(1)),n===""&&(n="0"),i=i.replace(/(0+)$/,""),t===0)i.length>0&&Number.parseInt(i[0],10)>=5&&(n=`${BigInt(n)+1n}`),i="";else if(i.length>t){const u=i.slice(0,t);if(Number.parseInt(i.slice(t,t+1),10)>=5){const f=H$(u);f.length>t?(i=f.slice(1),n=`${BigInt(n)+1n}`):i=f}else i=u}else i=i.padEnd(t,"0");return BigInt(`${s?"-":""}${n}${i}`)}function H$(e){const t=e.split("");let n=t.length-1;for(;n>=0;){const i=Number.parseInt(t[n],10)+1;if(i<10)return t[n]=String(i),t.join("");t[n]="0",n--}return`1${t.join("")}`}class q$ extends Error{constructor({value:t}){super(`Value \\`${t}\\` is not a valid decimal number.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalNumberError"})}}class p8 extends Error{constructor({decimals:t}){super(`\\`decimals\\` must be a non-negative integer. Got \\`${t}\\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Value.InvalidDecimalsError"})}}function yb(e,t="wei"){return U$(e,t)}function rn(e,t="wei"){return D$(e,t)}class F$ extends ie{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class G$ extends ie{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function N5(e){return e.reduce((t,{slot:n,value:i})=>`${t} ${n}: ${i}\n`,"")}function V$(e){return e.reduce((t,{address:n,...i})=>{let s=`${t} ${n}:\n`;return i.nonce&&(s+=` nonce: ${i.nonce}\n`),i.balance&&(s+=` balance: ${i.balance}\n`),i.code&&(s+=` code: ${i.code}\n`),i.state&&(s+=` state:\n`,s+=N5(i.state)),i.stateDiff&&(s+=` stateDiff:\n`,s+=N5(i.stateDiff)),s},` State Override:\n`).slice(0,-1)}function Nc(e){const t=Object.entries(e).map(([i,s])=>s===void 0||s===!1?null:[i,s]).filter(Boolean),n=t.reduce((i,[s])=>Math.max(i,s.length),0);return t.map(([i,s])=>` ${`${i}:`.padEnd(n+1)} ${s}`).join(`\n`)}class K$ extends ie{constructor({v:t}){super(`Invalid \\`v\\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class Q$ extends ie{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Nc(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class Z$ extends ie{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class Y$ extends ie{constructor(t,{account:n,docsPath:i,chain:s,data:u,gas:l,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:h,nonce:m,to:b,value:g}){const v=Nc({chain:s&&`${s?.name} (id: ${s?.id})`,from:n?.address,to:b,value:typeof g<"u"&&`${yb(g)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:u,gas:l,gasPrice:typeof f<"u"&&`${rn(f)} gwei`,maxFeePerGas:typeof d<"u"&&`${rn(d)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${rn(h)} gwei`,nonce:m});super(t.shortMessage,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",v].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}const X$=e=>e;function Vi(e){if(e?.reason)return e.reason;if(typeof DOMException=="function")return new DOMException("This operation was aborted","AbortError");const t=new Error("This operation was aborted");return t.name="AbortError",t}function Po(e){return typeof e=="object"&&e!==null&&"name"in e&&e.name==="AbortError"}const mb=e=>{try{const t=new URL(e);return!t.username&&!t.password?e:(t.username="",t.password="",t.toString())}catch{return e}};class y8 extends ie{constructor(t,{account:n,docsPath:i,chain:s,data:u,gas:l,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:h,nonce:m,to:b,value:g,stateOverride:v}){const x=n?vt(n):void 0;let S=Nc({from:x?.address,to:b,value:typeof g<"u"&&`${yb(g)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:u,gas:l,gasPrice:typeof f<"u"&&`${rn(f)} gwei`,maxFeePerGas:typeof d<"u"&&`${rn(d)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${rn(h)} gwei`,nonce:m});v&&(S+=`\n${V$(v)}`),super(t.shortMessage,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",S].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class m8 extends ie{constructor(t,{abi:n,args:i,contractAddress:s,docsPath:u,functionName:l,sender:f}){const d=pb({abi:n,args:i,name:l}),h=d?d8({abiItem:d,args:i,includeFunctionName:!1,includeName:!1}):void 0,m=d?Fi(d,{includeName:!0}):void 0,b=Nc({address:s&&X$(s),function:m,args:h&&h!=="()"&&`${[...Array(l?.length??0).keys()].map(()=>" ").join("")}${h}`,sender:f});super(t.shortMessage||`An unknown error occurred while executing the contract function "${l}".`,{cause:t,docsPath:u,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],b&&"Contract Call:",b].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=n,this.args=i,this.cause=t,this.contractAddress=s,this.functionName=l,this.sender=f}}class J$ extends ie{constructor({abi:t,data:n,functionName:i,message:s,cause:u}){let l,f,d,h;if(n&&n!=="0x")try{f=L$({abi:t,data:n,cause:u});const{abiItem:b,errorName:g,args:v}=f;if(g==="Error")h=v[0];else if(g==="Panic"){const[x]=v;h=k$[x]}else{const x=b?Fi(b,{includeName:!0}):void 0,S=b&&v?d8({abiItem:b,args:v,includeFunctionName:!1,includeName:!1}):void 0;d=[x?`Error: ${x}`:"",S&&S!=="()"?` ${[...Array(g?.length??0).keys()].map(()=>" ").join("")}${S}`:""]}}catch(b){l=b}else s&&(h=s);let m;l instanceof j3&&(m=l.signature,d=[`Unable to decode signature "${m}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${m}.`]),super(h&&h!=="execution reverted"||m?[`The contract function "${i}" reverted with the following ${m?"signature":"reason"}:`,h||m].join(`\n`):`The contract function "${i}" reverted.`,{cause:l??u,metaMessages:d,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=f,this.raw=n,this.reason=h,this.signature=m}}class W$ extends ie{constructor({functionName:t,cause:n}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError",cause:n})}}class ek extends ie{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class b8 extends ie{constructor({data:t,message:n}){super(n||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}function tt(e,t,n){const i=e[t.name];if(typeof i=="function")return i;const s=e[n];return typeof s=="function"?s:u=>t(e,u)}class Du extends ie{constructor({body:t,cause:n,details:i,headers:s,status:u,url:l}){super("HTTP request failed.",{cause:n,details:i,metaMessages:[u&&`Status: ${u}`,`URL: ${mb(l)}`,t&&`Request body: ${Ui(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=s,this.status=u,this.url=l}}class Nf extends ie{constructor({maxSize:t,size:n}){super("HTTP response body exceeded the size limit.",{metaMessages:[`Max: ${t} bytes`,`Received: ${n} bytes`],name:"ResponseBodyTooLargeError"}),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t,this.size=n}}class bb extends ie{constructor({body:t,error:n,url:i}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${mb(i)}`,`Request body: ${Ui(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data,this.url=i}}class j5 extends ie{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${mb(n)}`,`Request body: ${Ui(t)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=n}}const tk=-1;class an extends ie{constructor(t,{code:n,docsPath:i,metaMessages:s,name:u,shortMessage:l}){super(l,{cause:t,docsPath:i,metaMessages:s||t?.metaMessages,name:u||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=u||t.name,this.code=t instanceof bb?t.code:n??tk}}class sn extends an{constructor(t,n){super(t,n),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}}class tc extends an{constructor(t){super(t,{code:tc.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(tc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class nc extends an{constructor(t){super(t,{code:nc.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(nc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class rc extends an{constructor(t,{method:n}={}){super(t,{code:rc.code,name:"MethodNotFoundRpcError",shortMessage:`The method${n?` "${n}"`:""} does not exist / is not available.`})}}Object.defineProperty(rc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class ic extends an{constructor(t){super(t,{code:ic.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`\n`)})}}Object.defineProperty(ic,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Ua extends an{constructor(t){super(t,{code:Ua.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Ua,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class ho extends an{constructor(t){super(t,{code:ho.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`\n`)})}}Object.defineProperty(ho,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class ac extends an{constructor(t){super(t,{code:ac.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(ac,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Di extends an{constructor(t){super(t,{code:Di.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Di,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class sc extends an{constructor(t){super(t,{code:sc.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(sc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Ra extends an{constructor(t,{method:n}={}){super(t,{code:Ra.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${n?` "${n}"`:""} is not supported.`})}}Object.defineProperty(Ra,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class po extends an{constructor(t){super(t,{code:po.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(po,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class oc extends an{constructor(t){super(t,{code:oc.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(oc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class kt extends sn{constructor(t){super(t,{code:kt.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(kt,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class uc extends sn{constructor(t){super(t,{code:uc.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(uc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class cc extends sn{constructor(t,{method:n}={}){super(t,{code:cc.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${n?` " ${n}"`:""}.`})}}Object.defineProperty(cc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class lc extends sn{constructor(t){super(t,{code:lc.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(lc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class fc extends sn{constructor(t){super(t,{code:fc.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(fc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Da extends sn{constructor(t){super(t,{code:Da.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(Da,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class dc extends sn{constructor(t){super(t,{code:dc.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(dc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class hc extends sn{constructor(t){super(t,{code:hc.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(hc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class pc extends sn{constructor(t){super(t,{code:pc.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(pc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class yc extends sn{constructor(t){super(t,{code:yc.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(yc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class mc extends sn{constructor(t){super(t,{code:mc.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(mc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class bc extends sn{constructor(t){super(t,{code:bc.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(bc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class gc extends sn{constructor(t){super(t,{code:gc.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(gc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class vc extends sn{constructor(t){super(t,{code:vc.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(vc,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class nk extends an{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const rk=3;function g8(e,{abi:t,address:n,args:i,docsPath:s,functionName:u,sender:l}){const f=e instanceof b8?e:e instanceof ie?e.walk(x=>"data"in x)||e.walk():{},{code:d,data:h,details:m,message:b,shortMessage:g}=f,v=e instanceof ob?new W$({functionName:u,cause:e}):[rk,Ua.code].includes(d)&&(h||m||b||g)||d===ho.code&&m==="execution reverted"&&h?new J$({abi:t,data:typeof h=="object"?h.data:h,functionName:u,message:f instanceof bb?m:g??b,cause:e}):e;return new m8(v,{abi:t,args:i,contractAddress:n,docsPath:s,functionName:u,sender:l})}const ik="modulepreload",ak=function(e,t){return new URL(e,t).href},L5={},Nn=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let h=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};const l=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),d=f?.nonce||f?.getAttribute("nonce");s=h(n.map(m=>{if(m=ak(m,i),m in L5)return;L5[m]=!0;const b=m.endsWith(".css"),g=b?\'[rel="stylesheet"]\':"";if(i)for(let x=l.length-1;x>=0;x--){const S=l[x];if(S.href===m&&(!b||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${m}"]${g}`))return;const v=document.createElement("link");if(v.rel=b?"stylesheet":ik,b||(v.as="script"),v.crossOrigin="",v.href=m,d&&v.setAttribute("nonce",d),document.head.appendChild(v),b)return new Promise((x,S)=>{v.addEventListener("load",x),v.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${m}`)))})}))}function u(l){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=l,window.dispatchEvent(f),!f.defaultPrevented)throw l}return s.then(l=>{for(const f of l||[])f.status==="rejected"&&u(f.reason);return t().catch(u)})},sk="0x82ad56cb",ok="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",uk="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",ck="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",v8="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033",Kp="/docs/contract/encodeDeployData";function gb(e){const{abi:t,args:n,bytecode:i}=e;if(!n||n.length===0)return i;const s=t.find(l=>"type"in l&&l.type==="constructor");if(!s)throw new KI({docsPath:Kp});if(!("inputs"in s))throw new z5({docsPath:Kp});if(!s.inputs||s.inputs.length===0)throw new z5({docsPath:Kp});const u=Q3(s.inputs,n);return qt([i,u])}function Ki(e,t){if(!Ht(e,{strict:!1}))throw new $n({address:e});if(!Ht(t,{strict:!1}))throw new $n({address:t});return e.toLowerCase()===t.toLowerCase()}function Ld(e){const{blockHash:t,blockNumber:n,blockTag:i,requireCanonical:s}=e;if(s!==void 0&&!t)throw new ie("`requireCanonical` can only be provided when `blockHash` is set.");return t?s?{blockHash:t,requireCanonical:s}:{blockHash:t}:typeof n=="bigint"?he(n):i??"latest"}class Xs extends ie{constructor({cause:t,message:n}={}){const i=n?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${i?`with reason: ${i}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(Xs,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Xs,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class Ha extends ie{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\\`maxFeePerGas\\`${n?` = ${rn(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(Ha,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\\^256-1|fee cap higher than 2\\^256-1/});class Hy extends ie{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\\`maxFeePerGas\\`${n?` = ${rn(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(Hy,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class qy extends ie{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(qy,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Fy extends ie{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`\n`),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(Fy,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Gy extends ie{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(Gy,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Vy extends ie{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`\n`),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Vy,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class Ky extends ie{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(Ky,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Qy extends ie{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Qy,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Zy extends ie{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Zy,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class wc extends ie{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:i}={}){super([`The provided tip (\\`maxPriorityFeePerGas\\`${n?` = ${rn(n)} gwei`:""}) cannot be higher than the fee cap (\\`maxFeePerGas\\`${i?` = ${rn(i)} gwei`:""}).`].join(`\n`),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(wc,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class Ud extends ie{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function vb(e,t){const n=(e.details||"").toLowerCase(),i=e instanceof ie?e.walk(s=>s?.code===Xs.code):e;return i instanceof ie?new Xs({cause:e,message:i.details}):Xs.nodeMessage.test(n)?new Xs({cause:e,message:e.details}):Ha.nodeMessage.test(n)?new Ha({cause:e,maxFeePerGas:t?.maxFeePerGas}):Hy.nodeMessage.test(n)?new Hy({cause:e,maxFeePerGas:t?.maxFeePerGas}):qy.nodeMessage.test(n)?new qy({cause:e,nonce:t?.nonce}):Fy.nodeMessage.test(n)?new Fy({cause:e,nonce:t?.nonce}):Gy.nodeMessage.test(n)?new Gy({cause:e,nonce:t?.nonce}):Vy.nodeMessage.test(n)?new Vy({cause:e}):Ky.nodeMessage.test(n)?new Ky({cause:e,gas:t?.gas}):Qy.nodeMessage.test(n)?new Qy({cause:e,gas:t?.gas}):Zy.nodeMessage.test(n)?new Zy({cause:e}):wc.nodeMessage.test(n)?new wc({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new Ud({cause:e})}function lk(e,{docsPath:t,...n}){const i=(()=>{const s=vb(e,n);return s instanceof Ud?e:s})();return new y8(i,{docsPath:t,...n})}function Dd(e,{format:t}){if(!t)return{};const n={};function i(u){const l=Object.keys(u);for(const f of l)f in e&&(n[f]=e[f]),u[f]&&typeof u[f]=="object"&&!Array.isArray(u[f])&&i(u[f])}const s=t(e||{});return i(s),n}function wb(e,t){return({exclude:n,format:i})=>({exclude:n,format:(s,u)=>{const l=t(s,u);if(n)for(const f of n)delete l[f];return{...l,...i(s,u)}},type:e})}const fk={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Oo(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=hk(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(i=>Bt(i)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=he(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=he(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=he(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=he(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=he(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=he(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=fk[e.type]),typeof e.value<"u"&&(n.value=he(e.value)),n}const dk=wb("transactionRequest",Oo);function hk(e){return e.map(t=>({address:t.address,r:t.r?he(BigInt(t.r)):t.r,s:t.s?he(BigInt(t.s)):t.s,chainId:he(t.chainId),nonce:he(t.nonce),...typeof t.yParity<"u"?{yParity:he(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:he(t.v)}:{}}))}function pk(){let e=()=>{},t=()=>{};return{promise:new Promise((i,s)=>{e=i,t=s}),resolve:e,reject:t}}const Qp=new Map;function w8({fn:e,id:t,shouldSplitBatch:n,wait:i=0,sort:s}){const u=async()=>{const m=d();l();const b=m.map(({args:g})=>g);b.length!==0&&e(b).then(g=>{s&&Array.isArray(g)&&g.sort(s);for(let v=0;v{for(let v=0;vQp.delete(t),f=()=>d().map(({args:m})=>m),d=()=>Qp.get(t)||[],h=m=>Qp.set(t,[...d(),m]);return{flush:l,async schedule(m){const{promise:b,resolve:g,reject:v}=pk();return n?.([...f(),m])&&u(),d().length>0?(h({args:m,resolve:g,reject:v}),b):(h({args:m,resolve:g,reject:v}),setTimeout(u,i),b)}}}function U5(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:i})=>{if(n.length!==66)throw new C5({size:n.length,targetSize:66,type:"hex"});if(i.length!==66)throw new C5({size:i.length,targetSize:66,type:"hex"});return t[n]=i,t},{})}function yk(e){const{balance:t,nonce:n,state:i,stateDiff:s,code:u}=e,l={};if(u!==void 0&&(l.code=u),t!==void 0&&(l.balance=he(t)),n!==void 0&&(l.nonce=he(n)),i!==void 0&&(l.state=U5(i)),s!==void 0){if(l.state)throw new G$;l.stateDiff=U5(s)}return l}function x8(e){if(!e)return;const t={};for(const{address:n,...i}of e){if(!Ht(n,{strict:!1}))throw new $n({address:n});if(t[n])throw new F$({address:n});t[n]=yk(i)}return t}const yo=2n**256n-1n;function jc(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:i,to:s}=e,u=t?vt(t):void 0;if(u&&!Ht(u.address))throw new $n({address:u.address});if(s&&!Ht(s))throw new $n({address:s});if(n&&n>yo)throw new Ha({maxFeePerGas:n});if(i&&n&&i>n)throw new wc({maxFeePerGas:n,maxPriorityFeePerGas:i})}async function S8(e,t){const{account:n=e.account,authorizationList:i,batch:s=!!e.batch?.multicall,blockHash:u,blockNumber:l,blockTag:f=e.experimental_blockTag??"latest",requireCanonical:d,accessList:h,blobs:m,blockOverrides:b,code:g,data:v,factory:x,factoryData:S,gas:E,gasPrice:_,maxFeePerBlobGas:O,maxFeePerGas:M,maxPriorityFeePerGas:R,nonce:z,requestOptions:I,to:C,value:B,stateOverride:L,...D}=t,K=n?vt(n):void 0;if(g&&(x||S))throw new ie("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(g&&C)throw new ie("Cannot provide both `code` & `to` as parameters.");const J=g&&v,te=x&&S&&C&&v,ue=J||te,X=J?A8({code:g,data:v}):te?xk({data:v,factory:x,factoryData:S,to:C}):v;try{jc(t);const N=Ld({blockHash:u,blockNumber:l,blockTag:f,requireCanonical:d}),G=b?L7(b):void 0,ne=x8(L),ce=e.chain?.formatters?.transactionRequest?.format,$=(ce||Oo)({...Dd(D,{format:ce}),accessList:h,account:K,authorizationList:i,blobs:m,data:X,gas:E,gasPrice:_,maxFeePerBlobGas:O,maxFeePerGas:M,maxPriorityFeePerGas:R,nonce:z,to:ue?void 0:C,value:B},"call");if(s&&mk({request:$})&&!G&&u===void 0)try{const{deployless:ae=!1}=typeof e.batch?.multicall=="object"?e.batch.multicall:{},le=E8(e,{blockNumber:l,deployless:ae});if(!le||!wk(ne,le))return await vk(e,{...$,blockHash:u,blockNumber:l,blockTag:f,multicallAddress:le,requestOptions:I,requireCanonical:d,rpcStateOverride:ne})}catch(ae){if(!(ae instanceof f8)&&!(ae instanceof Dy))throw ae}const Z=(()=>{const ae=[$,N];return ne&&G?[...ae,ne,G]:ne?[...ae,ne]:G?[...ae,{},G]:ae})(),se=await e.request({method:"eth_call",params:Z},I);return se==="0x"?{data:void 0}:{data:se}}catch(N){if(I?.signal?.aborted)throw Vi(I.signal);if(Po(N))throw N;const G=Sk(N),{offchainLookup:ne,offchainLookupSignature:ce}=await Nn(async()=>{const{offchainLookup:fe,offchainLookupSignature:$}=await import("./ccip-BsjXn5Xv.js");return{offchainLookup:fe,offchainLookupSignature:$}},[],import.meta.url);if(e.ccipRead!==!1&&G?.slice(0,10)===ce&&C)return{data:await ne(e,{data:G,requestOptions:I,to:C})};throw ue&&G?.slice(0,10)==="0x101bb98d"?new ek({factory:x}):lk(N,{...t,account:K,chain:e.chain})}}function mk({request:e}){const{data:t,to:n,...i}=e;return!(!t||t.startsWith(sk)||!n||Object.values(i).filter(s=>typeof s<"u").length>0)}let bk=0;const D5=new WeakMap;function gk(e){if(!e)return"default";const t=D5.get(e);if(t!==void 0)return t;const n=bk++;return D5.set(e,n),n}async function vk(e,t){const{batchSize:n=1024,deployless:i=!1,wait:s=0}=typeof e.batch?.multicall=="object"?e.batch.multicall:{},{blockHash:u,blockNumber:l,blockTag:f=e.experimental_blockTag??"latest",requireCanonical:d,data:h,multicallAddress:m,requestOptions:b,rpcStateOverride:g,to:v}=t,x=m!==void 0?m:E8(e,{blockNumber:l,deployless:i}),S=Ld({blockHash:u,blockNumber:l,blockTag:f,requireCanonical:d}),E=typeof S=="string"?S:JSON.stringify(S),_=g?`.${JSON.stringify(g)}`:"",{schedule:O}=w8({id:`${e.uid}.${E}.${gk(b)}${_}`,wait:s,shouldSplitBatch(z){return z.reduce((C,{data:B})=>C+(B.length-2),0)>n*2},fn:async z=>{const I=z.map(D=>({allowFailure:!0,callData:D.data,target:D.to})),C=Co({abi:By,args:[I],functionName:"aggregate3"}),B={...x===null?{data:A8({code:v8,data:C})}:{to:x,data:C}},L=await e.request({method:"eth_call",params:g?[B,S,g]:[B,S]},b);return l8({abi:By,args:[I],functionName:"aggregate3",data:L||"0x"})}}),[{returnData:M,success:R}]=await O({data:h,to:v});if(!R)throw new b8({data:M});return M==="0x"?{data:void 0}:{data:M}}function E8(e,t){const{blockNumber:n,deployless:i}=t;if(i)return null;if(e.chain)return $$({blockNumber:n,chain:e.chain,contract:"multicall3"});throw new f8}function wk(e,t){return e?Object.keys(e).some(n=>Ki(n,t)):!1}function A8(e){const{code:t,data:n}=e;return gb({abi:o8(["constructor(bytes, bytes)"]),bytecode:ok,args:[t,n]})}function xk(e){const{data:t,factory:n,factoryData:i,to:s}=e;return gb({abi:o8(["constructor(address, bytes, address, bytes)"]),bytecode:uk,args:[s,t,n,i]})}function Sk(e){if(!(e instanceof ie))return;const t=e.walk();return typeof t?.data=="object"?t.data?.data:t.data}async function Kr(e,t){const{abi:n,address:i,args:s,functionName:u,...l}=t,f=Co({abi:n,args:s,functionName:u});try{const{data:d}=await tt(e,S8,"call")({...l,data:f,to:i});return l8({abi:n,args:s,functionName:u,data:d||"0x"})}catch(d){throw g8(d,{abi:n,address:i,args:s,docsPath:"/docs/contract/readContract",functionName:u})}}function Ek(e){const t=zo(`0x${e.substring(4)}`).substring(26);return $d(`0x${t}`)}async function Ak({hash:e,signature:t}){const n=Vr(e)?e:Ju(e),{secp256k1:i}=await Nn(async()=>{const{secp256k1:l}=await Promise.resolve().then(()=>x7);return{secp256k1:l}},void 0,import.meta.url);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:h,s:m,v:b,yParity:g}=t,v=Number(g??b),x=H5(v);return new i.Signature(ja(h),ja(m)).addRecoveryBit(x)}const l=Vr(t)?t:Ju(t);if(ut(l)!==65)throw new Error("invalid signature length");const f=Gi(`0x${l.slice(130)}`),d=H5(f);return i.Signature.fromCompact(l.substring(2,130)).addRecoveryBit(d)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function H5(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function Yy({hash:e,signature:t}){return Ek(await Ak({hash:e,signature:t}))}function qa(e,t="hex"){const n=T8(e),i=cb(new Uint8Array(n.length));return n.encode(i),t==="hex"?Bt(i.bytes):i.bytes}function T8(e){return Array.isArray(e)?Tk(e.map(t=>T8(t))):_k(e)}function Tk(e){const t=e.reduce((s,u)=>s+u.length,0),n=_8(t);return{length:t<=55?1+t:1+n+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+n),n===1?s.pushUint8(t):n===2?s.pushUint16(t):n===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:u}of e)u(s)}}}function _k(e){const t=typeof e=="string"?ar(e):e,n=_8(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+n),n===1?s.pushUint8(t.length):n===2?s.pushUint16(t.length):n===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function _8(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new ie("Length is too large.")}function Mk(e){const{chainId:t,nonce:n,to:i}=e,s=e.contractAddress??e.address,u=zo(qt(["0x05",qa([t?he(t):"0x",s,n?he(n):"0x"])]));return i==="bytes"?ar(u):u}async function xb(e){const{authorization:t,signature:n}=e;return Yy({hash:Mk(t),signature:n??t})}class zk extends ie{constructor(t,{account:n,docsPath:i,chain:s,data:u,gas:l,gasPrice:f,maxFeePerGas:d,maxPriorityFeePerGas:h,nonce:m,to:b,value:g}){const v=Nc({from:n?.address,to:b,value:typeof g<"u"&&`${yb(g)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:u,gas:l,gasPrice:typeof f<"u"&&`${rn(f)} gwei`,maxFeePerGas:typeof d<"u"&&`${rn(d)} gwei`,maxPriorityFeePerGas:typeof h<"u"&&`${rn(h)} gwei`,nonce:m});super(t.shortMessage,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",v].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function Rk(e,{docsPath:t,...n}){const i=(()=>{const s=vb(e,n);return s instanceof Ud?e:s})();return new zk(i,{docsPath:t,...n})}class M8 extends ie{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class Sb extends ie{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class Ck extends ie{constructor({maxPriorityFeePerGas:t}){super(`\\`maxFeePerGas\\` cannot be less than the \\`maxPriorityFeePerGas\\` (${rn(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class Pk extends ie{constructor({blockHash:t,blockNumber:n}){let i="Block";t&&(i=`Block at hash "${t}"`),n&&(i=`Block at number "${n}"`),super(`${i} could not be found.`,{name:"BlockNotFoundError"})}}const z8={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Hd(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...e.blockTimestamp!=null&&{blockTimestamp:BigInt(e.blockTimestamp)},chainId:e.chainId?Gi(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?Gi(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?z8[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=Ik(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const Ok=wb("transaction",Hd);function Ik(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function Bk(e,t){const n=(e.transactions??[]).map(i=>typeof i=="string"?i:Hd(i));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function xc(e,{blockHash:t,blockNumber:n,blockTag:i=e.experimental_blockTag??"latest",includeTransactions:s}={}){const u=s??!1,l=n!==void 0?he(n):void 0;let f=null;if(t?f=await e.request({method:"eth_getBlockByHash",params:[t,u]},{dedupe:!0}):f=await e.request({method:"eth_getBlockByNumber",params:[l||i,u]},{dedupe:!!l}),!f)throw new Pk({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||Bk)(f,"getBlock")}async function R8(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function $k(e,t){const{block:n,chain:i=e.chain,request:s}=t||{};try{const u=i?.fees?.maxPriorityFeePerGas??i?.fees?.defaultPriorityFee;if(typeof u=="function"){const f=n||await tt(e,xc,"getBlock")({}),d=await u({block:f,client:e,request:s});if(d===null)throw new Error;return d}if(typeof u<"u")return u;const l=await e.request({method:"eth_maxPriorityFeePerGas"});return ja(l)}catch{const[u,l]=await Promise.all([n?Promise.resolve(n):tt(e,xc,"getBlock")({}),tt(e,R8,"getGasPrice")({})]);if(typeof u.baseFeePerGas!="bigint")throw new Sb;const f=l-u.baseFeePerGas;return f<0n?0n:f}}async function q5(e,t){const{block:n,chain:i=e.chain,request:s,type:u="eip1559"}=t||{},l=await(async()=>typeof i?.fees?.baseFeeMultiplier=="function"?i.fees.baseFeeMultiplier({block:n,client:e,request:s}):i?.fees?.baseFeeMultiplier??1.2)();if(l<1)throw new M8;const d=10**(l.toString().split(".")[1]?.length??0),h=g=>g*BigInt(Math.round(l*d))/BigInt(d),m=n||await tt(e,xc,"getBlock")({});if(typeof i?.fees?.estimateFeesPerGas=="function"){const g=await i.fees.estimateFeesPerGas({block:n,client:e,multiply:h,request:s,type:u});if(g!==null)return g}if(u==="eip1559"){if(typeof m.baseFeePerGas!="bigint")throw new Sb;const g=typeof s?.maxPriorityFeePerGas=="bigint"?s.maxPriorityFeePerGas:await $k(e,{block:m,chain:i,request:s}),v=h(m.baseFeePerGas);return{maxFeePerGas:s?.maxFeePerGas??v+g,maxPriorityFeePerGas:g}}return{gasPrice:s?.gasPrice??h(await tt(e,R8,"getGasPrice")({}))}}async function kk(e,{address:t,blockHash:n,blockNumber:i,blockTag:s="latest",requireCanonical:u}){const l=Ld({blockHash:n,blockNumber:i,blockTag:s,requireCanonical:u}),f=await e.request({method:"eth_getTransactionCount",params:[t,l]},{dedupe:typeof i=="bigint"||n!==void 0});return Gi(f)}function Eb(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),i=typeof e.blobs[0]=="string"?e.blobs.map(u=>ar(u)):e.blobs,s=[];for(const u of i)s.push(Uint8Array.from(t.blobToKzgCommitment(u)));return n==="bytes"?s:s.map(u=>Bt(u))}function Ab(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),i=typeof e.blobs[0]=="string"?e.blobs.map(l=>ar(l)):e.blobs,s=typeof e.commitments[0]=="string"?e.commitments.map(l=>ar(l)):e.commitments,u=[];for(let l=0;lBt(l))}function Nk(e,t){return PS(Vr(e,{strict:!1})?Bd(e):e)}function jk(e){const{commitment:t,version:n=1}=e,i=e.to??(typeof t=="string"?"hex":"bytes"),s=Nk(t);return s.set([n],0),i==="bytes"?s:Bt(s)}function C8(e){const{commitments:t,version:n}=e,i=e.to??(typeof t[0]=="string"?"hex":"bytes"),s=[];for(const u of t)s.push(jk({commitment:u,to:i,version:n}));return s}const F5=6,P8=32,Tb=4096,O8=P8*Tb,G5=O8*F5-1-1*Tb*F5,I8=1;class Lk extends ie{constructor({maxSize:t,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class B8 extends ie{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class Uk extends ie{constructor({hash:t,size:n}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class Dk extends ie{constructor({hash:t,version:n}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${I8}`,`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}function Hk(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),n=typeof e.data=="string"?ar(e.data):e.data,i=ut(n);if(!i)throw new B8;if(i>G5)throw new Lk({maxSize:G5,size:i});const s=[];let u=!0,l=0;for(;u;){const f=cb(new Uint8Array(O8));let d=0;for(;df.bytes):s.map(f=>Bt(f.bytes))}function $8(e){const{data:t,kzg:n,to:i}=e,s=e.blobs??Hk({data:t,to:i}),u=e.commitments??Eb({blobs:s,kzg:n,to:i}),l=e.proofs??Ab({blobs:s,commitments:u,kzg:n,to:i}),f=[];for(let d=0;d{const s=vb(e,n);return s instanceof Ud?e:s})();return new Y$(i,{docsPath:t,...n})}async function Mb(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return Gi(t)}async function qk(e,t){const{account:n=e.account,accessList:i,authorizationList:s,chain:u=e.chain,blobVersionedHashes:l,blobs:f,data:d,gas:h,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:g,maxPriorityFeePerGas:v,nonce:x,nonceManager:S,to:E,type:_,value:O,...M}=t,R=await(async()=>{if(!n||!S||typeof x<"u")return x;const B=vt(n),L=u?u.id:await tt(e,Mb,"getChainId")({});return await S.consume({address:B.address,chainId:L,client:e})})();jc(t);const z=u?.formatters?.transactionRequest?.format,C=(z||Oo)({...Dd(M,{format:z}),account:n?vt(n):void 0,accessList:i,authorizationList:s,blobs:f,blobVersionedHashes:l,data:d,gas:h,gasPrice:m,maxFeePerBlobGas:b,maxFeePerGas:g,maxPriorityFeePerGas:v,nonce:R,to:E,type:_,value:O},"fillTransaction");try{const B=await e.request({method:"eth_fillTransaction",params:[C]}),D=(u?.formatters?.transaction?.format||Hd)(B.tx);delete D.blockHash,delete D.blockNumber,delete D.r,delete D.s,delete D.transactionIndex,delete D.v,delete D.yParity,D.data=D.input,D.gas&&(D.gas=t.gas??D.gas),D.gasPrice&&(D.gasPrice=t.gasPrice??D.gasPrice),D.maxFeePerBlobGas&&(D.maxFeePerBlobGas=t.maxFeePerBlobGas??D.maxFeePerBlobGas),D.maxFeePerGas&&(D.maxFeePerGas=t.maxFeePerGas??D.maxFeePerGas),D.maxPriorityFeePerGas&&(D.maxPriorityFeePerGas=t.maxPriorityFeePerGas??D.maxPriorityFeePerGas),typeof D.nonce<"u"&&(D.nonce=t.nonce??D.nonce);const K=await(async()=>{if(typeof u?.fees?.baseFeeMultiplier=="function"){const X=await tt(e,xc,"getBlock")({});return u.fees.baseFeeMultiplier({block:X,client:e,request:t})}return u?.fees?.baseFeeMultiplier??1.2})();if(K<1)throw new M8;const te=10**(K.toString().split(".")[1]?.length??0),ue=X=>X*BigInt(Math.round(K*te))/BigInt(te);return D.feePayerSignature||(D.maxFeePerGas&&!t.maxFeePerGas&&(D.maxFeePerGas=ue(D.maxFeePerGas)),D.gasPrice&&!t.gasPrice&&(D.gasPrice=ue(D.gasPrice))),{raw:B.raw,transaction:{from:C.from,...D},...B.capabilities?{capabilities:B.capabilities}:{}}}catch(B){throw k8(B,{...t,chain:e.chain})}}const N8=["blobVersionedHashes","chainId","fees","gas","nonce","type"],V5=new Map,Zp=new kc(128);async function j8(e,t){let n=t;n.account??=e.account,n.parameters??=N8;const{account:i,chain:s=e.chain,nonceManager:u,parameters:l}=n,f=(()=>{if(typeof s?.prepareTransactionRequest=="function")return{fn:s.prepareTransactionRequest,runAt:["beforeFillTransaction"]};if(Array.isArray(s?.prepareTransactionRequest))return{fn:s.prepareTransactionRequest[0],runAt:s.prepareTransactionRequest[1].runAt}})();let d;async function h(){return d||(typeof n.chainId<"u"?n.chainId:s?s.id:(d=await tt(e,Mb,"getChainId")({}),d))}let m=i&&vt(i),b=n.nonce;if(f?.fn&&f.runAt?.includes("beforeFillTransaction")){n=await f.fn({...n,chain:s},{client:e,phase:"beforeFillTransaction"}),b??=n.nonce;const R=n.account??n.from;m=R?vt(R):void 0}if(l.includes("nonce")&&typeof b>"u"&&m&&u){const R=await h();b=await u.consume({address:m.address,chainId:R,client:e})}const v=((l.includes("blobVersionedHashes")||l.includes("sidecars"))&&n.kzg&&n.blobs?!1:l.length>0&&"feePayer"in n&&n.feePayer&&!("feePayerSignature"in n&&n.feePayerSignature)?!0:Zp.get(e.uid)===!1||!["fees","gas"].some(z=>l.includes(z))?!1:!!(l.includes("chainId")&&typeof n.chainId!="number"||l.includes("nonce")&&typeof b!="number"||l.includes("fees")&&typeof n.gasPrice!="bigint"&&(typeof n.maxFeePerGas!="bigint"||typeof n.maxPriorityFeePerGas!="bigint")||l.includes("gas")&&typeof n.gas!="bigint"))?await tt(e,qk,"fillTransaction")({...n,nonce:b}).then(R=>{const{chainId:z,from:I,gas:C,gasPrice:B,nonce:L,maxFeePerBlobGas:D,maxFeePerGas:K,maxPriorityFeePerGas:J,type:te,...ue}=R.transaction,X="feeToken"in ue?ue.feeToken:void 0,N="feePayerSignature"in ue&&ue.feePayerSignature!==null&&typeof ue.feePayerSignature<"u",G=typeof X<"u"&&X!==null&&(!("feeToken"in n)||N);return Zp.set(e.uid,!0),{...n,...I?{from:I}:{},...te&&!n.type?{type:te}:{},...typeof z<"u"?{chainId:z}:{},...typeof C<"u"?{gas:C}:{},...typeof B<"u"?{gasPrice:B}:{},...typeof L<"u"?{nonce:L}:{},...typeof D<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerBlobGas:D}:{},...typeof K<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerGas:K}:{},...typeof J<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxPriorityFeePerGas:J}:{},..."nonceKey"in ue&&typeof ue.nonceKey<"u"?{nonceKey:ue.nonceKey}:{},..."keyAuthorization"in ue&&typeof ue.keyAuthorization<"u"&&ue.keyAuthorization!==null&&!("keyAuthorization"in n)?{keyAuthorization:ue.keyAuthorization}:{},..."feePayerSignature"in ue&&typeof ue.feePayerSignature<"u"&&ue.feePayerSignature!==null?{feePayerSignature:ue.feePayerSignature}:{},...G?{feeToken:X}:{},...R.capabilities?{_capabilities:R.capabilities}:{}}}).catch(R=>{const z=R;if(z.name!=="TransactionExecutionError")return n;if(z.walk?.(B=>B.name==="ExecutionRevertedError"))throw R;return z.walk?.(B=>{const L=B;return L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError"||L.message?.includes("eth_fillTransaction is not available")})&&Zp.set(e.uid,!1),n}):n;b??=v.nonce,n={...v,...m?{from:m?.address}:{},...typeof b<"u"?{nonce:b}:{}};const{blobs:x,gas:S,kzg:E,type:_}=n;f?.fn&&f.runAt?.includes("beforeFillParameters")&&(n=await f.fn({...n,chain:s},{client:e,phase:"beforeFillParameters"}));let O;async function M(){return O||(O=await tt(e,xc,"getBlock")({blockTag:"latest"}),O)}if(l.includes("nonce")&&typeof b>"u"&&m&&!u&&(n.nonce=await tt(e,kk,"getTransactionCount")({address:m.address,blockTag:"pending"})),(l.includes("blobVersionedHashes")||l.includes("sidecars"))&&x&&E){const R=Eb({blobs:x,kzg:E});if(l.includes("blobVersionedHashes")){const z=C8({commitments:R,to:"hex"});n.blobVersionedHashes=z}if(l.includes("sidecars")){const z=Ab({blobs:x,commitments:R,kzg:E}),I=$8({blobs:x,commitments:R,proofs:z,to:"hex"});n.sidecars=I}}if(l.includes("chainId")&&(n.chainId=await h()),(l.includes("fees")||l.includes("type"))&&typeof _>"u")try{n.type=_b(n)}catch{let R=V5.get(e.uid);typeof R>"u"&&(R=typeof(await M())?.baseFeePerGas=="bigint",V5.set(e.uid,R)),n.type=R?"eip1559":"legacy"}if(l.includes("fees"))if(n.type!=="legacy"&&n.type!=="eip2930"){if(typeof n.maxFeePerGas>"u"||typeof n.maxPriorityFeePerGas>"u"){const R=await M(),{maxFeePerGas:z,maxPriorityFeePerGas:I}=await q5(e,{block:R,chain:s,request:n});if(typeof n.maxPriorityFeePerGas>"u"&&n.maxFeePerGas&&n.maxFeePerGas"u"){const R=await M(),{gasPrice:z}=await q5(e,{block:R,chain:s,request:n,type:"legacy"});n.gasPrice=z}}return l.includes("gas")&&typeof S>"u"&&(n.gas=await tt(e,Fk,"estimateGas")({...n,account:m,prepare:m?.type==="local"?[]:["blobVersionedHashes"]})),f?.fn&&f.runAt?.includes("afterFillParameters")&&(n=await f.fn({...n,chain:s},{client:e,phase:"afterFillParameters"})),jc(n),delete n.parameters,n}async function Fk(e,t){const{account:n=e.account,prepare:i=!0}=t,s=n?vt(n):void 0,u=(()=>{if(Array.isArray(i))return i;if(s?.type!=="local")return["blobVersionedHashes"]})();try{const l=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await xb({authorization:t.authorizationList[0]}).catch(()=>{throw new ie("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:f,authorizationList:d,blobs:h,blobVersionedHashes:m,blockNumber:b,blockTag:g,data:v,gas:x,gasPrice:S,maxFeePerBlobGas:E,maxFeePerGas:_,maxPriorityFeePerGas:O,nonce:M,value:R,stateOverride:z,...I}=i?await j8(e,{...t,parameters:u,to:l}):t;if(x&&t.gas!==x)return x;const B=(typeof b=="bigint"?he(b):void 0)||g,L=x8(z);jc(t);const D=e.chain?.formatters?.transactionRequest?.format,J=(D||Oo)({...Dd(I,{format:D}),account:s,accessList:f,authorizationList:d,blobs:h,blobVersionedHashes:m,data:v,gasPrice:S,maxFeePerBlobGas:E,maxFeePerGas:_,maxPriorityFeePerGas:O,nonce:M,to:l,value:R},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:L?[J,B??e.experimental_blockTag??"latest",L]:B?[J,B]:[J]}))}catch(l){throw Rk(l,{...t,account:s,chain:e.chain})}}function L8(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const Gk={"0x0":"reverted","0x1":"success"};function U8(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(i=>L8(i)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Gi(e.transactionIndex):null,status:e.status?Gk[e.status]:null,type:e.type?z8[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const Vk=wb("transactionReceipt",U8);async function D8(e,{address:t,blockHash:n,blockNumber:i,blockTag:s="latest",requireCanonical:u}){const l=Ld({blockHash:n,blockNumber:i,blockTag:s,requireCanonical:u}),f=await e.request({method:"eth_getCode",params:[t,l]},{dedupe:typeof i=="bigint"||n!==void 0});if(f!=="0x")return f}const K5="/docs/contract/decodeEventLog";function Q5(e){const{abi:t,data:n,strict:i,topics:s}=e,u=i??!0,[l,...f]=s;if(!l)throw new XI({docsPath:K5});const d=t.find(_=>_.type==="event"&&l===db(Fi(_)));if(!(d&&"name"in d)||d.type!=="event")throw new JI(l,{docsPath:K5});const{name:h,inputs:m}=d,b=m?.some(_=>!("name"in _&&_.name)),g=b?[]:{},v=m.map((_,O)=>[_,O]).filter(([_])=>"indexed"in _&&_.indexed),x=[];for(let _=0;_!("indexed"in _&&_.indexed)),E=u?S:[...x.map(([_])=>_),...S];if(E.length>0){if(n&&n!=="0x")try{const _=Nd(E,n);if(_){let O=0;if(!u)for(const[M,R]of x)g[b?R:M.name||R]=_[O++];if(b)for(let M=0;M0?g:void 0}}function Kk({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\\[(\\d+)?\\]$/)?t:(Nd([e],t)||[])[0]}function qd(e){const{abi:t,args:n,logs:i,strict:s=!0}=e,u=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),l=t.filter(f=>f.type==="event").map(f=>({abi:f,selector:db(f)}));return i.map(f=>{const d=typeof f.blockNumber=="string"?L8(f):f,h=l.filter(g=>d.topics[0]===g.selector);if(h.length===0)return null;let m,b;for(const g of h)try{m=Q5({...d,abi:[g.abi],strict:!0}),b=g;break}catch{}if(!m&&!s){b=h[0];try{m=Q5({data:d.data,topics:d.topics,abi:[b.abi],strict:!1})}catch{const g=b.abi.inputs?.some(v=>!("name"in v&&v.name));return{...d,args:g?[]:{},eventName:b.abi.name}}}return!m||!b||u&&!u.includes(m.eventName)||!Qk({args:m.args,inputs:b.abi.inputs,matchArgs:n})?null:{...m,...d}}).filter(Boolean)}function Qk(e){const{args:t,inputs:n,matchArgs:i}=e;if(!i)return!0;if(!t)return!1;function s(u,l,f){try{return u.type==="address"?Ki(l,f):u.type==="string"||u.type==="bytes"?zo(Bd(l))===f:l===f}catch{return!1}}return Array.isArray(t)&&Array.isArray(i)?i.every((u,l)=>{if(u==null)return!0;const f=n[l];return f?(Array.isArray(u)?u:[u]).some(h=>s(f,h,t[l])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof i=="object"&&!Array.isArray(i)?Object.entries(i).every(([u,l])=>{if(l==null)return!0;const f=n.find(h=>h.name===u);return f?(Array.isArray(l)?l:[l]).some(h=>s(f,h,t[u])):!1}):!1}function Zk(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:i}=n,s=n.address;if(!Ht(s))throw new $n({address:s});if(i<0)throw new jd({chainId:i})}zb(e)}function Yk(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new B8;for(const n of t){const i=ut(n),s=Gi(Wu(n,0,1));if(i!==32)throw new Uk({hash:n,size:i});if(s!==I8)throw new Dk({hash:n,version:s})}}zb(e)}function zb(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:i,to:s}=e;if(t<=0)throw new jd({chainId:t});if(s&&!Ht(s))throw new $n({address:s});if(i&&i>yo)throw new Ha({maxFeePerGas:i});if(n&&i&&n>i)throw new wc({maxFeePerGas:i,maxPriorityFeePerGas:n})}function Xk(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:i,maxFeePerGas:s,to:u}=e;if(t<=0)throw new jd({chainId:t});if(u&&!Ht(u))throw new $n({address:u});if(n||s)throw new ie("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(i&&i>yo)throw new Ha({maxFeePerGas:i})}function Jk(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:i,maxFeePerGas:s,to:u}=e;if(u&&!Ht(u))throw new $n({address:u});if(typeof t<"u"&&t<=0)throw new jd({chainId:t});if(n||s)throw new ie("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(i&&i>yo)throw new Ha({maxFeePerGas:i})}function Fd(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n"u"||typeof v>"u")){const M=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(I=>Bt(I)),R=e.kzg,z=Eb({blobs:M,kzg:R});if(typeof g>"u"&&(g=C8({commitments:z})),typeof v>"u"){const I=Ab({blobs:M,commitments:z,kzg:R});v=$8({blobs:M,commitments:z,proofs:I})}}const x=Fd(m),S=[he(n),s?he(s):"0x",h?he(h):"0x",d?he(d):"0x",i?he(i):"0x",u??"0x",l?he(l):"0x",b??"0x",x,f?he(f):"0x",g??[],...Lc(e,t)],E=[],_=[],O=[];if(v)for(let M=0;M{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);const v=27n+(t.v===27n?0n:1n);if(t.v!==v)throw new K$({v:t.v});return v})(),b=Hr(t.r),g=Hr(t.s);h=[...h,he(m),b==="0x00"?"0x":b,g==="0x00"?"0x":g]}else n>0&&(h=[...h,he(n),"0x","0x"]);return qa(h)}function Lc(e,t){const n=t??e,{v:i,yParity:s}=n;if(typeof n.r>"u")return[];if(typeof n.s>"u")return[];if(typeof i>"u"&&typeof s>"u")return[];const u=Hr(n.r),l=Hr(n.s);return[typeof s=="number"?s?he(1):"0x":i===0n?"0x":i===1n?he(1):i===27n?"0x":he(1),u==="0x00"?"0x":u,l==="0x00"?"0x":l]}function iN(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:i,nonce:s,...u}=n,l=n.address;t.push([i?Ju(i):"0x",l,s?Ju(s):"0x",...Lc({},u)])}return t}async function aN({address:e,authorization:t,signature:n}){return Ki(za(e),await xb({authorization:t,signature:n}))}const Ef=new kc(8192);function sN(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(Ef.get(n))return Ef.get(n);const i=e().finally(()=>Ef.delete(n));return Ef.set(n,i),i}async function oN(e,{signal:t}={}){return new Promise((n,i)=>{if(t?.aborted){i(Vi(t));return}const s=()=>t?.removeEventListener("abort",l),u=setTimeout(()=>{s(),n()},e),l=()=>{clearTimeout(u),s(),i(Vi(t))};t?.addEventListener("abort",l,{once:!0})})}function H8(e,{delay:t=100,retryCount:n=2,shouldRetry:i=()=>!0,signal:s}={}){return new Promise((u,l)=>{const f=async({count:d=0}={})=>{if(s?.aborted){l(Vi(s));return}const h=async({error:m})=>{const b=typeof t=="function"?t({count:d,error:m}):t;if(b)try{await oN(b,{signal:s})}catch(g){l(g);return}return f({count:d+1})};try{const m=await e();u(m)}catch(m){if(s?.aborted){l(Vi(s));return}if(Po(m)){l(m);return}if(d{const{dedupe:s=!1,methods:u,retryDelay:l=150,retryCount:f=3,signal:d,uid:h}={...t,...i},{method:m}=n;if(u?.exclude?.includes(m))throw new Ra(new Error("method not supported"),{method:m});if(u?.include&&!u.include.includes(m))throw new Ra(new Error("method not supported"),{method:m});if(d?.aborted)throw Vi(d);const b=s?lN(`${h}.${Ui(n)}`):void 0;return sN(()=>H8(async()=>{try{return await e(n,d?{signal:d}:void 0)}catch(g){if(d?.aborted)throw Vi(d);if(Po(g))throw g;const v=g;switch(v.code){case tc.code:throw new tc(v);case nc.code:throw new nc(v);case rc.code:throw new rc(v,{method:n.method});case ic.code:throw new ic(v);case Ua.code:throw new Ua(v);case ho.code:throw new ho(v);case ac.code:throw new ac(v);case Di.code:throw new Di(v);case sc.code:throw new sc(v);case Ra.code:throw new Ra(v,{method:n.method});case po.code:throw new po(v);case oc.code:throw new oc(v);case kt.code:throw new kt(v);case uc.code:throw new uc(v);case cc.code:throw new cc(v);case lc.code:throw new lc(v);case fc.code:throw new fc(v);case Da.code:throw new Da(v);case dc.code:throw new dc(v);case hc.code:throw new hc(v);case pc.code:throw new pc(v);case yc.code:throw new yc(v);case mc.code:throw new mc(v);case bc.code:throw new bc(v);case gc.code:throw new gc(v);case 5e3:throw new kt(v);case vc.code:throw new vc(v);default:throw g instanceof ie?g:new nk(v)}}},{delay:({count:g,error:v})=>{if(v&&v instanceof Du){const x=v?.headers?.get("Retry-After");if(x?.match(/\\d/))return Number.parseInt(x,10)*1e3}return~~(1<cN(g)}),{enabled:s,id:b})}}function cN(e){return Po(e)?!1:"code"in e&&typeof e.code=="number"?e.code===-1||e.code===po.code||e.code===Ua.code||e.code===429:e instanceof Du&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function lN(e,t=0){let n=3735928559^t,i=1103547991^t;for(let s=0;s>>16,2246822507),n^=Math.imul(i^i>>>16,3266489909),i=Math.imul(i^i>>>16,2246822507),i^=Math.imul(n^n>>>16,3266489909),(4294967296*(2097151&i)+(n>>>0)).toString(36)}function fN({chain:e,currentChainId:t}){if(!e)throw new B$;if(t!==e.id)throw new I$({chain:e,currentChainId:t})}function q8(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(i){return s=>{const u=typeof s=="function"?s(i):s,l={...i,...u};return Object.assign(l,{extend:n(l)})}}return Object.assign(t,{extend:n(t)})}function dN(){return{}}function F8(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:i}){return new Promise((s,u)=>{(async()=>{let l;const f=new AbortController;try{n>0&&(l=setTimeout(()=>{i?f.abort():u(t)},n)),s(await e({signal:f?.signal||null}))}catch(d){if(f?.signal.aborted&&Po(d)){u(t);return}u(d)}finally{clearTimeout(l)}})()})}function hN(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const Y5=hN(),pN=10485760;function yN(e,t={}){const{url:n,headers:i}=bN(e);return{async request(s){const{body:u,fetchFn:l=t.fetchFn??fetch,maxResponseBodySize:f=t.maxResponseBodySize??pN,onRequest:d=t.onRequest,onResponse:h=t.onResponse,timeout:m=t.timeout??1e4}=s,b={...t.fetchOptions??{},...s.fetchOptions??{}},{headers:g,method:v,signal:x}=b;try{const S=await F8(async({signal:O})=>{const M={...b,body:Array.isArray(u)?Ui(u.map(C=>({jsonrpc:"2.0",id:C.id??Y5.take(),...C}))):Ui({jsonrpc:"2.0",id:u.id??Y5.take(),...u}),headers:{...i,"Content-Type":"application/json",...g},method:v||"POST",signal:x||(m>0?O:null)},R=new Request(n,M),z=await d?.(R,M)??{...M,url:n};return await l(z.url??n,z)},{errorInstance:new j5({body:u,url:n}),timeout:m,signal:!0});h&&await h(S);let E;const _=await mN(S,{maxResponseBodySize:f});if(S.headers.get("Content-Type")?.startsWith("application/json"))E=JSON.parse(_);else{E=_;try{E=JSON.parse(E||"{}")}catch(O){if(S.ok)throw O;E={error:E}}}if(!S.ok){if(typeof E.error?.code=="number"&&typeof E.error?.message=="string")return E;throw new Du({body:u,details:Ui(E.error)||S.statusText,headers:S.headers,status:S.status,url:n})}return E}catch(S){throw x?.aborted?Vi(x):Po(S)||S instanceof Du||S instanceof Nf||S instanceof j5?S:new Du({body:u,cause:S,url:n})}}}}async function mN(e,{maxResponseBodySize:t}){if(t===!1)return e.text();const n=e.headers.get("Content-Length");if(n){const f=Number(n);if(f>t)throw new Nf({maxSize:t,size:f})}if(!e.body){const f=await e.text(),d=new TextEncoder().encode(f).length;if(d>t)throw new Nf({maxSize:t,size:d});return f}const i=e.body.getReader(),s=new TextDecoder;let u="",l=0;try{for(;;){const{done:f,value:d}=await i.read();if(f)break;if(l+=d.byteLength,l>t)throw await i.cancel(),new Nf({maxSize:t,size:l});u+=s.decode(d,{stream:!0})}return u+=s.decode(),u}finally{i.releaseLock()}}function bN(e){try{const t=new URL(e),n=(()=>{if(t.username){const i=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username="",t.password="",{url:t.toString(),headers:{Authorization:`Basic ${btoa(i)}`}}}})();return{url:t.toString(),...n}}catch{return{url:e}}}const gN="0x8010801080108010801080108010801080108010801080108010801080108010",vN=XS("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function G8(e){if(typeof e=="string"){if(Ee(e,-32)!==gN)throw new SN(e)}else $c(e.authorization)}function wN(e){G8(e);const t=uo(Ee(e,-64,-32)),n=Ee(e,-t-64,-64),i=Ee(e,0,-t-64),[s,u,l]=LO(vN,n);return{authorization:P7({address:s.delegation,chainId:Number(s.chainId),nonce:s.nonce,yParity:s.yParity,r:s.r,s:s.s}),signature:i,...l&&l!=="0x"?{data:l,to:u}:{}}}function xN(e){try{return G8(e),!0}catch{return!1}}let SN=class extends ye{constructor(t){super(`Value \\`${t}\\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}};const V8="0x6492649264926492649264926492649264926492649264926492649264926492";function EN(e){if(Ee(e,-32)!==V8)throw new _N(e)}function AN(e){const{data:t,signature:n,to:i}=e;return Xe(UO(XS("address, bytes, bytes"),[i,t,n]),V8)}function TN(e){try{return EN(e),!0}catch{return!1}}class _N extends ye{constructor(t){super(`Value \\`${t}\\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}function MN({r:e,s:t,to:n="hex",v:i,yParity:s}){const u=(()=>{if(s===0||s===1)return s;if(i&&(i===27n||i===28n||i>=35n))return i%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),l=`0x${new Cd.Signature(ja(e),ja(t)).toCompactHex()}${u===0?"1b":"1c"}`;return n==="hex"?l:ar(l)}async function zN(e,t){const{address:n,chain:i=e.chain,hash:s,erc6492VerifierAddress:u=t.universalSignatureVerifierAddress??i?.contracts?.erc6492Verifier?.address,multicallAddress:l=t.multicallAddress??i?.contracts?.multicall3?.address,mode:f="auto"}=t;if(i?.verifyHash)return await i.verifyHash(e,t);const d=(()=>{const h=t.signature;return Vr(h)?h:typeof h=="object"&&"r"in h&&"s"in h?MN(h):Bt(h)})();try{if(f==="eoa")try{if(Ki(za(n),await Yy({hash:s,signature:d})))return!0}catch{}return xN(d)?await RN(e,{...t,multicallAddress:l,signature:d}):await CN(e,{...t,verifierAddress:u,signature:d})}catch(h){if(f!=="eoa")try{if(Ki(za(n),await Yy({hash:s,signature:d})))return!0}catch{}if(h instanceof Fa)return!1;throw h}}async function RN(e,t){const{address:n,blockHash:i,blockNumber:s,blockTag:u,hash:l,multicallAddress:f,requireCanonical:d}=t,{authorization:h,data:m,signature:b,to:g}=wN(t.signature);if(await D8(e,{address:n,blockHash:i,blockNumber:s,blockTag:u,requireCanonical:d})===qt(["0xef0100",h.address]))return await PN(e,{...t,signature:b});const x={address:h.address,chainId:Number(h.chainId),nonce:Number(h.nonce),r:he(h.r,{size:32}),s:he(h.s,{size:32}),yParity:h.yParity};if(!await aN({address:n,authorization:x}))throw new Fa;const E=await tt(e,Kr,"readContract")({...f?{address:f}:{code:v8},authorizationList:[x],abi:By,blockHash:i,blockNumber:s,blockTag:"pending",functionName:"aggregate3",requireCanonical:d,args:[[...m?[{allowFailure:!0,target:g??n,callData:m}]:[],{allowFailure:!0,target:n,callData:Co({abi:B3,functionName:"isValidSignature",args:[l,b]})}]]});if(E[E.length-1]?.returnData?.startsWith("0x1626ba7e"))return!0;throw new Fa}async function CN(e,t){const{address:n,factory:i,factoryData:s,hash:u,signature:l,verifierAddress:f,...d}=t,h=await(async()=>!i&&!s||TN(l)?l:AN({data:s,signature:l,to:i}))(),m=f?{to:f,data:Co({abi:M5,functionName:"isValidSig",args:[n,u,h]}),...d}:{data:gb({abi:M5,args:[n,u,h],bytecode:ck}),...d},{data:b}=await tt(e,S8,"call")(m).catch(g=>{throw g instanceof y8?new Fa:g});if(lB(b??"0x0"))return!0;throw new Fa}async function PN(e,t){const{address:n,blockHash:i,blockNumber:s,blockTag:u,hash:l,requireCanonical:f,signature:d}=t;if((await tt(e,Kr,"readContract")({address:n,abi:B3,args:[l,d],blockHash:i,blockNumber:s,blockTag:u,functionName:"isValidSignature",requireCanonical:f}).catch(m=>{throw m instanceof m8?new Fa:m})).startsWith("0x1626ba7e"))return!0;throw new Fa}let Fa=class extends Error{};class K8 extends ie{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`\n`),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class Yp extends ie{constructor({docsPath:t,metaMessages:n,type:i}){super(`Account type "${i}" is not supported.`,{docsPath:t,metaMessages:n,name:"AccountTypeNotSupportedError"})}}async function ON(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const Xp=new kc(128);async function Q8(e,t){const{account:n=e.account,assertChainId:i=!0,chain:s=e.chain,accessList:u,authorizationList:l,blobs:f,data:d,dataSuffix:h=typeof e.dataSuffix=="string"?e.dataSuffix:e.dataSuffix?.value,gas:m,gasPrice:b,maxFeePerBlobGas:g,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:S,type:E,value:_,...O}=t;if(typeof n>"u")throw new K8({docsPath:"/docs/actions/wallet/sendTransaction"});const M=n?vt(n):null;let R;try{jc(t);const z=await(async()=>{if(t.to)return t.to;if(t.to!==null&&l&&l.length>0)return await xb({authorization:l[0]}).catch(()=>{throw new ie("`to` is required. Could not infer from `authorizationList`.")})})();if(M?.type==="json-rpc"||M===null){let I;s!==null&&(I=await tt(e,Mb,"getChainId")({}),i&&fN({currentChainId:I,chain:s}));const C=e.chain?.formatters?.transactionRequest?.format,L=(C||Oo)({...Dd(O,{format:C}),accessList:u,account:M,authorizationList:l,blobs:f,chainId:I,data:h?I5([d??"0x",h]):d,gas:m,gasPrice:b,maxFeePerBlobGas:g,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:S,to:z,type:E,value:_},"sendTransaction"),D=Xp.get(e.uid),K=D?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:K,params:[L]},{retryCount:0})}catch(J){if(D===!1)throw J;const te=J;if(te.name==="InvalidInputRpcError"||te.name==="InvalidParamsRpcError"||te.name==="MethodNotFoundRpcError"||te.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[L]},{retryCount:0}).then(ue=>(Xp.set(e.uid,!0),ue)).catch(ue=>{const X=ue;throw X.name==="MethodNotFoundRpcError"||X.name==="MethodNotSupportedRpcError"?(Xp.set(e.uid,!1),te):X});throw te}}if(M?.type==="local"){const I=(()=>{if(!M.nonceManager||typeof S<"u")return M.nonceManager;const D=M.nonceManager;return{consume(K){return R={address:K.address,chainId:K.chainId},D.consume(K)},get(K){return D.get(K)},increment(K){return D.increment(K)},reset(K){return D.reset(K)}}})(),C=await tt(e,j8,"prepareTransactionRequest")({account:M,accessList:u,authorizationList:l,blobs:f,chain:s,data:h?I5([d??"0x",h]):d,gas:m,gasPrice:b,maxFeePerBlobGas:g,maxFeePerGas:v,maxPriorityFeePerGas:x,nonce:S,nonceManager:I,parameters:[...N8,"sidecars"],type:E,value:_,...O,to:z}),B=s?.serializers?.transaction,L=await M.signTransaction(C,{serializer:B});return await tt(e,ON,"sendRawTransaction")({serializedTransaction:L})}throw M?.type==="smart"?new Yp({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new Yp({docsPath:"/docs/actions/wallet/sendTransaction",type:M?.type})}catch(z){throw z instanceof Yp?z:(R&&M?.nonceManager?.reset(R),k8(z,{...t,account:M,chain:t.chain||void 0}))}}async function mo(e,t){return mo.internal(e,Q8,"sendTransaction",t)}(function(e){async function t(n,i,s,u){const{abi:l,account:f=n.account,address:d,args:h,functionName:m,...b}=u;if(typeof f>"u")throw new K8({docsPath:"/docs/contract/writeContract"});const g=f?vt(f):null,v=Co({abi:l,args:h,functionName:m});try{return await tt(n,i,s)({data:v,to:d,account:g,...b})}catch(x){throw g8(x,{abi:l,address:d,args:h,docsPath:"/docs/contract/writeContract",functionName:m,sender:g?.address})}}e.internal=t})(mo||(mo={}));const jf="3.6.4",IN=()=>`@wagmi/core@${jf}`;var Z8=function(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},id,Y8;let X8=class Xy extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return IN()}constructor(t,n={}){super(),id.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const i=n.cause instanceof Xy?n.cause.details:n.cause?.message?n.cause.message:n.details,s=n.cause instanceof Xy&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...s?[`Docs: ${this.docsBaseUrl}${s}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...i?[`Details: ${i}`]:[],`Version: ${this.version}`].join(`\n`),n.cause&&(this.cause=n.cause),this.details=i,this.docsPath=s,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return Z8(this,id,"m",Y8).call(this,this,t)}};id=new WeakSet,Y8=function e(t,n){return n?.(t)?t:t.cause?Z8(this,id,"m",e).call(this,t.cause,n):t};class Jy extends X8{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}const Wy=256;let Af=Wy,Tf;function J8(e=11){if(!Tf||Af+e>Wy*2){Tf="",Af=0;for(let t=0;t{const C=I(z);for(const L in M)delete C[L];const B={...z,...C};for(const L in C){const D=z[L],K=C[L];X5(D)&&X5(K)&&(B[L]={...D,...K})}return Object.assign(B,{extend:R(B)})}}return Object.assign(M,{extend:R(M)})}function X5(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function $N({key:e,methods:t,name:n,request:i,retryCount:s=3,retryDelay:u=150,timeout:l,type:f},d){const h=J8();return{config:{key:e,methods:t,name:n,request:i,retryCount:s,retryDelay:u,timeout:l,type:f},request:uN(i,{methods:t,retryCount:s,retryDelay:u,uid:h}),value:d}}class kN extends ie{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}let NN=0;const J5=new WeakMap;function jN(e){if(!e)return"default";const t=J5.get(e);if(t!==void 0)return t;const n=NN++;return J5.set(e,n),n}function W5(e,t={}){const{batch:n,fetchFn:i,fetchOptions:s,key:u="http",maxResponseBodySize:l,methods:f,name:d="HTTP JSON-RPC",onFetchRequest:h,onFetchResponse:m,retryDelay:b,raw:g}=t;return({chain:v,retryCount:x,timeout:S})=>{const{batchSize:E=1e3,wait:_=0}=typeof n=="object"?n:{},O=t.retryCount??x,M=S??t.timeout??1e4,R=v?.rpcUrls.default.http[0];if(!R)throw new kN;const z=yN(R,{fetchFn:i,fetchOptions:s,maxResponseBodySize:l,onRequest:h,onResponse:m,timeout:M});return $N({key:u,methods:f,name:d,async request({method:I,params:C},B){const L={method:I,params:C},D=B?.signal?{signal:B.signal}:void 0,{schedule:K}=w8({id:`${R}.${jN(B?.signal)}`,wait:_,shouldSplitBatch(X){return X.length>E},fn:X=>z.request({body:X,fetchOptions:D}),sort:(X,N)=>X.id-N.id}),J=async X=>n?K(X):[await z.request({body:X,fetchOptions:D})],[{error:te,result:ue}]=await J(L);if(g)return{error:te,result:ue};if(te)throw new bb({body:L,error:te,url:R});return ue},retryCount:O,retryDelay:b,timeout:M,type:"http"},{fetchOptions:s,url:R})}}let Jp=!1;async function LN(e,t={}){if(Jp)return[];Jp=!0,e.setState(h=>({...h,status:h.current?"reconnecting":"connecting"}));const n=[];if(t.connectors?.length)for(const h of t.connectors){let m;typeof h=="function"?m=e._internal.connectors.setup(h):m=h,n.push(m)}else n.push(...e.connectors);let i;try{i=await e.storage?.getItem("recentConnectorId")}catch{}const s={};for(const[,h]of e.state.connections)s[h.connector.id]=1;i&&(s[i]=0);const u=Object.keys(s).length>0?[...n].sort((h,m)=>(s[h.id]??10)-(s[m.id]??10)):n;let l=!1;const f=[],d=[];for(const h of u){const m=await h.getProvider().catch(()=>{});if(!m||d.some(v=>v===m)||!await h.isAuthorized())continue;const g=await h.connect({isReconnecting:!0}).catch(()=>null);g&&(h.emitter.off("connect",e._internal.events.connect),h.emitter.on("change",e._internal.events.change),h.emitter.on("disconnect",e._internal.events.disconnect),e.setState(v=>{const x=new Map(l?v.connections:new Map).set(h.uid,{accounts:g.accounts,chainId:g.chainId,connector:h});return{...v,current:l?v.current:h.uid,connections:x}}),f.push({accounts:g.accounts,chainId:g.chainId,connector:h}),d.push(m),l=!0)}return(e.state.status==="reconnecting"||e.state.status==="connecting")&&(l?e.setState(h=>({...h,status:"connected"})):e.setState(h=>({...h,connections:new Map,current:null,status:"disconnected"}))),Jp=!1,f}class qs extends X8{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}Rb.type="injected";function Rb(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function i(){const d=e.target;if(typeof d=="function"){const h=d();if(h)return h}return typeof d=="object"?d:typeof d=="string"?{...UN[d]??{id:d,name:`${d[0].toUpperCase()}${d.slice(1)}`,provider:`is${d[0].toUpperCase()}${d.slice(1)}`}}:{id:"injected",name:"Injected",provider(h){return h?.ethereum}}}let s,u,l,f;return d=>({get icon(){return i().icon},get id(){return i().id},get name(){return i().name},type:Rb.type,async setup(){const h=await this.getProvider();h?.on&&e.target&&(l||(l=this.onConnect.bind(this),h.on("connect",l)),s||(s=this.onAccountsChanged.bind(this),h.on("accountsChanged",s)))},async connect({chainId:h,isReconnecting:m,withCapabilities:b}={}){const g=await this.getProvider();if(!g)throw new qs;let v=[];if(m)v=await this.getAccounts().catch(()=>[]);else if(t)try{v=(await g.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0]?.caveats?.[0]?.value?.map(S=>za(S)),v.length>0&&(v=await this.getAccounts())}catch(x){const S=x;if(S.code===kt.code)throw new kt(S);if(S.code===Di.code)throw S}try{!v?.length&&!m&&(v=(await g.request({method:"eth_requestAccounts"})).map(E=>za(E))),l&&(g.removeListener("connect",l),l=void 0),s||(s=this.onAccountsChanged.bind(this),g.on("accountsChanged",s)),u||(u=this.onChainChanged.bind(this),g.on("chainChanged",u)),f||(f=this.onDisconnect.bind(this),g.on("disconnect",f));let x=await this.getChainId();return h&&x!==h&&(x=(await this.switchChain({chainId:h}).catch(E=>{if(E.code===kt.code)throw E;return{id:x}}))?.id??x),t&&await d.storage?.removeItem(`${this.id}.disconnected`),e.target||await d.storage?.setItem("injected.connected",!0),{accounts:b?v.map(S=>({address:S,capabilities:{}})):v,chainId:x}}catch(x){const S=x;throw S.code===kt.code?new kt(S):S.code===Di.code?new Di(S):S}},async disconnect(){const h=await this.getProvider();if(!h)throw new qs;u&&(h.removeListener("chainChanged",u),u=void 0),f&&(h.removeListener("disconnect",f),f=void 0),l||(l=this.onConnect.bind(this),h.on("connect",l));try{await F8(()=>h.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await d.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await d.storage?.removeItem("injected.connected")},async getAccounts(){const h=await this.getProvider();if(!h)throw new qs;return(await h.request({method:"eth_accounts"})).map(b=>za(b))},async getChainId(){const h=await this.getProvider();if(!h)throw new qs;const m=await h.request({method:"eth_chainId"});return Number(m)},async getProvider(){if(typeof window>"u")return;let h;const m=i();return typeof m.provider=="function"?h=m.provider(window):typeof m.provider=="string"?h=Lf(window,m.provider):h=m.provider,h&&!h.removeListener&&("off"in h&&typeof h.off=="function"?h.removeListener=h.off:h.removeListener=()=>{}),h},async isAuthorized(){try{if(t&&await d.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await d.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(n!==void 0&&n!==!1){const g=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",g),!!await this.getProvider()),v=typeof n=="number"?n:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(S=>window.addEventListener("ethereum#initialized",()=>S(g()),{once:!0}))]:[],new Promise(S=>setTimeout(()=>S(g()),v))]))return!0}throw new qs}return!!(await H8(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:h,chainId:m}){const b=await this.getProvider();if(!b)throw new qs;const g=d.chains.find(x=>x.id===m);if(!g)throw new Da(new Jy);const v=new Promise(x=>{const S=(E=>{"chainId"in E&&E.chainId===m&&(d.emitter.off("change",S),x())});d.emitter.on("change",S)});try{return await Promise.all([b.request({method:"wallet_switchEthereumChain",params:[{chainId:he(m)}]}).then(async()=>{await this.getChainId()===m&&d.emitter.emit("change",{chainId:m})}),v]),g}catch(x){const S=x;if(S.code===4902||S?.data?.originalError?.code===4902)try{const{default:E,..._}=g.blockExplorers??{};let O;h?.blockExplorerUrls?O=h.blockExplorerUrls:E&&(O=[E.url,...Object.values(_).map(z=>z.url)]);let M;h?.rpcUrls?.length?M=h.rpcUrls:M=[g.rpcUrls.default?.http[0]??""];const R={blockExplorerUrls:O,chainId:he(m),chainName:h?.chainName??g.name,iconUrls:h?.iconUrls,nativeCurrency:h?.nativeCurrency??g.nativeCurrency,rpcUrls:M};return await Promise.all([b.request({method:"wallet_addEthereumChain",params:[R]}).then(async()=>{if(await this.getChainId()===m)d.emitter.emit("change",{chainId:m});else throw new kt(new Error("User rejected switch after adding network."))}),v]),g}catch(E){throw new kt(E)}throw S.code===kt.code?new kt(S):new Da(S)}},async onAccountsChanged(h){if(h.length===0)this.onDisconnect();else if(d.emitter.listenerCount("connect")){const m=(await this.getChainId()).toString();this.onConnect({chainId:m}),t&&await d.storage?.removeItem(`${this.id}.disconnected`)}else d.emitter.emit("change",{accounts:h.map(m=>za(m))})},onChainChanged(h){const m=Number(h);d.emitter.emit("change",{chainId:m})},async onConnect(h){const m=await this.getAccounts();if(m.length===0)return;const b=Number(h.chainId);d.emitter.emit("connect",{accounts:m,chainId:b});const g=await this.getProvider();g&&(l&&(g.removeListener("connect",l),l=void 0),s||(s=this.onAccountsChanged.bind(this),g.on("accountsChanged",s)),u||(u=this.onChainChanged.bind(this),g.on("chainChanged",u)),f||(f=this.onDisconnect.bind(this),g.on("disconnect",f)))},async onDisconnect(h){const m=await this.getProvider();h&&h.code===1013&&m&&(await this.getAccounts()).length||(d.emitter.emit("disconnect"),m&&(u&&(m.removeListener("chainChanged",u),u=void 0),f&&(m.removeListener("disconnect",f),f=void 0),l||(l=this.onConnect.bind(this),m.on("connect",l))))}})}const UN={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e?.coinbaseWalletExtension?e.coinbaseWalletExtension:Lf(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return Lf(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;const n=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const i of n)if(t[i])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(e){return e?.phantom?.ethereum?e.phantom?.ethereum:Lf(e,"isPhantom")}}};function Lf(e,t){function n(s){return typeof t=="function"?t(s):typeof t=="string"?s[t]:!0}const i=e.ethereum;if(i?.providers)return i.providers.find(s=>n(s));if(i&&n(i))return i}function DN(e){if(typeof window>"u")return;const t=n=>e(n.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}function HN(){const e=new Set;let t=[];const n=()=>DN(s=>{t.some(({info:u})=>u.uuid===s.info.uuid)||(t=[...t,s],e.forEach(u=>u(t,{added:[s]})))});let i=n();return{_listeners(){return e},clear(){e.forEach(s=>s([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),i?.()},findProvider({rdns:s}){return t.find(u=>u.info.rdns===s)},getProviders(){return t},reset(){this.clear(),i?.(),i=n()},subscribe(s,{emitImmediately:u}={}){return e.add(s),u&&s(t,{added:t}),()=>e.delete(s)}}}const qN=e=>(t,n,i)=>{const s=i.subscribe;return i.subscribe=(l,f,d)=>{let h=l;if(f){const m=d?.equalityFn||Object.is;let b=l(i.getState());h=g=>{const v=l(g);if(!m(b,v)){const x=b;f(b=v,x)}},d?.fireImmediately&&f(b,b)}return s(h)},e(t,n,i)},FN=qN;function GN(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var u;const l=d=>d===null?null:JSON.parse(d,void 0),f=(u=n.getItem(s))!=null?u:null;return f instanceof Promise?f.then(l):l(f)},setItem:(s,u)=>n.setItem(s,JSON.stringify(u,void 0)),removeItem:s=>n.removeItem(s)}}const em=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(i){return em(i)(n)},catch(i){return this}}}catch(n){return{then(i){return this},catch(i){return em(i)(n)}}}},VN=(e,t)=>(n,i,s)=>{let u={storage:GN(()=>localStorage),partialize:S=>S,version:0,merge:(S,E)=>({...E,...S}),...t},l=!1;const f=new Set,d=new Set;let h=u.storage;if(!h)return e((...S)=>{console.warn(`[zustand persist middleware] Unable to update item \'${u.name}\', the given storage is currently unavailable.`),n(...S)},i,s);const m=()=>{const S=u.partialize({...i()});return h.setItem(u.name,{state:S,version:u.version})},b=s.setState;s.setState=(S,E)=>{b(S,E),m()};const g=e((...S)=>{n(...S),m()},i,s);s.getInitialState=()=>g;let v;const x=()=>{var S,E;if(!h)return;l=!1,f.forEach(O=>{var M;return O((M=i())!=null?M:g)});const _=((E=u.onRehydrateStorage)==null?void 0:E.call(u,(S=i())!=null?S:g))||void 0;return em(h.getItem.bind(h))(u.name).then(O=>{if(O)if(typeof O.version=="number"&&O.version!==u.version){if(u.migrate)return[!0,u.migrate(O.state,O.version)];console.error("State loaded from storage couldn\'t be migrated since no migrate function was provided")}else return[!1,O.state];return[!1,void 0]}).then(O=>{var M;const[R,z]=O;if(v=u.merge(z,(M=i())!=null?M:g),n(v,!0),R)return m()}).then(()=>{_?.(v,void 0),v=i(),l=!0,d.forEach(O=>O(v))}).catch(O=>{_?.(void 0,O)})};return s.persist={setOptions:S=>{u={...u,...S},S.storage&&(h=S.storage)},clearStorage:()=>{h?.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>x(),hasHydrated:()=>l,onHydrate:S=>(f.add(S),()=>{f.delete(S)}),onFinishHydration:S=>(d.add(S),()=>{d.delete(S)})},u.skipHydration||x(),v||g},KN=VN,ew=e=>{let t;const n=new Set,i=(h,m)=>{const b=typeof h=="function"?h(t):h;if(!Object.is(b,t)){const g=t;t=m??(typeof b!="object"||b===null)?b:Object.assign({},t,b),n.forEach(v=>v(t,g))}},s=()=>t,f={setState:i,getState:s,getInitialState:()=>d,subscribe:h=>(n.add(h),()=>n.delete(h))},d=t=e(i,s,f);return f},Wp=e=>e?ew(e):ew;class QN{constructor(t){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new X7})}on(t,n){this._emitter.on(t,n)}once(t,n){this._emitter.once(t,n)}off(t,n){this._emitter.off(t,n)}emit(t,...n){const i=n[0];this._emitter.emit(t,{uid:this.uid,...i})}listenerCount(t){return this._emitter.listenerCount(t)}}function ZN(e){return new QN(e)}function YN(e,t){return JSON.parse(e,(n,i)=>{let s=i;return s?.__type==="bigint"&&(s=BigInt(s.value)),s?.__type==="Map"&&(s=new Map(s.value)),t?.(n,s)??s})}function tw(e,t){return e.slice(0,t).join(".")||"."}function nw(e,t){const{length:n}=e;for(let i=0;i{let l=u;return typeof l=="bigint"&&(l={__type:"bigint",value:u.toString()}),l instanceof Map&&(l={__type:"Map",value:Array.from(u.entries())}),t?.(s,l)??l},i),n??void 0)}function WN(e){const{deserialize:t=YN,key:n="wagmi",serialize:i=JN,storage:s=W8}=e;function u(l){return l instanceof Promise?l.then(f=>f).catch(()=>null):l}return{...s,key:n,async getItem(l,f){const d=s.getItem(`${n}.${l}`),h=await u(d);return h?t(h)??null:f??null},async setItem(l,f){const d=`${n}.${l}`;f===null?await u(s.removeItem(d)):await u(s.setItem(d,i(f)))},async removeItem(l){await u(s.removeItem(`${n}.${l}`))}}}const W8={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function ej(){const e=typeof window<"u"&&window.localStorage?window.localStorage:W8;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch{}}}}const tm=256;let _f=tm,Mf;function tj(e=11){if(!Mf||_f+e>tm*2){Mf="",_f=0;for(let t=0;tu.chains),d=Wp(()=>{const z=[],I=new Set;for(const C of u.connectors??[]){const B=h(C);if(z.push(B),!s&&B.rdns){const L=typeof B.rdns=="string"?[B.rdns]:B.rdns;for(const D of L)I.add(D)}}if(!s&&l){const C=l.getProviders();for(const B of C)I.has(B.info.rdns)||z.push(h(m(B)))}return z});function h(z){const I=ZN(tj());let C;const B={...z({emitter:I,chains:f.getState(),get providers(){if(!l||!C)return[];const L=typeof C=="string"?[C]:C,D=l.getProviders();return L.flatMap(K=>D.filter(J=>J.info.rdns===K))},storage:n,transports:u.transports}),emitter:I,uid:I.uid};return C=B.rdns,I.on("connect",M),B.setup?.(),B}function m(z){const{info:I}=z,C=z.provider;return Rb({target:{...I,id:I.rdns,provider:C}})}const b=new Map;function g(z={}){const I=z.chainId??E.getState().chainId,C=f.getState().find(L=>L.id===I);if(z.chainId&&!C)throw new Jy;{const L=b.get(E.getState().chainId);if(L&&!C)return L;if(!C)throw new Jy}{const L=b.get(I);if(L)return L}let B;if(u.client)B=u.client({chain:C});else{const L=C.id,D=f.getState().map(te=>te.id),K={},J=Object.entries(u);for(const[te,ue]of J)if(!(te==="chains"||te==="client"||te==="connectors"||te==="transports"))if(typeof ue=="object")if(L in ue)K[te]=ue[L];else{if(D.some(N=>N in ue))continue;K[te]=ue}else K[te]=ue;B=BN({...K,chain:C,batch:K.batch??{multicall:!0},transport:te=>u.transports[L]({...te,connectors:d})})}return b.set(I,B),B}function v(){return{chainId:f.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let x;const S="0.0.0-canary-";jf.startsWith(S)?x=Number.parseInt(jf.replace(S,""),10):x=Number.parseInt(jf.split(".")[0]??"0",10);const E=Wp(FN(n?KN(v,{migrate(z,I){if(I===x)return z;const C=v(),B=_(z,C.chainId);return{...C,chainId:B}},name:"store",partialize(z){return{connections:{__type:"Map",value:Array.from(z.connections.entries()).map(([I,C])=>{const{id:B,name:L,type:D,uid:K}=C.connector;return[I,{...C,connector:{id:B,name:L,type:D,uid:K}}]})},chainId:z.chainId,current:z.current}},merge(z,I){typeof z=="object"&&z&&"status"in z&&delete z.status;const C=_(z,I.chainId);return{...I,...z,chainId:C}},skipHydration:s,storage:n,version:x}):v));E.setState(v());function _(z,I){return z&&typeof z=="object"&&"chainId"in z&&typeof z.chainId=="number"&&f.getState().some(C=>C.id===z.chainId)?z.chainId:I}i&&E.subscribe(({connections:z,current:I})=>I?z.get(I)?.chainId:void 0,z=>{if(f.getState().some(C=>C.id===z))return E.setState(C=>({...C,chainId:z??C.chainId}))}),l?.subscribe(z=>{const I=new Set,C=new Set;for(const L of d.getState())if(I.add(L.id),L.rdns){const D=typeof L.rdns=="string"?[L.rdns]:L.rdns;for(const K of D)C.add(K)}const B=[];for(const L of z){if(C.has(L.info.rdns))continue;const D=h(m(L));I.has(D.id)||B.push(D)}n&&!E.persist.hasHydrated()||d.setState(L=>[...L,...B],!0)});function O(z){E.setState(I=>{const C=I.connections.get(z.uid);return C?{...I,connections:new Map(I.connections).set(z.uid,{accounts:z.accounts??C.accounts,chainId:z.chainId??C.chainId,connector:C.connector})}:I})}function M(z){E.getState().status==="connecting"||E.getState().status==="reconnecting"||E.setState(I=>{const C=d.getState().find(B=>B.uid===z.uid);return C?(C.emitter.listenerCount("connect")&&C.emitter.off("connect",O),C.emitter.listenerCount("change")||C.emitter.on("change",O),C.emitter.listenerCount("disconnect")||C.emitter.on("disconnect",R),{...I,connections:new Map(I.connections).set(z.uid,{accounts:z.accounts,chainId:z.chainId,connector:C}),current:z.uid,status:"connected"}):I})}function R(z){E.setState(I=>{const C=I.connections.get(z.uid);if(C){const L=C.connector;L.emitter.listenerCount("change")&&C.connector.emitter.off("change",O),L.emitter.listenerCount("disconnect")&&C.connector.emitter.off("disconnect",R),L.emitter.listenerCount("connect")||C.connector.emitter.on("connect",M)}if(I.connections.delete(z.uid),I.connections.size===0)return{...I,connections:new Map,current:null,status:"disconnected"};const B=I.connections.values().next().value;return{...I,connections:new Map(I.connections),current:B.connector.uid}})}return{get chains(){return f.getState()},get connectors(){return d.getState()},storage:n,getClient:g,get state(){return E.getState()},setState(z){let I;typeof z=="function"?I=z(E.getState()):I=z;const C=v();typeof I!="object"&&(I=C),Object.keys(C).some(L=>!(L in I))&&(I=C),E.setState(I,!0)},subscribe(z,I,C){return E.subscribe(z,I,C?{...C,fireImmediately:C.emitImmediately}:void 0)},_internal:{mipd:l,async revalidate(){const z=E.getState(),I=z.connections;let C=z.current;for(const[,B]of I){const L=B.connector;L.isAuthorized&&await L.isAuthorized()||(I.delete(L.uid),C===L.uid&&(C=null))}E.setState(B=>({...B,connections:I,current:C}))},store:E,ssr:!!s,syncConnectedChain:i,transports:u.transports,chains:{setState(z){const I=typeof z=="function"?z(f.getState()):z;if(I.length!==0)return f.setState(I,!0)},subscribe(z){return f.subscribe(z)}},connectors:{providerDetailToConnector:m,setup:h,setState(z){return d.setState(typeof z=="function"?z(d.getState()):z,!0)},subscribe(z){return d.subscribe(z)}},events:{change:O,connect:M,disconnect:R}}}}function rj(e,t){const{initialState:n,reconnectOnMount:i}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(s=>s.id===n.chainId)?n.chainId:e.chains[0].id,connections:i?n.connections:new Map,status:i?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(s=>{const u=new Set;for(const d of s??[])if(d.rdns){const h=Array.isArray(d.rdns)?d.rdns:[d.rdns];for(const m of h)u.add(m)}const l=[],f=e._internal.mipd?.getProviders()??[];for(const d of f){if(u.has(d.info.rdns))continue;const h=e._internal.connectors.providerDetailToConnector(d),m=e._internal.connectors.setup(h);l.push(m)}return[...s,...l]})),i?LN(e):e.storage&&e.setState(s=>({...s,connections:new Map}))}}}function ij(e){const{children:t,config:n,initialState:i,reconnectOnMount:s=!0}=e,{onMount:u}=rj(n,{initialState:i,reconnectOnMount:s});n._internal.ssr||u();const l=re.useRef(!0);return re.useEffect(()=>{if(l.current&&n._internal.ssr)return u(),()=>{l.current=!1}},[]),t}const aj=re.createContext(void 0);function sj(e){const{children:t,config:n}=e,i={value:n};return re.createElement(ij,e,re.createElement(aj.Provider,i,t))}const oj=""+new URL("styles-DOYgvh4N.css",import.meta.url).href;function uj(e){return F.jsx("svg",{"aria-label":"Tempo",className:e.className,fill:"none",height:"14",role:"img",viewBox:"0 0 13 14",width:"13",children:F.jsx("path",{d:"M4.594 14H.944L4.327 3.173H0L.944 0H13l-.944 3.173H7.96z",fill:"currentColor"})})}function cj(e){return F.jsxs("svg",{"aria-label":"Tempo",className:e.className,fill:"none",height:"24",role:"img",viewBox:"0 0 107 24",width:"107",children:[F.jsx("title",{children:"Tempo"}),F.jsx("path",{d:"M7.903 23.516h-6.28L7.445 5.593H0L1.624.34h20.739l-1.624 5.253h-7.046zM31.273 23.516H16.385L23.859.34h14.827l-1.409 4.419h-8.608l-1.562 4.975h8.332l-1.41 4.357h-8.362l-1.562 5.006h8.546zM38.011 23.516h-4.993L40.523.34h8.333l-.276 12.484L56.698.34h9.129l-7.475 23.176h-6.25l5.055-15.852-10.384 15.852h-3.707l.153-15.914zM72.856 4.635l-2.42 7.478h.674q2.297 0 3.829-1.081Q76.47 9.919 76.93 7.88q.398-1.761-.429-2.503-.826-.742-2.757-.742zm-6.066 18.88h-6.28L67.985.34h7.628q2.634 0 4.534.865 1.93.835 2.818 2.41.919 1.546.612 3.616-.398 2.72-2.082 4.79-1.686 2.07-4.381 3.213-2.665 1.113-5.974 1.113h-2.052zM98.546 22.033q-3.124 1.854-6.648 1.854h-.06q-3.126 0-5.27-1.39-2.114-1.422-3.033-3.833-.888-2.41-.428-5.284a16.3 16.3 0 0 1 2.665-6.674q2.082-3.06 5.207-4.883T97.658 0h.06q3.248 0 5.362 1.39 2.144 1.392 2.971 3.801.858 2.38.368 5.346-.582 3.492-2.665 6.582a16.3 16.3 0 0 1-5.208 4.914m-8.67-3.987q.828 1.576 2.88 1.576h.061q1.686 0 3.125-1.267 1.47-1.297 2.481-3.46 1.042-2.164 1.532-4.821.46-2.595-.368-4.172-.826-1.607-2.849-1.607h-.06q-1.563 0-3.034 1.298-1.44 1.298-2.511 3.492a18.8 18.8 0 0 0-1.563 4.759q-.49 2.595.307 4.202",fill:"currentColor"})]})}var lj=/^[\\w!#$%&\'*.^`|~+-]+$/,fj=(e,t,n={})=>{if(!lj.test(e))throw new Error("Invalid cookie name");let i=`${e}=${t}`;if(e.startsWith("__Secure-")&&!n.secure)throw new Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!n.secure)throw new Error("__Host- Cookie must have Secure attributes");if(n.path!=="/")throw new Error(\'__Host- Cookie must have Path attributes with "/"\');if(n.domain)throw new Error("__Host- Cookie must not have Domain attributes")}for(const s of["domain","path","sameSite","priority"])if(n[s]&&/[;\\r\\n]/.test(n[s]))throw new Error(`${s} must not contain ";", "\\\\r", or "\\\\n"`);if(n&&typeof n.maxAge=="number"&&n.maxAge>=0){if(n.maxAge>3456e4)throw new Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");i+=`; Max-Age=${n.maxAge|0}`}if(n.domain&&n.prefix!=="host"&&(i+=`; Domain=${n.domain}`),n.path&&(i+=`; Path=${n.path}`),n.expires){if(n.expires.getTime()-Date.now()>3456e7)throw new Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");i+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.sameSite&&(i+=`; SameSite=${n.sameSite.charAt(0).toUpperCase()+n.sameSite.slice(1)}`),n.priority&&(i+=`; Priority=${n.priority.charAt(0).toUpperCase()+n.priority.slice(1)}`),n.partitioned){if(!n.secure)throw new Error("Partitioned Cookie must have Secure attributes");i+="; Partitioned"}return i},dj=(e,t,n)=>(t=encodeURIComponent(t),fj(e,t,n)),hj=(e,t)=>(e=e.replace(/\\/+$/,""),e=e+"/",t=t.replace(/^\\/+/,""),e+t),nm=(e,t)=>{for(const[n,i]of Object.entries(t)){const s=new RegExp("/:"+n+"(?:{[^/]+})?\\\\??(?=/|$)");e=e.replace(s,i?`/${i}`:"")}return e},pj=e=>{const t=new URLSearchParams;for(const[n,i]of Object.entries(e))if(i!==void 0)if(Array.isArray(i))for(const s of i)t.append(n,s);else t.set(n,i);return t},yj=(e,t)=>{switch(t){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},eE=e=>/^https?:\\/\\/[^\\/]+?\\/index(?=\\?|$)/.test(e)?e.replace(/\\/index(?=\\?|$)/,"/"):e.replace(/\\/index(?=\\?|$)/,"");function zf(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function tE(e,t){if(!zf(e)&&!zf(t))return t;const n={...e};for(const i in t){const s=t[i];zf(n[i])&&zf(s)?n[i]=tE(n[i],s):n[i]=s}return n}var nE=(e,t)=>new Proxy(()=>{},{get(i,s){if(!(typeof s!="string"||s==="then"))return nE(e,[...t,s])},apply(i,s,u){return e({path:t,args:u})}}),mj=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t,n){this.url=e,this.method=t,this.buildSearchParams=n.buildSearchParams}fetch=async(e,t)=>{if(e){if(e.query&&(this.queryParams=this.buildSearchParams(e.query)),e.form){const f=new FormData;for(const[d,h]of Object.entries(e.form))if(h!==void 0)if(Array.isArray(h))for(const m of h)f.append(d,m);else f.append(d,h);this.rBody=f}e.json&&(this.rBody=JSON.stringify(e.json),this.cType="application/json"),e.param&&(this.pathParams=e.param)}let n=this.method.toUpperCase();const i={...e?.header,...typeof t?.headers=="function"?await t.headers():t?.headers};if(e?.cookie){const f=[];for(const[d,h]of Object.entries(e.cookie))f.push(dj(d,h,{path:"/"}));i.Cookie=f.join(",")}this.cType&&(i["Content-Type"]=this.cType);const s=new Headers(i??void 0);let u=this.url;u=eE(u),u=nm(u,this.pathParams),this.queryParams&&(u=u+"?"+this.queryParams.toString()),n=this.method.toUpperCase();const l=!(n==="GET"||n==="HEAD");return(t?.fetch||fetch)(u,{body:l?this.rBody:void 0,method:n,headers:s,...t?.init})}},bj=(e,t)=>nE(function n(i){const s=t?.buildSearchParams??pj,u=[...i.path],l=u.slice(-3).reverse();if(l[0]==="toString")return l[1]==="name"?l[2]||"":n.toString();if(l[0]==="valueOf")return l[1]==="name"?l[2]||"":n;let f="";if(/^\\$/.test(l[0])){const b=u.pop();b&&(f=b.replace(/^\\$/,""))}const d=u.join("/"),h=hj(e,d);if(f==="url"||f==="path"){let b=h;return i.args[0]&&(i.args[0].param&&(b=nm(h,i.args[0].param)),i.args[0].query&&(b=b+"?"+s(i.args[0].query).toString())),b=eE(b),f==="url"?new URL(b):b.slice(e.replace(/\\/+$/,"").length).replace(/^\\/?/,"/")}if(f==="ws"){const b=yj(i.args[0]&&i.args[0].param?nm(h,i.args[0].param):h,"ws"),g=new URL(b),v=i.args[0]?.query;return v&&Object.entries(v).forEach(([S,E])=>{Array.isArray(E)?E.forEach(_=>g.searchParams.append(S,_)):g.searchParams.set(S,E)}),((...S)=>t?.webSocket!==void 0&&typeof t.webSocket=="function"?t.webSocket(...S):new WebSocket(...S))(g.toString())}const m=new mj(h,f,{buildSearchParams:s});if(f){t??={};const b={...i.args[1]},g=t.headers,v=b.headers;g&&v&&(b.headers=async()=>({...typeof g=="function"?await g():g,...typeof v=="function"?await v():v}));const x=tE(t,b);return m.fetch(i.args[0],x)}return m},[]);function gj(){if(typeof document>"u")return"/";const e=document.querySelector("base");return e?e.href:`${location.origin}/`}const Oe=bj(gj()),vj=["config"];function wj(){return typeof window>"u"?void 0:window.__TEMPO_API_CONFIG__}async function xj(){const e=wj();if(e)return e;const t=await Oe["config.json"].$get();return t.ok?t.json():{auth:{identity:null}}}function Sj(){return{queryKey:vj,queryFn:xj,staleTime:1/0}}function rE(){return Ao(Sj())}const Cb="tempo-api-admin.theme",rm={dark:"#0c0c0c",light:"#fafafa"},Ej=`try {\n const backgrounds = { dark: \'${rm.dark}\', light: \'${rm.light}\' }\n const stored = localStorage.getItem(\'${Cb}\')\n const pinned = stored === \'dark\' || stored === \'light\' ? stored : null\n if (pinned) document.documentElement.dataset.theme = pinned\n for (const scheme of [\'light\', \'dark\']) {\n const meta = document.createElement(\'meta\')\n meta.name = \'theme-color\'\n meta.media = \'(prefers-color-scheme: \' + scheme + \')\'\n meta.content = backgrounds[pinned ?? scheme]\n document.head.append(meta)\n }\n} catch {}`;function Aj(){const e=localStorage.getItem(Cb);return e==="dark"||e==="light"?e:matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Tj(e){localStorage.setItem(Cb,e),document.documentElement.dataset.theme=e;for(const t of document.querySelectorAll(\'meta[name="theme-color"]\'))t.setAttribute("content",rm[e]);for(const t of im)t()}function _j(){return re.useSyncExternalStore(Mj,Aj,()=>"dark")}const im=new Set;function Mj(e){const t=matchMedia("(prefers-color-scheme: dark)");return im.add(e),t.addEventListener("change",e),()=>{im.delete(e),t.removeEventListener("change",e)}}function iE(){const e=_j(),t=e==="dark"?"Light mode":"Dark mode";return F.jsx("button",{"aria-label":t,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-button text-foreground-secondary hover:bg-surface-hover hover:text-foreground",onClick:()=>Tj(e==="dark"?"light":"dark"),title:t,type:"button",children:e==="dark"?F.jsx(CI,{className:"size-[18px]"}):F.jsx(zI,{className:"size-[18px]"})})}function CH(){const{data:e}=rE(),t=e?.auth.identity;return t?F.jsxs("div",{className:"flex items-center gap-2",children:[F.jsx(Na,{address:aE(t.email),className:"size-9 shrink-0",size:36}),F.jsx(iE,{}),e.auth.logoutUrl?F.jsx("a",{"aria-label":"Sign out",className:"text-foreground-secondary hover:text-foreground",href:e.auth.logoutUrl,children:F.jsx(R3,{className:"size-[18px]"})}):null]}):null}function aE(e){return sr(Km(e),{as:"Hex"}).slice(0,42)}const zj=255,sE=8,ad=sE,sd=2,od=2049,Io=`0x${"00".repeat(32)}`,Rj="tempo:multisig:account",Cj="tempo:multisig:signature";function Gd(e){const{salt:t,threshold:n,owners:i}=e;if(typeof t<"u"&&Ne(t)!==32)throw new gn({reason:"salt must be 32 bytes"});if(i.length===0)throw new gn({reason:"owners cannot be empty"});if(i.length>zj)throw new gn({reason:"too many owners"});if(!Number.isInteger(Number(n)))throw new gn({reason:"threshold must be an integer"});if(Number(n)<1)throw new gn({reason:"threshold cannot be zero"});if(Number(n)>sE)throw new gn({reason:"threshold exceeds max threshold"});let s=0,u;for(const l of i){if(!qi(l.owner)||De(l.owner)===0n)throw new gn({reason:"owner cannot be zero"});if(!Number.isInteger(Number(l.weight)))throw new gn({reason:"owner weight must be an integer"});if(Number(l.weight)<1)throw new gn({reason:"owner weight cannot be zero"});const f=De(l.owner);if(typeof u<"u"&&u>=f)throw new gn({reason:"owners must be strictly ascending"});u=f,s+=Number(l.weight)}if(s>255)throw new gn({reason:"total owner weight exceeds u8 max"});if(Number(n)>s)throw new gn({reason:"threshold exceeds total owner weight"})}function Pb(e){const t=[...e.owners].sort((i,s)=>De(i.owner){const[u,l]=s;return{owner:u,weight:!l||l==="0x"?0:uo(l)}})}}function Bo(e){Gd(e);const t=sr(Xe(Ji(Rj),Fn(e.salt??Io,32),oe(e.threshold,{size:1}),oe(e.owners.length,{size:1}),...e.owners.flatMap(i=>[i.owner,oe(i.weight,{size:1})]))),n=KS(Ee(t,12,32));if(De(n)===0n)throw new gn({reason:"derived account cannot be zero"});return n}function Oj(e){const{payload:t}=e,n="account"in e&&e.account?e.account:Bo(e.genesisConfig);return sr(Xe(Ji(Cj),Bc(t),n))}function Ij(e){Gd(e);const t=e.owners.map(i=>[i.owner,oe(i.weight)]);return[e.salt?Fn(e.salt,32):Io,oe(e.threshold),t]}class gn extends ye{constructor({reason:t}){super(`Invalid native multisig config: ${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MultisigConfig.InvalidConfigError"})}}const am="0x01",sm="0x02",om="0x03",Uf="0x04",um="0x05",Sa="0x7777777777777777777777777777777777777777777777777777777777777777";function Uc(e){const t=qc(e);if(t==="secp256k1"){$c(e.signature);return}if(t==="p256"){const n=e,i=[];if(typeof n.signature?.r!="bigint"&&i.push("signature.r"),typeof n.signature?.s!="bigint"&&i.push("signature.s"),typeof n.prehash!="boolean"&&i.push("prehash"),n.publicKey?(typeof n.publicKey.x!="bigint"&&i.push("publicKey.x"),typeof n.publicKey.y!="bigint"&&i.push("publicKey.y")):i.push("publicKey"),i.length>0)throw new lm({envelope:e,missing:i,type:"p256"});return}if(t==="webAuthn"){const n=e,i=[];if(typeof n.signature?.r!="bigint"&&i.push("signature.r"),typeof n.signature?.s!="bigint"&&i.push("signature.s"),n.metadata?(n.metadata.authenticatorData||i.push("metadata.authenticatorData"),n.metadata.clientDataJSON||i.push("metadata.clientDataJSON")):i.push("metadata"),n.publicKey?(typeof n.publicKey.x!="bigint"&&i.push("publicKey.x"),typeof n.publicKey.y!="bigint"&&i.push("publicKey.y")):i.push("publicKey"),i.length>0)throw new lm({envelope:e,missing:i,type:"webAuthn"});return}if(t==="keychain"){Uc(e.inner);return}if(t==="multisig"){Ob(e,1);return}}function Ob(e,t){const n=[];if(e.account||n.push("account"),Array.isArray(e.signatures)||n.push("signatures"),n.length>0)throw new lm({envelope:e,missing:n,type:"multisig"});if(t>sd)throw new er({reason:`multisig nesting depth exceeds ${sd}`});if(!qi(e.account))throw new er({reason:"multisig account is invalid"});if(De(e.account)===0n)throw new er({reason:"multisig account cannot be zero"});if(e.signatures.length===0)throw new er({reason:"multisig signatures cannot be empty"});if(e.signatures.length>ad)throw new er({reason:`multisig signatures exceed ${ad}`});if(e.init&&(Gd(e.init),!td(Bo(e.init),e.account)))throw new er({reason:"multisig init does not derive account"});for(const i of e.signatures){const s=qc(i);if(s==="keychain")throw new er({reason:"keychain owner approvals are not allowed"});if(s==="multisig"){const u=i;if(u.init)throw new er({reason:"nested multisig owner approvals cannot carry `init`"});Ob(u,t+1)}else Uc(i);if(Ne(bo(i))>od)throw new er({reason:`multisig owner signature exceeds ${od} bytes`})}}function Dc(e){const{signature:t,root:n}=e;return t.type==="keychain"?n?t.userAddress:Dc({...e,signature:t.inner}):t.type==="multisig"?t.account:ji(oE(e))}function oE(e){const{payload:t,signature:n}=e;switch(n.type){case"secp256k1":return S3({payload:t,signature:n.signature});case"p256":case"webAuthn":return n.publicKey;case"keychain":return oE({payload:t,signature:n.inner});case"multisig":throw new go({envelope:n})}}function Hc(e){return cm(e,0)}function cm(e,t){const n=e.endsWith(Sa.slice(2))?Ee(e,0,-Ne(Sa)):e;if(Ne(n)===65){const f=rb(n);return $c(f),{signature:f,type:"secp256k1"}}const s=Ee(n,0,1),u=Ee(n,1),l=Ne(u);if(s===am){if(l!==129)throw new vn({reason:`Invalid P256 signature envelope size: expected 129 bytes, got ${l} bytes`,serialized:n});return{publicKey:{prefix:4,x:De(Ee(u,64,96)),y:De(Ee(u,96,128))},prehash:uo(Ee(u,128,129))!==0,signature:{r:De(Ee(u,0,32)),s:De(Ee(u,32,64))},type:"p256"}}if(s===sm){if(l<128)throw new vn({reason:`Invalid WebAuthn signature envelope size: expected at least 128 bytes, got ${l} bytes`,serialized:n});const f=l-128,d=Ee(u,0,f);let h,m;for(let b=37;bsd)throw new vn({reason:`multisig nesting depth exceeds ${sd}`,serialized:n});const d=e3(u);if(!Array.isArray(d)||d.length!==2)throw new vn({reason:"invalid multisig wire shape: expected exactly two fields",serialized:n});const[h,m]=d;if(!Array.isArray(m)||m.some(Array.isArray))throw new vn({reason:"invalid multisig signatures list",serialized:n});if(m.length===0)throw new vn({reason:"multisig signatures cannot be empty",serialized:n});if(m.length>ad)throw new vn({reason:`multisig signatures exceed ${ad}`,serialized:n});for(const x of m)if(Ne(x)>od)throw new vn({reason:`multisig owner signature exceeds ${od} bytes`,serialized:n});if(!Array.isArray(h)&&!qi(h))throw new vn({reason:"invalid multisig account",serialized:n});if(Array.isArray(h)){const[x,S,E]=h;if(h.length!==3||Array.isArray(x)||Ne(x)!==32||Array.isArray(S)||Ne(S)>1||!Array.isArray(E)||E.some(_=>!Array.isArray(_)||_.length!==2||_.some(Array.isArray)||Ne(_[1])>1))throw new vn({reason:"invalid multisig init config",serialized:n})}const b=Array.isArray(h)?Pj(h):void 0,v={type:"multisig",account:b?Bo(b):h,signatures:m.map(x=>cm(x,f)),...b?{init:b}:{}};return Ob(v,f),v}throw new vn({reason:`Unknown signature type identifier: ${s}. Expected ${am} (P256), ${sm} (WebAuthn), ${om} (Keychain V1), ${Uf} (Keychain V2), or ${um} (Multisig)`,serialized:n})}function rr(e,t){if(typeof e=="string")return Hc(e);if(typeof e=="object"&&e!==null&&"r"in e&&"s"in e&&"yParity"in e)return{signature:e,type:"secp256k1"};const n=qc(e);if(n==="multisig"){const i=e,{genesisConfig:s,init:u,...l}=i,f=l.account?l.account:s?Bo(s):l.account,d=u===!0?s:u||void 0;return{...l,account:f,signatures:l.signatures.map(h=>rr(h)),...d?{init:Pb(d)}:{},type:n}}return{...e,...n==="p256"?{prehash:e.prehash}:{},...n==="keychain"?{...typeof e=="object"&&e!==null&&"version"in e&&e.version?{}:{version:"v2"},...typeof e=="object"&&"keyId"in e&&e.keyId?{}:(()=>{const i=e.inner;return i.type==="p256"||i.type==="webAuthn"?{keyId:ji(i.publicKey)}:(i.type==="secp256k1"&&t?.payload,{})})()}:{},type:n}}function Sc(e){if(e.type==="secp256k1")return{signature:ib(e),type:"secp256k1"};if(e.type==="p256")return{prehash:e.preHash,publicKey:{prefix:4,x:De(e.pubKeyX),y:De(e.pubKeyY)},signature:{r:De(e.r),s:De(e.s)},type:"p256"};if(e.type==="webAuthn"){const t=e.webauthnData,n=Ne(t);let i,s;for(let u=37;uSc(f)),...s?{init:s}:{}};return Uc(l),l}throw new go({envelope:e})}function qc(e){if(typeof e!="object"||e===null)throw new go({envelope:e});if("type"in e&&e.type)return e.type;if("signature"in e&&!("publicKey"in e)&&typeof e.signature=="object"&&e.signature!==null&&"r"in e.signature&&"s"in e.signature&&"yParity"in e.signature||"r"in e&&"s"in e&&"yParity"in e)return"secp256k1";if("signature"in e&&"prehash"in e&&"publicKey"in e&&typeof e.prehash=="boolean")return"p256";if("signature"in e&&"metadata"in e&&"publicKey"in e)return"webAuthn";if("userAddress"in e&&"inner"in e)return"keychain";if(("account"in e||"genesisConfig"in e||"init"in e)&&"signatures"in e)return"multisig";throw new go({envelope:e})}function bo(e,t={}){const n=qc(e);if(n==="secp256k1")return Xe(T7(e.signature),t.magic?Sa:"0x");if(n==="p256"){const i=e;return Xe(am,oe(i.signature.r,{size:32}),oe(i.signature.s,{size:32}),oe(i.publicKey.x,{size:32}),oe(i.publicKey.y,{size:32}),oe(i.prehash?1:0,{size:1}),t.magic?Sa:"0x")}if(n==="webAuthn"){const i=e,s=Xe(i.metadata.authenticatorData,Ji(i.metadata.clientDataJSON));return Xe(sm,s,oe(i.signature.r,{size:32}),oe(i.signature.s,{size:32}),oe(i.publicKey.x,{size:32}),oe(i.publicKey.y,{size:32}),t.magic?Sa:"0x")}if(n==="keychain"){const i=e,s=i.version==="v1"?om:Uf;return Xe(s,i.userAddress,bo(i.inner),t.magic?Sa:"0x")}if(n==="multisig"){const i=e;return Uc(i),Xe(um,nb([i.init?Ij(i.init):i.account,i.signatures.map(s=>bo(s))]),t.magic?Sa:"0x")}throw new go({envelope:e})}function Bj(e){const{payload:t,signatures:n}=e,i=Oj("genesisConfig"in e&&e.genesisConfig?{payload:t,genesisConfig:e.genesisConfig}:{payload:t,account:e.account});return n.map(s=>({key:De(Dc({payload:i,signature:s})),signature:s})).sort((s,u)=>s.keyu.key?1:0).map(s=>s.signature)}function ud(e){const t=qc(e);if(t==="secp256k1")return{...b3(e.signature),type:"secp256k1"};if(t==="p256"){const n=e;return{preHash:n.prehash,pubKeyX:oe(n.publicKey.x,{size:32}),pubKeyY:oe(n.publicKey.y,{size:32}),r:oe(n.signature.r,{size:32}),s:oe(n.signature.s,{size:32}),type:"p256"}}if(t==="webAuthn"){const n=e,i=Xe(n.metadata.authenticatorData,Ji(n.metadata.clientDataJSON));return{pubKeyX:oe(n.publicKey.x,{size:32}),pubKeyY:oe(n.publicKey.y,{size:32}),r:oe(n.signature.r,{size:32}),s:oe(n.signature.s,{size:32}),type:"webAuthn",webauthnData:i}}if(t==="keychain"){const n=e;return{type:"keychain",userAddress:n.userAddress,signature:ud(n.inner),...n.keyId?{keyId:n.keyId}:{},...n.version?{version:n.version}:{}}}if(t==="multisig"){const n=e;Uc(n);const i=n.signatures.map(s=>ud(s));return n.init?{init:{...n.init,salt:n.init.salt??Io,threshold:Number(n.init.threshold),owners:n.init.owners.map(u=>({...u,weight:Number(u.weight)}))},signatures:i}:{account:n.account,signatures:i}}throw new go({envelope:e})}function rw(e,t){const{payload:n}=t,i=(()=>{if(t.address)return t.address;if(t.publicKey)return ji(t.publicKey)})();if(!i)return!1;const s=rr(e);if(s.type==="secp256k1")return i?U7({address:i,payload:n,signature:s.signature}):!1;if(s.type==="p256"){const u=ji(s.publicKey);return td(u,i)?_3({hash:s.prehash,publicKey:s.publicKey,payload:n,signature:s.signature}):!1}if(s.type==="webAuthn"){const u=ji(s.publicKey);return td(u,i)?aI({challenge:Bc(n),metadata:s.metadata,publicKey:s.publicKey,signature:s.signature}):!1}throw new $j(`Unable to verify signature envelope of type "${s.type}".`)}class go extends ye{constructor({envelope:t}){super(`Unable to coerce value (\\`${Wa(t)}\\`) to a valid signature envelope.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.CoercionError"})}}class lm extends ye{constructor({envelope:t,missing:n,type:i}){super(`Signature envelope of type "${i}" is missing required properties: ${n.map(s=>`\\`${s}\\``).join(", ")}.\n\nProvided: ${Wa(t)}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.MissingPropertiesError"})}}class vn extends ye{constructor({reason:t,serialized:n}){super(`Unable to deserialize signature envelope: ${t}`,{metaMessages:[`Serialized: ${n}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.InvalidSerializedError"})}}class er extends ye{constructor({reason:t}){super(`Invalid native multisig owner approval: ${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.InvalidMultisigApprovalError"})}}class $j extends ye{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.VerificationError"})}}function jt(e){return e.startsWith("tempo")?kj(e).address:e}function kj(e){if(!e.startsWith("tempox"))throw new Nj({address:e});const t=e.slice(6);return jS(t,{strict:!0}),{address:zd(t)}}class Nj extends ye{constructor({address:t}){super(`Tempo address "${t}" has an invalid prefix. Expected "tempox".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TempoAddress.InvalidPrefixError"})}}function jj(e,t={}){if(typeof e.chainId=="string")return uE(e);const n={...e,address:jt(e.address)};return t.signature?{...n,signature:t.signature}:n}function uE(e){const{address:t,chainId:n,nonce:i}=e,s=Sc(e.signature);return{address:t,chainId:Number(n),nonce:BigInt(i),signature:s}}function Lj(e){return e.map(t=>uE(t))}function Uj(e){const[t,n,i,s]=e,u={address:n,chainId:t==="0x"?0:Number(t),nonce:i==="0x"?0n:BigInt(i)};return s&&(u.signature=Hc(s)),jj(u)}function Dj(e){const t=[];for(const n of e)t.push(Uj(n));return t}function Hj(e){const{address:t,chainId:n,nonce:i,signature:s}=e;return{address:t,chainId:oe(n),nonce:oe(i),signature:ud(s)}}function qj(e){return e.map(t=>Hj(t))}function Fj(e){const{address:t,chainId:n,nonce:i}=e,s=e.signature?bo(e.signature):void 0;return[n?oe(n):"0x",t,i?oe(i):"0x",...s?[s]:[]]}function Gj(e){if(!e||e.length===0)return[];const t=[];for(const n of e)t.push(Fj(n));return t}const fm="0x20c0";function PH(e){const t=jt(e);if(!t.toLowerCase().startsWith(fm))throw new Error("invalid tip20 address.");return De(Ee(t,fm.length))}function Vd(e){if(typeof e=="string"){const n=jt(e);return Gn(n),n}const t=oe(e,{size:18});return Xe(fm,t)}function cE(e,t={}){if("keyId"in e)return lE(e);const n=e;n.witness!==void 0&&Fc(n.witness),n.signature&&vo(n.signature);const i={...n,address:jt(n.address),...n.limits?{limits:n.limits.map(s=>({...s,token:jt(s.token)}))}:{},...n.scopes?{scopes:n.scopes.map(s=>({...s,address:jt(s.address),selector:Ib(s.selector),...s.recipients?{recipients:s.recipients.map(u=>jt(u))}:{}}))}:{}};if(t.signature){const s=rr(t.signature);return vo(s),{...i,signature:s}}return i}function lE(e){const{allowedCalls:t,chainId:n,keyId:i,expiry:s,limits:u,keyType:l}=e,f=e.witness??void 0,d=e.isAdmin??void 0,h=e.account??void 0,m=Sc(e.signature);vo(m),f!==void 0&&Fc(f);const b=t?t.flatMap(v=>!v.selectorRules||v.selectorRules.length===0?[{address:v.target}]:v.selectorRules.map(x=>({address:v.target,selector:Xj(x.selector),...x.recipients&&x.recipients.length>0?{recipients:x.recipients}:{}}))):void 0,g=h!==void 0&&d?{account:h,isAdmin:!0}:{};return{address:i,chainId:n==="0x"?0n:De(n),...s!=null?{expiry:Number(s)}:{},limits:u?.map(v=>({token:v.token,limit:BigInt(v.limit),...v.period&&cd(v.period)>0?{period:cd(v.period)}:{}})),...b?{scopes:b}:{},signature:m,type:l,...f!==void 0?{witness:f}:{},...g}}function Vj(e){const[t,n]=e,[i,s,u,...l]=t,f=(()=>{switch(s){case"0x":case"0x00":return"secp256k1";case"0x01":return"p256";case"0x02":return"webAuthn";default:throw new Error(`Invalid key type: ${s}`)}})(),[d,h,m,b,g,v]=l,x=Rf(d)?void 0:cd(d)||void 0,S=Array.isArray(h)&&h.length>0?h.map(I=>{const[C,B,L]=I;return{token:C,limit:Yj(B),...L!==void 0?{period:cd(L)}:{}}}):void 0,E=Array.isArray(m)?m.flatMap(I=>{const[C,B]=I;return!Array.isArray(B)||B.length===0?[{address:C}]:B.map(L=>{const[D,K]=L;return{address:C,selector:D,...Array.isArray(K)&&K.length>0?{recipients:K}:{}}})}):void 0,_=Rf(b)?void 0:b;_!==void 0&&Fc(_);const O=(()=>{if(!Rf(g)){if(g!=="0x01")throw new Wj(g);return!0}})(),M=Rf(v)?void 0:v,R=M!==void 0&&O?{account:M,isAdmin:!0}:{},z={address:u,chainId:i==="0x"?0n:De(i),type:f,...x!==void 0?{expiry:x}:{},...S!==void 0?{limits:S}:{},...E!==void 0?{scopes:E}:{},..._!==void 0?{witness:_}:{},...R};if(n){const I=Hc(n);vo(I),z.signature=I}return cE(z)}function Kj(e){return Qj(e)}function Qj(e){const[t]=fE(e),n=nb(t);return sr(n)}function Zj(e){const{address:t,scopes:n,chainId:i,expiry:s,limits:u,type:l,signature:f,witness:d,isAdmin:h,account:m}=e;vo(f),d!==void 0&&Fc(d);const b=(()=>{if(!n)return;const g=new Map;for(const v of n){const x=v.address;g.has(x)||g.set(x,[]),v.selector&&g.get(x).push({selector:Ib(v.selector),...v.recipients&&v.recipients.length>0?{recipients:v.recipients}:{}})}return[...g.entries()].map(([v,x])=>({target:v,...x.length>0?{selectorRules:x}:{}}))})();return{chainId:i===0n?"0x":oe(i),expiry:typeof s=="number"?oe(s):null,keyId:jt(t),keyType:l,limits:u?.map(({token:g,limit:v,period:x})=>({token:g,limit:oe(v),...x?{period:dm(x)}:{}})),signature:ud(f),...b?{allowedCalls:b}:{},...d!==void 0?{witness:d}:{},...h?{isAdmin:!0}:{},...m!==void 0?{account:m}:{}}}function fE(e){const{address:t,chainId:n,scopes:i,expiry:s,limits:u,witness:l,isAdmin:f,account:d}=e;l!==void 0&&Fc(l);const h=(()=>{if(e.signature)return vo(e.signature),bo(e.signature)})(),m=(()=>{switch(e.type){case"secp256k1":return"0x";case"p256":return"0x01";case"webAuthn":return"0x02";default:throw new Error(`Invalid key type: ${e.type}`)}})(),b=u?.map(O=>{const M=[O.token,iw(O.limit)];return O.period&&O.period>0&&M.push(dm(O.period)),M}),g=(()=>{if(!i)return;const O=new Map;for(const M of i){const R=M.address;O.has(R)||O.set(R,[]),M.selector&&O.get(R).push([Ib(M.selector),M.recipients??[]])}return[...O.entries()].map(([M,R])=>[M,R.map(([z,I])=>[z,I])])})(),v=l!==void 0||f||d!==void 0,x=[{value:s!=null&&s!==0?dm(s):void 0,placeholder:"0x"},{value:b,placeholder:v?"0x":[]},{value:g,placeholder:"0x"},{value:l,placeholder:"0x"},{value:f?"0x01":void 0,placeholder:"0x"},{value:d,placeholder:"0x"}];let S=-1;for(let O=x.length-1;O>=0;O--)if(x[O].value!==void 0){S=O;break}const E=x.slice(0,S+1).map(({value:O,placeholder:M})=>O??M);return[[iw(n),m,t,...E],...h?[h]:[]]}function iw(e){return e===0n?"0x":oe(e)}function dm(e){return e===0?"0x":oe(e)}function Yj(e){return e==="0x"?0n:BigInt(e)}function cd(e){return e==="0x"?0:uo(e)}function Xj(e){return typeof e=="string"?e:Array.isArray(e)?pt(new Uint8Array(e)):e}function Ib(e){if(e)return e.startsWith("0x")?e:ZS(e)}function Fc(e){if(Ne(e)!==32)throw new Jj(e)}function vo(e){if(e.type==="keychain"||e.type==="multisig")throw new eL(e.type)}function Rf(e){return e===void 0||e==="0x"}class Jj extends Error{constructor(t){super(`Witness \\`${t}\\` must be exactly 32 bytes (got ${Ne(t)} bytes).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidWitnessSizeError"})}}class Wj extends Error{constructor(t){super(`Admin marker \\`${t}\\` is invalid; expected \\`0x01\\` (TIP-1049).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidAdminMarkerError"})}}class eL extends Error{constructor(t){super(`Signature type \\`${t}\\` is invalid for key authorizations; expected \\`secp256k1\\`, \\`p256\\`, or \\`webAuthn\\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidSignatureTypeError"})}}const dE={...v3,tempo:"0x76"},tL={...w3,"0x76":"tempo"};function nL(e,t={}){if(!e)return null;const n=N7(e);return n.type=tL[e.type],e.aaAuthorizationList&&(n.authorizationList=Lj(e.aaAuthorizationList),delete n.aaAuthorizationList),e.calls&&(n.calls=e.calls.map(i=>({to:i.to,value:i.value&&i.value!=="0x"?BigInt(i.value):void 0,data:i.input||i.data||"0x"}))),e.feeToken&&(n.feeToken=e.feeToken),e.nonceKey&&(n.nonceKey=BigInt(e.nonceKey)),e.signature&&(n.signature=Sc(e.signature)),e.validAfter&&(n.validAfter=Number(e.validAfter)),e.validBefore&&(n.validBefore=Number(e.validBefore)),e.keyAuthorization&&(n.keyAuthorization=lE(e.keyAuthorization)),e.feePayerSignature&&(n.feePayerSignature=ib(e.feePayerSignature),n.feePayerSignature.v=sb(n.feePayerSignature.yParity)),n}function rL(e){const t=J7({...e,authorizationList:void 0});e.authorizationList&&(t.authorizationList=qj(e.authorizationList)),e.calls?t.calls=e.calls.map(i=>({to:i.to?jt(i.to):i.to,value:i.value?oe(i.value):"0x",data:i.data??"0x"})):(e.to||e.data||e.value)&&(t.calls=[{to:e.to?jt(e.to):void 0,value:e.value?oe(e.value):"0x",data:e.data??"0x"}]),typeof e.feeToken<"u"&&(t.feeToken=Vd(e.feeToken)),e.keyAuthorization&&(t.keyAuthorization=Zj(e.keyAuthorization)),typeof e.validBefore<"u"&&(t.validBefore=oe(e.validBefore)),typeof e.validAfter<"u"&&(t.validAfter=oe(e.validAfter));const n=(()=>{if(e.nonceKey==="random")return US(6);if(typeof e.nonceKey=="bigint")return oe(e.nonceKey)})();return n&&(t.nonceKey=n),(typeof e.calls<"u"||typeof e.feePayer<"u"||typeof e.feeToken<"u"||typeof e.keyAuthorization<"u"||typeof e.nonceKey<"u"||typeof e.validBefore<"u"||typeof e.validAfter<"u"||e.type==="tempo")&&(t.type=dE.tempo,delete t.data,delete t.input,delete t.to,delete t.value),t}const iL="0x78",aL="0x76",aw="tempo";function Bb(e){const{calls:t,chainId:n,maxFeePerGas:i,maxPriorityFeePerGas:s,validBefore:u,validAfter:l}=e;if(!t||t.length===0)throw new lL;if(typeof u=="number"&&typeof l=="number"&&u<=l)throw new fL({validBefore:u,validAfter:l});if(t)for(const f of t)f.to&&Gn(f.to,{strict:!1});if(n<=0)throw new tI({chainId:n});if(i&&BigInt(i)>2n**256n-1n)throw new eI({feeCap:i});if(s&&i&&s>i)throw new rI({maxFeePerGas:i,maxPriorityFeePerGas:s})}function sL(e){const t=e3(Ee(e,1)),[n,i,s,u,l,f,d,h,m,b,g,v,x,S,E]=t,_=Array.isArray(S)?S:void 0,O=_?E:S;if(!(t.length===13||t.length===14||t.length===15))throw new nI({attributes:{authorizationList:x,chainId:n,maxPriorityFeePerGas:i,maxFeePerGas:s,gas:u,calls:l,accessList:f,keyAuthorization:_,nonceKey:d,nonce:h,validBefore:m,validAfter:b,feeToken:g,feePayerSignatureOrSender:v,...t.length>12?{signature:O}:{}},serialized:e,type:aw});let M={chainId:Number(n),type:aw};if(Hn(u)&&u!=="0x"&&(M.gas=BigInt(u)),Hn(h)&&(M.nonce=h==="0x"?0n:BigInt(h)),Hn(s)&&s!=="0x"&&(M.maxFeePerGas=BigInt(s)),Hn(i)&&i!=="0x"&&(M.maxPriorityFeePerGas=BigInt(i)),Hn(d)&&(M.nonceKey=d==="0x"?0n:BigInt(d)),Hn(m)&&m!=="0x"&&(M.validBefore=Number(m)),Hn(b)&&b!=="0x"&&(M.validAfter=Number(b)),Hn(g)&&g!=="0x"&&(M.feeToken=g),l&&l!=="0x"){const z=l;M.calls=z.map(I=>{const[C,B,L]=I,D={};return C&&C!=="0x"&&(D.to=C),B&&B!=="0x"&&(D.value=BigInt(B)),L&&L!=="0x"&&(D.data=L),D})}f?.length!==0&&f!=="0x"&&(M.accessList=GO(f)),x?.length!==0&&x!=="0x"&&(M.authorizationList=Dj(x)),v!=="0x"&&v!==void 0&&(v==="0x00"||qi(v)?(M.feePayerSignature=null,qi(v)&&(M.from=v)):M.feePayerSignature=A7(v)),_&&(M.keyAuthorization=Vj(_));const R=O?Hc(O):void 0;if(R&&(M={...M,signature:R}),!M.from&&R)try{M.from=Dc({payload:fd(ld(M)),signature:R,root:!0})}catch{}return Bb(M),M}function ld(e,t={}){const{feePayerSignature:n,signature:i}=t,s=typeof e=="string"?sL(e):e;return s.from&&(s.from=jt(s.from)),s.calls&&(s.calls=s.calls.map(u=>({...u,...u.to?{to:jt(u.to)}:{}}))),Bb(s),{...s,...i?{signature:rr(i)}:{},...n?{feePayerSignature:Pd(n)}:{},type:"tempo"}}function Pi(e,t={}){const{accessList:n,authorizationList:i,calls:s,chainId:u,feeToken:l,gas:f,keyAuthorization:d,nonce:h,nonceKey:m,maxFeePerGas:b,maxPriorityFeePerGas:g,validBefore:v,validAfter:x}=e;Bb(e);const S=VO(n),E=t.signature||e.signature,_=Gj(i),O=s.map(I=>[I.to?jt(I.to):"0x",I.value?oe(I.value):"0x",I.data??"0x"]);let M=!1;const R=(()=>{if(t.sender)return t.sender;if(t.format==="feePayer"&&E){const C=rr(E);if(C.type==="keychain")return C.userAddress;if(C.type==="p256"||C.type==="webAuthn")return ji(C.publicKey);if(C.type==="secp256k1")return x3({payload:fd(ld(e)),signature:C.signature})}const I=typeof t.feePayerSignature<"u"?t.feePayerSignature:e.feePayerSignature;return I===null?(M=!0,"0x00"):I?_7(I):"0x"})(),z=[oe(u),g?oe(g):"0x",b?oe(b):"0x",f?oe(f):"0x",O,S,m?oe(m):"0x",h?oe(h):"0x",typeof v=="number"?oe(v):"0x",typeof x=="number"?oe(x):"0x",!M&&(typeof l=="bigint"||typeof l=="string")?Vd(l):"0x",R,_,...d?[fE(d)]:[],...E?[bo(rr(E))]:[]];return Xe(t.format==="feePayer"?iL:aL,nb(z))}function oL(e){return Pi({...e,signature:void 0,...e.feePayerSignature!==void 0?{feePayerSignature:null}:{}})}function fd(e,t={}){const n=uL(e,{presign:!0});return t.from?sr(Xe("0x04",n,jt(t.from))):n}function uL(e,t={}){const n=t.presign?oL(e):Pi(e);return sr(n)}function cL(e,t){const n=jt(t.sender),i=Pi({...e,signature:void 0},{sender:n,format:"feePayer"});return sr(i)}class lL extends ye{constructor(){super("Calls list cannot be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.CallsEmptyError"})}}class fL extends ye{constructor({validBefore:t,validAfter:n}){super(`validBefore (${t}) must be greater than validAfter (${n}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.InvalidValidityWindowError"})}}const xn=[{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"}]}],dL=[{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:[]}],hL=[{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:[]}],pL=[{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:[]}],hE=[{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:[]}],yL=[{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:"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:[]}],pE=[{name:"name",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{name:"symbol",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{name:"decimals",type:"function",stateMutability:"pure",inputs:[],outputs:[{type:"uint8"}]},{name:"totalSupply",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"quoteToken",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"nextQuoteToken",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"balanceOf",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"}],outputs:[{type:"uint256"}]},{name:"transfer",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"amount"}],outputs:[{type:"bool"}]},{name:"approve",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"spender"},{type:"uint256",name:"amount"}],outputs:[{type:"bool"}]},{name:"allowance",type:"function",stateMutability:"view",inputs:[{type:"address",name:"owner"},{type:"address",name:"spender"}],outputs:[{type:"uint256"}]},{name:"transferFrom",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"from"},{type:"address",name:"to"},{type:"uint256",name:"amount"}],outputs:[{type:"bool"}]},{name:"mint",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"amount"}],outputs:[]},{name:"burn",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"amount"}],outputs:[]},{name:"currency",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{name:"supplyCap",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"paused",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bool"}]},{name:"transferPolicyId",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"logoURI",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{name:"setLogoURI",type:"function",stateMutability:"nonpayable",inputs:[{type:"string",name:"newLogoURI"}],outputs:[]},{name:"burnBlocked",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"from"},{type:"uint256",name:"amount"}],outputs:[]},{name:"mintWithMemo",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"amount"},{type:"bytes32",name:"memo"}],outputs:[]},{name:"burnWithMemo",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"amount"},{type:"bytes32",name:"memo"}],outputs:[]},{name:"transferWithMemo",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"amount"},{type:"bytes32",name:"memo"}],outputs:[]},{name:"transferFromWithMemo",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"from"},{type:"address",name:"to"},{type:"uint256",name:"amount"},{type:"bytes32",name:"memo"}],outputs:[{type:"bool"}]},{name:"changeTransferPolicyId",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"newPolicyId"}],outputs:[]},{name:"setSupplyCap",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"newSupplyCap"}],outputs:[]},{name:"pause",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"unpause",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"setNextQuoteToken",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newQuoteToken"}],outputs:[]},{name:"completeQuoteTokenUpdate",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"PAUSE_ROLE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"UNPAUSE_ROLE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"ISSUER_ROLE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"BURN_BLOCKED_ROLE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"permit",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"owner"},{type:"address",name:"spender"},{type:"uint256",name:"value"},{type:"uint256",name:"deadline"},{type:"uint8",name:"v"},{type:"bytes32",name:"r"},{type:"bytes32",name:"s"}],outputs:[]},{name:"nonces",type:"function",stateMutability:"view",inputs:[{type:"address",name:"owner"}],outputs:[{type:"uint256"}]},{name:"DOMAIN_SEPARATOR",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"distributeReward",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"amount"}],outputs:[]},{name:"setRewardRecipient",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"recipient"}],outputs:[]},{name:"claimRewards",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[{type:"uint256"}]},{name:"optedInSupply",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint128"}]},{name:"globalRewardPerToken",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"userRewardInfo",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"}],outputs:[{type:"tuple",components:[{type:"address",name:"rewardRecipient"},{type:"uint256",name:"rewardPerToken"},{type:"uint256",name:"rewardBalance"}]}]},{name:"getPendingRewards",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"}],outputs:[{type:"uint128"}]},{name:"Transfer",type:"event",inputs:[{type:"address",name:"from",indexed:!0},{type:"address",name:"to",indexed:!0},{type:"uint256",name:"amount"}]},{name:"Approval",type:"event",inputs:[{type:"address",name:"owner",indexed:!0},{type:"address",name:"spender",indexed:!0},{type:"uint256",name:"amount"}]},{name:"Mint",type:"event",inputs:[{type:"address",name:"to",indexed:!0},{type:"uint256",name:"amount"}]},{name:"Burn",type:"event",inputs:[{type:"address",name:"from",indexed:!0},{type:"uint256",name:"amount"}]},{name:"BurnBlocked",type:"event",inputs:[{type:"address",name:"from",indexed:!0},{type:"uint256",name:"amount"}]},{name:"TransferWithMemo",type:"event",inputs:[{type:"address",name:"from",indexed:!0},{type:"address",name:"to",indexed:!0},{type:"uint256",name:"amount"},{type:"bytes32",name:"memo",indexed:!0}]},{name:"TransferPolicyUpdate",type:"event",inputs:[{type:"address",name:"updater",indexed:!0},{type:"uint64",name:"newPolicyId",indexed:!0}]},{name:"SupplyCapUpdate",type:"event",inputs:[{type:"address",name:"updater",indexed:!0},{type:"uint256",name:"newSupplyCap",indexed:!0}]},{name:"PauseStateUpdate",type:"event",inputs:[{type:"address",name:"updater",indexed:!0},{type:"bool",name:"isPaused"}]},{name:"NextQuoteTokenSet",type:"event",inputs:[{type:"address",name:"updater",indexed:!0},{type:"address",name:"nextQuoteToken",indexed:!0}]},{name:"QuoteTokenUpdate",type:"event",inputs:[{type:"address",name:"updater",indexed:!0},{type:"address",name:"newQuoteToken",indexed:!0}]},{name:"RewardDistributed",type:"event",inputs:[{type:"address",name:"funder",indexed:!0},{type:"uint256",name:"amount"}]},{name:"RewardRecipientSet",type:"event",inputs:[{type:"address",name:"holder",indexed:!0},{type:"address",name:"recipient",indexed:!0}]},{name:"LogoURIUpdated",type:"event",inputs:[{type:"address",name:"updater",indexed:!0},{type:"string",name:"newLogoURI"}]},{name:"InsufficientBalance",type:"error",inputs:[{type:"uint256",name:"available"},{type:"uint256",name:"required"},{type:"address",name:"token"}]},{name:"InsufficientAllowance",type:"error",inputs:[]},{name:"SupplyCapExceeded",type:"error",inputs:[]},{name:"InvalidSupplyCap",type:"error",inputs:[]},{name:"InvalidPayload",type:"error",inputs:[]},{name:"PolicyForbids",type:"error",inputs:[]},{name:"InvalidRecipient",type:"error",inputs:[]},{name:"ContractPaused",type:"error",inputs:[]},{name:"InvalidCurrency",type:"error",inputs:[]},{name:"InvalidQuoteToken",type:"error",inputs:[]},{name:"InvalidAmount",type:"error",inputs:[]},{name:"NoOptedInSupply",type:"error",inputs:[]},{name:"Unauthorized",type:"error",inputs:[]},{name:"ProtectedAddress",type:"error",inputs:[]},{name:"InvalidToken",type:"error",inputs:[]},{name:"Uninitialized",type:"error",inputs:[]},{name:"InvalidTransferPolicyId",type:"error",inputs:[]},{name:"PermitExpired",type:"error",inputs:[]},{name:"InvalidSignature",type:"error",inputs:[]},{name:"LogoURITooLong",type:"error",inputs:[]},{name:"InvalidLogoURI",type:"error",inputs:[]},{name:"hasRole",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"bytes32",name:"role"}],outputs:[{type:"bool"}]},{name:"getRoleAdmin",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"role"}],outputs:[{type:"bytes32"}]},{name:"grantRole",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"},{type:"address",name:"account"}],outputs:[]},{name:"revokeRole",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"},{type:"address",name:"account"}],outputs:[]},{name:"renounceRole",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"}],outputs:[]},{name:"setRoleAdmin",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"},{type:"bytes32",name:"adminRole"}],outputs:[]},{name:"RoleMembershipUpdated",type:"event",inputs:[{type:"bytes32",name:"role",indexed:!0},{type:"address",name:"account",indexed:!0},{type:"address",name:"sender",indexed:!0},{type:"bool",name:"hasRole"}]},{name:"RoleAdminUpdated",type:"event",inputs:[{type:"bytes32",name:"role",indexed:!0},{type:"bytes32",name:"newAdminRole",indexed:!0},{type:"address",name:"sender",indexed:!0}]},{name:"Unauthorized",type:"error",inputs:[]}],mL=[{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:"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:[]}],bL=[{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"}]}],gL=[{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:"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:"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:[]}],vL=[{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:[]}],wL=[{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:[]}],xL=[{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"}]}],SL=[{type:"error",name:"DelegateCallNotAllowed",inputs:[]},{type:"error",name:"InvalidMode",inputs:[]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint64"}]},{type:"function",name:"modeOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint8"}]},{type:"function",name:"budgetOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint64"}]},{type:"function",name:"setMode",stateMutability:"nonpayable",inputs:[{name:"newMode",type:"uint8"}],outputs:[]},{type:"function",name:"setBudget",stateMutability:"nonpayable",inputs:[{name:"creditBudget",type:"uint64"}],outputs:[]}],EL=[{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:[]}];[...xn,...dL,...hL,...pL,...hE,...yL,...SL,...pE,...mL,...bL,...gL,...vL,...wL,...xL,...EL];function yE(e){const t=e.account;return t?.keyType&&t.keyType!=="secp256k1"||t?.source==="accessKey"||t?.source==="multisig"||typeof e.calls<"u"||typeof e.feePayer<"u"||typeof e.feePayerSignature<"u"||typeof e.feeToken<"u"||typeof e.keyAuthorization<"u"||typeof e.multisig<"u"||typeof e.nonceKey<"u"||typeof e.signature<"u"||typeof e.signatures<"u"||typeof e.validBefore<"u"||typeof e.validAfter<"u"?"tempo":e.type?e.type:_b(e)}function $b(e){try{return yE(e)==="tempo"}catch{return!1}}async function AL(e,t){if(!$b(e)){if(t&&"type"in t&&t.type!=="secp256k1")throw new Error("Unsupported signature type. Expected `secp256k1` but got `"+t.type+"`.");if(t&&"type"in t){const{r:i,s,yParity:u}=t?.signature;return Z5(e,{r:oe(i,{size:32}),s:oe(s,{size:32}),yParity:u})}return Z5(e,t)}if(yE(e)==="tempo")return TL(e,t);throw new Error("Unsupported transaction type")}async function TL(e,t){const n=(()=>{if(e.signature)return e.signature;if(t&&"type"in t)return t;if(t)return rr({r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)})})(),{chainId:i,feePayer:s,nonce:u,...l}=e,f=(()=>{const v=e.feePayerSignature;if(v)return{r:BigInt(v.r),s:BigInt(v.s),yParity:Number(v.yParity)};if(v===null||s)return null})(),d=typeof e.feePayerSignature<"u"&&e.feePayerSignature!==null,h=s===!0&&(!n||!f)||typeof s=="object"&&!n||!n&&d,m={...l,calls:l.calls?.length?l.calls:[{to:l.to||(!l.data||l.data==="0x"?"0x0000000000000000000000000000000000000000":void 0),value:l.value,data:l.data}],chainId:Number(i),feePayerSignature:f,type:"tempo",...u?{nonce:BigInt(u)}:{}},b={...m};h&&delete b.feeToken;const g=(()=>{if(n)return n;if(!e.multisig||!e.signatures)return;const v=fd(ld(b)),x=e.signatures.map(E=>rr(E)),S=Bj({payload:v,signatures:x,genesisConfig:e.multisig});return rr({genesisConfig:e.multisig,signatures:S,...u||e.nonceKey?{}:{init:!0}})})();if(g&&typeof e.feePayer=="object"){const v=ld(m,{signature:g}),x=e.from??Dc({payload:fd(v),root:!0,signature:g}),S=cL(v,{sender:x}),E=await e.feePayer.sign({hash:S});return Pi(v,{feePayerSignature:Pd(E)})}return s===!0||!g&&d?g&&f?Pi(b,{signature:g}):g?Pi(b,{format:"feePayer",sender:e.from,signature:g}):Pi(b,{feePayerSignature:null}):Pi(b,{feePayerSignature:void 0,signature:g})}function _L(e){return e.source==="accessKey"&&"accessKeyAddress"in e}async function ML(e,t){const{chainId:n,key:i,expiry:s,limits:u,scopes:l,witness:f,admin:d}=t,{accessKeyAddress:h,keyType:m}=zL(i),b=_L(e),g=b?{account:e.address}:{},v=d?{}:{expiry:s,limits:u,scopes:l},x=Kj({address:h,chainId:n,type:m,witness:f,...d?{isAdmin:!0}:{},...g,...v}),S=b?await e.sign({hash:x,raw:!0}):await e.sign({hash:x});return cE({address:h,chainId:n,signature:rr(S),type:m,...f?{witness:f}:{},...d?{isAdmin:!0}:{},...g,...v})}function zL(e){return"accessKeyAddress"in e?{accessKeyAddress:e.accessKeyAddress,keyType:e.keyType}:"publicKey"in e&&e.publicKey?{accessKeyAddress:ji(Qm(e.publicKey)),keyType:e.type}:{accessKeyAddress:e.address,keyType:e.type}}const Qi="0xaAAAaaAA00000000000000000000000000000000",OH="0x20c0000000000000000000000000000000000000",RL="0x5165300000000000000000000000000000000000",IH="0x20fc000000000000000000000000000000000000",sw=["genesis","t0","t1","t1a","t1b","t1c","t2","t3","t4","t5","t6"];function CL(e,t){return sw.indexOf(e){const v=i&&"keyType"in i?i.keyType:i?.source;return v?v==="webAuthn"?["webAuthn","0x0578"]:["p256","secp256k1"].includes(v)?[v,void 0]:[n.keyType,ow(n.keyData)]:[n.keyType,ow(n.keyData)]})(),g=i&&"accessKeyAddress"in i?i.accessKeyAddress:n.keyId;return i&&(h.from=i.address),{...h,...u?{multisigInit:u}:{},...typeof l<"u"?{multisigSignatureCount:l}:{},...n.capabilities?{capabilities:n.capabilities}:{},...b?{keyData:b}:{},...g?{keyId:g}:{},...m?{keyType:m}:{},...typeof n.feePayer<"u"?{feePayer:typeof n.feePayer=="object"?vt(n.feePayer):n.feePayer}:{},..."feePayerSignature"in n&&n.feePayerSignature!==void 0?{feePayerSignature:n.feePayerSignature}:{}}}function ow(e){if(!e)return e;const t=(e.length-2)/2;return t<=4?e:oe(t,{size:2})}const Fs=new Map;async function jL(e){Fs.set(e,(Fs.get(e)??0)+1),await Promise.resolve();const t=(Fs.get(e)??0)>1;return queueMicrotask(()=>{const n=Fs.get(e)??0;n<=1?Fs.delete(e):Fs.set(e,n-1)}),t}const LL=25;function UL(){const t=BigInt(Math.floor(Date.now()/1e3))-60n;return t<=0n?0:Number(BigInt(US(8))%t)}const bE={blockTime:1e3,extendSchema:dN(),formatters:{transaction:Ok({exclude:["aaAuthorizationList"],format:$L}),transactionReceipt:Vk({format:kL}),transactionRequest:dk({format:NL})},prepareTransactionRequest:[async(e,{client:t,phase:n})=>{const i=e;if(n==="afterFillParameters")return typeof i.gas<"u"&&i.feePayer&&!i.feePayerSignature&&(i.keyAuthorization?.signature.type==="webAuthn"?i.gas=(i.gas??0n)+20000n:i.account?.source==="accessKey"&&(i.gas=(i.gas??0n)+10000n)),i;const s=i.multisig??(i.account?.source==="multisig"?i.account.config:void 0);if(s){const l=Pb(s);i.multisig=l,i.from=Bo(l),i.multisigInit={salt:l.salt??Io,threshold:Number(l.threshold),owners:l.owners.map(f=>({owner:f.owner,weight:Number(f.weight)}))},i.multisigSignatureCount??=DL(l),i.account?.source!=="multisig"&&delete i.account}if(await(async()=>{if(i.nonceKey==="expiring"||i.nonceKey===yo)return!0;if(s)return!1;if(i.feePayer&&typeof i.nonceKey>"u")return!0;const l=i.account,f=typeof l=="string"?l:l?.address;return f&&typeof i.nonceKey>"u"?await jL(f.toLowerCase()):!1})()?(i.nonceKey=yo,i.nonce=0,typeof i.validAfter>"u"&&(i.validAfter=UL()),typeof i.validBefore>"u"&&(i.validBefore=Math.floor(Date.now()/1e3)+LL)):typeof i.nonceKey<"u"&&(i.nonce=typeof i.nonce=="number"?i.nonce:0),!i.keyAuthorization&&i.account?.source==="accessKey"){const l=i.account.keyAuthorizationManager;if(l){const f=i.chainId??i.chain?.id;if(typeof f<"u"){const d=i.account.address,h=i.account.accessKeyAddress,m={address:d,accessKey:h,chainId:f},b=await l.get(m);if(b){const g=BigInt(Math.floor(Date.now()/1e3));if(b.expiry!=null&&BigInt(b.expiry)<=g)await l.remove(m);else{const v=await tt(t,Ec,"getMetadata")({account:d,accessKey:h});Ki(v.address,h)&&!v.isRevoked&&v.expiry>g?await l.remove(m):i.keyAuthorization=b}}}}}return!i.feeToken&&i.chain?.feeToken&&(i.feeToken=i.chain.feeToken),i},{runAt:["beforeFillTransaction","afterFillParameters"]}],serializers:{transaction:((e,t)=>AL(e,t))},async verifyHash(e,t){const{address:n,hash:i,signature:s,mode:u}=t,l=(()=>{if(typeof s=="string")try{return Hc(s)}catch{return}})();if(l){if(l?.type==="keychain"&&u==="allowAccessKey"){const f=l.version==="v2"?zo(Xe("0x04",i,n)):i,d=(()=>{try{return Dc({payload:f,signature:l.inner})}catch{return}})();if(!d)return!1;const h=await Ec(e,{account:n,accessKey:d,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});return h.isRevoked||h.expiry<=BigInt(Math.floor(Date.now()/1e3))?!1:rw(l.inner,{address:d,payload:f})}if(l.type==="p256"||l.type==="webAuthn"){const f=await D8(e,{address:n,blockHash:t.blockHash,blockNumber:t.blockNumber,blockTag:t.blockTag,requireCanonical:t.requireCanonical});if(!f||f==="0xef01007702c00000000000000000000000000000000000")return rw(l,{address:n,payload:i})}}return await tt(e,zN,"verifyHash")({...t,chain:null})}};function DL(e){const t=Number(e.threshold),n=e.owners.map(s=>Number(s.weight)).sort((s,u)=>u-s);let i=0;for(const[s,u]of n.entries())if(i+=u,i>=t)return s+1;return n.length}const Ga=q8({...bE,id:4217,blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.tempo.xyz"}},name:"Tempo Mainnet",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.tempo.xyz"],webSocket:["wss://rpc.tempo.xyz"]}}}),Va=q8({...bE,id:42431,hardfork:"t5",blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.testnet.tempo.xyz"}},name:"Tempo Testnet (Moderato)",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.moderato.tempo.xyz"],webSocket:["wss://rpc.moderato.tempo.xyz"]}},testnet:!0}),HL=nj({chains:[Ga,Va],ssr:!0,transports:{[Ga.id]:W5(),[Va.id]:W5()}}),qL=`data:image/svg+xml,${encodeURIComponent(\'\')}`,or=Wz()({head:()=>({links:[{rel:"stylesheet",href:oj},{rel:"icon",type:"image/svg+xml",href:qL}],meta:[{charSet:"utf-8"},{content:"width=device-width, initial-scale=1",name:"viewport"},{title:"Tempo API Admin"}],scripts:[{children:Ej}]}),shellComponent:FL,component:VL,pendingComponent:()=>F.jsx(GL,{})});function FL({children:e}){return F.jsxs("html",{lang:"en","data-regen-radius":"none",suppressHydrationWarning:!0,children:[F.jsxs("head",{children:[F.jsx("base",{"data-tempo-base":"true",href:"/",suppressHydrationWarning:!0}),F.jsx("script",{"data-tempo-config":"true",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__TEMPO_API_CONFIG__=undefined"}}),F.jsx(vR,{})]}),F.jsxs("body",{children:[F.jsx("div",{id:"root",children:e}),F.jsx(wR,{})]})]})}function GL(){return F.jsx("div",{className:"flex min-h-screen items-center justify-center text-foreground-secondary",children:"Loading…"})}function VL(){return F.jsx(sj,{config:HL,children:F.jsx(fI,{client:M3,persistOptions:oI,children:F.jsx(KL,{})})})}function KL(){const{data:e,error:t,isPending:n}=rE();if(n)return null;if(t)return F.jsx("div",{className:"flex min-h-screen items-center justify-center text-foreground",children:t.message});if(!e.auth.identity)return F.jsx(JL,{loginUrl:e.auth.loginUrl});const{email:i}=e.auth.identity,{logoutUrl:s}=e.auth;return F.jsxs("div",{className:"relative flex min-h-dvh min-w-[360px] bg-background max-md:h-dvh max-md:flex-col max-md:overflow-hidden",children:[F.jsx("div",{className:"flex-1 bg-background max-md:hidden"}),F.jsx(QL,{email:i,logoutUrl:s}),F.jsx("main",{className:"flex w-full max-w-[1024px] flex-col px-4 pt-5 pb-10 max-md:min-h-0 max-md:flex-1 max-md:overflow-y-auto sm:px-8",children:F.jsx(Zx,{})}),F.jsx("div",{className:"flex-1 max-md:hidden"}),F.jsx(XL,{})]})}const gE=[{exact:!1,href:"/organizations",icon:xI,label:"Organizations"},{exact:!1,href:"/api-keys",icon:EI,label:"API Keys"},{exact:!1,href:"/verified-tokens",icon:vI,label:"Verified Tokens"},{exact:!1,href:"/earn/vaults",icon:TI,label:"Earn Vaults"},{exact:!1,href:"/early-access",icon:OI,label:"Early Access"}];function QL(e){return F.jsxs("aside",{className:"sticky top-0 flex h-dvh w-[260px] shrink-0 flex-col gap-6 border-r border-border bg-background px-2.5 pb-5 max-lg:w-[68px] max-lg:items-center max-lg:px-1.5 max-md:hidden",children:[F.jsxs(Pc,{"aria-label":"Tempo API Admin",className:"-mb-1 inline-flex rounded-button px-3 pt-5 pb-3",to:"/",children:[F.jsx(cj,{className:"mt-2 h-4 w-auto text-foreground max-lg:hidden"}),F.jsx(uj,{className:"mt-2 h-4 w-auto text-foreground lg:hidden"})]}),F.jsx("nav",{"aria-label":"Main",className:"flex flex-1 flex-col gap-1",children:gE.map(t=>F.jsx(ZL,{exact:t.exact,href:t.href,icon:t.icon,label:t.label},t.href))}),F.jsxs("div",{className:"flex w-full flex-col gap-1",children:[F.jsx("div",{className:"flex justify-start px-2.5 max-lg:justify-center max-lg:px-2",children:F.jsx(iE,{})}),F.jsx(YL,{email:e.email,logoutUrl:e.logoutUrl})]})]})}function ZL(e){const{exact:t,href:n,icon:i,label:s}=e,l=!!Yx()({to:n,fuzzy:!t});return F.jsxs(Pc,{"aria-current":l?"page":void 0,"aria-label":s,className:"flex items-center gap-3 rounded-button px-3 py-3 text-label-16 text-foreground-secondary hover:bg-surface-hover data-active:font-semibold data-active:text-foreground max-lg:justify-center max-lg:gap-0 max-lg:p-2.5","data-active":l||void 0,to:n,children:[F.jsx(i,{className:"size-5"}),F.jsx("span",{className:"max-lg:hidden",children:s})]})}function YL(e){return F.jsxs("div",{className:"flex items-center gap-3 p-2.5 max-lg:justify-center max-lg:p-2",children:[F.jsx(Na,{address:aE(e.email),className:"size-9 shrink-0",size:36}),F.jsx("p",{className:"flex-1 truncate text-label-14 text-foreground max-lg:hidden",children:e.email}),e.logoutUrl?F.jsx("a",{"aria-label":"Sign out",className:"shrink-0 text-foreground-secondary hover:text-foreground max-lg:hidden",href:e.logoutUrl,children:F.jsx(R3,{className:"size-[18px]"})}):null]})}function XL(){const e=Yx();return F.jsx("nav",{"aria-label":"Main",className:"z-10 flex w-full shrink-0 items-center justify-around border-t border-border bg-background pb-[env(safe-area-inset-bottom)] md:hidden",children:gE.map(t=>{const n=!!e({to:t.href,fuzzy:!t.exact}),i=t.icon;return F.jsxs(Pc,{"aria-current":n?"page":void 0,"aria-label":t.label,className:"flex flex-1 flex-col items-center gap-1 py-3 text-foreground-secondary data-active:text-foreground","data-active":n||void 0,to:t.href,children:[F.jsx(i,{className:"size-5"}),F.jsx("span",{className:"text-label-12",children:t.label})]},t.href)})})}function JL({loginUrl:e}){return F.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center gap-3 bg-background text-foreground",children:[F.jsx("p",{className:"font-medium",children:"Sign in required"}),e?F.jsx(ro,{render:F.jsx("a",{href:e}),children:"Sign in"}):F.jsx("p",{className:"text-copy-14 text-foreground-secondary",children:"Your session has expired."})]})}const WL=Ga.id;var uw;function Fe(e,t,n){function i(f,d){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:d,constr:l,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,d);const h=l.prototype,m=Object.keys(h);for(let b=0;bn?.Parent&&f instanceof n.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class ao extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class eU extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(uw=globalThis).__zod_globalConfig??(uw.__zod_globalConfig={});const tU=globalThis.__zod_globalConfig;function Ka(e){return tU}function nU(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,s])=>t.indexOf(+i)===-1).map(([i,s])=>s)}function rU(e,t){return typeof t=="bigint"?t.toString():t}function iU(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function vE(e){return e==null}function wE(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const cw=Symbol("evaluating");function Lt(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==cw)return i===void 0&&(i=cw,i=n()),i},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}const xE="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function aU(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const sU=new Set(["string","number","symbol"]);function wm(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}function oU(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function ta(e){return{}}function uU(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function Uu(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Cf(e){return typeof e=="string"?e:e?.message}function Qa(e,t,n){const i=e.message?e.message:Cf(e.inst?._zod.def?.error?.(e))??Cf(t?.error?.(e))??Cf(n.customError?.(e))??Cf(n.localeError?.(e))??"Invalid input",{inst:s,continue:u,input:l,...f}=e;return f.path??(f.path=[]),f.message=i,t?.reportInput&&(f.input=l),f}function SE(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}const EE=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,rU,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},fU=Fe("$ZodError",EE),Kd=Fe("$ZodError",EE,{Parent:Error}),dU=e=>(t,n,i,s)=>{const u=i?{...i,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},u);if(l instanceof Promise)throw new ao;if(l.issues.length){const f=new(s?.Err??e)(l.issues.map(d=>Qa(d,u,Ka())));throw xE(f,s?.callee),f}return l.value},hU=dU(Kd),pU=e=>async(t,n,i,s)=>{const u=i?{...i,async:!0}:{async:!0};let l=t._zod.run({value:n,issues:[]},u);if(l instanceof Promise&&(l=await l),l.issues.length){const f=new(s?.Err??e)(l.issues.map(d=>Qa(d,u,Ka())));throw xE(f,s?.callee),f}return l.value},yU=pU(Kd),mU=e=>(t,n,i)=>{const s=i?{...i,async:!1}:{async:!1},u=t._zod.run({value:n,issues:[]},s);if(u instanceof Promise)throw new ao;return u.issues.length?{success:!1,error:new(e??fU)(u.issues.map(l=>Qa(l,s,Ka())))}:{success:!0,data:u.value}},AE=mU(Kd),bU=e=>async(t,n,i)=>{const s=i?{...i,async:!0}:{async:!0};let u=t._zod.run({value:n,issues:[]},s);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(l=>Qa(l,s,Ka())))}:{success:!0,data:u.value}},TE=bU(Kd),gU=e=>{const t=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\\\s\\\\S]*";return new RegExp(`^${t}$`)},vU=/^-?\\d+(?:\\.\\d+)?$/,_E=Fe("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),wU=Fe("$ZodCheckMaxLength",(e,t)=>{var n;_E.init(e,t),(n=e._zod.def).when??(n.when=i=>{const s=i.value;return!vE(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const s=i.value;if(s.length<=t.maximum)return;const l=SE(s);i.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),xU=Fe("$ZodCheckMinLength",(e,t)=>{var n;_E.init(e,t),(n=e._zod.def).when??(n.when=i=>{const s=i.value;return!vE(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const s=i.value;if(s.length>=t.minimum)return;const l=SE(s);i.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),SU={major:4,minor:4,patch:3},Kn=Fe("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=SU;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const s of i)for(const u of s._zod.onattach)u(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(l,f,d)=>{let h=Uu(l),m;for(const b of f){if(b._zod.def.when){if(cU(l)||!b._zod.def.when(l))continue}else if(h)continue;const g=l.issues.length,v=b._zod.check(l);if(v instanceof Promise&&d?.async===!1)throw new ao;if(m||v instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await v,l.issues.length!==g&&(h||(h=Uu(l,g)))});else{if(l.issues.length===g)continue;h||(h=Uu(l,g))}}return m?m.then(()=>l):l},u=(l,f,d)=>{if(Uu(l))return l.aborted=!0,l;const h=s(f,i,d);if(h instanceof Promise){if(d.async===!1)throw new ao;return h.then(m=>e._zod.parse(m,d))}return e._zod.parse(h,d)};e._zod.run=(l,f)=>{if(f.skipChecks)return e._zod.parse(l,f);if(f.direction==="backward"){const h=e._zod.parse({value:l.value,issues:[]},{...f,skipChecks:!0});return h instanceof Promise?h.then(m=>u(m,l,f)):u(h,l,f)}const d=e._zod.parse(l,f);if(d instanceof Promise){if(f.async===!1)throw new ao;return d.then(h=>s(h,i,f))}return s(d,i,f)}}Lt(e,"~standard",()=>({validate:s=>{try{const u=AE(e,s);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return TE(e,s).then(l=>l.success?{value:l.data}:{issues:l.error?.issues})}},vendor:"zod",version:1}))}),EU=Fe("$ZodString",(e,t)=>{Kn.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??gU(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),AU=Fe("$ZodNumber",(e,t)=>{Kn.init(e,t),e._zod.pattern=e._zod.bag.pattern??vU,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const u=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...u?{received:u}:{}}),n}});function hd(e,t,n,i,s,u){const l=n in i;if(e.issues.length){if(s&&u&&!l)return;t.issues.push(...lU(n,e.issues))}if(!l&&!s){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?l&&(t.value[n]=void 0):t.value[n]=e.value}function TU(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const n=uU(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function _U(e,t,n,i,s,u){const l=[],f=s.keySet,d=s.catchall._zod,h=d.def.type,m=d.optin==="optional",b=d.optout==="optional";for(const g in t){if(g==="__proto__"||f.has(g))continue;if(h==="never"){l.push(g);continue}const v=d.run({value:t[g],issues:[]},i);v instanceof Promise?e.push(v.then(x=>hd(x,n,g,t,m,b))):hd(v,n,g,t,m,b)}return l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:u}),e.length?Promise.all(e).then(()=>n):n}const MU=Fe("$ZodObject",(e,t)=>{if(Kn.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...f};return Object.defineProperty(t,"shape",{value:d}),d}})}const i=iU(()=>TU(t));Lt(e._zod,"propValues",()=>{const f=t.shape,d={};for(const h in f){const m=f[h]._zod;if(m.values){d[h]??(d[h]=new Set);for(const b of m.values)d[h].add(b)}}return d});const s=aU,u=t.catchall;let l;e._zod.parse=(f,d)=>{l??(l=i.value);const h=f.value;if(!s(h))return f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f;f.value={};const m=[],b=l.shape;for(const g of l.keys){const v=b[g],x=v._zod.optin==="optional",S=v._zod.optout==="optional",E=v._zod.run({value:h[g],issues:[]},d);E instanceof Promise?m.push(E.then(_=>hd(_,f,g,h,x,S))):hd(E,f,g,h,x,S)}return u?_U(m,h,f,d,i.value,e):m.length?Promise.all(m).then(()=>f):f}});function lw(e,t,n,i){for(const u of e)if(u.issues.length===0)return t.value=u.value,t;const s=e.filter(u=>!Uu(u));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(u=>u.issues.map(l=>Qa(l,i,Ka())))}),t)}const zU=Fe("$ZodUnion",(e,t)=>{Kn.init(e,t),Lt(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Lt(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Lt(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Lt(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${i.map(s=>wE(s.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,s)=>{if(n)return n(i,s);let u=!1;const l=[];for(const f of t.options){const d=f._zod.run({value:i.value,issues:[]},s);if(d instanceof Promise)l.push(d),u=!0;else{if(d.issues.length===0)return d;l.push(d)}}return u?Promise.all(l).then(f=>lw(f,i,e,s)):lw(l,i,e,s)}}),RU=Fe("$ZodEnum",(e,t)=>{Kn.init(e,t);const n=nU(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(s=>sU.has(typeof s)).map(s=>typeof s=="string"?wm(s):s.toString()).join("|")})$`),e._zod.parse=(s,u)=>{const l=s.value;return i.has(l)||s.issues.push({code:"invalid_value",values:n,input:l,inst:e}),s}}),CU=Fe("$ZodLiteral",(e,t)=>{if(Kn.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?wm(i):i?wm(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,s)=>{const u=i.value;return n.has(u)||i.issues.push({code:"invalid_value",values:t.values,input:u,inst:e}),i}}),PU=Fe("$ZodTransform",(e,t)=>{Kn.init(e,t),e._zod.optin="optional",e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new eU(e.constructor.name);const s=t.transform(n.value,n);if(i.async)return(s instanceof Promise?s:Promise.resolve(s)).then(l=>(n.value=l,n.fallback=!0,n));if(s instanceof Promise)throw new ao;return n.value=s,n.fallback=!0,n}});function fw(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const OU=Fe("$ZodOptional",(e,t)=>{Kn.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Lt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Lt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${wE(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const s=n.value,u=t.innerType._zod.run(n,i);return u instanceof Promise?u.then(l=>fw(l,s)):fw(u,s)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),IU=Fe("$ZodCatch",(e,t)=>{Kn.init(e,t),e._zod.optin="optional",Lt(e._zod,"optout",()=>t.innerType._zod.optout),Lt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const s=t.innerType._zod.run(n,i);return s instanceof Promise?s.then(u=>(n.value=u.value,u.issues.length&&(n.value=t.catchValue({...n,error:{issues:u.issues.map(l=>Qa(l,i,Ka()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(u=>Qa(u,i,Ka()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),BU=Fe("$ZodPipe",(e,t)=>{Kn.init(e,t),Lt(e._zod,"values",()=>t.in._zod.values),Lt(e._zod,"optin",()=>t.in._zod.optin),Lt(e._zod,"optout",()=>t.out._zod.optout),Lt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const u=t.out._zod.run(n,i);return u instanceof Promise?u.then(l=>Pf(l,t.in,i)):Pf(u,t.in,i)}const s=t.in._zod.run(n,i);return s instanceof Promise?s.then(u=>Pf(u,t.out,i)):Pf(s,t.out,i)}});function Pf(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function $U(e,t){return new e({type:"string",...ta()})}function kU(e,t){return new e({type:"number",coerce:!0,checks:[],...ta()})}function NU(e,t){return new wU({check:"max_length",...ta(),maximum:e})}function jU(e,t){return new xU({check:"min_length",...ta(),minimum:e})}const ur=Fe("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");Kn.init(e,t),e.def=t,e.type=t.type,e.parse=(n,i)=>hU(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>AE(e,n,i),e.parseAsync=async(n,i)=>yU(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>TE(e,n,i),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]},{parent:!0}),e.with=e.check,e.clone=(n,i)=>oU(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.apply=n=>n(e)}),LU=Fe("ZodMiniString",(e,t)=>{EU.init(e,t),ur.init(e,t)});function Df(e){return $U(LU)}const UU=Fe("ZodMiniNumber",(e,t)=>{AU.init(e,t),ur.init(e,t)}),DU=Fe("ZodMiniObject",(e,t)=>{MU.init(e,t),ur.init(e,t),Lt(e,"shape",()=>t.shape)});function Qd(e,t){const n={type:"object",shape:e??{},...ta()};return new DU(n)}const HU=Fe("ZodMiniUnion",(e,t)=>{zU.init(e,t),ur.init(e,t)});function qU(e,t){return new HU({type:"union",options:e,...ta()})}const FU=Fe("ZodMiniEnum",(e,t)=>{RU.init(e,t),ur.init(e,t),e.options=Object.values(t.entries)});function Nb(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new FU({type:"enum",entries:n,...ta()})}const GU=Fe("ZodMiniLiteral",(e,t)=>{CU.init(e,t),ur.init(e,t)});function dw(e,t){return new GU({type:"literal",values:Array.isArray(e)?e:[e],...ta()})}const VU=Fe("ZodMiniTransform",(e,t)=>{PU.init(e,t),ur.init(e,t)});function KU(e){return new VU({type:"transform",transform:e})}const QU=Fe("ZodMiniOptional",(e,t)=>{OU.init(e,t),ur.init(e,t)});function Bi(e){return new QU({type:"optional",innerType:e})}const ZU=Fe("ZodMiniCatch",(e,t)=>{IU.init(e,t),ur.init(e,t)});function $i(e,t){return new ZU({type:"catch",innerType:e,catchValue:(()=>t)})}const YU=Fe("ZodMiniPipe",(e,t)=>{BU.init(e,t),ur.init(e,t)});function ME(e,t){return new YU({type:"pipe",in:e,out:t})}function XU(e){return kU(UU)}async function Za(e,t){return(await e.json().catch(()=>null))?.error?.message??t.fallback}const JU=Qd({tab:$i(Bi(Nb(["pending","verified"])),void 0)});function jH({address:e,chainId:t}){return Oe["verified-tokens"][":address"].logo.$url({param:{address:e},query:{chainId:String(t)}}).toString()}var xo;(e=>{function t({chainId:u}){return["verified-tokens",u]}e.key=t;async function n({chainId:u}){return(await Oe["verified-tokens"].$get({query:{chainId:String(u)}})).json()}e.fn=n;function i(u){return{queryFn:()=>n(u),queryKey:t(u),staleTime:3e4}}e.options=i;function s(u){return Ao(i(u))}e.useQuery=s})(xo||(xo={}));var hw;(e=>{async function t({logo:i,...s}){const u=await Oe["verified-tokens"].$post({json:{...s,...i?{logo:await i.text()}:{}}});if(!u.ok)throw new Error("Failed to add token.");return u.json()}e.fn=t;function n(){const i=_t();return Dt({mutationFn:t,onSuccess:(s,u)=>i.invalidateQueries({queryKey:xo.key({chainId:u.chainId})})})}e.useMutation=n})(hw||(hw={}));var xm;(e=>{let t;(n=>{function i(){return["verified-token-requests"]}n.key=i;async function s(){const f=await Oe["verified-tokens"].requests.$get({query:{}});if(!f.ok)throw new Error("Failed to load requests.");return f.json()}n.fn=s;function u(){return{queryFn:s,queryKey:i(),staleTime:3e4}}n.options=u;function l(){return Ao(u())}n.useQuery=l})(t=e.list||(e.list={})),(n=>{async function i({requestId:u}){const l=await Oe["verified-tokens"].requests[":requestId"].approve.$post({param:{requestId:u}});if(!l.ok)throw new Error(await Za(l,{fallback:"Failed to approve request."}));return l.json()}n.fn=i;function s(){const u=_t();return Dt({mutationFn:i,onSuccess:(l,f)=>{u.invalidateQueries({queryKey:t.key()}),u.invalidateQueries({queryKey:xo.key({chainId:f.chainId})})}})}n.useMutation=s})(e.approve||(e.approve={})),(n=>{async function i({requestId:u,reviewNote:l}){const f=await Oe["verified-tokens"].requests[":requestId"].deny.$post({json:l?{reviewNote:l}:{},param:{requestId:u}});if(!f.ok)throw new Error(await Za(f,{fallback:"Failed to deny request."}));return f.json()}n.fn=i;function s(){const u=_t();return Dt({mutationFn:i,onSuccess:()=>u.invalidateQueries({queryKey:t.key()})})}n.useMutation=s})(e.deny||(e.deny={}))})(xm||(xm={}));var pw;(e=>{async function t({address:i,chainId:s}){const u=await Oe["verified-tokens"][":address"].$delete({param:{address:i},query:{chainId:String(s)}});if(!u.ok)throw new Error("Failed to remove token.");return u.json()}e.fn=t;function n(){const i=_t();return Dt({mutationFn:t,onSuccess:(s,u)=>i.invalidateQueries({queryKey:xo.key({chainId:u.chainId})})})}e.useMutation=n})(pw||(pw={}));const WU=()=>Nn(()=>import("./verified-tokens-Br5iLeNp.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),eD=Xr("/verified-tokens")({validateSearch:JU,loader:({context:e})=>Promise.all([e.queryClient.prefetchQuery(xo.options({chainId:WL})),e.queryClient.prefetchQuery(xm.list.options())]),component:ir(WU,"component")});var pd;(e=>{e.Search=Qd({period:$i(Bi(Nb(["24h","7d","30d"])),void 0),query:$i(Bi(ME(Df(),KU(t=>t.trim())).check(jU(3),NU(200))),void 0)})})(pd||(pd={}));function LH(e){return e.query?{query:e.query}:{}}function UH(e){const t=e.trim();return t.length>=3?t:void 0}var Sm;(e=>{function t(s){return["organizations","list",s.query??""]}e.key=t;async function n(s){const u=await Oe.organizations.$get({query:{...s.cursor?{cursor:s.cursor}:{},limit:"25",...s.query?{query:s.query}:{}}});if(!u.ok)throw new Error("Failed to load organizations.");return await u.json()}e.fn=n;function i(s){return{getNextPageParam:u=>u.nextCursor,initialPageParam:null,queryFn:({pageParam:u})=>n({...s,cursor:u??void 0}),queryKey:t(s),staleTime:3e4}}e.options=i})(Sm||(Sm={}));var So;(e=>{function t(s){return["organizations","detail",s]}e.key=t;async function n(s){const u=await Oe.organizations[":orgId"].$get({param:{orgId:s}});if(u.status===404)throw new Error("Organization not found.");if(!u.ok)throw new Error("Failed to load organization.");return await u.json()}e.fn=n;function i(s){return{queryFn:()=>n(s),queryKey:t(s),staleTime:3e4}}e.options=i})(So||(So={}));function zE(e){return{...e.detail,billing:{...e.detail.billing,enabledSources:e.enabledSources}}}function tD(e){return{...e.detail,sponsorshipSubsidy:e.sponsorshipSubsidy}}var yw;(e=>{async function t(i){const s=await Oe.organizations[":orgId"]["billing-sources"][":source"].$put({param:i});if(!s.ok)throw new Error("Failed to enable billing source.");return await s.json()}e.fn=t;function n(i){const s=_t();return Dt({mutationFn:u=>t({orgId:i,source:u}),onSuccess:u=>s.setQueryData(So.key(i),l=>l&&zE({detail:l,enabledSources:u.data}))})}e.useMutation=n})(yw||(yw={}));var mw;(e=>{async function t(i){const s=await Oe.organizations[":orgId"]["billing-sources"][":source"].$delete({param:i});if(!s.ok)throw new Error("Failed to disable billing source.");return await s.json()}e.fn=t;function n(i){const s=_t();return Dt({mutationFn:u=>t({orgId:i,source:u}),onSuccess:u=>s.setQueryData(So.key(i),l=>l&&zE({detail:l,enabledSources:u.data}))})}e.useMutation=n})(mw||(mw={}));var bw;(e=>{async function t(i){const s=i.enabled?i.projectSpendLimit?{enabled:!0,projectSpendLimit:i.projectSpendLimit}:{enabled:!0}:{enabled:!1},u=await Oe.organizations[":orgId"].sponsorship.$put({json:s,param:{orgId:i.orgId}});if(!u.ok)throw new Error("Failed to update sponsorship subsidy.");return await u.json()}e.fn=t;function n(i){const s=_t();return Dt({mutationFn:u=>t({...u,orgId:i}),onSuccess:u=>s.setQueryData(So.key(i),l=>l&&tD({detail:l,sponsorshipSubsidy:u}))})}e.useMutation=n})(bw||(bw={}));var gw;(e=>{function t(s){return["organizations",s,"members"]}e.key=t;async function n(s){const u=await Oe.organizations[":orgId"].members.$get({param:{orgId:s.orgId},query:{...s.cursor?{cursor:s.cursor}:{},limit:"25"}});if(!u.ok)throw new Error("Failed to load organization members.");return await u.json()}e.fn=n;function i(s){return{getNextPageParam:u=>u.nextCursor,initialPageParam:null,queryFn:({pageParam:u})=>n({cursor:u??void 0,orgId:s}),queryKey:t(s),staleTime:3e4}}e.options=i})(gw||(gw={}));var vw;(e=>{function t(s){return["organizations",s,"projects"]}e.key=t;async function n(s){const u=await Oe.organizations[":orgId"].projects.$get({param:{orgId:s.orgId},query:{...s.cursor?{cursor:s.cursor}:{},limit:"25"}});if(!u.ok)throw new Error("Failed to load organization projects.");return await u.json()}e.fn=n;function i(s){return{getNextPageParam:u=>u.nextCursor,initialPageParam:null,queryFn:({pageParam:u})=>n({cursor:u??void 0,orgId:s}),queryKey:t(s),staleTime:3e4}}e.options=i})(vw||(vw={}));var ww;(e=>{function t(n){return{queryFn:async()=>{const i=await Oe.organizations[":orgId"]["api-keys"].$get({param:{orgId:n}});if(!i.ok)throw new Error("Failed to load organization API keys.");return await i.json()},queryKey:["organizations",n,"api-keys"],staleTime:3e4}}e.options=t})(ww||(ww={}));var xw;(e=>{function t(n){return{queryFn:async()=>{const i=await Oe.organizations[":orgId"].sponsorship.$get({param:{orgId:n}});if(!i.ok)throw new Error("Failed to load sponsorship activity.");return await i.json()},queryKey:["organizations",n,"sponsorship"],staleTime:3e4}}e.options=t})(xw||(xw={}));var Sw;(e=>{function t(n,i){return{queryFn:async()=>{const s=await Oe.organizations[":orgId"].usage.$get({param:{orgId:n},query:{period:i}});if(!s.ok)throw new Error("Failed to load API usage.");return await s.json()},queryKey:["organizations",n,"usage",i],staleTime:3e4}}e.options=t})(Sw||(Sw={}));var Ew;(e=>{function t(n){return{queryFn:async()=>{const i=await Oe.organizations[":orgId"].webhooks.$get({param:{orgId:n}});if(!i.ok)throw new Error("Failed to load webhook health.");return await i.json()},queryKey:["organizations",n,"webhooks"],staleTime:3e4}}e.options=t})(Ew||(Ew={}));const nD=()=>Nn(()=>import("./organizations-DFRZ-wln.js"),__vite__mapDeps([13,7]),import.meta.url),rD=()=>Nn(()=>import("./organizations-BJNHGVKM.js"),__vite__mapDeps([14,15,16,1,7,17,18]),import.meta.url),iD=Xr("/organizations")({validateSearch:pd.Search,loaderDeps:({search:e})=>({query:e.query||void 0}),loader:({context:e,deps:t})=>e.queryClient.ensureInfiniteQueryData(Sm.options(t)),component:ir(rD,"component"),errorComponent:ir(nD,"errorComponent")});var Ac;(e=>{e.key=["early-access"];async function t(){const s=await Oe["early-access"].$get();if(!s.ok)throw new Error("Failed to load entries.");return s.json()}e.fn=t;function n(){return{queryFn:t,queryKey:e.key,staleTime:3e4}}e.options=n;function i(){return Ao(n())}e.useQuery=i})(Ac||(Ac={}));var Aw;(e=>{async function t(i){const s=await Oe["early-access"].$post({json:i});if(!s.ok)throw new Error(await Za(s,{fallback:"Failed to add entry."}));return s.json()}e.fn=t;function n(){const i=_t();return Dt({mutationFn:t,onSuccess:()=>i.invalidateQueries({queryKey:Ac.key})})}e.useMutation=n})(Aw||(Aw={}));var Tw;(e=>{async function t({entry:i}){const s=await Oe["early-access"].$delete({json:{entry:i}});if(!s.ok)throw new Error(await Za(s,{fallback:"Failed to remove entry."}));return s.json()}e.fn=t;function n(){const i=_t();return Dt({mutationFn:t,onSuccess:()=>i.invalidateQueries({queryKey:Ac.key})})}e.useMutation=n})(Tw||(Tw={}));const aD=()=>Nn(()=>import("./early-access-BczUYE-z.js"),__vite__mapDeps([19,1,7,10,4,5,17,11]),import.meta.url),sD=Xr("/early-access")({loader:({context:e})=>e.queryClient.prefetchQuery(Ac.options()),component:ir(aD,"component")}),oD=Qd({environment:$i(Bi(Nb(["production","sandbox"])),void 0),orgId:$i(Bi(Df()),void 0),projectId:$i(Bi(Df()),void 0),query:$i(Bi(Df()),void 0)});var Ya;(e=>{e.baseKey=["api-keys"];function t(u={}){return[...e.baseKey,u.orgId??"",u.projectId??""]}e.key=t;function n(u={}){return Oe["api-keys"].$get({query:u.orgId?{orgId:u.orgId}:{}}).then(async l=>{if(!l.ok)throw new Error("Failed to load API keys.");const f=await l.json();return{data:u.projectId?f.data.filter(d=>d.projectId===u.projectId):f.data}})}e.fn=n;function i(u={}){return{queryFn:()=>n(u),queryKey:t(u),staleTime:3e4}}e.options=i;function s(u={}){return Ao(i(u))}e.useQuery=s})(Ya||(Ya={}));var _w;(e=>{async function t(i){const s=await Oe["api-keys"].$post({json:i});if(!s.ok)throw new Error(await Za(s,{fallback:"Failed to provision key."}));return s.json()}e.fn=t;function n(){const i=_t();return Dt({mutationFn:t,onSuccess:()=>i.invalidateQueries({queryKey:Ya.baseKey})})}e.useMutation=n})(_w||(_w={}));var Mw;(e=>{async function t(i){const s=await Oe["api-keys"][":id"].$patch({json:i.input,param:{id:i.id}});if(!s.ok)throw new Error(await Za(s,{fallback:"Failed to update the API key."}));return s.json()}e.fn=t;function n(){const i=_t();return Dt({mutationFn:t,onSuccess:()=>i.invalidateQueries({queryKey:Ya.baseKey})})}e.useMutation=n})(Mw||(Mw={}));var zw;(e=>{async function t(i){const s=await Oe["api-keys"][":id"].rotate.$post({param:{id:i}});if(!s.ok)throw new Error(await Za(s,{fallback:"Failed to rotate the API key."}));return s.json()}e.fn=t;function n(){const i=_t();return Dt({mutationFn:t,onSuccess:()=>i.invalidateQueries({queryKey:Ya.baseKey})})}e.useMutation=n})(zw||(zw={}));var Rw;(e=>{async function t(i){const s=await Oe["api-keys"][":id"].$delete({param:{id:i}});if(!s.ok)throw new Error("Failed to revoke the API key.");return s.json()}e.fn=t;function n(){const i=_t();return Dt({mutationFn:t,onSuccess:()=>i.invalidateQueries({queryKey:Ya.baseKey})})}e.useMutation=n})(Rw||(Rw={}));const Cw={read:"zone::read",write:"zone::write"};function DH(e){if(e===Cw.read)return"read";if(e===Cw.write)return"write"}function HH(e,t="read"){const n=e.trim();if(!/^\\d+$/.test(n))return;const i=BigInt(n);if(i!==0n)return`zone:${i}:${t}`}var Em;(e=>{e.key=["scopes","v2"];function t(){return Oe.scopes.$get().then(s=>s.json())}e.fn=t;function n(){return{queryFn:t,queryKey:e.key,staleTime:Number.POSITIVE_INFINITY}}e.options=n;function i(){return Ao(n())}e.useQuery=i})(Em||(Em={}));const uD=()=>Nn(()=>import("./api-keys-BPzJGciF.js"),__vite__mapDeps([20,21,16,1,2,3,4,5,6,7,8,9,10,17,18,11,22,23]),import.meta.url),cD=Xr("/api-keys")({validateSearch:oD,loaderDeps:({search:e})=>e,loader:({context:e,deps:t})=>Promise.all([e.queryClient.prefetchQuery(Ya.options(t)),e.queryClient.prefetchQuery(Em.options())]),component:ir(uD,"component")}),lD=Xr("/")({beforeLoad:()=>{throw _m({to:"/organizations"})}}),fD=()=>Nn(()=>import("./organizations_._orgId-BPXaZlm4.js"),__vite__mapDeps([24,7,25,6,4,9]),import.meta.url),dD=()=>Nn(()=>import("./organizations_._orgId-rZ8CDnaB.js"),__vite__mapDeps([26,27,21,16,3,4,5,6,7,17,25,9]),import.meta.url),hD=Xr("/organizations_/$orgId")({validateSearch:pd.Search,loader:({context:e,params:t})=>e.queryClient.ensureQueryData(So.options(t.orgId)),component:ir(dD,"component"),errorComponent:ir(fD,"errorComponent")});var Pw;(e=>{function t(d,h){return`${d.toLocaleString()} ${h}${d===1?"":"s"}`}e.count=t;function n(d){return new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"medium"}).format(d)}e.dateTime=n;function i(d,h){return d==null?"—":new Intl.NumberFormat("en",{currency:h?.toUpperCase()??"USD",style:"currency"}).format(Number(d))}e.money=i;function s(d){const h=d.filter(m=>m>0);if(h.length!==0)return Math.min(...h)}e.oldestUpdatedAt=s;function u(d,h){return h===0?"0%":new Intl.NumberFormat("en",{maximumFractionDigits:1,style:"percent"}).format(d/h)}e.percent=u;function l(d){return d==="month"?"Current month":d}e.period=l;function f(d){return new Intl.DateTimeFormat("en",{timeStyle:"medium"}).format(d)}e.time=f})(Pw||(Pw={}));const RE="access,capabilities,zone",CE=Va.id,qH=[{id:Ga.id,label:"Mainnet"},{id:Va.id,label:"Testnet"}];function FH(e){return e==="erc4626"?"ERC-4626":"Veda"}var Tc;(e=>{e.Search=Qd({chainId:$i(Bi(ME(XU(),qU([dw(Ga.id),dw(Va.id)]))),void 0)})})(Tc||(Tc={}));var _c;(e=>{function t(s){return["earn-verified-vaults","detail",s.chainId,s.vaultId.toLowerCase()]}e.key=t;async function n(s){const u=await Oe.earn["verified-vaults"][":vaultId"].$get({param:{vaultId:s.vaultId},query:{chainId:String(s.chainId),include:RE}});if(!u.ok)throw new Error(await Zd(u,"Vault not found."));return u.json()}e.fn=n;function i(s,u={}){return{enabled:u.enabled,queryFn:()=>n(s),queryKey:t(s),staleTime:3e4}}e.options=i})(_c||(_c={}));var Mc;(e=>{function t(s){return["earn-verified-vaults",s.chainId]}e.key=t;async function n(s){const u=await Oe.earn["verified-vaults"].$get({query:{chainId:String(s.chainId),...s.cursor?{cursor:s.cursor}:{},include:RE,limit:"25"}});if(!u.ok)throw new Error(await Zd(u,"Failed to load Earn vaults."));return u.json()}e.fn=n;function i(s){return{getNextPageParam:u=>u.nextCursor,initialPageParam:null,queryFn:({pageParam:u})=>n({...s,cursor:u??void 0}),queryKey:t(s),staleTime:3e4}}e.options=i})(Mc||(Mc={}));var Ow;(e=>{async function t(i){const s=await Oe.earn["verified-vaults"].$put({json:i});if(!s.ok)throw new Error(await Zd(s,"Failed to verify Earn vault."));return s.json()}e.fn=t;function n(){const i=_t();return Dt({mutationFn:t,onSuccess:(s,u)=>(i.setQueryData(_c.key({chainId:u.chainId,vaultId:u.vaultAddress}),s),i.invalidateQueries({queryKey:Mc.key({chainId:u.chainId})}))})}e.useMutation=n})(Ow||(Ow={}));var Iw;(e=>{async function t(i){const s=await Oe.earn["verified-vaults"][":vaultId"].$delete({param:{vaultId:i.vaultId},query:{chainId:String(i.chainId)}});if(!s.ok)throw new Error(await Zd(s,"Failed to remove Earn vault."))}e.fn=t;function n(){const i=_t();return Dt({mutationFn:t,onSuccess:(s,u)=>Promise.all([i.invalidateQueries({queryKey:Mc.key({chainId:u.chainId})}),i.invalidateQueries({queryKey:_c.key({chainId:u.chainId,vaultId:u.vaultId})})])})}e.useMutation=n})(Iw||(Iw={}));async function Zd(e,t){const n=await e.json().catch(()=>null),i=n?.error?.message??t,s=n?.error?.details?.flatMap(u=>u.message?[u.message]:[]);return s?.length?`${i}\n${s.join(`\n`)}`:i}const pD=()=>Nn(()=>import("./earn.vaults-C4Ac0KQP.js"),__vite__mapDeps([28,15,16,2,29,1,3,4,5,6,23,7,11,12,22]),import.meta.url);Ga.id+"",Ga.blockExplorers.default.url,Va.id+"",Va.blockExplorers.default.url;const yD=Xr("/earn/vaults")({validateSearch:Tc.Search,loaderDeps:({search:e})=>({chainId:e.chainId??CE}),loader:({context:e,deps:t})=>e.queryClient.ensureInfiniteQueryData(Mc.options({chainId:t.chainId})),component:ir(pD,"component")}),mD=()=>Nn(()=>import("./earn.vaults_.new-o-JN2vrj.js"),__vite__mapDeps([30,1,29,3,4,5,6,23,7]),import.meta.url),bD=Xr("/earn/vaults_/new")({validateSearch:Tc.Search,component:ir(mD,"component")}),gD=()=>Nn(()=>import("./earn.vaults_._vaultId.edit-oAvIOenh.js"),__vite__mapDeps([31,27,1,29,3,4,5,6,23,7]),import.meta.url),vD=Xr("/earn/vaults_/$vaultId/edit")({validateSearch:Tc.Search,loaderDeps:({search:e})=>({chainId:e.chainId??CE}),loader:({context:e,deps:t,params:n})=>e.queryClient.ensureQueryData(_c.options({chainId:t.chainId,vaultId:n.vaultId})),component:ir(gD,"component")}),wD=eD.update({id:"/verified-tokens",path:"/verified-tokens",getParentRoute:()=>or}),xD=iD.update({id:"/organizations",path:"/organizations",getParentRoute:()=>or}),SD=sD.update({id:"/early-access",path:"/early-access",getParentRoute:()=>or}),ED=cD.update({id:"/api-keys",path:"/api-keys",getParentRoute:()=>or}),AD=lD.update({id:"/",path:"/",getParentRoute:()=>or}),TD=hD.update({id:"/organizations_/$orgId",path:"/organizations/$orgId",getParentRoute:()=>or}),_D=yD.update({id:"/earn/vaults",path:"/earn/vaults",getParentRoute:()=>or}),MD=bD.update({id:"/earn/vaults_/new",path:"/earn/vaults/new",getParentRoute:()=>or}),zD=vD.update({id:"/earn/vaults_/$vaultId/edit",path:"/earn/vaults/$vaultId/edit",getParentRoute:()=>or}),RD={IndexRoute:AD,ApiKeysRoute:ED,EarlyAccessRoute:SD,OrganizationsRoute:xD,VerifiedTokensRoute:wD,EarnVaultsRoute:_D,OrganizationsOrgIdRoute:TD,EarnVaultsNewRoute:MD,EarnVaultsVaultIdEditRoute:zD},CD=or._addFileChildren(RD);function PD(){if(typeof document>"u")return"/";const e=document.querySelector("base");return e&&new URL(e.href).pathname.replace(/\\/$/,"")||"/"}function OD(){return hR({basepath:PD(),context:{queryClient:M3},defaultPreload:"intent",defaultPreloadStaleTime:0,routeTree:CD,scrollRestoration:!0})}async function ID(){const e=await OD();let t;if(O2){const n=await O2.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,t=n.serializationAdapters,e.options.defaultSsr=n.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(bz),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:".",serializationAdapters:t}),e.stores.matchesId.get().length||await vz(e),e}var BD=ID;async function $D(){const e=await BD();return window.$_TSR?.h(),e}var ey;function kD(){return ey||(ey=$D()),F.jsx(Ez,{promise:ey,children:e=>F.jsx(mR,{router:e})})}re.startTransition(()=>{a9.hydrateRoot(document,F.jsx(re.StrictMode,{children:F.jsx(kD,{})}))});export{jH as $,ob as A,ie as B,NH as C,Qr as D,kH as E,qd as F,mo as G,Fn as H,US as I,$H as J,K8 as K,Q8 as L,bL as M,IH as N,eD as O,Gx as P,WL as Q,b8 as R,xo as S,xm as T,hw as U,ro as V,aj as W,Ht as X,Ga as Y,Va as Z,pw as _,Fk as a,nd as a$,Mt as a0,iD as a1,Sm as a2,LH as a3,Pc as a4,Ac as a5,Aw as a6,Tw as a7,ea as a8,cD as a9,Iw as aA,FH as aB,HD as aC,KR as aD,DD as aE,UD as aF,C3 as aG,bD as aH,_c as aI,Ow as aJ,vD as aK,qH as aL,Dz as aM,$z as aN,jz as aO,ND as aP,CH as aQ,Wu as aR,hb as aS,Fi as aT,_H as aU,Nd as aV,pb as aW,TH as aX,AH as aY,Q3 as aZ,qt as a_,rE as aa,Ya as ab,_w as ac,Em as ad,DH as ae,HH as af,UH as ag,Cw as ah,Mw as ai,zw as aj,Rw as ak,hD as al,mw as am,yw as an,bw as ao,So as ap,gw as aq,vw as ar,ww as as,xw as at,Sw as au,Ew as av,hC as aw,yD as ax,CE as ay,Mc as az,g8 as b,WI as b0,iB as b1,EH as b2,N$ as b3,mb as b4,L$ as b5,Ki as b6,I5 as b7,Vi as b8,Po as b9,Du as ba,Vr as bb,lo as c,MH as d,Co as e,h8 as f,tt as g,Kr as h,v8 as i,F as j,l8 as k,w8 as l,By as m,S8 as n,X8 as o,vt as p,sr as q,re as r,Ui as s,Ji as t,Ao as u,PL as v,BH as w,PH as x,OH as y,pE as z};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/Input-3nKp-F7T.js': { content: 'import{j as a,c as m,r as f,V as S}from"./index-DetZ1d0r.js";function N(e){const{children:s,className:n,variant:r="stacked",...c}=e;return a.jsx(N.Context.Provider,{value:{variant:r},children:a.jsx("div",{className:m("grid gap-2",n),...c,children:s})})}(e=>{e.Context=f.createContext(void 0);function s(n){const{children:r,className:c,...o}=n;return a.jsx("div",{className:m("grid w-full min-w-0 auto-cols-fr grid-flow-col gap-2",c),...o,children:r})}e.Inline=s})(N||(N={}));function i(e){const s=f.useContext(N.Context),{className:n,disabled:r,error:c,label:o,prefix:p,size:y,suffix:x,variant:g,...h}=e,t=g??s?.variant??"default",b=f.useId(),u=h.id??(o?b:void 0),v=a.jsxs("div",{className:m(i.fieldClassName[t],x?i.fieldWithSuffixClassName[t]:void 0),children:[p&&a.jsx("div",{className:i.prefixClassName[t],children:p}),a.jsx("input",{...h,className:i.inputClassName[t],disabled:r,id:u}),x&&a.jsx("div",{className:i.suffixClassName[t],children:x})]});return a.jsxs("div",{className:i.rootClassName[t],children:[t==="default"&&o&&a.jsx("label",{className:"label-13 text-foreground-secondary",htmlFor:u,children:o}),a.jsx(S.Icon.Context.Provider,{value:i.iconButtonContextValue,children:a.jsxs("div",{className:m(i.className(t),n),"data-disabled":r?"":void 0,"data-error":c?"":void 0,children:[t==="stacked"&&o&&a.jsx("label",{className:i.stackedLabelClassName,htmlFor:u,children:o}),v]})}),typeof c=="string"&&a.jsx("p",{className:"label-13 text-negative",children:c})]})}(e=>{function s(r="default"){return e.baseClassName[r]}e.className=s,e.rootClassName={default:"flex min-w-0 flex-col gap-[8px]",stacked:"flex min-w-0 flex-col gap-[6px]"},e.iconButtonContextValue={variant:"surface"},e.baseClassName={default:"inline-flex h-[40px] w-full items-center gap-[10px] rounded-body border-[2px] border-transparent bg-secondary px-[12px] copy-14 text-foreground [&:not([data-error])]:hover:bg-secondary-hover focus-within:border-focus focus-within:bg-secondary-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[error]:border-negative data-[error]:focus-within:border-focus",stacked:"relative flex w-full flex-col gap-1 rounded-body border-[2px] border-transparent bg-secondary px-3 pt-1.5 pb-1.5 text-foreground [&:not([data-error])]:hover:bg-secondary-hover focus-within:border-focus focus-within:bg-secondary-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[error]:border-negative data-[error]:focus-within:border-focus"},e.fieldClassName={default:"contents",stacked:"flex min-w-0 items-center gap-2 copy-14 leading-tight"},e.fieldWithSuffixClassName={default:void 0,stacked:"pr-12"},e.inputClassName={default:"min-w-0 flex-1 bg-transparent outline-none placeholder:text-foreground-secondary/50 disabled:cursor-not-allowed",stacked:"min-w-0 flex-1 bg-transparent outline-none placeholder:text-foreground-secondary/50 disabled:cursor-not-allowed"},e.prefixClassName={default:"shrink-0 select-none border-r border-border pr-[10px] text-foreground-secondary",stacked:"shrink-0 select-none text-foreground-secondary"},e.suffixClassName={default:"shrink-0 select-none border-l border-border pl-[10px] text-foreground-secondary",stacked:"absolute inset-y-0 right-3 flex shrink-0 select-none items-center text-foreground-secondary"},e.stackedLabelClassName="font-mono text-[10px] leading-none uppercase tracking-[0.06em] text-foreground-secondary";function n(r){const{className:c,error:o,onChange:p,onMax:y,prefix:x,suffix:g,value:h,...t}=r,b=f.useId(),u=R(h),v=f.useRef(null),w=!!o,C=typeof o=="string"&&o?o:void 0,j=f.useRef(null),z=[t["aria-describedby"],C?b:void 0].filter(Boolean).join(" "),k=C?a.jsx("p",{className:"label-12 text-negative",id:b,children:C}):w||!y?null:a.jsx(S.Text,{onClick:l=>{l.stopPropagation(),y()},size:"small",type:"button",children:"Max"});f.useLayoutEffect(()=>{const l=v.current,d=j.current;!l||d===null||(j.current=null,l.setSelectionRange(d,d))});const B=a.jsxs("div",{className:"inline-flex min-w-0 max-w-full items-baseline justify-center gap-[4px]",children:[x&&a.jsx("div",{className:"shrink-0 heading-20 text-foreground-secondary",children:x}),a.jsxs("div",{className:"relative inline-block min-w-0 max-w-full",children:[u&&a.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 flex items-center justify-center whitespace-pre heading-20",children:Array.from(u).map((l,d)=>l===","?a.jsx("span",{className:"text-foreground-secondary",children:","},`comma-${d}`):a.jsx("span",{className:l==="."?"text-foreground-secondary":"text-foreground",children:l},`ch-${d}`))}),a.jsx("input",{...t,"aria-describedby":z||void 0,"aria-label":t["aria-label"]??"Amount","aria-invalid":w?!0:t["aria-invalid"],autoComplete:t.autoComplete??"off",className:m("relative min-w-0 max-w-full bg-transparent text-center heading-20 text-transparent outline-none field-sizing-content caret-[var(--text-color-foreground)] placeholder:text-foreground-secondary/50",c),inputMode:t.inputMode??"decimal",name:t.name??"value",onChange:l=>{const d=l.target.value,M=l.target.selectionStart??d.length,P=$(d,M),A=d.replace(/,/g,"");j.current=E(R(A),P),p(A)},placeholder:t.placeholder??"0.00",ref:v,spellCheck:t.spellCheck??!1,value:u})]}),g&&a.jsx("div",{className:"shrink-0 heading-20 text-foreground-secondary",children:g})]});return k?a.jsxs("div",{className:"inline-flex min-w-0 max-w-full flex-col items-center gap-[2px]",children:[B,k]}):B}e.Amount=n})(i||(i={}));function R(e){if(!e)return"";const[s,n]=e.split("."),r=s.replace(/\\B(?=(\\d{3})+(?!\\d))/g,",");return n!==void 0?`${r}.${n}`:r}function $(e,s){let n=0;for(let r=0;r{r.reset(),n.invalidate()},children:"Try again"})]})})}const w=[{description:"Allow the organization to set up Stripe as a billing method.",label:"Stripe",source:"stripe"},{description:"Allow the organization to set up a Tempo account as a billing method.",label:"Tempo",source:"tempo"}];function A(r){return e.jsxs(u,{children:[e.jsxs("div",{className:"p-4",children:[e.jsx("h3",{className:"text-label-14 text-foreground",children:"Enabled sources"}),e.jsx("p",{className:"mt-1 text-copy-13 text-foreground-secondary",children:"Disabling a source only blocks new setup. Existing billing connections continue to work."})]}),e.jsx("div",{className:"divide-y divide-border border-t border-border",children:w.map(n=>{const a=r.enabledSources.includes(n.source);return e.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-label-14 text-foreground",children:n.label}),e.jsx("span",{className:"text-label-12 text-foreground-secondary",children:a?"Enabled":"Disabled"})]}),e.jsx("p",{className:"mt-1 text-copy-13 text-foreground-secondary",children:n.description})]}),e.jsx(m,{"aria-label":`${n.label} billing source`,checked:a,className:"flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-border bg-secondary p-0.5 outline-none transition-colors hover:bg-secondary-hover focus-visible:border-focus data-[checked]:bg-invert disabled:cursor-not-allowed disabled:opacity-50",disabled:r.pending,onCheckedChange:o=>r.onChange({enabled:o,source:n.source}),children:e.jsx(x,{className:"block size-4 translate-x-0 rounded-full bg-foreground-secondary transition-transform data-[checked]:translate-x-4 data-[checked]:bg-on-invert"})})]},n.source)})}),r.error?e.jsx("p",{className:"border-t border-border p-4 text-copy-13 text-negative",role:"alert",children:r.error.message}):null]})}function P(r){const[n,a]=d.useState(r.policy.durationDays!==null),[o,l]=d.useState(r.policy.projectSpendLimit??"");return d.useEffect(()=>{a(r.policy.durationDays!==null),l(r.policy.projectSpendLimit??"")},[r.policy.durationDays,r.policy.projectSpendLimit]),e.jsx(u,{children:e.jsxs("form",{onSubmit:i=>(i.preventDefault(),n?o?r.onSave({enabled:!0,projectSpendLimit:o}):r.onSave({enabled:!0}):r.onSave({enabled:!1})),children:[e.jsxs("div",{className:"flex items-start justify-between gap-4 p-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:"text-label-14 text-foreground",children:"Sponsorship subsidy"}),e.jsx("p",{className:"mt-1 text-copy-13 text-foreground-secondary",children:"Waive sponsored transaction charges for each project\'s first 90 days."})]}),e.jsx(m,{"aria-label":"Sponsorship subsidy",checked:n,className:"flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-border bg-secondary p-0.5 outline-none transition-colors hover:bg-secondary-hover focus-visible:border-focus data-[checked]:bg-invert disabled:cursor-not-allowed disabled:opacity-50",disabled:r.pending,onCheckedChange:a,children:e.jsx(x,{className:"block size-4 translate-x-0 rounded-full bg-foreground-secondary transition-transform data-[checked]:translate-x-4 data-[checked]:bg-on-invert"})})]}),n?e.jsxs("div",{className:"grid gap-4 border-t border-border p-4 md:grid-cols-2",children:[e.jsxs("label",{className:"flex min-w-0 flex-col gap-2",children:[e.jsx("span",{className:"text-label-13 text-foreground-secondary",children:"Duration per project"}),e.jsx("input",{className:"h-10 rounded-body border-2 border-transparent bg-secondary px-3 text-copy-14 text-foreground-secondary",disabled:!0,value:"90 days"}),e.jsx("span",{className:"text-label-12 text-foreground-secondary",children:"Starts with the project\'s first mainnet sponsorship."})]}),e.jsxs("label",{className:"flex min-w-0 flex-col gap-2",children:[e.jsx("span",{className:"text-label-13 text-foreground-secondary",children:"Per-project spend cap (optional)"}),e.jsxs("span",{className:"flex h-10 items-center rounded-body border-2 border-transparent bg-secondary px-3 focus-within:border-focus",children:[e.jsx("span",{className:"text-copy-14 text-foreground-secondary",children:"$"}),e.jsx("input",{"aria-label":"Per-project spend cap",className:"min-w-0 flex-1 bg-transparent px-2 text-copy-14 text-foreground outline-none",disabled:r.pending,inputMode:"decimal",min:"0",onChange:i=>l(i.target.value),placeholder:"No cap",step:"0.000001",type:"number",value:o})]}),e.jsx("span",{className:"text-label-12 text-foreground-secondary",children:"Leave blank for no spend cap."})]})]}):e.jsx("p",{className:"border-t border-border p-4 text-copy-13 text-foreground-secondary",children:"New sponsorships for this organization are billed normally."}),e.jsxs("div",{className:"flex items-center justify-end gap-3 border-t border-border p-4",children:[r.error?e.jsx("p",{className:"mr-auto text-copy-13 text-negative",role:"alert",children:r.error.message}):null,e.jsx(c,{loading:r.pending,type:"submit",children:"Save policy"})]})]})})}var p;(r=>{function n(t,s){return`${t.toLocaleString()} ${s}${t===1?"":"s"}`}r.count=n;function a(t){return new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"medium"}).format(t)}r.dateTime=a;function o(t,s){return t==null?"—":new Intl.NumberFormat("en",{currency:s?.toUpperCase()??"USD",style:"currency"}).format(Number(t))}r.money=o;function l(t){const s=t.filter(f=>f>0);if(s.length!==0)return Math.min(...s)}r.oldestUpdatedAt=l;function i(t,s){return s===0?"0%":new Intl.NumberFormat("en",{maximumFractionDigits:1,style:"percent"}).format(t/s)}r.percent=i;function b(t){return t==="month"?"Current month":t}r.period=b;function h(t){return new Intl.DateTimeFormat("en",{timeStyle:"medium"}).format(t)}r.time=h})(p||(p={}));export{A as BillingSourcesCard,P as SponsorshipSubsidyCard,T as errorComponent};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/organizations_._orgId-rZ8CDnaB.js': { content: 'import{j as e,r as I,V as b,al as D,P as J,am as X,an as Y,ao as Z,ap as ee,aq as re,ar as se,u as C,as as ae,at as te,au as ne,av as le,a4 as q,a3 as M}from"./index-DetZ1d0r.js";import{u as ie}from"./useSuspenseQuery-BRwpEaa4.js";import{u as U,R as oe}from"./refresh-cw-DrqSvGhU.js";import{R as j}from"./Rows-Cud9pG1r.js";import{S as de}from"./Select-DnF193sj.js";import{C as m,P as ce,N as y}from"./Page-CXChQl7o.js";import{m as A}from"./format-Dy1GQ0to.js";import{S as O,a as F,A as xe}from"./SwitchThumb-Cg2L3acw.js";import"./useValueChanged-CTPdEny_.js";import"./useScrollLock-DC_n164h.js";import"./FormContext-BdJHfunf.js";import"./useAriaLabelledBy-uECG1FTb.js";function Ie(){const{orgId:r}=D.useParams(),{period:s,query:a}=D.useSearch(),d=J({from:D.fullPath}),g=s??"7d",u=X.useMutation(r),N=Y.useMutation(r),P=Z.useMutation(r),l=ie(ee.options(r)),n=l.data,o=U(re.options(r)),c=U(se.options(r)),v=C(ae.options(r)),f=C(te.options(r)),x=C(ne.options(r,g)),S=C(le.options(r)),Q=o.data?.pages.flatMap(t=>t.data)??[],W=c.data?.pages.flatMap(t=>t.data)??[],E=be[g].label,k=[v,o,l,c,f,x,S],p=i.oldestUpdatedAt(k.map(t=>t.dataUpdatedAt)),$=k.every(t=>t.dataUpdatedAt>0),K=k.some(t=>t.error),z=k.some(t=>t.isFetching),V=u.error??N.error,_=u.isPending||N.isPending;function G(){Promise.all([v.refetch(),o.refetch(),l.refetch(),c.refetch(),f.refetch(),x.refetch(),S.refetch()])}function H(t){t.enabled?(u.reset(),N.mutate(t.source)):(N.reset(),u.mutate(t.source))}return e.jsxs(ce,{title:n.name,description:n.id,action:e.jsxs(b,{render:e.jsx(q,{search:M({query:a}),to:"/organizations"}),children:[e.jsx(xe,{className:"size-4"}),"Organizations"]}),children:[e.jsx(m,{className:"grid grid-cols-2 gap-px bg-border md:grid-cols-3",children:e.jsxs("dl",{className:"contents",children:[e.jsx(w,{label:"Members",children:n.memberCount}),e.jsx(w,{label:"Projects",children:n.projectCount}),e.jsx(w,{label:"Owner user",children:n.userId??"None"}),e.jsx(w,{label:"Created by",children:n.createdBy??"Unknown"}),e.jsx(w,{label:"Created",children:A(n.createdAt)}),e.jsx(w,{label:"Updated",children:A(n.updatedAt)})]})}),e.jsxs("section",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsx("h2",{className:"text-heading-18 text-foreground",children:"Operations"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{"aria-live":"polite",className:"text-label-12 text-foreground-secondary",children:z&&!$?"Updating…":K?p?e.jsxs("time",{dateTime:new Date(p).toISOString(),title:i.dateTime(p),children:["Partially updated ",i.time(p)]}):"Update unavailable":p&&$?e.jsxs("time",{dateTime:new Date(p).toISOString(),title:i.dateTime(p),children:["Updated ",i.time(p)]}):"Updating…"}),e.jsxs(b,{loading:z,onClick:G,children:[e.jsx(oe,{className:"size-4"}),"Refresh"]})]})]}),e.jsxs(m,{className:"grid grid-cols-2 gap-px bg-border lg:grid-cols-4",children:[e.jsx(L,{error:v.error,label:"Active API keys",loading:v.isPending,value:v.data?.data.length.toLocaleString()}),e.jsx(L,{error:x.error,label:`API requests, ${E}`,loading:x.isPending,value:x.data?.totals.requests.toLocaleString()}),e.jsx(L,{error:x.error,label:`Error rate, ${E}`,loading:x.isPending,value:x.data?i.percent(x.data.totals.errors,x.data.totals.requests):void 0}),e.jsx(L,{error:S.error,label:"Webhook failures, 7 days",loading:S.isPending,value:S.data?.failureCount.toLocaleString()})]})]}),e.jsxs("div",{className:"grid items-start gap-6 lg:grid-cols-2",children:[e.jsx(ue,{onPeriodChange:t=>{d({params:{orgId:r},replace:!0,search:{period:t,...a?{query:a}:{}},to:"/organizations/$orgId"})},period:g,query:x}),e.jsx(me,{orgId:r,query:v})]}),e.jsxs("section",{className:"flex flex-col gap-3",children:[e.jsx("h2",{className:"text-heading-18 text-foreground",children:"Billing"}),e.jsx(pe,{enabledSources:n.billing.enabledSources,error:V,onChange:H,pending:_}),e.jsx(fe,{error:P.error,onSave:t=>P.mutate(t),pending:P.isPending,policy:n.sponsorshipSubsidy}),e.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[e.jsx(T,{environment:"Production",record:n.billing.production,sponsorship:f.data?.production}),e.jsx(T,{environment:"Sandbox",record:n.billing.sandbox,sponsorship:f.data?.sandbox})]}),f.error?e.jsx(R,{error:f.error,onRetry:()=>f.refetch()}):null]}),e.jsx(he,{query:S}),e.jsxs("div",{className:"grid items-start gap-6 lg:grid-cols-2",children:[e.jsx(B,{empty:"No members.",error:o.error,initialLoading:o.isPending,loading:o.isFetchingNextPage,more:o.hasNextPage,onMore:()=>o.fetchNextPage(),onRetry:()=>o.isFetchNextPageError?o.fetchNextPage():o.refetch(),title:"Members",children:Q.map(t=>e.jsxs(j.Row,{className:"min-h-[60px] py-3",style:{height:"auto"},children:[e.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[e.jsx(q,{className:"truncate text-label-14 text-foreground hover:underline",search:M({query:t.userId}),to:"/organizations",children:t.email??t.userId}),e.jsx("span",{className:"truncate font-mono text-label-12 text-foreground-secondary",children:t.email?t.userId:t.address??"No email or address"})]}),e.jsx("span",{className:"shrink-0 text-label-12 capitalize text-foreground-secondary",children:t.role})]},t.userId))}),e.jsx(B,{empty:"No projects.",error:c.error,initialLoading:c.isPending,loading:c.isFetchingNextPage,more:c.hasNextPage,onMore:()=>c.fetchNextPage(),onRetry:()=>c.isFetchNextPageError?c.fetchNextPage():c.refetch(),title:"Projects",children:W.map(t=>e.jsxs(j.Row,{className:"min-h-[60px] py-3",style:{height:"auto"},children:[e.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[e.jsx(q,{className:"truncate text-label-14 text-foreground hover:underline",search:{orgId:r,projectId:t.id},to:"/api-keys",children:t.name}),e.jsx("span",{className:"truncate font-mono text-label-12 text-foreground-secondary",children:t.id})]}),e.jsx("span",{className:"shrink-0 text-label-12 text-foreground-secondary",children:A(t.createdAt)})]},t.id))})]})]})}function w(r){return e.jsxs("div",{className:"flex min-h-24 min-w-0 flex-col justify-between gap-3 bg-surface p-4",children:[e.jsx("dt",{className:"text-label-12 text-foreground-secondary",children:r.label}),e.jsx("dd",{className:"truncate text-label-14 text-foreground",children:r.children})]})}function L(r){return e.jsxs("div",{className:"flex min-h-28 flex-col justify-between gap-3 bg-surface p-4",children:[e.jsx("span",{className:"text-label-12 text-foreground-secondary",children:r.label}),e.jsx("span",{className:r.error?"text-label-13 text-negative":"text-heading-24 text-foreground",children:r.error?"Unavailable":r.loading?"—":r.value??"0"})]})}function ue(r){const s=r.query.data;return e.jsxs("section",{className:"flex min-w-0 flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"text-heading-18 text-foreground",children:"API usage"}),e.jsx(de,{"aria-label":"API usage window",items:je,onChange:a=>r.onPeriodChange(a),value:r.period})]}),e.jsx(m,{children:r.query.isPending?e.jsx(y,{children:"Loading API usage…"}):r.query.error?e.jsx(R,{error:r.query.error,onRetry:()=>r.query.refetch()}):s?e.jsxs("div",{className:"flex flex-col gap-5 p-4",children:[e.jsxs("dl",{className:"grid grid-cols-3 gap-4",children:[e.jsx(h,{label:"Requests",children:s.totals.requests.toLocaleString()}),e.jsx(h,{label:"Errors",children:s.totals.errors.toLocaleString()}),e.jsxs(h,{label:"Average latency",children:[s.totals.averageDurationMs," ms"]})]}),e.jsxs("div",{className:"border-t border-border pt-4",children:[e.jsx("p",{className:"mb-2 text-label-12 text-foreground-secondary",children:"Errors by code"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:s.byError.length?s.byError.map(a=>e.jsxs("span",{className:"border border-border px-2 py-1 text-label-12 text-foreground",children:[a.code,": ",a.requests.toLocaleString()]},a.code)):e.jsx("span",{className:"text-label-13 text-foreground-secondary",children:"No API errors."})})]}),e.jsxs("div",{className:"border-t border-border pt-4",children:[e.jsx("p",{className:"mb-2 text-label-12 text-foreground-secondary",children:"Busiest routes"}),e.jsx("div",{className:"flex flex-col gap-2",children:s.byRoute.slice(0,5).map(a=>e.jsxs("div",{className:"flex items-center justify-between gap-3 text-label-13",children:[e.jsx("code",{className:"truncate text-foreground",children:a.route}),e.jsxs("span",{className:"shrink-0 text-foreground-secondary",children:[i.count(a.requests,"request"),","," ",i.count(a.errors,"error")]})]},a.route))})]})]}):null})]})}function me(r){const s=r.query.data?.data??[];return e.jsxs("section",{className:"flex min-w-0 flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"text-heading-18 text-foreground",children:"Active API keys"}),e.jsx(q,{className:"text-label-13 text-foreground-secondary hover:text-foreground",search:{orgId:r.orgId},to:"/api-keys",children:"View all"})]}),e.jsx(m,{children:r.query.isPending?e.jsx(y,{children:"Loading API keys…"}):r.query.error?e.jsx(R,{error:r.query.error,onRetry:()=>r.query.refetch()}):s.length===0?e.jsx(y,{children:"No API keys."}):e.jsx(j,{variant:"surface",children:s.slice(0,5).map(a=>e.jsx(j.Row,{className:"min-h-[64px] py-3",style:{height:"auto"},children:e.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[e.jsx("span",{className:"truncate text-label-14 text-foreground",children:a.name??a.id}),e.jsxs("span",{className:"truncate text-label-12 text-foreground-secondary",children:[a.environment," · ",a.scopes.join(", ")]}),e.jsxs("span",{className:"truncate text-label-12 text-foreground-secondary",children:["Created by ",a.createdBy??"unknown"]})]})},a.id))})})]})}function he(r){const s=r.query.data;return e.jsxs("section",{className:"flex min-w-0 flex-col gap-3",children:[e.jsxs("div",{className:"flex items-end justify-between gap-3",children:[e.jsx("h2",{className:"text-heading-18 text-foreground",children:"Webhooks"}),s?e.jsxs("span",{className:"text-label-12 text-foreground-secondary",children:[i.count(s.subscriptions.length,"subscription")," ·"," ",i.count(s.failureCount,"failure")," in 7 days"]}):null]}),e.jsx(m,{children:r.query.isPending?e.jsx(y,{children:"Loading webhook health…"}):r.query.error?e.jsx(R,{error:r.query.error,onRetry:()=>r.query.refetch()}):!s||s.subscriptions.length===0?e.jsx(y,{children:"No webhooks."}):e.jsx(j,{variant:"surface",children:s.subscriptions.map(a=>e.jsxs(j.Row,{className:"min-h-[64px] py-3",style:{height:"auto"},children:[e.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[e.jsx("span",{className:"truncate text-label-14 text-foreground",children:a.eventType}),e.jsx("span",{className:"truncate font-mono text-label-12 text-foreground-secondary",children:a.destination})]}),e.jsxs("span",{className:"flex shrink-0 flex-col items-end gap-1 text-label-12 text-foreground-secondary",children:[e.jsx("span",{className:"capitalize",children:a.status}),e.jsxs("span",{className:a.failureCount?"text-negative":void 0,children:[a.failureCount," failures"]})]})]},a.id))})}),s?.failures.length?e.jsxs(m,{className:"p-4",children:[e.jsx("p",{className:"mb-3 text-label-12 text-foreground-secondary",children:"Latest delivery failures"}),e.jsx("div",{className:"flex flex-col gap-3",children:s.failures.slice(0,5).map(a=>e.jsxs("div",{className:"flex items-start justify-between gap-4 text-label-13",children:[e.jsxs("span",{className:"min-w-0 truncate text-negative",children:[a.responseStatus??"Network"," · ",a.error??"Delivery failed"]}),e.jsx("span",{className:"shrink-0 text-foreground-secondary",children:A(a.createdAt)})]},a.id))})]}):null]})}function R(r){return e.jsxs("div",{className:"flex items-center gap-3 p-4 text-copy-14 text-negative",role:"alert",children:[e.jsx("span",{children:r.error.message}),e.jsx(b,{onClick:r.onRetry,children:"Retry"})]})}const ge=[{description:"Allow the organization to set up Stripe as a billing method.",label:"Stripe",source:"stripe"},{description:"Allow the organization to set up a Tempo account as a billing method.",label:"Tempo",source:"tempo"}];function pe(r){return e.jsxs(m,{children:[e.jsxs("div",{className:"p-4",children:[e.jsx("h3",{className:"text-label-14 text-foreground",children:"Enabled sources"}),e.jsx("p",{className:"mt-1 text-copy-13 text-foreground-secondary",children:"Disabling a source only blocks new setup. Existing billing connections continue to work."})]}),e.jsx("div",{className:"divide-y divide-border border-t border-border",children:ge.map(s=>{const a=r.enabledSources.includes(s.source);return e.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-label-14 text-foreground",children:s.label}),e.jsx("span",{className:"text-label-12 text-foreground-secondary",children:a?"Enabled":"Disabled"})]}),e.jsx("p",{className:"mt-1 text-copy-13 text-foreground-secondary",children:s.description})]}),e.jsx(O,{"aria-label":`${s.label} billing source`,checked:a,className:"flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-border bg-secondary p-0.5 outline-none transition-colors hover:bg-secondary-hover focus-visible:border-focus data-[checked]:bg-invert disabled:cursor-not-allowed disabled:opacity-50",disabled:r.pending,onCheckedChange:d=>r.onChange({enabled:d,source:s.source}),children:e.jsx(F,{className:"block size-4 translate-x-0 rounded-full bg-foreground-secondary transition-transform data-[checked]:translate-x-4 data-[checked]:bg-on-invert"})})]},s.source)})}),r.error?e.jsx("p",{className:"border-t border-border p-4 text-copy-13 text-negative",role:"alert",children:r.error.message}):null]})}function fe(r){const[s,a]=I.useState(r.policy.durationDays!==null),[d,g]=I.useState(r.policy.projectSpendLimit??"");return I.useEffect(()=>{a(r.policy.durationDays!==null),g(r.policy.projectSpendLimit??"")},[r.policy.durationDays,r.policy.projectSpendLimit]),e.jsx(m,{children:e.jsxs("form",{onSubmit:u=>(u.preventDefault(),s?d?r.onSave({enabled:!0,projectSpendLimit:d}):r.onSave({enabled:!0}):r.onSave({enabled:!1})),children:[e.jsxs("div",{className:"flex items-start justify-between gap-4 p-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:"text-label-14 text-foreground",children:"Sponsorship subsidy"}),e.jsx("p",{className:"mt-1 text-copy-13 text-foreground-secondary",children:"Waive sponsored transaction charges for each project\'s first 90 days."})]}),e.jsx(O,{"aria-label":"Sponsorship subsidy",checked:s,className:"flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-border bg-secondary p-0.5 outline-none transition-colors hover:bg-secondary-hover focus-visible:border-focus data-[checked]:bg-invert disabled:cursor-not-allowed disabled:opacity-50",disabled:r.pending,onCheckedChange:a,children:e.jsx(F,{className:"block size-4 translate-x-0 rounded-full bg-foreground-secondary transition-transform data-[checked]:translate-x-4 data-[checked]:bg-on-invert"})})]}),s?e.jsxs("div",{className:"grid gap-4 border-t border-border p-4 md:grid-cols-2",children:[e.jsxs("label",{className:"flex min-w-0 flex-col gap-2",children:[e.jsx("span",{className:"text-label-13 text-foreground-secondary",children:"Duration per project"}),e.jsx("input",{className:"h-10 rounded-body border-2 border-transparent bg-secondary px-3 text-copy-14 text-foreground-secondary",disabled:!0,value:"90 days"}),e.jsx("span",{className:"text-label-12 text-foreground-secondary",children:"Starts with the project\'s first mainnet sponsorship."})]}),e.jsxs("label",{className:"flex min-w-0 flex-col gap-2",children:[e.jsx("span",{className:"text-label-13 text-foreground-secondary",children:"Per-project spend cap (optional)"}),e.jsxs("span",{className:"flex h-10 items-center rounded-body border-2 border-transparent bg-secondary px-3 focus-within:border-focus",children:[e.jsx("span",{className:"text-copy-14 text-foreground-secondary",children:"$"}),e.jsx("input",{"aria-label":"Per-project spend cap",className:"min-w-0 flex-1 bg-transparent px-2 text-copy-14 text-foreground outline-none",disabled:r.pending,inputMode:"decimal",min:"0",onChange:u=>g(u.target.value),placeholder:"No cap",step:"0.000001",type:"number",value:d})]}),e.jsx("span",{className:"text-label-12 text-foreground-secondary",children:"Leave blank for no spend cap."})]})]}):e.jsx("p",{className:"border-t border-border p-4 text-copy-13 text-foreground-secondary",children:"New sponsorships for this organization are billed normally."}),e.jsxs("div",{className:"flex items-center justify-end gap-3 border-t border-border p-4",children:[r.error?e.jsx("p",{className:"mr-auto text-copy-13 text-negative",role:"alert",children:r.error.message}):null,e.jsx(b,{loading:r.pending,type:"submit",children:"Save policy"})]})]})})}function T(r){const{settings:s,source:a}=r.record,d=s?.spendLimit&&r.sponsorship?Math.max(Number(s.spendLimit)-Number(r.sponsorship.committedSpend),0).toString():void 0;return e.jsxs(m,{className:"flex flex-col gap-5 p-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("h3",{className:"text-label-14 text-foreground",children:r.environment}),e.jsx("span",{className:"text-label-12 capitalize text-foreground-secondary",children:a?.status??"No billing source"})]}),e.jsxs("dl",{className:"grid grid-cols-2 gap-4",children:[e.jsx(h,{label:"Stripe customer",children:a?.stripeCustomerId??"—"}),e.jsx(h,{label:"Spend period",children:r.sponsorship?i.period(r.sponsorship.period):"—"}),e.jsx(h,{label:"Spend limit",children:i.money(s?.spendLimit,s?.currency)}),e.jsx(h,{label:"Committed spend",children:r.sponsorship?i.money(r.sponsorship.committedSpend,r.sponsorship.currency):"—"}),e.jsx(h,{label:"Limit remaining",children:i.money(d,s?.currency)}),e.jsx(h,{label:"Transaction limit",children:i.money(s?.txFeeLimit,s?.currency)})]})]})}function h(r){return e.jsxs("div",{className:"min-w-0",children:[e.jsx("dt",{className:"text-label-12 text-foreground-secondary",children:r.label}),e.jsx("dd",{className:"mt-1 truncate text-label-13 text-foreground",children:r.children})]})}function B(r){const s=Array.isArray(r.children)&&r.children.length===0;return e.jsxs("section",{className:"flex min-w-0 flex-col gap-3",children:[e.jsx("h2",{className:"text-heading-18 text-foreground",children:r.title}),e.jsx(m,{children:r.initialLoading?e.jsxs(y,{children:["Loading ",r.title.toLowerCase(),"…"]}):r.error&&s?e.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-12 text-center",role:"alert",children:[e.jsx("p",{className:"text-copy-14 text-negative",children:r.error.message}),e.jsx(b,{onClick:r.onRetry,children:"Retry"})]}):s?e.jsx(y,{children:r.empty}):e.jsx(j,{variant:"surface",children:r.children})}),r.error&&!s?e.jsxs("div",{className:"flex items-center gap-3 text-copy-14 text-negative",role:"alert",children:[e.jsx("span",{children:r.error.message}),e.jsx(b,{onClick:r.onRetry,children:"Retry"})]}):r.more?e.jsx(b,{className:"self-start",loading:r.loading,onClick:r.onMore,children:"Load more"}):null]})}var i;(r=>{function s(l,n){return`${l.toLocaleString()} ${n}${l===1?"":"s"}`}r.count=s;function a(l){return new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"medium"}).format(l)}r.dateTime=a;function d(l,n){return l==null?"—":new Intl.NumberFormat("en",{currency:n?.toUpperCase()??"USD",style:"currency"}).format(Number(l))}r.money=d;function g(l){const n=l.filter(o=>o>0);if(n.length!==0)return Math.min(...n)}r.oldestUpdatedAt=g;function u(l,n){return n===0?"0%":new Intl.NumberFormat("en",{maximumFractionDigits:1,style:"percent"}).format(l/n)}r.percent=u;function N(l){return l==="month"?"Current month":l}r.period=N;function P(l){return new Intl.DateTimeFormat("en",{timeStyle:"medium"}).format(l)}r.time=P})(i||(i={}));const be={"24h":{label:"24 hours"},"30d":{label:"30 days"},"7d":{label:"7 days"}},je=[{label:"24 hours",value:"24h"},{label:"7 days",value:"7d"},{label:"30 days",value:"30d"}];export{pe as BillingSourcesCard,fe as SponsorshipSubsidyCard,Ie as component};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/organizations-BJNHGVKM.js': { content: 'import{a1 as m,P as f,r as d,a2 as g,j as e,V as i,a3 as x,a4 as j}from"./index-DetZ1d0r.js";import{u as N}from"./useSuspenseInfiniteQuery-BqhMYNDJ.js";import{I as b}from"./Input-3nKp-F7T.js";import{R as h,C as y}from"./Rows-Cud9pG1r.js";import{P as k,C as v,N as C}from"./Page-CXChQl7o.js";import{m as P}from"./format-Dy1GQ0to.js";import{S as R}from"./search-eQU6ap2m.js";function D(){const{query:s}=m.useLoaderDeps(),n=f({from:m.fullPath}),[r,l]=d.useState(s??""),t=N(g.options({query:s})),c=t.data.pages.flatMap(a=>a.data),o=r.trim().length>0&&r.trim().length<3;return d.useEffect(()=>l(s??""),[s]),e.jsxs(k,{title:"Organizations",description:"Look up organizations by id, name, or member email",children:[e.jsxs("form",{className:"flex gap-2",onSubmit:a=>{a.preventDefault();const p=r.trim();o||n({search:x({query:p}),to:"/organizations"})},children:[e.jsx("div",{className:"min-w-0 flex-1",children:e.jsx(b,{"aria-label":"Search organizations",error:o?"Enter at least 3 characters.":!1,onChange:a=>l(a.target.value),placeholder:"Organization id, user id, name, or member email",value:r})}),e.jsxs(i,{disabled:o,type:"submit",children:[e.jsx(R,{className:"size-4"}),"Search"]})]}),e.jsx(v,{children:c.length===0?e.jsx(C,{children:s?`No organizations match “${s}”.`:"No organizations yet."}):e.jsx(h,{variant:"surface",children:c.map(a=>e.jsxs(h.Row,{className:"min-h-[64px] py-3",render:e.jsx(j,{params:{orgId:a.id},search:x({query:s}),to:"/organizations/$orgId"}),style:{height:"auto"},children:[e.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[e.jsx("span",{className:"truncate text-label-14 text-foreground",children:a.name}),e.jsx("span",{className:"truncate font-mono text-label-12 text-foreground-secondary",children:a.id})]}),e.jsxs("span",{className:"hidden shrink-0 text-right sm:block",children:[e.jsx("span",{className:"block text-label-13 text-foreground",children:u(a.memberCount,"member")}),e.jsx("span",{className:"block text-label-12 text-foreground-secondary",children:u(a.projectCount,"project")})]}),e.jsx("span",{className:"hidden w-28 shrink-0 text-right text-label-12 text-foreground-secondary md:block",children:P(a.createdAt)}),e.jsx(y,{className:"size-4 shrink-0 text-foreground-secondary"})]},a.id))})}),t.isFetchNextPageError?e.jsxs("div",{className:"flex items-center justify-center gap-3 text-copy-14 text-negative",role:"alert",children:[e.jsx("span",{children:t.error?.message??"Failed to load more organizations."}),e.jsx(i,{onClick:()=>t.fetchNextPage(),children:"Retry"})]}):t.hasNextPage?e.jsx(i,{className:"self-center",loading:t.isFetchingNextPage,onClick:()=>t.fetchNextPage(),children:"Load more"}):null]})}function u(s,n){return`${s} ${n}${s===1?"":"s"}`}export{D as component};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/organizations-DFRZ-wln.js': { content: 'import{a0 as o,j as e,V as a}from"./index-DetZ1d0r.js";import{P as s,C as i}from"./Page-CXChQl7o.js";function m(r){const t=o();return e.jsx(s,{title:"Organizations",description:"Look up organizations by id, name, or member email",children:e.jsxs(i,{className:"flex flex-col items-center gap-4 px-6 py-12 text-center",children:[e.jsx("p",{className:"text-copy-14 text-negative",children:r.error.message}),e.jsx(a,{onClick:()=>{r.reset(),t.invalidate()},children:"Try again"})]})})}export{m as errorComponent};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/Page-CXChQl7o.js': { content: 'import{j as s,aQ as i,c}from"./index-DetZ1d0r.js";function a(e){return s.jsxs("section",{className:"flex flex-col gap-6",children:[s.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between md:gap-4",children:[s.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-4",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("h1",{className:"text-heading-24 text-foreground",children:e.title}),e.description?s.jsx("p",{className:"mt-1 text-copy-15 text-foreground-secondary",children:e.description}):null]}),s.jsx("div",{className:"shrink-0 md:hidden",children:s.jsx(i,{})})]}),e.action?s.jsx("div",{className:"flex items-center gap-2 max-sm:w-full [&>*]:max-sm:flex-1",children:e.action}):null]}),e.children]})}function n(e){return s.jsx("div",{className:c("border border-border bg-surface",e.className),children:e.children})}function t(e){return s.jsx("div",{className:"flex items-center justify-center px-6 py-12 text-copy-14 text-foreground-secondary",children:e.children})}export{n as C,t as N,a as P};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/pencil-BiAyQW3i.js': { content: 'import{a8 as a}from"./index-DetZ1d0r.js";const e=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],c=a("pencil",e);export{c as P};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/Pilat-Demi-CADSbPAt.woff2': { content: 'd09GMgABAAAAAKaAABEAAAACT8QAAKYaAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoJyG4HGBBzLAAZgAJZcCIEuCZwMEQgKhflYhZ0jC4k+AAE2AiQDkngEIAWTNweoBQyBYVulG3IFs8N8VOFserOq/xzXbeLzBDpu40nozfoA7JVXRyfYtmyoebeDtxyuX2D2////C5JFHNrMktnbuwOohqhU80+yBIcnpcildtQPGR0CJcqINGDIGfLJe8XsWLBOXT9/Oer2/YTIZzeH2ZgR3ryaURuPmKBdm5wnr9jmSseUc0a3vkopZeeI2NxIKZ8IOoZTKwWU+ol/khWLW766ecnwHm6eYo+MkmJ+0rvHLtHaG52chuXCGTQiwWmjCh+OxQNBGYU9mULHv/SqL1RUiubFlq3GG26I/yDIcBKLJXJ2+6edDy3qrDc9ubNu7lhDttz2Fq8ml6lH2fFPjaWGYnXkN5TaWe/Pbjj8s3P20Z0Vv7j5D7ls7Q7XgtPpvEf0wpRQLR1uyXb7sOdWoukpPe5/8/0obwHGuO49CCIZrJU0M7I5iMhFNvbjl4QEcVYj2XHC7R48EsB2iOZ2d/9UxBj0BkNHpkrlsAJMIiKsKgb4ufXK3ltQYwzpsY2xYsmCWCaDFbDBBmMFjHBUCYKHCgdnNSglxnmnfXDXRv/Ta6/xvFIv9PrfOfBu619F/l1XeN3coX32VWAXenPi6BGLpAYbsAKwgo3M7AFvdJXR5f/hT9g976+VYgYjSamikIM4//nLJ0+59c2fLS22QgEOUCjWsDSVKE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SN6i/aqoS3993yriuwg6p4luOeMJ3Xm+hfhQZRx/+PTlfPfr59nzI2vEXgD60NNhTLBUisNIiZiM2WYdPhizcgMbdsuenWktNsSi1GmdwX6wOZxTB/9fpgl96VXSh6D+rS++B/3Jz0De7MEGE+2nj1z3CT7JLq9P/Yv1C8qK+KJv9ukuijY9Jcfib5wnvxULw0K30C40C3WAqnC8Ek2R/SLf/BUi5N/20Gee9d/N/r2ir3ywNjr3UwOOn0D+sr5/ePrIz41C0CnnxPs7kfz5D5nrnXWKi0cbnpqHcie/0MwtVfc9BJ/8XpNcjMqfAQ==', contentType: 'font/woff2', encoding: 'base64', }, 'assets/refresh-cw-DrqSvGhU.js': { content: 'import{I as r}from"./Rows-Cud9pG1r.js";import{aw as t,a8 as a}from"./index-DetZ1d0r.js";function u(e,n){return t(e,r)}const s=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],c=a("refresh-cw",s);export{c as R,u};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/Rows-Cud9pG1r.js': { content: 'import{aD as A,aE as B,aF as R,a8 as O,j as e,c as f,r as h,aG as $}from"./index-DetZ1d0r.js";var Z=class extends A{constructor(r,a){super(r,a)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(r){r._type="infinite",super.setOptions(r)}getOptimisticResult(r){return r._type="infinite",super.getOptimisticResult(r)}fetchNextPage(r){return this.fetch({...r,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(r){return this.fetch({...r,meta:{fetchMore:{direction:"backward"}}})}createResult(r,a){const{state:t}=r,i=super.createResult(r,a),{isFetching:n,isRefetching:c,isError:s,isRefetchError:d}=i,l=t.fetchMeta?.fetchMore?.direction,p=s&&l==="forward",o=n&&l==="forward",N=s&&l==="backward",g=n&&l==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:R(a,t.data),hasPreviousPage:B(a,t.data),isFetchNextPageError:p,isFetchingNextPage:o,isFetchPreviousPageError:N,isFetchingPreviousPage:g,isRefetchError:d&&!p&&!N,isRefetching:c&&!o&&!g}}};const H=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],J=O("chevron-down",H);const K=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],T=O("chevron-right",K),y=h.createContext(void 0);function x(r){const{children:a,className:t,dividers:i,variant:n="pane",...c}=r,s=i??x.defaultDividers[n];return e.jsx(y.Provider,{value:{dividers:s,variant:n},children:e.jsx("div",{className:f(x.className[n],x.dividersClassName[n][s],t),...c,children:a})})}(r=>{function a(s){const{children:d,className:l,...p}=s,o=h.useContext(y)?.variant??"pane";return e.jsx("div",{className:f(a.className[o],l),...p,children:d})}r.Group=a,(s=>{s.className={pane:"relative [--rows-pane-content-padding-left:20px] [--rows-row-padding-left:20px] before:pointer-events-none before:absolute before:inset-y-0 before:left-[10px] before:z-10 before:w-[2px] before:bg-border [&_[data-rows-divider]]:left-[var(--rows-group-divider-left)]",surface:"relative [--rows-pane-content-padding-left:48px] [--rows-row-padding-left:48px] before:pointer-events-none before:absolute before:inset-y-0 before:left-[28px] before:z-10 before:w-[2px] before:bg-border [&_[data-rows-divider]]:left-[var(--rows-group-divider-left)]"}})(a=r.Group||(r.Group={}));function t(s){const{children:d,className:l,...p}=s,o=h.useContext(y)?.variant??"pane";return e.jsx("div",{className:f(t.className[o],l),...p,children:d})}r.Panel=t,(s=>{s.className={pane:"overflow-hidden border-t border-border-pane bg-pane",surface:"overflow-hidden border-t border-border bg-pane"}})(t=r.Panel||(r.Panel={})),r.className={pane:"overflow-hidden rounded-body bg-pane px-[14px] [--rows-divider:var(--border-color-border-pane)] [--rows-pane-content-padding-left:0px] [&_[data-rows-divider]]:bg-[var(--rows-divider)]",surface:"overflow-hidden bg-surface [--rows-divider:var(--border-color-border)] [&_[data-rows-divider]]:bg-[var(--rows-divider)]"},r.dividersClassName={pane:{full:"[--rows-group-divider-left:0px]",inset:"[--rows-group-divider-left:0px]"},surface:{full:"[--rows-group-divider-left:0px]",inset:"[--rows-group-divider-left:20px]"}},r.defaultDividers={pane:"inset",surface:"full"};function i(s){const{action:d={type:"none"},children:l,className:p,disabled:o,height:N,label:g,onClick:m,render:b,spacing:P="both",style:S,...V}=s,G=h.useContext(y),u=G?.variant??(g===void 0?"surface":"pane"),z=G?.dividers??r.defaultDividers[u],v=d.type,j=v==="details"?d.content:void 0,C=v==="expand"?d.expanded:v==="details"?j!==void 0&&j!==!1:!1,k=j===!0?e.jsx(r.PanelLoader,{}):j,F=X({children:l,expanded:C,label:g,type:v,variant:u}),w=!!(m||b),Q={height:N??i.height[u],...S},q=f(i.baseClassName[u],w&&i.interactiveClassName[u],w&&"select-none",u==="pane"&&(w?i.buttonSpacingClassName[P]:i.spacingClassName[P]),o&&"pointer-events-none opacity-50",p),D=u==="surface"?f(i.dividerClassName,i.surfaceDividerClassName[z]):f(i.dividerClassName,i.paneDividerClassName[z][w?P:"static"]),E={...V,"aria-disabled":o&&w?!0:void 0,"aria-expanded":v==="expand"?d.expanded:v==="details"?C:void 0,className:q,"data-disabled":o?"":void 0,...m?{onClick:m}:{},style:Q},I=b&&h.isValidElement(b)?h.cloneElement(b,$(b.props,E),e.jsxs(e.Fragment,{children:[e.jsx(_,{className:D}),F]})):m?e.jsxs("button",{...E,disabled:o,type:"button",children:[e.jsx(_,{className:D}),F]}):e.jsxs("div",{...E,children:[e.jsx(_,{className:D}),F]});return v!=="details"?I:e.jsxs(e.Fragment,{children:[I,C&&k!==void 0&&k!==!1&&e.jsx(r.Panel,{children:k})]})}r.Row=i,(s=>{s.baseClassName={pane:"group/rows-row relative flex items-center gap-[12px] label-13",surface:"group/rows-row relative flex w-full min-w-0 items-center gap-[14px] pl-[var(--rows-row-padding-left,20px)] pr-[var(--rows-row-padding-right,20px)] text-left text-foreground"},s.dividerClassName="pointer-events-none absolute -top-px left-[var(--rows-row-divider-left)] right-[var(--rows-row-divider-right)] h-px",s.paneDividerClassName={full:{both:"[--rows-row-divider-left:0px] [--rows-row-divider-right:0px]",end:"[--rows-row-divider-left:0px] [--rows-row-divider-right:-14px]",none:"[--rows-row-divider-left:0px] [--rows-row-divider-right:0px]",start:"[--rows-row-divider-left:-14px] [--rows-row-divider-right:0px]",static:"[--rows-row-divider-left:-14px] [--rows-row-divider-right:-14px]"},inset:{both:"[--rows-row-divider-left:14px] [--rows-row-divider-right:14px]",end:"[--rows-row-divider-left:14px] [--rows-row-divider-right:0px]",none:"[--rows-row-divider-left:14px] [--rows-row-divider-right:14px]",start:"[--rows-row-divider-left:0px] [--rows-row-divider-right:14px]",static:"[--rows-row-divider-left:0px] [--rows-row-divider-right:0px]"}},s.surfaceDividerClassName={full:"[--rows-row-divider-left:0px] [--rows-row-divider-right:0px]",inset:"[--rows-row-divider-left:20px] [--rows-row-divider-right:20px]"},s.height={pane:40,surface:56},s.interactiveClassName={pane:"cursor-pointer hover:bg-secondary-hover active:bg-secondary-active focus-visible:outline focus-visible:outline-[2px] focus-visible:outline-offset-[-2px] focus-visible:outline-focus",surface:"cursor-pointer hover:bg-surface-hover active:bg-surface-active focus-visible:outline focus-visible:outline-[2px] focus-visible:outline-offset-[-2px] focus-visible:outline-focus"},s.spacingClassName={both:"",end:"ml-[-14px]",none:"mx-[-14px]",start:"mr-[-14px]"},s.buttonSpacingClassName={both:"mx-[-14px] w-[calc(100%+28px)] px-[14px]",end:"ml-[-14px] w-[calc(100%+14px)]",none:"mx-[-14px] w-[calc(100%+28px)]",start:"mr-[-14px] w-[calc(100%+14px)]"}})(i=r.Row||(r.Row={}));function n(){return e.jsxs("div",{className:"grid gap-[8px] px-[20px] py-[12px] label-13",children:[e.jsxs("div",{className:"relative flex items-center justify-between gap-[16px]",children:[e.jsx("span",{"aria-hidden":!0,className:"invisible",children:"Label"}),e.jsx("span",{"aria-hidden":!0,className:"invisible",children:"Value"}),e.jsx("div",{className:"absolute h-[14px] w-[72px] animate-pulse rounded-body bg-skeleton"}),e.jsx("div",{className:"absolute right-0 h-[14px] w-[96px] animate-pulse rounded-body bg-skeleton"})]}),e.jsxs("div",{className:"relative flex items-center justify-between gap-[16px]",children:[e.jsx("span",{"aria-hidden":!0,className:"invisible",children:"Label"}),e.jsx("span",{"aria-hidden":!0,className:"invisible",children:"Value"}),e.jsx("div",{className:"absolute h-[14px] w-[64px] animate-pulse rounded-body bg-skeleton"}),e.jsx("div",{className:"absolute right-0 h-[14px] w-[72px] animate-pulse rounded-body bg-skeleton"})]})]})}r.PanelLoader=n;function c(){return e.jsxs(e.Fragment,{children:[e.jsxs(r.Row,{children:[e.jsx("span",{"aria-hidden":!0,className:"size-6 shrink-0 animate-pulse rounded-button bg-skeleton"}),e.jsxs("div",{className:"grid min-w-0 flex-1 gap-[6px]",children:[e.jsx("span",{"aria-hidden":!0,className:"h-[14px] w-[128px] rounded-body bg-skeleton"}),e.jsx("span",{"aria-hidden":!0,className:"h-[13px] w-[96px] rounded-body bg-skeleton"})]}),e.jsx("span",{"aria-hidden":!0,className:"h-[13px] w-[36px] shrink-0 rounded-body bg-skeleton"})]}),e.jsxs(r.Row,{children:[e.jsx("span",{"aria-hidden":!0,className:"size-6 shrink-0 animate-pulse rounded-button bg-skeleton"}),e.jsxs("div",{className:"grid min-w-0 flex-1 gap-[6px]",children:[e.jsx("span",{"aria-hidden":!0,className:"h-[14px] w-[112px] rounded-body bg-skeleton"}),e.jsx("span",{"aria-hidden":!0,className:"h-[13px] w-[88px] rounded-body bg-skeleton"})]}),e.jsx("span",{"aria-hidden":!0,className:"h-[13px] w-[28px] shrink-0 rounded-body bg-skeleton"})]})]})}r.RowGroupLoader=c})(x||(x={}));function M(r){return e.jsx(x.Row,{...r})}(r=>{r.spacingClassName=x.Row.spacingClassName,r.buttonSpacingClassName=x.Row.buttonSpacingClassName})(M||(M={}));function U(r){const{expanded:a}=r;return e.jsx(J,{"aria-hidden":!0,className:"size-[16px] shrink-0 text-foreground-secondary opacity-70 data-[open]:rotate-180","data-open":a?"":void 0})}function _(r){return e.jsx("span",{"aria-hidden":!0,className:r.className,"data-rows-divider":""})}function W(){return e.jsx(T,{"aria-hidden":!0,className:"size-[16px] shrink-0 text-foreground-secondary opacity-70"})}function X(r){const{children:a,expanded:t,label:i,type:n,variant:c}=r;return i!==void 0?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:f("grid min-w-0 flex-1 grid-cols-[minmax(0,max-content)_minmax(0,1fr)] items-center gap-[12px]",c==="pane"&&"pl-[var(--rows-pane-content-padding-left)]"),children:[e.jsx("div",{className:"min-w-0 text-left text-foreground-secondary",children:i}),e.jsx("div",{className:"flex min-w-0 items-center justify-end text-right",children:a})]}),e.jsx(L,{expanded:t,type:n})]}):c==="pane"?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"min-w-0 flex-1 pl-[var(--rows-pane-content-padding-left)]",children:a}),e.jsx(L,{expanded:t,type:n})]}):e.jsxs(e.Fragment,{children:[a,e.jsx(L,{expanded:t,type:n})]})}function L(r){const{expanded:a,type:t}=r;return t==="details"||t==="expand"?e.jsx(U,{expanded:a}):t==="navigation"?e.jsx(W,{}):null}export{T as C,Z as I,x as R};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/search-eQU6ap2m.js': { content: 'import{a8 as c}from"./index-DetZ1d0r.js";const e=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],o=c("search",e);export{o as S};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/Select-DnF193sj.js': { content: 'import{r as c,j as X,aM as wr,c as Rr}from"./index-DetZ1d0r.js";import{c as Z,o as we,a as kt,p as Pe,q as rt,r as Zt,s as et,t as tt,h as Ke,w as on,x as vt,y as Nt,z as br,A as Tn,B as vr,C as sn,D as ln,F as _t,G as un,H as Pn,I as Sr,j as _e,J as fn,K as Ln,f as $t,e as Er,m as en,E as Dn,d as Fn,v as Cr,i as Ar,n as cn,L as dn,M as Mr,b as Vn,g as dt,O as Ir,P as Or,Q as Yt}from"./useValueChanged-CTPdEny_.js";import{A as nt,B as qe,D as Ye,E as Tr,G as Pr,H as Lr,J as Dr,K as ht,L as St,M as We,N as kn,O as Nn,Q as Et,S as Fr,T as Hn,U as tn,V as Bn,W as Ge,X as Ht,Y as Mt,Z as Wn,F as Vr,P as kr,_ as _n,$ as $n,a0 as Nr,a1 as ze,a2 as nn,a3 as Hr,a4 as pn,a5 as Kt,a6 as gn,a7 as qt,a8 as ct,o as lt,a9 as Qe,aa as Br,ab as Xt,ac as Wr,ad as _r,ae as jt,af as Ct,ag as At,ah as $r,ai as It,n as jr,aj as jn,ak as Ur,al as Un,am as Ft,an as zr,c as re,u as Yr,ao as Kr,ap as $,a as zn,w as qr,k as Xr,b as Gr,r as Jr,aq as Qr,ar as Zr,z as eo,f as to,as as no,p as Yn,l as ro,at as oo,I as so,i as io,au as lo,av as co,e as ao,t as uo,d as fo}from"./useScrollLock-DC_n164h.js";import{u as po,a as Kn,e as qn,c as mn,d as go,b as mo,f as ho}from"./FormContext-BdJHfunf.js";const Xn=c.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function xo(){return c.useContext(Xn)}let Gn=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function yo(e={}){const{label:t,metadata:n,textRef:r,indexGuessBehavior:o,index:i}=e,{register:s,unregister:l,subscribeMapChange:p,elementsRef:f,labelsRef:d,nextIndexRef:u}=xo(),m=c.useRef(-1),[a,h]=c.useState(i??(o===Gn.GuessFromOrder?()=>{if(m.current===-1){const y=u.current;u.current+=1,m.current=y}return m.current}:-1)),x=c.useRef(null),w=c.useCallback(y=>{if(x.current=y,a!==-1&&y!==null&&(f.current[a]=y,d)){const v=t!==void 0;d.current[a]=v?t:r?.current?.textContent??y.textContent}},[a,f,d,t,r]);return Z(()=>{if(i!=null)return;const y=x.current;if(y)return s(y,n),()=>{l(y)}},[i,s,l,n]),Z(()=>{if(i==null)return p(y=>{const v=x.current?y.get(x.current)?.index:null;v!=null&&h(v)})},[i,p,h]),c.useMemo(()=>({ref:w,index:a}),[a,w])}function rn(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function wo(e){const{children:t,elementsRef:n,labelsRef:r,onMapChange:o}=e,i=we(o),s=c.useRef(0),l=kt(bo).current,p=kt(Ro).current,[f,d]=c.useState(0),u=c.useRef(f),m=we((y,v)=>{p.set(y,v??null),u.current+=1,d(u.current)}),a=we(y=>{p.delete(y),u.current+=1,d(u.current)}),h=c.useMemo(()=>{const y=new Map;return Array.from(p.keys()).filter(g=>g.isConnected).sort(vo).forEach((g,R)=>{const A=p.get(g)??{};y.set(g,{...A,index:R})}),y},[p,f]);Z(()=>{if(typeof MutationObserver!="function"||h.size===0)return;const y=new MutationObserver(v=>{const g=new Set,R=A=>g.has(A)?g.delete(A):g.add(A);v.forEach(A=>{A.removedNodes.forEach(R),A.addedNodes.forEach(R)}),g.size===0&&(u.current+=1,d(u.current))});return h.forEach((v,g)=>{g.parentElement&&y.observe(g.parentElement,{childList:!0})}),()=>{y.disconnect()}},[h]),Z(()=>{u.current===f&&(n.current.length!==h.size&&(n.current.length=h.size),r&&r.current.length!==h.size&&(r.current.length=h.size),s.current=h.size),i(h)},[i,h,n,r,f]),Z(()=>()=>{n.current=[]},[n]),Z(()=>()=>{r&&(r.current=[])},[r]);const x=we(y=>(l.add(y),()=>{l.delete(y)}));Z(()=>{l.forEach(y=>y(h))},[l,h]);const w=c.useMemo(()=>({register:m,unregister:a,subscribeMapChange:x,elementsRef:n,labelsRef:r,nextIndexRef:s}),[m,a,x,n,r,s]);return X.jsx(Xn.Provider,{value:w,children:t})}function Ro(){return new Map}function bo(){return new Set}function vo(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const So=c.createContext(void 0);function Jn(){return c.useContext(So)?.direction??"ltr"}function Eo(e){const[t,n]=c.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}function hn(e,t,n){let{reference:r,floating:o}=e;const i=Ye(t),s=kn(t),l=Hn(s),p=qe(t),f=i==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,m=r[l]/2-o[l]/2;let a;switch(p){case"top":a={x:d,y:r.y-o.height};break;case"bottom":a={x:d,y:r.y+r.height};break;case"right":a={x:r.x+r.width,y:u};break;case"left":a={x:r.x-o.width,y:u};break;default:a={x:r.x,y:r.y}}switch(ht(t)){case"start":a[s]-=m*(n&&f?-1:1);break;case"end":a[s]+=m*(n&&f?-1:1);break}return a}async function Co(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:p}=e,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:a=0}=nt(t,e),h=Nn(a),w=l[m?u==="floating"?"reference":"floating":u],y=Et(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:f,rootBoundary:d,strategy:p})),v=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),R=await(i.isElement==null?void 0:i.isElement(g))?await(i.getScale==null?void 0:i.getScale(g))||{x:1,y:1}:{x:1,y:1},A=Et(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:g,strategy:p}):v);return{top:(y.top-A.top+h.top)/R.y,bottom:(A.bottom-y.bottom+h.bottom)/R.y,left:(y.left-A.left+h.left)/R.x,right:(A.right-y.right+h.right)/R.x}}const Ao=50,Mo=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:Co},p=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=hn(f,r,p),m=r,a=0;const h={};for(let x=0;xH<=0)){var j,L;const H=(((j=i.flip)==null?void 0:j.index)||0)+1,W=M[H];if(W&&(!(u==="alignment"?v!==Ye(W):!1)||V.every(C=>Ye(C.placement)===v?C.overflows[0]>0:!0)))return{data:{index:H,overflows:V},reset:{placement:W}};let U=(L=V.filter(E=>E.overflows[0]<=0).sort((E,C)=>E.overflows[1]-C.overflows[1])[0])==null?void 0:L.placement;if(!U)switch(a){case"bestFit":{var N;const E=(N=V.filter(C=>{if(O){const G=Ye(C.placement);return G===v||G==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(G=>G>0).reduce((G,I)=>G+I,0)]).sort((C,G)=>C[1]-G[1])[0])==null?void 0:N[0];E&&(U=E);break}case"initialPlacement":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function xn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yn(e){return Fr.some(t=>e[t]>=0)}const Oo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=nt(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),l=xn(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:yn(l)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),l=xn(s,n.floating);return{data:{escapedOffsets:l,escaped:yn(l)}}}default:return{}}}}},Qn=new Set(["left","top"]);async function To(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=qe(n),l=ht(n),p=Ye(n)==="y",f=Qn.has(s)?-1:1,d=i&&p?-1:1,u=nt(t,e);let{mainAxis:m,crossAxis:a,alignmentAxis:h}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof h=="number"&&(a=l==="end"?h*-1:h),p?{x:a*d,y:m*f}:{x:m*f,y:a*d}}const Po=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,p=await To(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+p.x,y:i+p.y,data:{...p,placement:s}}}}},Lo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:p={fn:y=>{let{x:v,y:g}=y;return{x:v,y:g}}},...f}=nt(e,t),d={x:n,y:r},u=await i.detectOverflow(t,f),m=Ye(qe(o)),a=Bn(m);let h=d[a],x=d[m];if(s){const y=a==="y"?"top":"left",v=a==="y"?"bottom":"right",g=h+u[y],R=h-u[v];h=tn(g,h,R)}if(l){const y=m==="y"?"top":"left",v=m==="y"?"bottom":"right",g=x+u[y],R=x-u[v];x=tn(g,x,R)}const w=p.fn({...t,[a]:h,[m]:x});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[a]:s,[m]:l}}}}}},Do=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:p=!0,crossAxis:f=!0}=nt(e,t),d={x:n,y:r},u=Ye(o),m=Bn(u);let a=d[m],h=d[u];const x=nt(l,t),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(p){const g=m==="y"?"height":"width",R=i.reference[m]-i.floating[g]+w.mainAxis,A=i.reference[m]+i.reference[g]-w.mainAxis;aA&&(a=A)}if(f){var y,v;const g=m==="y"?"width":"height",R=Qn.has(qe(o)),A=i.reference[u]-i.floating[g]+(R&&((y=s.offset)==null?void 0:y[u])||0)+(R?0:w.crossAxis),O=i.reference[u]+i.reference[g]+(R?0:((v=s.offset)==null?void 0:v[u])||0)-(R?w.crossAxis:0);hO&&(h=O)}return{[m]:a,[u]:h}}}},Fo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:p=()=>{},...f}=nt(e,t),d=await s.detectOverflow(t,f),u=qe(o),m=ht(o),a=Ye(o)==="y",{width:h,height:x}=i.floating;let w,y;u==="top"||u==="bottom"?(w=u,y=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(y=u,w=m==="end"?"top":"bottom");const v=x-d.top-d.bottom,g=h-d.left-d.right,R=St(x-d[w],v),A=St(h-d[y],g),O=!t.middlewareData.shift;let M=R,F=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=v),O&&!m){const V=We(d.left,0),j=We(d.right,0),L=We(d.top,0),N=We(d.bottom,0);a?F=h-2*(V!==0||j!==0?V+j:We(d.left,d.right)):M=x-2*(L!==0||N!==0?L+N:We(d.top,d.bottom))}await p({...t,availableWidth:F,availableHeight:M});const k=await s.getDimensions(l.floating);return h!==k.width||x!==k.height?{reset:{rects:!0}}:{}}}};function Zn(e){const t=tt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=et(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=Ht(n)!==i||Ht(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function an(e){return Pe(e)?e:e.contextElement}function gt(e){const t=an(e);if(!et(t))return Ge(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Zn(t);let s=(i?Ht(n.width):n.width)/r,l=(i?Ht(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Vo=Ge(0);function er(e){const t=Ke(e);return!Pn()||!t.visualViewport?Vo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ko(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ke(e)?!1:t}function ft(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=an(e);let s=Ge(1);t&&(r?Pe(r)&&(s=gt(r)):s=gt(e));const l=ko(i,n,r)?er(i):Ge(0);let p=(o.left+l.x)/s.x,f=(o.top+l.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const m=Ke(i),a=r&&Pe(r)?Ke(r):r;let h=m,x=un(h);for(;x&&r&&a!==h;){const w=gt(x),y=x.getBoundingClientRect(),v=tt(x),g=y.left+(x.clientLeft+parseFloat(v.paddingLeft))*w.x,R=y.top+(x.clientTop+parseFloat(v.paddingTop))*w.y;p*=w.x,f*=w.y,d*=w.x,u*=w.y,p+=g,f+=R,h=Ke(x),x=un(h)}}return Et({width:d,height:u,x:p,y:f})}function Ut(e,t){const n=_t(e).scrollLeft;return t?t.left+n:ft(rt(e)).left+n}function tr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ut(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function No(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=rt(r),l=t?on(t.floating):!1;if(r===s||l&&i)return n;let p={scrollLeft:0,scrollTop:0},f=Ge(1);const d=Ge(0),u=et(r);if((u||!u&&!i)&&((sn(r)!=="body"||ln(s))&&(p=_t(r)),u)){const a=ft(r);f=gt(r),d.x=a.x+r.clientLeft,d.y=a.y+r.clientTop}const m=s&&!u&&!i?tr(s,p):Ge(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-p.scrollLeft*f.x+d.x+m.x,y:n.y*f.y-p.scrollTop*f.y+d.y+m.y}}function Ho(e){return Array.from(e.getClientRects())}function Bo(e){const t=rt(e),n=_t(e),r=e.ownerDocument.body,o=We(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=We(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ut(e);const l=-n.scrollTop;return tt(r).direction==="rtl"&&(s+=We(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}const wn=25;function Wo(e,t){const n=Ke(e),r=rt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,p=0;if(o){i=o.width,s=o.height;const d=Pn();(!d||d&&t==="fixed")&&(l=o.offsetLeft,p=o.offsetTop)}const f=Ut(r);if(f<=0){const d=r.ownerDocument,u=d.body,m=getComputedStyle(u),a=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(r.clientWidth-u.clientWidth-a);h<=wn&&(i-=h)}else f<=wn&&(i+=f);return{width:i,height:s,x:l,y:p}}function _o(e,t){const n=ft(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=et(e)?gt(e):Ge(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,p=o*i.x,f=r*i.y;return{width:s,height:l,x:p,y:f}}function Rn(e,t,n){let r;if(t==="viewport")r=Wo(e,n);else if(t==="document")r=Bo(rt(e));else if(Pe(t))r=_o(t,n);else{const o=er(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Et(r)}function nr(e,t){const n=vt(e);return n===t||!Pe(n)||Nt(n)?!1:tt(n).position==="fixed"||nr(n,t)}function $o(e,t){const n=t.get(e);if(n)return n;let r=Zt(e,[],!1).filter(l=>Pe(l)&&sn(l)!=="body"),o=null;const i=tt(e).position==="fixed";let s=i?vt(e):e;for(;Pe(s)&&!Nt(s);){const l=tt(s),p=Tn(s);!p&&l.position==="fixed"&&(o=null),(i?!p&&!o:!p&&l.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||ln(s)&&!p&&nr(e,s))?r=r.filter(d=>d!==s):o=l,s=vt(s)}return t.set(e,r),r}function jo(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?on(t)?[]:$o(t,this._c):[].concat(n),r],l=Rn(t,s[0],o);let p=l.top,f=l.right,d=l.bottom,u=l.left;for(let m=1;m{s(!1,1e-7)},1e3)}M===1&&!sr(f,e.getBoundingClientRect())&&s(),R=!1}try{n=new IntersectionObserver(A,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,g)}n.observe(e)}return s(!0),i}function vn(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,f=an(e),d=o||i?[...f?Zt(f):[],...t?Zt(t):[]]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const u=f&&l?qo(f,n):null;let m=-1,a=null;s&&(a=new ResizeObserver(y=>{let[v]=y;v&&v.target===f&&a&&t&&(a.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var g;(g=a)==null||g.observe(t)})),n()}),f&&!p&&a.observe(f),t&&a.observe(t));let h,x=p?ft(e):null;p&&w();function w(){const y=ft(e);x&&!sr(x,y)&&n(),x=y,h=requestAnimationFrame(w)}return n(),()=>{var y;d.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),u?.(),(y=a)==null||y.disconnect(),a=null,p&&cancelAnimationFrame(h)}}const Xo=Po,Go=Lo,Jo=Io,Qo=Fo,Zo=Oo,es=Do,ts=(e,t,n)=>{const r=new Map,o={platform:or,...n},i={...o.platform,_c:r};return Mo(e,t,{...o,platform:i})};var ns=typeof document<"u",rs=function(){},Vt=ns?c.useLayoutEffect:rs;function Bt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Bt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Bt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ir(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sn(e,t){const n=ir(e);return Math.round(t*n)/n}function Jt(e){const t=c.useRef(e);return Vt(()=>{t.current=e}),t}function os(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:p,open:f}=e,[d,u]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,a]=c.useState(r);Bt(m,r)||a(r);const[h,x]=c.useState(null),[w,y]=c.useState(null),v=c.useCallback(C=>{C!==O.current&&(O.current=C,x(C))},[]),g=c.useCallback(C=>{C!==M.current&&(M.current=C,y(C))},[]),R=i||h,A=s||w,O=c.useRef(null),M=c.useRef(null),F=c.useRef(d),k=p!=null,V=Jt(p),j=Jt(o),L=Jt(f),N=c.useCallback(()=>{if(!O.current||!M.current)return;const C={placement:t,strategy:n,middleware:m};j.current&&(C.platform=j.current),ts(O.current,M.current,C).then(G=>{const I={...G,isPositioned:L.current!==!1};H.current&&!Bt(F.current,I)&&(F.current=I,wr.flushSync(()=>{u(I)}))})},[m,t,n,j,L]);Vt(()=>{f===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,u(C=>({...C,isPositioned:!1})))},[f]);const H=c.useRef(!1);Vt(()=>(H.current=!0,()=>{H.current=!1}),[]),Vt(()=>{if(R&&(O.current=R),A&&(M.current=A),R&&A){if(V.current)return V.current(R,A,N);N()}},[R,A,N,V,k]);const W=c.useMemo(()=>({reference:O,floating:M,setReference:v,setFloating:g}),[v,g]),U=c.useMemo(()=>({reference:R,floating:A}),[R,A]),E=c.useMemo(()=>{const C={position:n,left:0,top:0};if(!U.floating)return C;const G=Sn(U.floating,d.x),I=Sn(U.floating,d.y);return l?{...C,transform:"translate("+G+"px, "+I+"px)",...ir(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:I}},[n,l,U.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:N,refs:W,elements:U,floatingStyles:E}),[d,N,W,U,E])}const ss=(e,t)=>{const n=Xo(e);return{name:n.name,fn:n.fn,options:[e,t]}},is=(e,t)=>{const n=Go(e);return{name:n.name,fn:n.fn,options:[e,t]}},ls=(e,t)=>({fn:es(e).fn,options:[e,t]}),cs=(e,t)=>{const n=Jo(e);return{name:n.name,fn:n.fn,options:[e,t]}},as=(e,t)=>{const n=Qo(e);return{name:n.name,fn:n.fn,options:[e,t]}},us=(e,t)=>{const n=Zo(e);return{name:n.name,fn:n.fn,options:[e,t]}};function lr(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=Sr(),i=Wn()!=null,s=kt(()=>new Vr({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new kr,floatingId:o,syncOnly:!1,nested:i})).current;return Z(()=>{const l={open:t,floatingId:o};r.reference!==void 0&&(l.referenceElement=r.reference,l.domReferenceElement=Pe(r.reference)?r.reference:null),r.floating!==void 0&&(l.floatingElement=r.floating),s.update(l)},[t,o,r.reference,r.floating,s]),s.context.onOpenChange=n,s.context.nested=i,s}function fs(e={}){const{nodeId:t,externalTree:n}=e,r=lr(e),o=e.rootContext||r,i=o.useState("referenceElement"),s=o.useState("floatingElement"),l=o.useState("domReferenceElement"),p=o.useState("open"),f=o.useState("floatingId"),[d,u]=c.useState(null),[m,a]=c.useState(void 0),[h,x]=c.useState(void 0),w=c.useRef(null),y=_n(n),v=c.useMemo(()=>({reference:i,floating:s,domReference:l}),[i,s,l]),g=os({...e,elements:{...v,...d&&{reference:d}}}),R=Pe(m)?m:null,A=h===void 0?o.state.floatingElement:h;o.useSyncedValue("referenceElement",m??null),o.useSyncedValue("domReferenceElement",m===void 0?l:R),o.useSyncedValue("floatingElement",A);const O=c.useCallback(L=>{const N=Pe(L)?{getBoundingClientRect:()=>L.getBoundingClientRect(),getClientRects:()=>L.getClientRects(),contextElement:L}:L;u(N),g.refs.setReference(N)},[g.refs]),M=c.useCallback(L=>{(Pe(L)||L===null)&&(w.current=L,a(L)),(Pe(g.refs.reference.current)||g.refs.reference.current===null||L!==null&&!Pe(L))&&g.refs.setReference(L)},[g.refs,a]),F=c.useCallback(L=>{x(L),g.refs.setFloating(L)},[g.refs]),k=c.useMemo(()=>({...g.refs,setReference:M,setFloating:F,setPositionReference:O,domReference:w}),[g.refs,M,F,O]),V=c.useMemo(()=>({...g.elements,domReference:l}),[g.elements,l]),j=c.useMemo(()=>({...g,dataRef:o.context.dataRef,open:p,onOpenChange:o.setOpen,events:o.context.events,floatingId:f,refs:k,elements:V,nodeId:t,rootStore:o}),[g,k,V,t,o,p,f]);return Z(()=>{l&&(w.current=l)},[l]),Z(()=>{o.context.dataRef.current.floatingContext=j;const L=y?.nodesRef.current.find(N=>N.id===t);L&&(L.context=j)}),c.useMemo(()=>({...g,context:j,refs:k,elements:V,rootStore:o}),[g,k,V,j,o])}const ds="Escape";function zt(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Ot(e,t){return zt(t,e===Un||e===jt,e===Ct||e===At)}function Qt(e,t,n){return zt(t,e===jt,n?e===Ct:e===At)||e==="Enter"||e===" "||e===""}function ps(e,t,n){return zt(t,n?e===Ct:e===At,e===jt)}function gs(e,t,n,r){const o=n?e===At:e===Ct,i=e===Un;return t==="both"||t==="horizontal"&&r&&r>1?e===ds:zt(t,o,i)}function ms(e,t){const{listRef:n,activeIndex:r,onNavigate:o=()=>{},enabled:i=!0,selectedIndex:s=null,allowEscape:l=!1,loopFocus:p=!1,nested:f=!1,rtl:d=!1,virtual:u=!1,focusItemOnOpen:m="auto",focusItemOnHover:a=!0,openOnArrowKeyDown:h=!0,disabledIndices:x=void 0,orientation:w="vertical",parentOrientation:y,cols:v=1,id:g,resetOnPointerLeave:R=!0,externalTree:A}=t,O="rootStore"in e?e.rootStore:e,M=O.useState("open"),F=O.useState("floatingElement"),k=O.useState("domReferenceElement"),V=O.context.dataRef,j=$n(F),L=Nr(k),N=ze(j),H=Wn(),W=_n(A),U=c.useRef(m),E=c.useRef(s??-1),C=c.useRef(null),G=c.useRef(!0),I=we(P=>{o(E.current===-1?null:E.current,P)}),ee=c.useRef(I),oe=c.useRef(!!F),b=c.useRef(M),T=c.useRef(!1),B=c.useRef(!1),ce=c.useRef(null),te=ze(x),ae=ze(M),pe=ze(s),Le=ze(R),Ne=nn(),Ce=nn(),z=we(()=>{function P(Y){u?W?.events.emit("virtualfocus",Y):ce.current=Hr(Y,{sync:T.current,preventScroll:!0})}const S=n.current[E.current],q=B.current;S&&P(S),(T.current?Y=>Y():Y=>Ne.request(Y))(()=>{const Y=n.current[E.current]||S;if(!Y)return;S||P(Y),fe&&(q||!G.current)&&Y.scrollIntoView?.({block:"nearest",inline:"nearest"})})});Z(()=>{V.current.orientation=w},[V,w]),Z(()=>{i&&(M&&F?(E.current=s??-1,U.current&&s!=null&&(B.current=!0,I())):oe.current&&(E.current=-1,ee.current()))},[i,M,F,s,I]),Z(()=>{if(i){if(!M){T.current=!1;return}if(F)if(r==null){if(T.current=!1,pe.current!=null)return;if(oe.current&&(E.current=-1,z()),(!b.current||!oe.current)&&U.current&&(C.current!=null||U.current===!0&&C.current==null)){let P=0;const S=()=>{n.current[0]==null?(P<2&&(P?D=>Ce.request(D):queueMicrotask)(S),P+=1):(E.current=C.current==null||Qt(C.current,w,d)||f?Kt(n):gn(n),C.current=null,I())};S()}}else pn(n.current,r)||(E.current=r,z(),B.current=!1)}},[i,M,F,r,pe,f,n,w,d,I,z,Ce]),Z(()=>{if(!i||F||!W||u||!oe.current)return;const P=W.nodesRef.current,S=P.find(Y=>Y.id===H)?.context?.elements.floating,q=qt(ct(F)),D=P.some(Y=>Y.context&<(Y.context.elements.floating,q));S&&!D&&G.current&&S.focus({preventScroll:!0})},[i,F,W,H,u]),Z(()=>{ee.current=I,b.current=M,oe.current=!!F}),Z(()=>{M||(C.current=null,U.current=m)},[M,m]);const se=r!=null,xe=we(P=>{if(!ae.current)return;const S=n.current.indexOf(P.currentTarget);S!==-1&&(E.current!==S||r!==S)&&(E.current=S,I(P))}),Ae=we(()=>y??W?.nodesRef.current.find(P=>P.id===H)?.context?.dataRef?.current.orientation),J=we(()=>Kt(n,te.current)),ue=we(P=>{if(G.current=!1,T.current=!0,P.which===229||!ae.current&&P.currentTarget===N.current)return;if(f&&gs(P.key,w,d,v)){Ot(P.key,Ae())||Qe(P),O.setOpen(!1,_e(fn,P.nativeEvent)),et(k)&&(u?W?.events.emit("virtualfocus",k):k.focus());return}const S=E.current,q=Kt(n,x),D=gn(n,x);if(L||(P.key==="Home"&&(Qe(P),E.current=q,I(P)),P.key==="End"&&(Qe(P),E.current=D,I(P))),v>1){const Y=Array.from({length:n.current.length},()=>({width:1,height:1})),me=Br(Y,v),Ie=me.findIndex(he=>he!=null&&!Xt(n.current,he,x)),De=me.reduce((he,ye,Ee)=>ye!=null&&!Xt(n.current,ye,x)?Ee:he,-1),Se=me[Wr(me.map(he=>he!=null?n.current[he]:null),{event:P,orientation:w,loopFocus:p,rtl:d,cols:v,disabledIndices:$r([...(typeof x!="function"?x:null)||n.current.map((he,ye)=>Xt(n.current,ye,x)?ye:void 0),void 0],me),minIndex:Ie,maxIndex:De,prevIndex:_r(E.current>D?q:E.current,Y,me,v,P.key===jt?"bl":P.key===(d?Ct:At)?"tr":"tl"),stopEvent:!0})];if(Se!=null&&(E.current=Se,I(P)),w==="both")return}if(Ot(P.key,w)){if(Qe(P),M&&!u&&qt(P.currentTarget.ownerDocument)===P.currentTarget){E.current=Qt(P.key,w,d)?q:D,I(P);return}Qt(P.key,w,d)?p?S>=D?l&&S!==n.current.length?E.current=-1:(T.current=!1,E.current=q):E.current=It(n.current,{startingIndex:S,disabledIndices:x}):E.current=Math.min(D,It(n.current,{startingIndex:S,disabledIndices:x})):p?S<=q?l&&S!==-1?E.current=n.current.length:(T.current=!1,E.current=D):E.current=It(n.current,{startingIndex:S,decrement:!0,disabledIndices:x}):E.current=Math.max(q,It(n.current,{startingIndex:S,decrement:!0,disabledIndices:x})),pn(n.current,E.current)&&(E.current=-1),I(P)}}),fe=c.useMemo(()=>({onFocus(S){T.current=!0,xe(S)},onClick:({currentTarget:S})=>S.focus({preventScroll:!0}),onMouseMove(S){T.current=!0,B.current=!1,a&&xe(S)},onPointerLeave(S){if(!ae.current||!G.current||S.pointerType==="touch")return;T.current=!0;const q=S.relatedTarget;if(!(!a||n.current.includes(q))&&Le.current&&(ce.current?.(),ce.current=null,E.current=-1,I(S),!u)){const D=N.current,Y=qt(ct(D));D&<(D,Y)&&D.focus({preventScroll:!0})}}}),[xe,ae,N,a,n,I,Le,u]),Re=c.useMemo(()=>u&&M&&se&&{"aria-activedescendant":`${g}-${r}`},[u,M,se,g,r]),ge=c.useMemo(()=>({"aria-orientation":w==="both"?void 0:w,...L?{}:Re,onKeyDown(P){if(P.key==="Tab"&&P.shiftKey&&M&&!u){const S=jr(P.nativeEvent);if(S&&!lt(N.current,S))return;Qe(P),O.setOpen(!1,_e(Ln,P.nativeEvent)),et(k)&&k.focus();return}ue(P)},onPointerMove(){G.current=!0}}),[Re,ue,N,w,L,O,M,u,k]),ne=c.useMemo(()=>{function P(D){O.setOpen(!0,_e(fn,D.nativeEvent,D.currentTarget))}function S(D){m==="auto"&&jn(D.nativeEvent)&&(U.current=!u)}function q(D){U.current=m,m==="auto"&&Ur(D.nativeEvent)&&(U.current=!0)}return{onKeyDown(D){const Y=O.select("open");G.current=!1;const me=D.key.startsWith("Arrow"),Ie=ps(D.key,Ae(),d),De=Ot(D.key,w),Se=(f?Ie:De)||D.key==="Enter"||D.key.trim()==="";if(u&&Y)return ue(D);if(!(!Y&&!h&&me)){if(Se){const he=Ot(D.key,Ae());C.current=f&&he?null:D.key}if(f){Ie&&(Qe(D),Y?(E.current=J(),I(D)):P(D));return}De&&(pe.current!=null&&(E.current=pe.current),Qe(D),!Y&&h?P(D):ue(D),Y&&I(D))}},onFocus(D){O.select("open")&&!u&&(E.current=-1,I(D))},onPointerDown:q,onPointerEnter:q,onMouseDown:S,onClick:S}},[ue,m,J,f,I,O,h,w,Ae,d,pe,u]),ie=c.useMemo(()=>({...Re,...ne}),[Re,ne]);return c.useMemo(()=>i?{reference:ie,floating:ge,item:fe,trigger:ne}:{},[i,ie,ge,ne,fe])}function hs(e,t){const{listRef:n,elementsRef:r,activeIndex:o,onMatch:i,onTyping:s,enabled:l=!0,resetMs:p=750,selectedIndex:f=null}=t,d="rootStore"in e?e.rootStore:e,u=d.useState("open"),m=Ft(),a=c.useRef(""),h=c.useRef(f??o??-1),x=c.useRef(null),w=we(g=>{function R(L){const N=r?.current[L];return!N||zr(N)}function A(L,N,H=0){if(L.length===0)return-1;const W=(H%L.length+L.length)%L.length,U=N.toLocaleLowerCase();for(let E=0;E0&&g.key===" "&&(Qe(g),s?.(!0)),a.current.length>0&&a.current[0]!==" "&&A(O,a.current)===-1&&g.key!==" "&&s?.(!1),O==null||g.key.length!==1||g.ctrlKey||g.metaKey||g.altKey)return;u&&g.key!==" "&&(Qe(g),s?.(!0));const M=a.current==="";M&&(h.current=f??o??-1),O.every(L=>L?L[0]?.toLocaleLowerCase()!==L[1]?.toLocaleLowerCase():!0)&&a.current===g.key&&(a.current="",h.current=x.current),a.current+=g.key,m.start(p,()=>{a.current="",h.current=x.current,s?.(!1)});const V=((M?f??o??-1:h.current)??0)+1,j=A(O,a.current,V);j!==-1?(i?.(j),x.current=j):g.key!==" "&&(a.current="",s?.(!1))}),y=we(g=>{const R=g.relatedTarget,A=d.select("domReferenceElement"),O=d.select("floatingElement");lt(A,R)||lt(O,R)||(m.clear(),a.current="",h.current=x.current,s?.(!1))});Z(()=>{!u&&f!==null||(m.clear(),x.current=null,a.current!==""&&(a.current=""))},[u,f,m]),Z(()=>{u&&a.current===""&&(h.current=f??o??-1)},[u,f,o]);const v=c.useMemo(()=>({onKeyDown:w,onBlur:y}),[w,y]);return c.useMemo(()=>l?{reference:v,floating:v}:{},[l,v])}const cr=c.createContext(null),ar=c.createContext(null);function at(){const e=c.useContext(cr);if(e===null)throw new Error($t(60));return e}function ur(){const e=c.useContext(ar);if(e===null)throw new Error($t(61));return e}const xs=(e,t)=>Object.is(e,t);function mt(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function ys(e,t,n){return!e||e.length===0?!1:e.some(r=>r===void 0?!1:mt(t,r,n))}function bt(e,t,n){return!e||e.length===0?-1:e.findIndex(r=>r===void 0?!1:mt(r,t,n))}function ws(e,t,n){return e.filter(r=>!mt(t,r,n))}function fr(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function Rs(e){if(!Array.isArray(e))return e!=null&&"null"in e;const t=e;if(fr(t)){for(const n of t)for(const r of n.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(const n of t)if(n&&n.value==null&&n.label!=null)return!0;return!1}function dr(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return rn(e)}function pt(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?rn(e.value):rn(e)}function pr(e,t,n){function r(){return dr(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){const o=t,i=fr(o)?o.flatMap(s=>s.items):o;if(e==null||typeof e!="object"){const s=i.find(l=>l.value===e);return s&&s.label!=null?s.label:r()}if("value"in e){const s=i.find(l=>l&&l.value===e.value);if(s&&s.label!=null)return s.label}}return r()}function bs(e,t,n){return e.reduce((r,o,i)=>(i>0&&r.push(", "),r.push(X.jsx(c.Fragment,{children:pr(o,t,n)},i)),r),[])}const _={id:re(e=>e.id),labelId:re(e=>e.labelId),modal:re(e=>e.modal),multiple:re(e=>e.multiple),items:re(e=>e.items),itemToStringLabel:re(e=>e.itemToStringLabel),itemToStringValue:re(e=>e.itemToStringValue),isItemEqualToValue:re(e=>e.isItemEqualToValue),value:re(e=>e.value),hasSelectedValue:re(e=>{const{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:pt(t,r)!==""}),hasNullItemLabel:re((e,t)=>t?Rs(e.items):!1),open:re(e=>e.open),mounted:re(e=>e.mounted),forceMount:re(e=>e.forceMount),transitionStatus:re(e=>e.transitionStatus),openMethod:re(e=>e.openMethod),activeIndex:re(e=>e.activeIndex),selectedIndex:re(e=>e.selectedIndex),isActive:re((e,t)=>e.activeIndex===t),isSelected:re((e,t,n)=>{const r=e.isItemEqualToValue,o=e.value;return e.multiple?Array.isArray(o)&&o.some(i=>mt(n,i,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:mt(n,o,r)}),isSelectedByFocus:re((e,t)=>e.selectedIndex===t),popupProps:re(e=>e.popupProps),triggerProps:re(e=>e.triggerProps),triggerElement:re(e=>e.triggerElement),positionerElement:re(e=>e.positionerElement),listElement:re(e=>e.listElement),popupSide:re(e=>e.popupSide),scrollUpArrowVisible:re(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:re(e=>e.scrollDownArrowVisible),hasScrollArrows:re(e=>e.hasScrollArrows)};function wt(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Ze=1;function gr(e,t){return Math.max(0,e-t)}function vs(e,t){if(t<=0)return 0;const n=wt(e,0,t),r=n,o=t-n,i=r<=Ze,s=o<=Ze;return i&&s?r<=o?0:t:i?0:s?t:n}function Ss(e){const{id:t,value:n,defaultValue:r=null,onValueChange:o,open:i,defaultOpen:s=!1,onOpenChange:l,name:p,form:f,autoComplete:d,disabled:u=!1,readOnly:m=!1,required:a=!1,modal:h=!0,actionsRef:x,inputRef:w,onOpenChangeComplete:y,items:v,multiple:g=!1,itemToStringLabel:R,itemToStringValue:A,isItemEqualToValue:O=xs,highlightItemOnHover:M=!0,children:F}=e,{clearErrors:k}=po(),{setDirty:V,setTouched:j,setFocused:L,shouldValidateOnChange:N,validityData:H,setFilled:W,name:U,disabled:E,validation:C,validationMode:G}=Kn(),I=qn({id:t}),ee=E||u,oe=U??p,[b,T]=mn({controlled:n,default:g?r??dn:r,name:"Select",state:"value"}),[B,ce]=mn({controlled:i,default:s,name:"Select",state:"open"}),te=c.useRef([]),ae=c.useRef([]),pe=c.useRef(null),Le=c.useRef(null),Ne=c.useRef(0),Ce=c.useRef(null),z=c.useRef([]),se=c.useRef(!1),xe=c.useRef(!1),Ae=c.useRef(null),J=c.useRef(null),ue=c.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),fe=c.useRef(!1),{mounted:Re,setMounted:ge,transitionStatus:ne}=Yr(B),{openMethod:ie,triggerProps:P}=Kr(B),S=kt(()=>new Qr({id:I,labelId:void 0,modal:h,multiple:g,itemToStringLabel:R,itemToStringValue:A,isItemEqualToValue:O,value:b,open:B,mounted:Re,transitionStatus:ne,items:v,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,q=$(S,_.activeIndex),D=$(S,_.selectedIndex),Y=$(S,_.triggerElement),me=$(S,_.positionerElement),Ie=Eo(ie),De=ie??Ie,Se=c.useMemo(()=>g&&Array.isArray(b)&&b.length===0?"":pt(b,A),[g,b,A]),he=c.useMemo(()=>g&&Array.isArray(b)?b.map(K=>pt(K,A)):pt(b,A),[g,b,A]),ye=ze(S.state.triggerElement),Ee=we(()=>he);go(ye,I,b,Ee);const $e=c.useRef(b),ot=g?Array.isArray(b)&&b.length>0:b!=null;Z(()=>{b!==$e.current&&S.set("forceMount",!0)},[S,b]),Z(()=>{W(ot)},[ot,W]),Z(function(){const de=z.current;let ke;if(g){const Be=Array.isArray(b)?b:[];if(Be.length===0)ke=null;else{const Ue=Be[Be.length-1],yt=bt(de,Ue,O);ke=yt===-1?null:yt}}else{const Be=bt(de,b,O);ke=Be===-1?null:Be}ke===null&&(J.current=null),!B&&S.set("selectedIndex",ke)},[ot,g,B,b,z,O,S,J]),Er(b,()=>{k(oe),V(b!==H.initialValue),N()?C.commit(b):C.commit(b,!0)});const Oe=we((K,de)=>{if(l?.(K,de),!de.isCanceled&&(ce(K),!K&&(de.reason===Ln||de.reason===Mr)&&(j(!0),L(!1),G==="onBlur"&&C.commit(b)),!K&&S.state.activeIndex!==null)){const ke=te.current[S.state.activeIndex];queueMicrotask(()=>{ke?.setAttribute("tabindex","-1")})}}),Q=we(()=>{ge(!1),S.update({activeIndex:null,openMethod:null}),y?.(!1)});zn({enabled:!x,open:B,ref:pe,onComplete(){B||Q()}}),c.useImperativeHandle(x,()=>({unmount:Q}),[Q]);const be=we((K,de)=>{o?.(K,de),!de.isCanceled&&T(K)}),Me=we(()=>{const K=S.state.listElement||pe.current;if(!K)return;const de=gr(K.scrollHeight,K.clientHeight),ke=vs(K.scrollTop,de),Be=ke>0,Ue=ke{const K=en(Ve.reference,Te.reference,ve.reference,Fe.reference,P);return I&&(K.id=I),K},[Fe.reference,Ve.reference,Te.reference,ve.reference,P,I]),Je=c.useMemo(()=>en(Gr,Ve.floating,Te.floating,ve.floating),[Ve.floating,Te.floating,ve.floating]),st=Te.item??Dn;Jr(()=>{S.update({popupProps:Je,triggerProps:je})}),Z(()=>{S.update({id:I,modal:h,multiple:g,value:b,open:B,mounted:Re,transitionStatus:ne,popupProps:Je,triggerProps:je,items:v,itemToStringLabel:R,itemToStringValue:A,isItemEqualToValue:O,openMethod:De})},[S,I,h,g,b,B,Re,ne,Je,je,v,R,A,O,De]);const ut=c.useMemo(()=>({store:S,name:oe,required:a,disabled:ee,readOnly:m,multiple:g,highlightItemOnHover:M,setValue:be,setOpen:Oe,listRef:te,popupRef:pe,scrollHandlerRef:Le,handleScrollArrowVisibility:Me,scrollArrowsMountedCountRef:Ne,itemProps:st,events:le.context.events,valueRef:Ce,valuesRef:z,labelsRef:ae,typingRef:se,selectionRef:ue,firstItemTextRef:Ae,selectedItemTextRef:J,validation:C,onOpenChangeComplete:y,keyboardActiveRef:xe,alignItemWithTriggerActiveRef:fe,initialValueRef:$e}),[S,oe,a,ee,m,g,M,be,Oe,st,le.context.events,C,y,Me]),He=Fn(w,C.inputRef),Xe=g&&Array.isArray(b)&&b.length>0,it=g?void 0:oe,xt=c.useMemo(()=>!g||!Array.isArray(b)||!oe?null:b.map(K=>{const de=pt(K,A);return X.jsx("input",{type:"hidden",form:f,name:oe,value:de},de)}),[g,b,f,oe,A]);return X.jsx(cr.Provider,{value:ut,children:X.jsxs(ar.Provider,{value:le,children:[F,X.jsx("input",{...C.getInputValidationProps({onFocus(){S.state.triggerElement?.focus({focusVisible:!0})},onChange(K){if(K.nativeEvent.defaultPrevented||ee||m){K.preventBaseUIHandler?.();return}const de=K.currentTarget.value,ke=_e(cn,K.nativeEvent);function Be(){if(g)return;const Ue=z.current.find(yt=>pt(yt,A).toLowerCase()===de.toLowerCase()||dr(yt,R).toLowerCase()===de.toLowerCase());Ue!=null&&(V(Ue!==H.initialValue),be(Ue,ke),N()&&C.commit(Ue))}S.set("forceMount",!0),queueMicrotask(Be)}}),id:I&&it==null?`${I}-hidden-input`:void 0,form:f,name:it,autoComplete:d,value:Se,disabled:ee,required:a&&!Xe,readOnly:m,ref:He,style:oe?Cr:Ar,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),xt]})})}function Es(e,t){return e??t}function Cs(e){const t=e.getBoundingClientRect(),n=Ke(e),r=n.getComputedStyle(e,"::before"),o=n.getComputedStyle(e,"::after");if(!(r.content!=="none"||o.content!=="none"))return t;const s=parseFloat(r.width)||0,l=parseFloat(r.height)||0,p=parseFloat(o.width)||0,f=parseFloat(o.height)||0,d=Math.max(t.width,s,p),u=Math.max(t.height,l,f),m=d-t.width,a=u-t.height;return{left:t.left-m/2,right:t.right+m/2,top:t.top-a/2,bottom:t.bottom+a/2}}const Tt=2,As=400,Ms={...Zr,...ho,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},Is=c.forwardRef(function(t,n){const{render:r,className:o,id:i,disabled:s=!1,nativeButton:l=!0,style:p,...f}=t,{setTouched:d,setFocused:u,validationMode:m,state:a,disabled:h}=Kn(),{labelId:x}=mo(),{store:w,setOpen:y,selectionRef:v,validation:g,readOnly:R,required:A,alignItemWithTriggerActiveRef:O,disabled:M,keyboardActiveRef:F}=at(),k=h||M||s,V=$(w,_.open),j=$(w,_.mounted),L=$(w,_.value),N=$(w,_.triggerProps),H=$(w,_.positionerElement),W=$(w,_.listElement),U=$(w,_.popupSide),E=$(w,_.id),C=$(w,_.labelId),G=$(w,_.hasSelectedValue),I=j&&H?U:null,ee=i??E,oe=Es(x,C);qn({id:ee});const b=ze(H),T=c.useRef(null),{getButtonProps:B,buttonRef:ce}=Vn({disabled:k,native:l}),te=we(se=>{w.set("triggerElement",se)}),ae=Fn(n,T,ce,te),pe=Ft(),Le=Ft(),Ne=Ft();c.useEffect(()=>{if(V)return Ne.start(As,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{Ne.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},Le.clear()},[V,v,Le,Ne]);const Ce=en(N,{id:ee,role:"combobox","aria-expanded":V?"true":"false","aria-haspopup":"listbox","aria-controls":V?W?.id??$n(H)?.id:void 0,"aria-labelledby":oe,"aria-readonly":R||void 0,"aria-required":A||void 0,tabIndex:k?-1:0,ref:ae,onFocus(se){u(!0),V&&O.current&&y(!1,_e(cn,se.nativeEvent)),pe.start(0,()=>{w.set("forceMount",!0)})},onBlur(se){lt(H,se.relatedTarget)||(d(!0),u(!1),m==="onBlur"&&g.commit(L))},onPointerMove(){F.current=!1},onKeyDown(){F.current=!0},onMouseDown(se){if(V)return;const xe=ct(se.currentTarget);function Ae(J){if(!T.current)return;const ue=J.target;if(lt(T.current,ue)||lt(b.current,ue)||ue===T.current)return;const fe=Cs(T.current);J.clientX>=fe.left-Tt&&J.clientX<=fe.right+Tt&&J.clientY>=fe.top-Tt&&J.clientY<=fe.bottom+Tt||y(!1,_e(Ir,J))}Le.start(0,()=>{xe.addEventListener("mouseup",Ae,{once:!0})})}},g.getValidationProps,f,B);Ce.role="combobox";const z={...a,open:V,disabled:k,value:L,readOnly:R,popupSide:I,placeholder:!G};return dt("button",t,{ref:[n,T],state:z,stateAttributesMapping:Ms,props:Ce})}),Os={value:()=>null},Ts=c.forwardRef(function(t,n){const{className:r,render:o,children:i,placeholder:s,style:l,...p}=t,{store:f,valueRef:d}=at(),u=$(f,_.value),m=$(f,_.items),a=$(f,_.itemToStringLabel),h=$(f,_.hasSelectedValue),x=!h&&s!=null&&i==null,w=$(f,_.hasNullItemLabel,x),y={value:u,placeholder:!h};let v=null;return typeof i=="function"?v=i(u):i!=null?v=i:!h&&s!=null&&!w?v=s:Array.isArray(u)?v=bs(u,m,a):v=pr(u,m,a),dt("span",t,{state:y,ref:[n,d],props:[{children:v},p],stateAttributesMapping:Os})}),Ps=c.forwardRef(function(t,n){const{render:r,className:o,style:i,...s}=t,{store:l}=at(),f={open:$(l,_.open)};return dt("span",t,{state:f,ref:n,props:[{"aria-hidden":!0,children:"▼"},s],stateAttributesMapping:eo})}),Ls=c.createContext(void 0),Ds=c.forwardRef(function(t,n){const{store:r}=at(),o=$(r,_.mounted),i=$(r,_.forceMount);return o||i?X.jsx(Ls.Provider,{value:!0,children:X.jsx(to,{ref:n,...t})}):null}),Fs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:p}=t,{element:f,padding:d=0,offsetParent:u="real"}=nt(e,t)||{};if(f==null)return{};const m=Nn(d),a={x:n,y:r},h=kn(o),x=Hn(h),w=await s.getDimensions(f),y=h==="y",v=y?"top":"left",g=y?"bottom":"right",R=y?"clientHeight":"clientWidth",A=i.reference[x]+i.reference[h]-a[h]-i.floating[x],O=a[h]-i.reference[h],M=u==="real"?await s.getOffsetParent?.(f):l.floating;let F=l.floating[R]||i.floating[x];(!F||!await s.isElement?.(M))&&(F=l.floating[R]||i.floating[x]);const k=A/2-O/2,V=F/2-w[x]/2-1,j=Math.min(m[v],V),L=Math.min(m[g],V),N=j,H=F-w[x]-L,W=F/2-w[x]/2+k,U=tn(N,W,H),E=!p.arrow&&ht(o)!=null&&W!==U&&i.reference[x]/2-(W({...Fs(e),options:[e,t]}),ks={name:"hide",async fn(e){const{width:t,height:n,x:r,y:o}=e.rects.reference,i=t===0&&n===0&&r===0&&o===0;return{data:{referenceHidden:(await us().fn(e)).data?.referenceHidden||i}}}},Ns={sideX:"left",sideY:"top"};function mr(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function En(e,t,n){const{rects:r,placement:o}=e;return{side:mr(t,qe(o),n),align:ht(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Hs(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,collisionBoundary:l,collisionPadding:p=5,sticky:f=!1,arrowPadding:d=5,disableAnchorTracking:u=!1,inline:m,keepMounted:a=!1,floatingRootContext:h,mounted:x,collisionAvoidance:w,shiftCrossAxis:y=!1,nodeId:v,adaptiveOrigin:g,lazyFlip:R=!1,externalTree:A}=e,[O,M]=c.useState(null);!x&&O!==null&&M(null);const F=w.side||"flip",k=w.align||"flip",V=w.fallbackAxisSide||"end",j=typeof t=="function"?t:void 0,L=we(j),N=j?L:t,H=ze(t),W=ze(x),E=Jn()==="rtl",C=O||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":E?"left":"right","inline-start":E?"right":"left"}[r],G=i==="center"?C:`${C}-${i}`;let I=p;const ee=1,oe=r==="bottom"?ee:0,b=r==="top"?ee:0,T=r==="right"?ee:0,B=r==="left"?ee:0;typeof I=="number"?I={top:I+oe,right:I+B,bottom:I+b,left:I+T}:I&&(I={top:(I.top||0)+oe,right:(I.right||0)+B,bottom:(I.bottom||0)+b,left:(I.left||0)+T});const ce={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:I},te=c.useRef(null),ae=ze(o),pe=ze(s),Le=typeof o!="function"?o:0,Ne=typeof s!="function"?s:0,Ce=[];m&&Ce.push(m),Ce.push(ss(Q=>{const be=En(Q,r,E),Me=typeof ae.current=="function"?ae.current(be):ae.current,le=typeof pe.current=="function"?pe.current(be):pe.current;return{mainAxis:Me,crossAxis:le,alignmentAxis:le}},[Le,Ne,E,r]));const z=k==="none"&&F!=="shift",se=!z&&(f||y||F==="shift"),xe=F==="none"?null:cs({...ce,padding:{top:I.top+ee,right:I.right+ee,bottom:I.bottom+ee,left:I.left+ee},mainAxis:!y&&F==="flip",crossAxis:k==="flip"?"alignment":!1,fallbackAxisSideDirection:V}),Ae=z?null:is(Q=>{const be=ct(Q.elements.floating).documentElement;return{...ce,rootBoundary:y?{x:0,y:0,width:be.clientWidth,height:be.clientHeight}:void 0,mainAxis:k!=="none",crossAxis:se,limiter:f||y?void 0:ls(Me=>{if(!te.current)return{};const{width:le,height:Fe}=te.current.getBoundingClientRect(),ve=Ye(qe(Me.placement)),Te=ve==="y"?le:Fe,Ve=ve==="y"?I.left+I.right:I.top+I.bottom;return{offset:Te/2+Ve/2}})}},[ce,f,y,I,k]);F==="shift"||k==="shift"||i==="center"?Ce.push(Ae,xe):Ce.push(xe,Ae),Ce.push(as({...ce,apply({elements:{floating:Q},availableWidth:be,availableHeight:Me,rects:le}){if(!W.current)return;const Fe=Q.style;Fe.setProperty("--available-width",`${be}px`),Fe.setProperty("--available-height",`${Me}px`);const ve=Ke(Q).devicePixelRatio||1,{x:Te,y:Ve,width:je,height:Je}=le.reference,st=(Math.round((Te+je)*ve)-Math.round(Te*ve))/ve,ut=(Math.round((Ve+Je)*ve)-Math.round(Ve*ve))/ve;Fe.setProperty("--anchor-width",`${st}px`),Fe.setProperty("--anchor-height",`${ut}px`)}}),Vs(Q=>({element:te.current||ct(Q.elements.floating).createElement("div"),padding:d,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(Q){const{elements:be,middlewareData:Me,placement:le,rects:Fe,y:ve}=Q,Te=qe(le),Ve=Ye(Te),je=te.current,Je=Me.arrow?.x||0,st=Me.arrow?.y||0,ut=je?.clientWidth||0,He=je?.clientHeight||0,Xe=Je+ut/2,it=st+He/2,xt=Math.abs(Me.shift?.y||0),K=Fe.reference.height/2,de=typeof o=="function"?o(En(Q,r,E)):o,ke=xt>de,Be={top:`${Xe}px calc(100% + ${de}px)`,bottom:`${Xe}px ${-de}px`,left:`calc(100% + ${de}px) ${it}px`,right:`${-de}px ${it}px`}[Te],Ue=`${Xe}px ${Fe.reference.y+K-ve}px`;return be.floating.style.setProperty("--transform-origin",se&&Ve==="y"&&ke?Ue:Be),{}}},ks,g),Z(()=>{!x&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[x,h]);const J=c.useMemo(()=>({elementResize:!u&&typeof ResizeObserver<"u",layoutShift:!u&&typeof IntersectionObserver<"u"}),[u]),{refs:ue,elements:fe,x:Re,y:ge,middlewareData:ne,update:ie,placement:P,context:S,isPositioned:q,floatingStyles:D}=fs({rootContext:h,open:a?x:void 0,placement:G,middleware:Ce,strategy:n,whileElementsMounted:a?void 0:(...Q)=>vn(...Q,J),nodeId:v,externalTree:A}),{sideX:Y,sideY:me}=ne.adaptiveOrigin||Ns,Ie=q?n:"fixed",De=c.useMemo(()=>{const Q=g?{position:Ie,[Y]:Re,[me]:ge}:{position:Ie,...D};return q||(Q.opacity=0),Q},[g,Ie,Y,Re,me,ge,D,q]),Se=c.useRef(null);Z(()=>{if(!x)return;const Q=H.current,be=typeof Q=="function"?Q():Q,le=(Cn(be)?be.current:be)||null||null;le!==Se.current&&(ue.setPositionReference(le),Se.current=le)},[x,ue,N,H]),c.useEffect(()=>{if(!x)return;const Q=H.current;typeof Q!="function"&&Cn(Q)&&Q.current!==Se.current&&(ue.setPositionReference(Q.current),Se.current=Q.current)},[x,ue,N,H]),c.useEffect(()=>{if(a&&x&&fe.domReference&&fe.floating)return vn(fe.domReference,fe.floating,ie,J)},[a,x,fe,ie,J]);const he=qe(P),ye=mr(r,he,E),Ee=ht(P)||"center",$e=!!ne.hide?.referenceHidden;Z(()=>{R&&x&&q&&M(he)},[R,x,q,he]);const ot=c.useMemo(()=>({position:"absolute",top:ne.arrow?.y,left:ne.arrow?.x}),[ne.arrow]),Oe=ne.arrow?.centerOffset!==0;return c.useMemo(()=>({positionerStyles:De,arrowStyles:ot,arrowRef:te,arrowUncentered:Oe,side:ye,align:Ee,physicalSide:he,anchorHidden:$e,refs:ue,context:S,isPositioned:q,update:ie}),[De,ot,te,Oe,ye,Ee,he,$e,ue,S,q,ie])}function Cn(e){return e!=null&&"current"in e}const hr=c.createContext(void 0);function Bs(){const e=c.useContext(hr);if(!e)throw new Error($t(59));return e}function Wt(e,t){e&&Object.assign(e.style,t)}const Ws={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};function xr(e){return e==="starting"?no:Dn}function _s(e,t,{styles:n,transitionStatus:r,props:o,refs:i,hidden:s,inert:l=!1}){const p={...n};return l&&(p.pointerEvents="none"),dt("div",e,{state:t,ref:i,props:[{role:"presentation",hidden:s,style:p},xr(r),o],stateAttributesMapping:Yn})}const $s=20;function js(e,t,n,r){const[o,i]=c.useState(!1);Z(()=>{if(!e||!t||n==null){i(!1);return}const s=ct(n).documentElement.clientWidth,l=n.offsetWidth;i(s>0&&l>0&&l>=s-$s)},[e,t,n]),ro(e&&(!t||o),r)}const Us={position:"fixed"},zs=c.forwardRef(function(t,n){const{anchor:r,positionMethod:o="absolute",className:i,render:s,side:l="bottom",align:p="center",sideOffset:f=0,alignOffset:d=0,collisionBoundary:u="clipping-ancestors",collisionPadding:m,arrowPadding:a=5,sticky:h=!1,disableAnchorTracking:x,alignItemWithTrigger:w=!0,collisionAvoidance:y=oo,style:v,...g}=t,{store:R,listRef:A,labelsRef:O,alignItemWithTriggerActiveRef:M,selectedItemTextRef:F,valuesRef:k,initialValueRef:V,popupRef:j,setValue:L}=at(),N=ur(),H=$(R,_.open),W=$(R,_.mounted),U=$(R,_.modal),E=$(R,_.value),C=$(R,_.openMethod),G=$(R,_.positionerElement),I=$(R,_.triggerElement),ee=$(R,_.isItemEqualToValue),oe=$(R,_.transitionStatus),b=c.useRef(null),T=c.useRef(null),[B,ce]=c.useState(w),te=W&&B&&C!=="touch";!W&&B!==w&&ce(w),Z(()=>{W||(_.scrollUpArrowVisible(R.state)&&R.set("scrollUpArrowVisible",!1),_.scrollDownArrowVisible(R.state)&&R.set("scrollDownArrowVisible",!1))},[R,W]),c.useImperativeHandle(M,()=>te),js((te||U)&&H,C==="touch",G,I);const ae=Hs({anchor:r,floatingRootContext:N,positionMethod:o,mounted:W,side:l,sideOffset:f,align:p,alignOffset:d,arrowPadding:a,collisionBoundary:u,collisionPadding:m,sticky:h,disableAnchorTracking:x??te,collisionAvoidance:y,keepMounted:!0}),pe=te?"none":ae.side,Le=te?Us:ae.positionerStyles,Ne={open:H,side:pe,align:ae.align,anchorHidden:ae.anchorHidden};Z(()=>{R.set("popupSide",ae.side)},[R,ae.side]);const Ce=we(J=>{R.set("positionerElement",J)}),z=_s(t,Ne,{styles:Le,transitionStatus:oe,props:g,refs:[n,Ce],hidden:!W,inert:!H}),se=c.useRef(0),xe=we(J=>{if(J.size===0&&se.current===0||k.current.length===0)return;const ue=se.current;if(se.current=J.size,J.size===ue)return;const fe=_e(cn);if(ue!==0&&!R.state.multiple&&E!==null&&bt(k.current,E,ee)===-1){const ge=V.current,ie=ge!=null&&bt(k.current,ge,ee)!==-1?ge:null;L(ie,fe),ie===null&&(R.set("selectedIndex",null),F.current=null)}if(ue!==0&&R.state.multiple&&Array.isArray(E)){const Re=ne=>bt(k.current,ne,ee)!==-1,ge=E.filter(ne=>Re(ne));(ge.length!==E.length||ge.some(ne=>!ys(E,ne,ee)))&&(L(ge,fe),ge.length===0&&(R.set("selectedIndex",null),F.current=null))}if(H&&te){R.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const Re={height:""};Wt(G,Re),Wt(j.current,Re)}}),Ae=c.useMemo(()=>({...ae,side:pe,alignItemWithTriggerActive:te,setControlledAlignItemWithTrigger:ce,scrollUpArrowRef:b,scrollDownArrowRef:T}),[ae,pe,te,ce]);return X.jsx(wo,{elementsRef:A,labelsRef:O,onMapChange:xe,children:X.jsxs(hr.Provider,{value:Ae,children:[W&&U&&X.jsx(so,{inert:io(!H),cutout:I}),z]})})}),Pt="base-ui-disable-scrollbar",An={className:Pt,getElement(e){return X.jsx("style",{nonce:e,href:Pt,precedence:"base-ui:low",children:`.${Pt}{scrollbar-width:none}.${Pt}::-webkit-scrollbar{display:none}`})}},Ys=c.createContext(void 0);function Ks(e){return c.useContext(Ys)}const qs=c.createContext(void 0),Xs={disableStyleElements:!1};function Gs(){return c.useContext(qs)??Xs}const Js={...Yn,...uo},Qs=c.forwardRef(function(t,n){const{render:r,className:o,style:i,finalFocus:s,...l}=t,{store:p,popupRef:f,onOpenChangeComplete:d,setOpen:u,valueRef:m,firstItemTextRef:a,selectedItemTextRef:h,keyboardActiveRef:x,multiple:w,handleScrollArrowVisibility:y,scrollHandlerRef:v,listRef:g,highlightItemOnHover:R}=at(),{side:A,align:O,alignItemWithTriggerActive:M,isPositioned:F,setControlledAlignItemWithTrigger:k,scrollDownArrowRef:V,scrollUpArrowRef:j}=Bs(),L=Ks()!=null,N=ur(),H=Jn(),{nonce:W,disableStyleElements:U}=Gs(),E=$(p,_.id),C=$(p,_.open),G=$(p,_.mounted),I=$(p,_.popupProps),ee=$(p,_.transitionStatus),oe=$(p,_.triggerElement),b=$(p,_.positionerElement),T=$(p,_.listElement),B=c.useRef(!1),ce=c.useRef(!1),te=c.useRef({}),ae=nn(),pe=we(z=>{if(!b||!f.current||!ce.current)return;if(B.current||!M){y();return}const se=b.style.top==="0px",xe=b.style.bottom==="0px";if(!se&&!xe){y();return}const Ae=In(b),J=Rt(b.getBoundingClientRect().height,"y",Ae),ue=ct(b),fe=getComputedStyle(b),Re=parseFloat(fe.marginTop),ge=parseFloat(fe.marginBottom),ne=Mn(getComputedStyle(f.current)),ie=Math.min(ue.documentElement.clientHeight-Re-ge,ne),P=z.scrollTop,S=Lt(z);let q=0,D=null,Y=!1,me=!1;const Ie=ye=>{b.style.height=`${ye}px`},De=(ye,Ee)=>{const $e=wt(ye,0,ie-J);$e>0&&Ie(J+$e),z.scrollTop=Ee,ie-(J+$e)<=Ze&&(B.current=!0),y()},Se=se?S-P:P,he=Math.min(J+Se,ie);if(q=he,Se<=Ze){De(Se,se?S:0);return}if(ie-he>Ze)se?me=!0:D=0;else if(Y=!0,xe&&PZe&&(z.scrollTop=Ee)}(Y||q>=ie-Ze)&&(B.current=!0),y()});c.useImperativeHandle(v,()=>pe,[pe]),zn({open:C,ref:f,onComplete(){C&&d?.(!0)}});const Le={open:C,transitionStatus:ee,side:A,align:O};Z(()=>{!b||!f.current||Object.keys(te.current).length||(te.current={top:b.style.top||"0",left:b.style.left||"0",right:b.style.right,height:b.style.height,bottom:b.style.bottom,minHeight:b.style.minHeight,maxHeight:b.style.maxHeight,marginTop:b.style.marginTop,marginBottom:b.style.marginBottom})},[f,b]),Z(()=>{C||M||(ce.current=!1,B.current=!1,Wt(b,te.current))},[C,M,b,f]),Z(()=>{const z=f.current;if(!C||!oe||!b||!z||M&&!F||p.state.transitionStatus==="ending")return;if(!M){ce.current=!0,ae.request(y),z.style.removeProperty("--transform-origin");return}const se=Zs(z);z.style.removeProperty("--transform-origin");try{let xe=h.current;xe?.isConnected||(xe=!_.hasSelectedValue(p.state)&&a.current?.isConnected?a.current:null);const Ae=m.current,J=getComputedStyle(b),ue=getComputedStyle(z),fe=ct(oe),Re=Ke(b),ge=In(oe),ne=Dt(oe.getBoundingClientRect(),ge),ie=Dt(b.getBoundingClientRect(),ge),P=ne.height,S=T||z,q=S.scrollHeight,D=parseFloat(ue.borderBottomWidth),Y=parseFloat(J.marginTop)||10,me=parseFloat(J.marginBottom)||10,Ie=parseFloat(J.minHeight)||100,De=Mn(ue),Se=5,he=5,ye=20,Ee=fe.documentElement.clientHeight-Y-me,$e=fe.documentElement.clientWidth,ot=Ee-ne.bottom+P;let Oe,Q=H==="rtl"?ne.right-ie.width:ne.left,be=0;if(xe&&Ae){const He=Dt(Ae.getBoundingClientRect(),ge);Oe=Dt(xe.getBoundingClientRect(),ge),Q=ie.left+(H==="rtl"?He.right-Oe.right:He.left-Oe.left);const Xe=He.top-ne.top+He.height/2;be=Oe.top-ie.top+Oe.height/2-Xe}const Me=ot+be+me+D;let le=Math.min(Ee,Me);const Fe=Ee-Y-me,ve=Me-le,Te=$e-he;b.style.left=`${wt(Q,Se,Te-ie.width)}px`,b.style.height=`${le}px`,b.style.maxHeight="auto",b.style.marginTop=`${Y}px`,b.style.marginBottom=`${me}px`,z.style.height="100%";const Ve=Lt(S),je=ve>=Ve-Ze;je&&(le=Math.min(Ee,ie.height)-(ve-Ve));const Je=ne.topEe-ye||Math.ceil(le)+Ze=Fe?"0":`${He}px`,b.style.height=`${le}px`,S.scrollTop=Lt(S)}else b.style.bottom="0",S.scrollTop=ve;if(Oe){const He=ie.top,Xe=ie.height,it=Oe.top+Oe.height/2,xt=Xe>0?(it-He)/Xe*100:50,K=wt(xt,0,100);z.style.setProperty("--transform-origin",`50% ${K}%`)}(ut===Ee||le>=De)&&(B.current=!0),y(),R&&p.state.selectedIndex===null&&p.state.activeIndex===null&&g.current[0]!=null&&p.set("activeIndex",0),ce.current=!0}finally{se()}},[p,C,b,oe,m,a,h,f,y,M,k,ae,V,j,T,g,R,H,F]),c.useEffect(()=>{if(!M||!b||!C)return;const z=Ke(b);function se(xe){u(!1,_e(Or,xe))}return co(z,"resize",se)},[u,M,b,C]);const Ne={...T?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":w||void 0,id:`${E}-list`},onKeyDown(z){x.current=!0,L&&fo.has(z.key)&&z.stopPropagation()},onMouseMove(){x.current=!1},onScroll(z){T||pe(z.currentTarget)},...M&&{style:T?{height:"100%"}:Ws}},Ce=dt("div",t,{ref:[n,f],state:Le,stateAttributesMapping:Js,props:[I,Ne,xr(ee),{className:!T&&M?An.className:void 0},l]});return X.jsxs(c.Fragment,{children:[!U&&An.getElement(W),X.jsx(ao,{context:N,modal:!1,disabled:!G,returnFocus:s,restoreFocus:!0,children:Ce})]})});function Mn(e){const t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function Lt(e){return gr(e.scrollHeight,e.clientHeight)}function In(e){return or.getScale(e)}function Rt(e,t,n){return e/n[t]}function Dt(e,t){return Et({x:Rt(e.x,"x",t),y:Rt(e.y,"y",t),width:Rt(e.width,"x",t),height:Rt(e.height,"y",t)})}const On=[["transform","none"],["scale","1"],["translate","0 0"]];function Zs(e){const{style:t}=e,n={};for(const[r,o]of On)n[r]=t.getPropertyValue(r),t.setProperty(r,o,"important");return()=>{for(const[r]of On){const o=n[r];o?t.setProperty(r,o):t.removeProperty(r)}}}const yr=c.createContext(void 0);function ei(){const e=c.useContext(yr);if(!e)throw new Error($t(57));return e}const ti=c.memo(c.forwardRef(function(t,n){const{render:r,className:o,style:i,value:s=null,label:l,disabled:p=!1,nativeButton:f=!1,...d}=t,u=c.useRef(null),m=yo({label:l,textRef:u,indexGuessBehavior:Gn.GuessFromOrder}),{store:a,itemProps:h,setOpen:x,setValue:w,selectionRef:y,typingRef:v,valuesRef:g,multiple:R,selectedItemTextRef:A}=at(),O=$(a,_.isActive,m.index),M=$(a,_.isSelected,m.index,s),F=$(a,_.isSelectedByFocus,m.index),k=$(a,_.isItemEqualToValue),V=m.index,j=V!==-1,L=c.useRef(null);Z(()=>{if(!j)return;const T=g.current;return T[V]=s,()=>{delete T[V]}},[j,V,s,g]),Z(()=>{if(!j)return;const T=a.state.value;let B=T;R&&Array.isArray(T)&&T.length>0&&(B=T[T.length-1]),B!==void 0&&mt(s,B,k)&&(a.set("selectedIndex",V),u.current&&(A.current=u.current))},[j,V,R,k,a,s,A]);const N=c.useRef(null),H=c.useRef("mouse"),W=c.useRef(!1),{getButtonProps:U,buttonRef:E}=Vn({disabled:p,focusableWhenDisabled:!0,native:f,composite:!0}),C={disabled:p,selected:M,highlighted:O};function G(T){const B=a.state.value;if(R){const ce=Array.isArray(B)?B:[],te=M?ws(ce,s,k):[...ce,s];w(te,_e(Yt,T))}else w(s,_e(Yt,T)),x(!1,_e(Yt,T))}function I(){y.current.dragY=0}const ee={role:"option","aria-selected":M,tabIndex:O?0:-1,onKeyDown(T){N.current=T.key,a.set("activeIndex",V),T.key===" "&&v.current&&T.preventDefault()},onClick(T){const B=T.type==="click"&&H.current!=="touch",ce=T.nativeEvent.pointerType,te=B&&jn(T.nativeEvent)&&(ce!==void 0||O),ae=B&&!te&&!W.current;W.current=!1,!(T.type==="keydown"&&N.current===null)&&(p||T.type==="keydown"&&N.current===" "&&v.current||ae||(N.current=null,G(T.nativeEvent)))},onPointerEnter(T){H.current=T.pointerType},onPointerMove(T){if(T.pointerType==="mouse"&&T.buttons===1){const B=y.current;B.dragY+=T.movementY,B.dragY**2>=64&&(B.allowUnselectedMouseUp=!0)}},onPointerDown(T){H.current=T.pointerType,W.current=!0,I()},onMouseUp(){if(I(),p||H.current==="touch"||W.current)return;const T=!y.current.allowSelectedMouseUp&&M,B=!y.current.allowUnselectedMouseUp&&!M;T||B||(W.current=!0,L.current?.click(),W.current=!1)}},oe=dt("div",t,{ref:[E,n,m.ref,L],state:C,props:[h,ee,d,U]}),b=c.useMemo(()=>({selected:M,index:V,textRef:u,selectedByFocus:F,hasRegistered:j}),[M,V,u,F,j]);return X.jsx(yr.Provider,{value:b,children:oe})})),ni=c.memo(c.forwardRef(function(t,n){const{index:r,textRef:o,selectedByFocus:i,hasRegistered:s}=ei(),{firstItemTextRef:l,selectedItemTextRef:p}=at(),{render:f,className:d,style:u,...m}=t,a=c.useCallback(x=>{x&&(s&&r===0&&(l.current=x),s&&i&&(p.current=x))},[l,p,r,i,s]);return dt("div",t,{ref:[a,n,o],props:m})}));function di(e){const{className:t,disabled:n,error:r,items:o,onChange:i,placeholder:s="Select an option",value:l,...p}=e,f=o.find(d=>d.value===l);return X.jsxs(Ss,{disabled:n,onValueChange:d=>{typeof d=="string"&&i(d)},value:l,children:[X.jsxs(Is,{className:Rr("flex h-[40px] w-full items-center gap-[10px] rounded-body border-[2px] border-transparent bg-secondary px-[12px] copy-14 text-foreground outline-none hover:bg-secondary-hover active:bg-secondary-active focus-visible:border-focus focus-visible:bg-secondary-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[error]:border-negative data-[error]:focus-visible:border-negative",t),"data-error":r?"":void 0,...p,children:[X.jsx(Ts,{className:"min-w-0 flex-1 truncate",placeholder:X.jsx("span",{className:"text-foreground-secondary",children:s}),children:f?X.jsx(oi,{item:f}):void 0}),X.jsx(Ps,{className:"ml-auto shrink-0 text-foreground-secondary",children:X.jsx(si,{})})]}),X.jsx(Ds,{children:X.jsx(zs,{alignItemWithTrigger:!1,className:"z-50 outline-none",sideOffset:4,children:X.jsx(Qs,{className:"max-h-[288px] min-w-[var(--anchor-width)] overflow-auto rounded-body border border-border bg-surface py-[4px] shadow-lg",children:o.map(d=>X.jsx(ti,{className:"flex cursor-pointer items-center gap-[10px] px-[12px] py-[8px] label-14 text-foreground outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-secondary-hover data-[selected]:font-medium",disabled:d.disabled,label:d.textValue,value:d.value,children:X.jsx(ri,{item:d})},d.value))})})})]})}function ri(e){const{item:t}=e;return X.jsxs(X.Fragment,{children:[t.prefix,X.jsx(ni,{children:t.label}),t.suffix&&X.jsx("span",{className:"ml-auto text-foreground-secondary",children:t.suffix})]})}function oi(e){const{item:t}=e;return X.jsxs("span",{className:"flex min-w-0 items-center gap-[10px]",children:[t.prefix,X.jsx("span",{className:"min-w-0 truncate",children:t.label})]})}function si(){return X.jsx("svg",{"aria-hidden":!0,className:"size-[16px]",fill:"none",viewBox:"0 0 24 24",children:X.jsx("path",{d:"m6 9 6 6 6-6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}export{di as S};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/styles-DOYgvh4N.css': { content: '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:var(--font-body,ui-sans-serif, system-ui, sans-serif);--font-mono:ui-monospace, monospace;--spacing:.25rem;--container-md:28rem;--container-2xl:42rem;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-normal:0em;--leading-tight:1.25;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--text-heading-64:4rem;--text-heading-64--letter-spacing:0;--text-heading-64--line-height:1.1;--text-heading-64--font-weight:600;--text-heading-48:3rem;--text-heading-48--letter-spacing:0;--text-heading-48--line-height:1.15;--text-heading-48--font-weight:600;--text-heading-40:2.5rem;--text-heading-40--letter-spacing:0;--text-heading-40--line-height:1.2;--text-heading-40--font-weight:600;--text-heading-32:2rem;--text-heading-32--letter-spacing:0;--text-heading-32--line-height:1.25;--text-heading-32--font-weight:500;--text-heading-24:1.5rem;--text-heading-24--letter-spacing:0;--text-heading-24--line-height:1.35;--text-heading-24--font-weight:500;--text-heading-20:1.25rem;--text-heading-20--line-height:1.4;--text-heading-20--letter-spacing:.01em;--text-heading-20--font-weight:500;--text-heading-16:1rem;--text-heading-16--line-height:1.5;--text-heading-16--letter-spacing:.01em;--text-heading-16--font-weight:500;--text-copy-16:1rem;--text-copy-16--line-height:1.6;--text-copy-16--letter-spacing:.01em;--text-copy-16--font-weight:400;--text-copy-15:.9375rem;--text-copy-15--line-height:1.6;--text-copy-15--letter-spacing:.01em;--text-copy-15--font-weight:400;--text-copy-14:.875rem;--text-copy-14--line-height:1.6;--text-copy-14--letter-spacing:.01em;--text-copy-14--font-weight:400;--text-copy-13:.8125rem;--text-copy-13--line-height:1.55;--text-copy-13--letter-spacing:.01em;--text-copy-13--font-weight:400;--text-label-16:1rem;--text-label-16--line-height:1.5;--text-label-16--letter-spacing:.01em;--text-label-16--font-weight:400;--text-label-15:.9375rem;--text-label-15--line-height:1.45;--text-label-15--letter-spacing:.01em;--text-label-15--font-weight:400;--text-label-14:.875rem;--text-label-14--line-height:1.45;--text-label-14--letter-spacing:.01em;--text-label-14--font-weight:400;--text-label-13:.8125rem;--text-label-13--line-height:1.4;--text-label-13--letter-spacing:.01em;--text-label-13--font-weight:400;--text-label-12:.75rem;--text-label-12--line-height:1.35;--text-label-12--letter-spacing:.01em;--text-label-12--font-weight:400;--text-button-16:1rem;--text-button-16--line-height:1.5;--text-button-16--letter-spacing:.01em;--text-button-16--font-weight:500;--text-button-14:.875rem;--text-button-14--line-height:1.45;--text-button-14--letter-spacing:.01em;--text-button-14--font-weight:500;--text-button-12:.75rem;--text-button-12--line-height:1.35;--text-button-12--letter-spacing:.01em;--text-button-12--font-weight:500;--radius-base:var(--regen-radius,6px);--radius-body:var(--regen-radius-body,var(--radius-base));--radius-button:var(--regen-radius-button,var(--radius-base));--radius-identicon:var(--regen-radius-identicon,var(--radius-base));--color-transparent:#0000;--color-current:currentColor;--color-black:#000;--color-white:#fff;--color-gray-1:oklch(96.19% 0 0);--color-gray-2:oklch(93.89% 0 0);--color-gray-3:oklch(92.34% 0 0);--color-gray-4:oklch(93.89% 0 0);--color-gray-5:oklch(83.73% 0 0);--color-gray-6:oklch(73.26% 0 0);--color-gray-7:oklch(64.95% 0 0);--color-gray-8:oklch(58.95% 0 0);--color-gray-9:oklch(51.02% 0 0);--color-gray-10:oklch(20.44% 0 0);--color-gray-dark-1:oklch(21.56% 0 0);--color-gray-dark-2:oklch(23.76% 0 0);--color-gray-dark-3:oklch(28.01% 0 0);--color-gray-dark-4:oklch(30.08% 0 0);--color-gray-dark-5:oklch(38.99% 0 0);--color-gray-dark-6:oklch(62.38% 0 0);--color-gray-dark-7:oklch(64.95% 0 0);--color-gray-dark-8:oklch(58.95% 0 0);--color-gray-dark-9:oklch(70.8% 0 0);--color-gray-dark-10:oklch(94.66% 0 0);--color-red-1:oklch(96.5% .0221 13.48);--color-red-2:oklch(95.41% .0292 15.02);--color-red-3:oklch(94.33% .0357 16.17);--color-red-4:oklch(91.51% .045 21.34);--color-red-5:oklch(84.47% .0962 19.64);--color-red-6:oklch(72.8% .1735 23.51);--color-red-7:oklch(65.32% .2328 25.73);--color-red-8:oklch(60.95% .2289 27.85);--color-red-9:oklch(57.75% .214 27.99);--color-red-10:oklch(24.8% .096 19.67);--color-red-dark-1:oklch(22.1% .0658 15.41);--color-red-dark-2:oklch(25.93% .0835 19.61);--color-red-dark-3:oklch(31.47% .1108 21.85);--color-red-dark-4:oklch(35.27% .1277 22.42);--color-red-dark-5:oklch(40.68% .1485 24.65);--color-red-dark-6:oklch(66.2% .2289 24.8);--color-red-dark-7:oklch(66.2% .2246 25.11);--color-red-dark-8:oklch(61.83% .2282 27.2);--color-red-dark-9:oklch(71.38% .2147 23.49);--color-red-dark-10:oklch(95.6% .0295 7.03);--color-amber-1:oklch(97.48% .0331 85.79);--color-amber-2:oklch(96.81% .0495 90.24);--color-amber-3:oklch(95.93% .0636 90.52);--color-amber-4:oklch(91.02% .1322 88.25);--color-amber-5:oklch(86.55% .1583 79.63);--color-amber-6:oklch(80.25% .1953 73.59);--color-amber-7:oklch(81.87% .1969 76.46);--color-amber-8:oklch(77.21% .1991 64.28);--color-amber-9:oklch(52.79% .1496 54.65);--color-amber-10:oklch(30.83% .099 45.48);--color-amber-dark-1:oklch(22.46% .0538 76.04);--color-amber-dark-2:oklch(24.95% .0642 64.78);--color-amber-dark-3:oklch(32.34% .0837 63.83);--color-amber-dark-4:oklch(35.53% .0903 66.3);--color-amber-dark-5:oklch(41.55% .1044 67.98);--color-amber-dark-6:oklch(75.04% .1737 74.49);--color-amber-dark-7:oklch(81.87% .1969 76.46);--color-amber-dark-8:oklch(77.21% .1991 64.28);--color-amber-dark-9:oklch(77.21% .1991 64.28);--color-amber-dark-10:oklch(96.7% .0418 84.59);--color-green-1:oklch(97.59% .0294 145.45);--color-green-2:oklch(96.92% .0382 147.2);--color-green-3:oklch(94.6% .0707 144.31);--color-green-4:oklch(91.49% .1039 146.35);--color-green-5:oklch(85.45% .1759 146.44);--color-green-6:oklch(82.36% .2383 145.34);--color-green-7:oklch(73.03% .1944 147.46);--color-green-8:oklch(66.26% .1678 147.69);--color-green-9:oklch(60.2% .1618 147.84);--color-green-10:oklch(29.15% .1333 147.44);--color-green-dark-1:oklch(23.09% .0721 149.64);--color-green-dark-2:oklch(27.12% .0907 150.01);--color-green-dark-3:oklch(29.84% .0979 149.13);--color-green-dark-4:oklch(34.39% .1066 147.63);--color-green-dark-5:oklch(44.19% .1533 147.01);--color-green-dark-6:oklch(65.6% .1899 146.32);--color-green-dark-7:oklch(75.55% .2082 147);--color-green-dark-8:oklch(68.78% .1858 147.23);--color-green-dark-9:oklch(81.51% .2258 148.1);--color-green-dark-10:oklch(96.76% .0586 154.13);--color-blue-1:oklch(97.32% .0141 252.29);--color-blue-2:oklch(96.29% .0197 252.04);--color-blue-3:oklch(94.58% .0296 252.02);--color-blue-4:oklch(91.58% .0481 248.01);--color-blue-5:oklch(82.75% .0998 252.1);--color-blue-6:oklch(71.4% .1308 251.19);--color-blue-7:oklch(53.23% .2073 259.16);--color-blue-8:oklch(47.13% .1983 258.78);--color-blue-9:oklch(53.18% .2399 256.99);--color-blue-10:oklch(26.67% .1129 255.03);--color-blue-dark-1:oklch(22.17% .0695 261.1);--color-blue-dark-2:oklch(25.45% .0824 258.21);--color-blue-dark-3:oklch(30.86% .1046 258.84);--color-blue-dark-4:oklch(34.1% .1247 259.58);--color-blue-dark-5:oklch(38.5% .1456 260.45);--color-blue-dark-6:oklch(51.25% .1722 256.97);--color-blue-dark-7:oklch(49.75% .2015 259.95);--color-blue-dark-8:oklch(43.65% .2003 259.57);--color-blue-dark-9:oklch(71.7% .1648 250.79);--color-blue-dark-10:oklch(96.75% .0188 243.43);--color-purple-1:oklch(96.65% .0236 308.36);--color-purple-2:oklch(96.73% .0213 302.14);--color-purple-3:oklch(94.85% .0327 298.66);--color-purple-4:oklch(91.77% .0531 297.5);--color-purple-5:oklch(81.26% .1171 291.65);--color-purple-6:oklch(72.23% .159 285.4);--color-purple-7:oklch(55.95% .2296 279.31);--color-purple-8:oklch(49.03% .2014 278.92);--color-purple-9:oklch(47.63% .1969 277.19);--color-purple-10:oklch(23.96% .0992 297.62);--color-purple-dark-1:oklch(22.34% .0766 312.38);--color-purple-dark-2:oklch(25.91% .089 305.43);--color-purple-dark-3:oklch(31.98% .1158 298.94);--color-purple-dark-4:oklch(35.93% .1403 291.82);--color-purple-dark-5:oklch(40.99% .1576 285.47);--color-purple-dark-6:oklch(64.12% .1933 279.4);--color-purple-dark-7:oklch(64.12% .1929 274.69);--color-purple-dark-8:oklch(57.2% .1855 274.3);--color-purple-dark-9:oklch(74.18% .1798 287.51);--color-purple-dark-10:oklch(96.1% .0268 310.17);--background-color-background:light-dark(#fafafa,#0c0c0c);--background-color-surface:light-dark(#fff,#141414);--background-color-surface-hover:light-dark(oklch(96.19% 0 0),oklch(21.56% 0 0));--background-color-surface-active:light-dark(oklch(93.89% 0 0),oklch(23.76% 0 0));--background-color-secondary:light-dark(oklch(93.89% 0 0),oklch(23.76% 0 0));--background-color-secondary-hover:light-dark(oklch(from var(--background-color-secondary) calc(l - .015) c h),oklch(from var(--background-color-secondary) calc(l + .02) c h));--background-color-secondary-active:light-dark(oklch(from var(--background-color-secondary) calc(l - .03) c h),oklch(from var(--background-color-secondary) calc(l + .035) c h));--background-color-pane:light-dark(oklch(96.19% 0 0),oklch(23.76% 0 0));--background-color-accent:var(--regen-accent);--background-color-accent-hover:oklch(from var(--background-color-accent) calc(l + clamp(0, (.6 - l) * 999, 1)*.045 - (clamp(0, (l - .6) * 999, 1)*.035)) calc(c*.98) h);--background-color-accent-active:oklch(from var(--background-color-accent) calc(l + clamp(0, (.6 - l) * 999, 1)*.075 - (clamp(0, (l - .6) * 999, 1)*.06)) calc(c*.96) h);--background-color-accent-subtle:light-dark(#fafafa,#0c0c0c)}@supports (color:color-mix(in lab,red,red)){:root,:host{--background-color-accent-subtle:color-mix(in oklch, var(--background-color-background), var(--background-color-accent) 12%)}}:root,:host{--background-color-invert:light-dark(#000,#fff);--background-color-negative:light-dark(oklch(61.82% .19788 25.73),oklch(59.7% .184172 25.11));--background-color-negative-hover:light-dark(oklch(from var(--background-color-negative) calc(l - .03) calc(c*1.05) h),oklch(from var(--background-color-negative) calc(l - .025) calc(c*1.05) h));--background-color-negative-active:light-dark(oklch(from var(--background-color-negative) calc(l - .06) calc(c*1.08) h),oklch(from var(--background-color-negative) calc(l - .05) calc(c*1.08) h));--background-color-negative-subtle:light-dark(oklch(96.5% .0221 13.48),oklch(22.1% .0658 15.41));--background-color-info-subtle:light-dark(oklch(97.32% .0141 252.29),oklch(22.17% .0695 261.1));--background-color-positive-subtle:light-dark(oklch(96.92% .0382 147.2),oklch(27.12% .0907 150.01));--background-color-skeleton:light-dark(oklch(92.34% 0 0),oklch(28.01% 0 0));--background-color-warning-subtle:light-dark(oklch(97.48% .0331 85.79),oklch(22.46% .0538 76.04));--text-color-foreground:light-dark(oklch(20.44% 0 0),oklch(94.66% 0 0));--text-color-foreground-secondary:light-dark(oklch(51.02% 0 0),oklch(70.8% 0 0));--text-color-foreground-secondary-hover:light-dark(oklch(20.44% 0 0),oklch(94.66% 0 0));--text-color-on-accent:oklch(from var(--regen-accent) clamp(0, (.6 - l) * 999, 1) 0 0);--text-color-on-accent-subtle:light-dark(oklch(20.44% 0 0),oklch(94.66% 0 0))}@supports (color:color-mix(in lab,red,red)){:root,:host{--text-color-on-accent-subtle:color-mix(in oklch, var(--text-color-foreground), var(--background-color-accent) 72%)}}:root,:host{--text-color-on-invert:light-dark(#fff,#000);--text-color-on-negative:#fff;--text-color-negative:light-dark(oklch(57.75% .214 27.99),oklch(71.38% .2147 23.49));--text-color-info:light-dark(oklch(53.18% .2399 256.99),oklch(71.7% .1648 250.79));--text-color-positive:light-dark(oklch(60.2% .1618 147.84),oklch(81.51% .2258 148.1));--text-color-warning:light-dark(oklch(52.79% .1496 54.65),oklch(77.21% .1991 64.28));--text-color-warning-strong:light-dark(oklch(30.83% .099 45.48),oklch(96.7% .0418 84.59));--border-color-border:light-dark(oklch(93.89% 0 0),oklch(30.08% 0 0));--border-color-border-hover:light-dark(oklch(83.73% 0 0),oklch(38.99% 0 0));--border-color-border-pane:light-dark(oklch(91.3% 0 0),oklch(28.01% 0 0));--border-color-focus:light-dark(oklch(53.23% .2073 259.16),oklch(71.7% .1648 250.79));--border-color-negative:light-dark(oklch(91.51% .045 21.34),oklch(35.27% .1277 22.42));--border-color-info:light-dark(oklch(91.58% .0481 248.01),oklch(34.1% .1247 259.58));--border-color-warning:light-dark(oklch(91.02% .1322 88.25),oklch(35.53% .0903 66.3));--background-color-error-subtle:var(--background-color-negative-subtle);--background-color-success-subtle:var(--background-color-positive-subtle);--text-color-negative-text:var(--text-color-negative);--text-color-error:var(--text-color-negative);--text-color-success:var(--text-color-positive);--border-color-error:var(--border-color-negative);--outline-color-focus:light-dark(oklch(53.23% .2073 259.16),oklch(71.7% .1648 250.79))}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{inset-block:0}.-top-px{top:-1px}.top-0{top:0}.top-1\\/2{top:50%}.top-full{top:100%}.right-0{right:0}.right-3{right:calc(var(--spacing) * 3)}.right-\\[var\\(--rows-row-divider-right\\)\\]{right:var(--rows-row-divider-right)}.bottom-\\[-1px\\]{bottom:-1px}.left-0{left:0}.left-1\\/2{left:50%}.left-\\[var\\(--rows-row-divider-left\\)\\]{left:var(--rows-row-divider-left)}.isolate{isolation:isolate}.z-1{z-index:1}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-\\[-14px\\]{margin-inline:-14px}.-mt-2{margin-top:calc(var(--spacing) * -2)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.-mr-2{margin-right:calc(var(--spacing) * -2)}.mr-\\[-6px\\]{margin-right:-6px}.mr-\\[-14px\\]{margin-right:-14px}.mr-auto{margin-right:auto}.-mb-1{margin-bottom:calc(var(--spacing) * -1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.ml-\\[-14px\\]{margin-left:-14px}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.field-sizing-content{field-sizing:content}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-\\[6px\\]{width:6px;height:6px}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.size-\\[18px\\]{width:18px;height:18px}.size-\\[24px\\]{width:24px;height:24px}.size-\\[40px\\]{width:40px;height:40px}.size-\\[48px\\]{width:48px;height:48px}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-10{height:calc(var(--spacing) * 10)}.h-\\[1px\\]{height:1px}.h-\\[12px\\]{height:12px}.h-\\[13px\\]{height:13px}.h-\\[14px\\]{height:14px}.h-\\[16px\\]{height:16px}.h-\\[20px\\]{height:20px}.h-\\[24px\\]{height:24px}.h-\\[32px\\]{height:32px}.h-\\[36px\\]{height:36px}.h-\\[38px\\]{height:38px}.h-\\[40px\\]{height:40px}.h-\\[44px\\]{height:44px}.h-dvh{height:100dvh}.h-px{height:1px}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-\\[288px\\]{max-height:288px}.max-h-\\[calc\\(100dvh-2rem\\)\\]{max-height:calc(100dvh - 2rem)}.min-h-0{min-height:0}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-28{min-height:calc(var(--spacing) * 28)}.min-h-\\[44px\\]{min-height:44px}.min-h-\\[56px\\]{min-height:56px}.min-h-\\[60px\\]{min-height:60px}.min-h-\\[64px\\]{min-height:64px}.min-h-\\[180px\\]{min-height:180px}.min-h-dvh{min-height:100dvh}.min-h-screen{min-height:100vh}.w-9{width:calc(var(--spacing) * 9)}.w-28{width:calc(var(--spacing) * 28)}.w-32{width:calc(var(--spacing) * 32)}.w-40{width:calc(var(--spacing) * 40)}.w-\\[12ch\\]{width:12ch}.w-\\[12px\\]{width:12px}.w-\\[16px\\]{width:16px}.w-\\[20px\\]{width:20px}.w-\\[24px\\]{width:24px}.w-\\[28px\\]{width:28px}.w-\\[32px\\]{width:32px}.w-\\[36px\\]{width:36px}.w-\\[38px\\]{width:38px}.w-\\[44px\\]{width:44px}.w-\\[64px\\]{width:64px}.w-\\[72px\\]{width:72px}.w-\\[88px\\]{width:88px}.w-\\[96px\\]{width:96px}.w-\\[112px\\]{width:112px}.w-\\[128px\\]{width:128px}.w-\\[260px\\]{width:260px}.w-\\[calc\\(100\\%\\+14px\\)\\]{width:calc(100% + 14px)}.w-\\[calc\\(100\\%\\+28px\\)\\]{width:calc(100% + 28px)}.w-\\[calc\\(100vw-2rem\\)\\]{width:calc(100vw - 2rem)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\\[384px\\]{max-width:384px}.max-w-\\[1024px\\]{max-width:1024px}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:0}.min-w-\\[360px\\]{min-width:360px}.min-w-\\[var\\(--anchor-width\\)\\]{min-width:var(--anchor-width)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-rgn-spin{animation:1s linear infinite rgn-spin}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-y{resize:vertical}.auto-cols-fr{grid-auto-columns:minmax(0,1fr)}.grid-flow-col{grid-auto-flow:column}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[minmax\\(0\\,max-content\\)_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,max-content) minmax(0,1fr)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-around{justify-content:space-around}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\\[2px\\]{gap:2px}.gap-\\[4px\\]{gap:4px}.gap-\\[6px\\]{gap:6px}.gap-\\[8px\\]{gap:8px}.gap-\\[10px\\]{gap:10px}.gap-\\[12px\\]{gap:12px}.gap-\\[14px\\]{gap:14px}.gap-\\[16px\\]{gap:16px}.gap-\\[inherit\\]{gap:inherit}.gap-px{gap:1px}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-10{column-gap:calc(var(--spacing) * 10)}.gap-y-1{row-gap:var(--spacing)}.gap-y-4{row-gap:calc(var(--spacing) * 4)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--border-color-border)}.self-center{align-self:center}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-\\[min\\(var\\(--radius-body\\)\\,var\\(--regen-radius-large\\)\\)\\]{border-radius:min(var(--radius-body),var(--regen-radius-large))}.rounded-body{border-radius:var(--radius-body)}.rounded-button{border-radius:var(--radius-button)}.rounded-full{border-radius:3.40282e38px}.rounded-identicon{border-radius:var(--radius-identicon)}.rounded-none{border-radius:0}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2,.border-\\[2px\\]{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-border{border-color:var(--border-color-border)}.border-border-pane{border-color:var(--border-color-border-pane)}.border-info{border-color:var(--border-color-info)}.border-negative{border-color:var(--border-color-negative)}.border-transparent{border-color:#0000}.border-warning{border-color:var(--border-color-warning)}.bg-accent{background-color:var(--background-color-accent)}.bg-accent-subtle{background-color:var(--background-color-accent-subtle)}.bg-background{background-color:var(--background-color-background)}.bg-black\\/60{background-color:#0009}@supports (color:color-mix(in lab,red,red)){.bg-black\\/60{background-color:color-mix(in oklab,var(--color-black) 60%,transparent)}}.bg-current{background-color:currentColor}.bg-info-subtle{background-color:var(--background-color-info-subtle)}.bg-negative{background-color:var(--background-color-negative)}.bg-negative-subtle{background-color:var(--background-color-negative-subtle)}.bg-pane{background-color:var(--background-color-pane)}.bg-positive-subtle{background-color:var(--background-color-positive-subtle)}.bg-secondary{background-color:var(--background-color-secondary)}.bg-secondary-hover{background-color:var(--background-color-secondary-hover)}.bg-skeleton{background-color:var(--background-color-skeleton)}.bg-surface{background-color:var(--background-color-surface)}.bg-transparent{background-color:#0000}.bg-warning-subtle{background-color:var(--background-color-warning-subtle)}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-\\[2px\\]{padding:2px}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\\[5px\\]{padding-inline:5px}.px-\\[6px\\]{padding-inline:6px}.px-\\[12px\\]{padding-inline:12px}.px-\\[14px\\]{padding-inline:14px}.px-\\[16px\\]{padding-inline:16px}.px-\\[20px\\]{padding-inline:20px}.px-\\[22px\\]{padding-inline:22px}.px-\\[24px\\]{padding-inline:24px}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-\\[2px\\]{padding-block:2px}.py-\\[3px\\]{padding-block:3px}.py-\\[4px\\]{padding-block:4px}.py-\\[8px\\]{padding-block:8px}.py-\\[10px\\]{padding-block:10px}.py-\\[12px\\]{padding-block:12px}.py-\\[48px\\]{padding-block:48px}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pr-1{padding-right:var(--spacing)}.pr-12{padding-right:calc(var(--spacing) * 12)}.pr-\\[10px\\]{padding-right:10px}.pr-\\[var\\(--rows-row-padding-right\\,20px\\)\\]{padding-right:var(--rows-row-padding-right,20px)}.pb-1{padding-bottom:var(--spacing)}.pb-1\\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-\\[env\\(safe-area-inset-bottom\\)\\]{padding-bottom:env(safe-area-inset-bottom)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-\\[10px\\]{padding-left:10px}.pl-\\[var\\(--rows-pane-content-padding-left\\)\\]{padding-left:var(--rows-pane-content-padding-left)}.pl-\\[var\\(--rows-row-padding-left\\,20px\\)\\]{padding-left:var(--rows-row-padding-left,20px)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.button-12{font-size:var(--text-button-12);letter-spacing:var(--text-button-12--letter-spacing);line-height:var(--text-button-12--line-height);font-weight:var(--text-button-12--font-weight)}.button-14{font-size:var(--text-button-14);letter-spacing:var(--text-button-14--letter-spacing);line-height:var(--text-button-14--line-height);font-weight:var(--text-button-14--font-weight)}.button-16{font-size:var(--text-button-16);letter-spacing:var(--text-button-16--letter-spacing);line-height:var(--text-button-16--line-height);font-weight:var(--text-button-16--font-weight)}.copy-13{font-size:var(--text-copy-13);letter-spacing:var(--text-copy-13--letter-spacing);line-height:var(--text-copy-13--line-height);font-weight:var(--text-copy-13--font-weight)}.copy-14{font-size:var(--text-copy-14);letter-spacing:var(--text-copy-14--letter-spacing);line-height:var(--text-copy-14--line-height);font-weight:var(--text-copy-14--font-weight)}.copy-15{font-size:var(--text-copy-15);letter-spacing:var(--text-copy-15--letter-spacing);line-height:var(--text-copy-15--line-height);font-weight:var(--text-copy-15--font-weight)}.copy-16{font-size:var(--text-copy-16);letter-spacing:var(--text-copy-16--letter-spacing);line-height:var(--text-copy-16--line-height);font-weight:var(--text-copy-16--font-weight)}.heading-16{font-size:var(--text-heading-16);letter-spacing:var(--text-heading-16--letter-spacing);line-height:var(--text-heading-16--line-height);font-weight:var(--text-heading-16--font-weight)}.heading-20{font-size:var(--text-heading-20);letter-spacing:var(--text-heading-20--letter-spacing);line-height:var(--text-heading-20--line-height);font-weight:var(--text-heading-20--font-weight)}.heading-24{font-size:var(--text-heading-24);letter-spacing:var(--text-heading-24--letter-spacing);line-height:var(--text-heading-24--line-height);font-weight:var(--text-heading-24--font-weight)}.heading-32{font-size:var(--text-heading-32);letter-spacing:var(--text-heading-32--letter-spacing);line-height:var(--text-heading-32--line-height);font-weight:var(--text-heading-32--font-weight)}.heading-40{font-size:var(--text-heading-40);letter-spacing:var(--text-heading-40--letter-spacing);line-height:var(--text-heading-40--line-height);font-weight:var(--text-heading-40--font-weight)}.heading-48{font-size:var(--text-heading-48);letter-spacing:var(--text-heading-48--letter-spacing);line-height:var(--text-heading-48--line-height);font-weight:var(--text-heading-48--font-weight)}.heading-64{font-size:var(--text-heading-64);letter-spacing:var(--text-heading-64--letter-spacing);line-height:var(--text-heading-64--line-height);font-weight:var(--text-heading-64--font-weight)}.label-12{font-size:var(--text-label-12);letter-spacing:var(--text-label-12--letter-spacing);line-height:var(--text-label-12--line-height);font-weight:var(--text-label-12--font-weight)}.label-13{font-size:var(--text-label-13);letter-spacing:var(--text-label-13--letter-spacing);line-height:var(--text-label-13--line-height);font-weight:var(--text-label-13--font-weight)}.label-14{font-size:var(--text-label-14);letter-spacing:var(--text-label-14--letter-spacing);line-height:var(--text-label-14--line-height);font-weight:var(--text-label-14--font-weight)}.label-15{font-size:var(--text-label-15);letter-spacing:var(--text-label-15--letter-spacing);line-height:var(--text-label-15--line-height);font-weight:var(--text-label-15--font-weight)}.label-16{font-size:var(--text-label-16);letter-spacing:var(--text-label-16--letter-spacing);line-height:var(--text-label-16--line-height);font-weight:var(--text-label-16--font-weight)}.text-copy-13{font-size:var(--text-copy-13);line-height:var(--tw-leading,var(--text-copy-13--line-height));letter-spacing:var(--tw-tracking,var(--text-copy-13--letter-spacing));font-weight:var(--tw-font-weight,var(--text-copy-13--font-weight))}.text-copy-14{font-size:var(--text-copy-14);line-height:var(--tw-leading,var(--text-copy-14--line-height));letter-spacing:var(--tw-tracking,var(--text-copy-14--letter-spacing));font-weight:var(--tw-font-weight,var(--text-copy-14--font-weight))}.text-copy-15{font-size:var(--text-copy-15);line-height:var(--tw-leading,var(--text-copy-15--line-height));letter-spacing:var(--tw-tracking,var(--text-copy-15--letter-spacing));font-weight:var(--tw-font-weight,var(--text-copy-15--font-weight))}.text-heading-20{font-size:var(--text-heading-20);line-height:var(--tw-leading,var(--text-heading-20--line-height));letter-spacing:var(--tw-tracking,var(--text-heading-20--letter-spacing));font-weight:var(--tw-font-weight,var(--text-heading-20--font-weight))}.text-heading-24{font-size:var(--text-heading-24);line-height:var(--tw-leading,var(--text-heading-24--line-height));letter-spacing:var(--tw-tracking,var(--text-heading-24--letter-spacing));font-weight:var(--tw-font-weight,var(--text-heading-24--font-weight))}.text-label-12{font-size:var(--text-label-12);line-height:var(--tw-leading,var(--text-label-12--line-height));letter-spacing:var(--tw-tracking,var(--text-label-12--letter-spacing));font-weight:var(--tw-font-weight,var(--text-label-12--font-weight))}.text-label-13{font-size:var(--text-label-13);line-height:var(--tw-leading,var(--text-label-13--line-height));letter-spacing:var(--tw-tracking,var(--text-label-13--letter-spacing));font-weight:var(--tw-font-weight,var(--text-label-13--font-weight))}.text-label-14{font-size:var(--text-label-14);line-height:var(--tw-leading,var(--text-label-14--line-height));letter-spacing:var(--tw-tracking,var(--text-label-14--letter-spacing));font-weight:var(--tw-font-weight,var(--text-label-14--font-weight))}.text-label-16{font-size:var(--text-label-16);line-height:var(--tw-leading,var(--text-label-16--line-height));letter-spacing:var(--tw-tracking,var(--text-label-16--letter-spacing));font-weight:var(--tw-font-weight,var(--text-label-16--font-weight))}.text-\\[10px\\]{font-size:10px}.leading-none{--tw-leading:1;line-height:1}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.tracking-\\[0\\.06em\\]{--tw-tracking:.06em;letter-spacing:.06em}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.text-foreground{color:var(--text-color-foreground)}.text-foreground-secondary{color:var(--text-color-foreground-secondary)}.text-info{color:var(--text-color-info)}.text-negative{color:var(--text-color-negative)}.text-on-accent{color:var(--text-color-on-accent)}.text-on-accent-subtle{color:var(--text-color-on-accent-subtle)}.text-on-invert{color:var(--text-color-on-invert)}.text-on-negative{color:var(--text-color-on-negative)}.text-positive{color:var(--text-color-positive)}.text-transparent{color:#0000}.text-warning{color:var(--text-color-warning)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.decoration-current\\/40{text-decoration-color:currentColor}@supports (color:color-mix(in lab,red,red)){.decoration-current\\/40{-webkit-text-decoration-color:color-mix(in oklab,currentcolor 40%,transparent);text-decoration-color:color-mix(in oklab,currentcolor 40%,transparent)}}.underline-offset-2{text-underline-offset:2px}.caret-\\[var\\(--text-color-foreground\\)\\]{caret-color:var(--text-color-foreground)}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-\\[2px\\]{outline-style:var(--tw-outline-style);outline-width:2px}.outline-offset-\\[2px\\]{outline-offset:2px}.outline-transparent{outline-color:#0000}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[--rows-divider\\:var\\(--border-color-border\\)\\]{--rows-divider:var(--border-color-border)}.\\[--rows-divider\\:var\\(--border-color-border-pane\\)\\]{--rows-divider:var(--border-color-border-pane)}.\\[--rows-group-divider-left\\:0px\\]{--rows-group-divider-left:0px}.\\[--rows-group-divider-left\\:20px\\]{--rows-group-divider-left:20px}.\\[--rows-pane-content-padding-left\\:0px\\]{--rows-pane-content-padding-left:0px}.\\[--rows-pane-content-padding-left\\:20px\\]{--rows-pane-content-padding-left:20px}.\\[--rows-pane-content-padding-left\\:48px\\]{--rows-pane-content-padding-left:48px}.\\[--rows-row-divider-left\\:-14px\\]{--rows-row-divider-left:-14px}.\\[--rows-row-divider-left\\:0px\\]{--rows-row-divider-left:0px}.\\[--rows-row-divider-left\\:14px\\]{--rows-row-divider-left:14px}.\\[--rows-row-divider-left\\:20px\\]{--rows-row-divider-left:20px}.\\[--rows-row-divider-right\\:-14px\\]{--rows-row-divider-right:-14px}.\\[--rows-row-divider-right\\:0px\\]{--rows-row-divider-right:0px}.\\[--rows-row-divider-right\\:14px\\]{--rows-row-divider-right:14px}.\\[--rows-row-divider-right\\:20px\\]{--rows-row-divider-right:20px}.\\[--rows-row-padding-left\\:20px\\]{--rows-row-padding-left:20px}.\\[--rows-row-padding-left\\:48px\\]{--rows-row-padding-left:48px}.\\[text-decoration\\:inherit\\]{-webkit-text-decoration:inherit;text-decoration:inherit}@media(hover:hover){.group-hover\\:bg-accent-hover:is(:where(.group):hover *){background-color:var(--background-color-accent-hover)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *){background-color:var(--background-color-negative-hover)}.group-hover\\:bg-secondary-hover:is(:where(.group):hover *){background-color:var(--background-color-secondary-hover)}.group-hover\\:text-foreground:is(:where(.group):hover *){color:var(--text-color-foreground)}}.group-active\\:bg-accent-active:is(:where(.group):active *){background-color:var(--background-color-accent-active)}.group-active\\:bg-negative-active:is(:where(.group):active *){background-color:var(--background-color-negative-active)}.group-active\\:bg-secondary-active:is(:where(.group):active *){background-color:var(--background-color-secondary-active)}@media(hover:hover){.group-hover\\:group-active\\:bg-accent-active:is(:where(.group):hover *):is(:where(.group):active *){background-color:var(--background-color-accent-active)}.group-hover\\:group-active\\:bg-negative-active:is(:where(.group):hover *):is(:where(.group):active *){background-color:var(--background-color-negative-active)}.group-hover\\:group-active\\:bg-secondary-active:is(:where(.group):hover *):is(:where(.group):active *){background-color:var(--background-color-secondary-active)}}.placeholder\\:font-sans::placeholder{font-family:var(--font-sans)}.placeholder\\:text-foreground-secondary\\/50::placeholder{color:light-dark(#66666680,#a1a1a180)}@supports (color:color-mix(in lab,red,red)){.placeholder\\:text-foreground-secondary\\/50::placeholder{color:color-mix(in oklab,var(--text-color-foreground-secondary) 50%,transparent)}}.before\\:pointer-events-none:before{content:var(--tw-content);pointer-events:none}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-y-0:before{content:var(--tw-content);inset-block:0}.before\\:left-\\[10px\\]:before{content:var(--tw-content);left:10px}.before\\:left-\\[28px\\]:before{content:var(--tw-content);left:28px}.before\\:z-10:before{content:var(--tw-content);z-index:10}.before\\:w-\\[2px\\]:before{content:var(--tw-content);width:2px}.focus-within\\:border-focus:focus-within{border-color:var(--border-color-focus)}.focus-within\\:bg-secondary-hover:focus-within{background-color:var(--background-color-secondary-hover)}@media(hover:hover){.hover\\:border-border-hover:hover{border-color:var(--border-color-border-hover)}.hover\\:bg-secondary-hover:hover{background-color:var(--background-color-secondary-hover)}.hover\\:bg-surface-hover:hover{background-color:var(--background-color-surface-hover)}.hover\\:text-foreground:hover{color:var(--text-color-foreground)}.hover\\:text-foreground-secondary-hover:hover{color:var(--text-color-foreground-secondary-hover)}.hover\\:text-negative:hover{color:var(--text-color-negative)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:decoration-current:hover{text-decoration-color:currentColor}}.focus-visible\\:border-focus:focus-visible{border-color:var(--border-color-focus)}.focus-visible\\:bg-secondary-hover:focus-visible{background-color:var(--background-color-secondary-hover)}.focus-visible\\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\\:outline-\\[2px\\]:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-offset-\\[-1px\\]:focus-visible{outline-offset:-1px}.focus-visible\\:outline-offset-\\[-2px\\]:focus-visible{outline-offset:-2px}.focus-visible\\:outline-offset-\\[2px\\]:focus-visible{outline-offset:2px}.focus-visible\\:outline-focus:focus-visible{outline-color:var(--outline-color-focus)}.active\\:bg-secondary-active:active{background-color:var(--background-color-secondary-active)}.active\\:bg-surface-active:active{background-color:var(--background-color-surface-active)}.active\\:text-foreground:active{color:var(--text-color-foreground)}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.data-active\\:font-semibold[data-active]{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.data-active\\:text-foreground[data-active]{color:var(--text-color-foreground)}.data-\\[checked\\]\\:translate-x-4[data-checked]{--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\\[checked\\]\\:border-\\[var\\(--background-color-invert\\)\\][data-checked]{border-color:var(--background-color-invert)}.data-\\[checked\\]\\:bg-accent[data-checked]{background-color:var(--background-color-accent)}.data-\\[checked\\]\\:bg-invert[data-checked]{background-color:var(--background-color-invert)}.data-\\[checked\\]\\:bg-surface[data-checked]{background-color:var(--background-color-surface)}.data-\\[checked\\]\\:text-foreground[data-checked]{color:var(--text-color-foreground)}.data-\\[checked\\]\\:text-on-accent[data-checked]{color:var(--text-color-on-accent)}@media(hover:hover){.data-\\[checked\\]\\:hover\\:bg-accent-hover[data-checked]:hover{background-color:var(--background-color-accent-hover)}}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[ending-style\\]\\:opacity-0[data-ending-style]{opacity:0}.data-\\[error\\]\\:border-negative[data-error]{border-color:var(--border-color-negative)}.data-\\[error\\]\\:focus-within\\:border-focus[data-error]:focus-within{border-color:var(--border-color-focus)}.data-\\[error\\]\\:focus-visible\\:border-negative[data-error]:focus-visible{border-color:var(--border-color-negative)}.data-\\[highlighted\\]\\:bg-secondary-hover[data-highlighted]{background-color:var(--background-color-secondary-hover)}.data-\\[loading\\]\\:pointer-events-none[data-loading]{pointer-events:none}.data-\\[open\\]\\:rotate-90[data-open]{rotate:90deg}.data-\\[open\\]\\:rotate-180[data-open]{rotate:180deg}.data-\\[selected\\]\\:bg-surface-hover[data-selected]{background-color:var(--background-color-surface-hover)}.data-\\[selected\\]\\:font-medium[data-selected]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\\[side\\=bottom\\]\\:-top-\\[6px\\][data-side=bottom]{top:-6px}.data-\\[side\\=bottom\\]\\:rotate-0[data-side=bottom]{rotate:0deg}.data-\\[side\\=left\\]\\:-right-\\[6px\\][data-side=left]{right:-6px}.data-\\[side\\=left\\]\\:rotate-90[data-side=left]{rotate:90deg}.data-\\[side\\=right\\]\\:-left-\\[6px\\][data-side=right]{left:-6px}.data-\\[side\\=right\\]\\:-rotate-90[data-side=right]{rotate:-90deg}.data-\\[side\\=top\\]\\:-bottom-\\[6px\\][data-side=top]{bottom:-6px}.data-\\[side\\=top\\]\\:rotate-180[data-side=top]{rotate:180deg}.data-\\[starting-style\\]\\:opacity-0[data-starting-style]{opacity:0}.data-\\[unchecked\\]\\:hidden[data-unchecked]{display:none}@media not all and (min-width:64rem){.max-lg\\:hidden{display:none}.max-lg\\:w-\\[68px\\]{width:68px}.max-lg\\:items-center{align-items:center}.max-lg\\:justify-center{justify-content:center}.max-lg\\:gap-0{gap:0}.max-lg\\:p-2{padding:calc(var(--spacing) * 2)}.max-lg\\:p-2\\.5{padding:calc(var(--spacing) * 2.5)}.max-lg\\:px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.max-lg\\:px-2{padding-inline:calc(var(--spacing) * 2)}}@media not all and (min-width:48rem){.max-md\\:hidden{display:none}.max-md\\:h-dvh{height:100dvh}.max-md\\:min-h-0{min-height:0}.max-md\\:flex-1{flex:1}.max-md\\:flex-col{flex-direction:column}.max-md\\:overflow-hidden{overflow:hidden}.max-md\\:overflow-y-auto{overflow-y:auto}}@media not all and (min-width:40rem){.max-sm\\:hidden{display:none}.max-sm\\:w-full{width:100%}.max-sm\\:flex-col{flex-direction:column}}@media(min-width:40rem){.sm\\:block{display:block}.sm\\:px-8{padding-inline:calc(var(--spacing) * 8)}}@media(min-width:48rem){.md\\:block{display:block}.md\\:hidden{display:none}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:items-center{align-items:center}.md\\:justify-between{justify-content:space-between}.md\\:gap-4{gap:calc(var(--spacing) * 4)}}@media(min-width:64rem){.lg\\:hidden{display:none}.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.\\[\\&_\\[data-rows-divider\\]\\]\\:left-\\[var\\(--rows-group-divider-left\\)\\] [data-rows-divider]{left:var(--rows-group-divider-left)}.\\[\\&_\\[data-rows-divider\\]\\]\\:bg-\\[var\\(--rows-divider\\)\\] [data-rows-divider]{background-color:var(--rows-divider)}.\\[\\&\\:hover\\:active\\]\\:bg-surface-active:hover:active{background-color:var(--background-color-surface-active)}.\\[\\&\\:hover\\:active\\]\\:text-foreground:hover:active{color:var(--text-color-foreground)}@media(hover:hover){.\\[\\&\\:not\\(\\[data-error\\]\\)\\]\\:hover\\:bg-secondary-hover:not([data-error]):hover{background-color:var(--background-color-secondary-hover)}}@media not all and (min-width:40rem){.\\[\\&\\>\\*\\]\\:max-sm\\:flex-1>*{flex:1}}.\\[\\&\\>svg\\]\\:size-\\[12px\\]>svg{width:12px;height:12px}.\\[\\&\\>svg\\]\\:size-\\[20px\\]>svg{width:20px;height:20px}.\\[\\&\\>svg\\]\\:h-\\[10px\\]>svg{height:10px}.\\[\\&\\>svg\\]\\:h-\\[12px\\]>svg{height:12px}.\\[\\&\\>svg\\]\\:h-\\[14px\\]>svg{height:14px}.\\[\\&\\>svg\\]\\:h-\\[16px\\]>svg{height:16px}.\\[\\&\\>svg\\]\\:w-\\[10px\\]>svg{width:10px}.\\[\\&\\>svg\\]\\:w-\\[12px\\]>svg{width:12px}.\\[\\&\\>svg\\]\\:w-\\[14px\\]>svg{width:14px}.\\[\\&\\>svg\\]\\:w-\\[16px\\]>svg{width:16px}}:root{color-scheme:light dark;--regen-accent-neutral:light-dark(oklch(20.44% 0 0),oklch(94.66% 0 0));--regen-accent-blue:oklch(47.13% .1983 258.78);--regen-accent-red:light-dark(oklch(58% .17 18),oklch(54% .145 18));--regen-accent-amber:light-dark(oklch(81.87% .1969 76.46),oklch(72% .165 76.46));--regen-accent-green:light-dark(oklch(73% .125 147),oklch(64% .115 147));--regen-accent-purple:light-dark(oklch(57% .21 288),oklch(52% .19 288));--regen-accent:var(--regen-accent-neutral);--regen-radius-none:0px;--regen-radius-small:4px;--regen-radius-medium:6px;--regen-radius-large:12px;--regen-radius-full:9999px;--regen-radius:var(--regen-radius-medium)}:root[data-theme=dark]{color-scheme:dark}:root[data-theme=light]{color-scheme:light}html{background:var(--background-color-background);color:var(--text-color-foreground);font-family:var(--font-sans)}:root[data-regen-disable-motion] *,:root[data-regen-disable-motion] :before,:root[data-regen-disable-motion] :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}[data-regen-color=blue]{--regen-accent:var(--regen-accent-blue)}[data-regen-color=red]{--regen-accent:var(--regen-accent-red)}[data-regen-color=amber]{--regen-accent:var(--regen-accent-amber)}[data-regen-color=green]{--regen-accent:var(--regen-accent-green)}[data-regen-color=purple]{--regen-accent:var(--regen-accent-purple)}[data-regen-radius=none]{--regen-radius:var(--regen-radius-none)}[data-regen-radius=small]{--regen-radius:var(--regen-radius-small)}[data-regen-radius=medium]{--regen-radius:var(--regen-radius-medium)}[data-regen-radius=large]{--regen-radius:var(--regen-radius-large)}[data-regen-radius=full]{--regen-radius:var(--regen-radius-large);--regen-radius-button:var(--regen-radius-full);--regen-radius-identicon:var(--regen-radius-full)}@keyframes rgn-spin{to{transform:rotate(360deg)}}@font-face{font-family:Pilat;font-weight:400;font-display:swap;src:url(./Pilat-Regular-Bx8vzE7q.woff2)format("woff2")}@font-face{font-family:Pilat;font-weight:500 700;font-display:swap;src:url(./Pilat-Demi-CADSbPAt.woff2)format("woff2")}:root{--font-body:"Pilat", ui-sans-serif, system-ui, sans-serif}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}}\n', contentType: 'text/css; charset=utf-8', }, 'assets/SwitchThumb-Cg2L3acw.js': { content: 'import{a8 as se,r as d,j as k}from"./index-DetZ1d0r.js";import{f as de,u as re,a as oe,b as ie,e as le,c as ce,d as ue}from"./FormContext-BdJHfunf.js";import{f as fe,d as pe,u as he,c as me,e as ye,b as ve,m as ke,E as xe,g as w,h as Ce,v as be,i as ge,j as Ee,n as Pe}from"./useValueChanged-CTPdEny_.js";import{u as Ie}from"./useAriaLabelledBy-uECG1FTb.js";const Be=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],je=se("arrow-left",Be),F=d.createContext(void 0);function Re(){const e=d.useContext(F);if(e===void 0)throw new Error(fe(63));return e}let M=(function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const V={...de,checked(e){return e?{[M.checked]:""}:{[M.unchecked]:""}}},Te=d.forwardRef(function(i,m){const{checked:x,className:j,defaultChecked:C,"aria-labelledby":y,form:u,id:T,inputRef:q,name:H,nativeButton:f=!1,onCheckedChange:N,readOnly:l=!1,required:p=!1,disabled:O=!1,render:Ke,uncheckedValue:b,value:g,style:Le,..._}=i,{clearErrors:W}=re(),{state:E,setTouched:z,setDirty:J,validityData:U,setFilled:v,setFocused:P,shouldValidateOnChange:Y,validationMode:G,disabled:Q,name:S,validation:r}=oe(),{labelId:X}=ie(),n=Q||O,c=S??H,s=d.useRef(null),Z=pe(s,q,r.inputRef),h=d.useRef(null),I=he(),B=le({id:T,implicit:!1,controlRef:h}),R=f?void 0:B,[a,$]=ce({controlled:x,default:!!C,name:"Switch",state:"checked"});ue(h,I,a),me(()=>{s.current&&v(s.current.checked)},[s,v]),ye(a,()=>{W(c),J(a!==U.initialValue),v(a),Y()?r.commit(a):r.commit(a,!0)});const{getButtonProps:D,buttonRef:A}=ve({disabled:n,native:f}),ee=Ie(y,X,s,!f,R),te={id:f?B:I,role:"switch","aria-checked":a,"aria-readonly":l||void 0,"aria-required":p||void 0,"aria-labelledby":ee,onFocus(){n||P(!0)},onBlur(){const t=s.current;!t||n||(z(!0),P(!1),G==="onBlur"&&r.commit(t.checked))},onClick(t){if(l||n)return;t.preventDefault();const o=s.current;o&&o.dispatchEvent(new(Ce(o)).PointerEvent("click",{bubbles:!0,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}},ae=ke({checked:a,disabled:n,form:u,id:R,name:c,required:p,style:c?be:ge,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:Z,onChange(t){if(t.nativeEvent.defaultPrevented)return;if(l){t.preventDefault();return}const o=t.currentTarget.checked,L=Ee(Pe,t.nativeEvent);N?.(o,L),!L.isCanceled&&$(o)},onFocus(){h.current?.focus()}},r.getInputValidationProps,g!==void 0?{value:g}:xe),K=d.useMemo(()=>({...E,checked:a,disabled:n,readOnly:l,required:p}),[E,a,n,l,p]),ne=w("span",i,{state:K,ref:[m,h,A],props:[te,r.getValidationProps,_,D],stateAttributesMapping:V});return k.jsxs(F.Provider,{value:K,children:[ne,!a&&c&&b!==void 0&&k.jsx("input",{type:"hidden",form:u,name:c,value:b}),k.jsx("input",{...ae,suppressHydrationWarning:!0})]})}),qe=d.forwardRef(function(i,m){const{render:x,className:j,style:C,...y}=i,u=Re();return w("span",i,{state:u,ref:m,stateAttributesMapping:V,props:y})});export{je as A,Te as S,qe as a};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/trash-2-DmnQRcCN.js': { content: 'import{a8 as a}from"./index-DetZ1d0r.js";const t=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],h=a("plus",t);const e=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],s=a("trash-2",e);export{h as P,s as T};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/triangle-alert-B8wLicNU.js': { content: 'import{a8 as e}from"./index-DetZ1d0r.js";const a=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],o=e("triangle-alert",a);export{o as T};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/useAriaLabelledBy-uECG1FTb.js': { content: 'import{r as u}from"./index-DetZ1d0r.js";import{u as l,c}from"./useValueChanged-CTPdEny_.js";function y(e,n,t,r=!0,i){const[a,d]=u.useState(),f=l(i?`${i}-label`:void 0),o=e??n??a;return c(()=>{const s=e||n||!r?void 0:L(t.current,f);a!==s&&d(s)}),o}function L(e,n){const t=b(e);if(t)return!t.id&&n&&(t.id=n),t.id||void 0}function b(e){if(!e)return;const n=e.parentElement;if(n&&n.tagName==="LABEL")return n;const t=e.id;if(t){const i=e.nextElementSibling;if(i&&i.htmlFor===t)return i}const r=e.labels;return r&&r[0]}export{y as u};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/useScrollLock-DC_n164h.js': { content: 'import{r as a,aM as St,aN as Mn,aO as Fn,j as fe}from"./index-DetZ1d0r.js";import{a as Rt,o as K,c as H,R as Ue,s as ie,t as Tt,C as de,f as Dn,S as Jt,N as wt,i as Nn,j as xe,K as Zt,E as De,I as Qt,T as Wn,g as Ln,d as Ft,U as Vn,M as en,h as Xe,V as tn,W as _n,H as Hn,p as Fe,y as Qe,x as Gn,e as Yn,D as Ct}from"./useValueChanged-CTPdEny_.js";function $(e){return e?.ownerDocument||document}let We=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const Bn={[We.startingStyle]:""},Kn={[We.endingStyle]:""},xs={transitionStatus(e){return e==="starting"?Bn:e==="ending"?Kn:null}},jn=[];function nn(e){a.useEffect(e,jn)}const Ge=null;class qn{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let s=0;s=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const Ye=new qn;class le{static create(){return new le}static request(t){return Ye.request(t)}static cancel(t){return Ye.cancel(t)}currentId=Ge;request(t){this.cancel(),this.currentId=Ye.request(()=>{this.currentId=Ge,t()})}cancel=()=>{this.currentId!==Ge&&(Ye.cancel(this.currentId),this.currentId=Ge)};disposeEffect=()=>this.cancel}function Ot(){const e=Rt(le.create).current;return nn(e.disposeEffect),e}function ge(e){return e==null?e:"current"in e?e.current:e}function $n(e,t=!1,n=!0){const r=Ot();return K((s,o=null)=>{r.cancel();const i=ge(e);if(i==null)return;const u=i,T=()=>{St.flushSync(s)};if(typeof u.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){s();return}function d(){Promise.all(u.getAnimations().map(c=>c.finished)).then(()=>{o?.aborted||T()}).catch(()=>{if(n){o?.aborted||T();return}const c=u.getAnimations();!o?.aborted&&c.length>0&&c.some(w=>w.pending||w.playState!=="finished")&&d()})}if(t){const c=We.startingStyle;if(!u.hasAttribute(c)){r.request(d);return}const w=new MutationObserver(()=>{u.hasAttribute(c)||(w.disconnect(),d())});w.observe(u,{attributes:!0,attributeFilter:[c]}),o?.addEventListener("abort",()=>w.disconnect(),{once:!0});return}r.request(d)})}function Un(e){const{enabled:t=!0,open:n,ref:r,onComplete:s}=e,o=K(s),i=$n(r,n,!1);a.useEffect(()=>{if(!t)return;const u=new AbortController;return i(o,u.signal),()=>{u.abort()}},[t,n,o,i])}function Xn(e,t=!1,n=!1){const[r,s]=a.useState(e&&t?"idle":void 0),[o,i]=a.useState(e);return e&&!o&&(i(!0),s("starting")),!e&&o&&r!=="ending"&&!n&&s("ending"),!e&&!o&&r==="ending"&&s(void 0),H(()=>{if(!e&&o&&r!=="ending"&&n){const u=le.request(()=>{s("ending")});return()=>{le.cancel(u)}}},[e,o,r,n]),H(()=>{if(!e||t)return;const u=le.request(()=>{s(void 0)});return()=>{le.cancel(u)}},[t,e]),H(()=>{if(!e||!t)return;e&&o&&r!=="idle"&&s("starting");const u=le.request(()=>{s("idle")});return()=>{le.cancel(u)}},[t,e,o,r]),{mounted:o,setMounted:i,transitionStatus:r}}const ke=typeof navigator<"u",et=Zn(),rn=er(),sn=Qn(),on=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),cn=et.platform==="MacIntel"&&et.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(et.platform),zn=ke&&/apple/i.test(navigator.vendor),dt=ke&&/android/i.test(rn)||/android/i.test(sn);ke&&rn.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const Jn=sn.includes("jsdom/");function Zn(){if(!ke)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function Qn(){if(!ke)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function er(){if(!ke)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const pt="data-base-ui-focusable",tr="input:not([type=\'hidden\']):not([disabled]),[contenteditable]:not([contenteditable=\'false\']),textarea:not([disabled])",tt="ArrowLeft",nt="ArrowRight",nr="ArrowUp",rr="ArrowDown";function he(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function W(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Ue(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function ye(e){return"composedPath"in e?e.composedPath()[0]:e.target}function rt(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function sr(e){return e.matches("html,body")}function xt(e){return ie(e)&&e.matches(tr)}function Dt(e){return e?e.getAttribute("role")==="combobox"&&xt(e):!1}function Nt(e){return e?e.hasAttribute(pt)?e:e.querySelector(`[${pt}]`)||e:null}function Le(e,t,n=!0){return e.filter(s=>s.parentId===t).flatMap(s=>[...!n||s.context?.open?[s]:[],...Le(e,s.id,n)])}function Wt(e,t){let n=[],r=e.find(s=>s.id===t)?.parentId;for(;r;){const s=e.find(o=>o.id===r);r=s?.parentId,s&&(n=n.concat(s))}return n}function je(e){e.preventDefault(),e.stopPropagation()}function or(e){return"nativeEvent"in e}function ir(e){return e.pointerType===""&&e.isTrusted?!0:dt&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function cr(e){return Jn?!1:!dt&&e.width===0&&e.height===0||dt&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Lt(e,t){return["mouse","pen"].includes(e)}function ur(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const Ps=["top","right","bottom","left"],ar=Math.min,lr=Math.max,ks=Math.round,st=Math.floor,As=e=>({x:e,y:e}),fr={left:"right",right:"left",bottom:"top",top:"bottom"};function Is(e,t,n){return lr(e,ar(t,n))}function vs(e,t){return typeof e=="function"?e(t):e}function un(e){return e.split("-")[0]}function an(e){return e.split("-")[1]}function dr(e){return e==="x"?"y":"x"}function pr(e){return e==="y"?"height":"width"}function gr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function hr(e){return dr(gr(e))}function Ms(e,t,n){n===void 0&&(n=!1);const r=an(e),s=hr(e),o=pr(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=ht(i)),[i,ht(i)]}function Fs(e){const t=ht(e);return[gt(e),t,gt(t)]}function gt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Vt=["left","right"],_t=["right","left"],mr=["top","bottom"],br=["bottom","top"];function yr(e,t,n){switch(e){case"top":case"bottom":return n?t?_t:Vt:t?Vt:_t;case"left":case"right":return t?mr:br;default:return[]}}function Ds(e,t,n,r){const s=an(e);let o=yr(un(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(gt)))),o}function ht(e){const t=un(e);return fr[t]+e.slice(t.length)}function Er(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ns(e){return typeof e!="number"?Er(e):{top:e,right:e,bottom:e,left:e}}function Ws(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Be(e,t,n){return Math.floor(e/t)!==n}function Ht(e,t){return t<0||t>=e.length}function Ls(e,t){return ce(e.current,{disabledIndices:t})}function Vs(e,t){return ce(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function ce(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:s=1}={}){let o=t;do o+=n?-s:s;while(o>=0&&o<=e.length-1&&mt(e,o,r));return o}function _s(e,{event:t,orientation:n,loopFocus:r,onLoop:s,rtl:o,cols:i,disabledIndices:u,minIndex:T,maxIndex:d,prevIndex:c,stopEvent:w=!1}){let l=c,E;if(t.key===nr?E="up":t.key===rr&&(E="down"),E){const S=[],R=[];let p=!1,g=0;{let _=null,C=-1;e.forEach((B,G)=>{if(B==null)return;g+=1;const h=B.closest(\'[role="row"]\');h&&(p=!0),(h!==_||C===-1)&&(_=h,C+=1,S[C]=[]),S[C].push(G),R[G]=C})}let m=!1,D=0;if(p)for(const _ of S){const C=_.length;C>D&&(D=C),C!==i&&(m=!0)}const I=m&&g{if(!m||c===-1)return;const C=R[c];if(C==null)return;const B=S[C].indexOf(c),G=_==="up"?-1:1;for(let h=C+G,N=0;N=S.length){if(!r||I)return;if(h=h<0?S.length-1:0,s){const te=Math.min(B,S[h].length-1),q=S[h][te]??S[h][0],oe=s(t,c,q);h=R[oe]??h}}const U=S[h];for(let te=Math.min(B,U.length-1);te>=0;te-=1){const q=U[te];if(!mt(e,q,u))return q}}},P=_=>{if(!I||c===-1)return;const C=c%b,B=_==="up"?-b:b,G=d-d%b,h=st(d/b)+1;for(let N=c-C+B,U=0;Ud){if(!r)return;N=N<0?G:0}const te=Math.min(N+b-1,d);for(let q=Math.min(N+C,te);q>=N;q-=1)if(!mt(e,q,u))return q}};w&&je(t);const V=j(E)??P(E);if(V!==void 0)l=V;else if(c===-1)l=E==="up"?d:T;else if(l=ce(e,{startingIndex:c,amount:b,decrement:E==="up",disabledIndices:u}),r){if(E==="up"&&(c-b_?B:B-b,s&&(l=s(t,c,l))}E==="down"&&c+b>d&&(l=ce(e,{startingIndex:c%b-b,amount:b,disabledIndices:u}),s&&(l=s(t,c,l)))}Ht(e,l)&&(l=c)}if(n==="both"){const S=st(c/i);t.key===(o?tt:nt)&&(w&&je(t),c%i!==i-1?(l=ce(e,{startingIndex:c,disabledIndices:u}),r&&Be(l,i,S)&&(l=ce(e,{startingIndex:c-c%i-1,disabledIndices:u}),s&&(l=s(t,c,l)))):r&&(l=ce(e,{startingIndex:c-c%i-1,disabledIndices:u}),s&&(l=s(t,c,l))),Be(l,i,S)&&(l=c)),t.key===(o?nt:tt)&&(w&&je(t),c%i!==0?(l=ce(e,{startingIndex:c,decrement:!0,disabledIndices:u}),r&&Be(l,i,S)&&(l=ce(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:u}),s&&(l=s(t,c,l)))):r&&(l=ce(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:u}),s&&(l=s(t,c,l))),Be(l,i,S)&&(l=c));const R=st(d/i)===S;Ht(e,l)&&(r&&R?(l=t.key===(o?nt:tt)?d:ce(e,{startingIndex:c-c%i-1,disabledIndices:u}),s&&(l=s(t,c,l))):l=c)}return l}function Hs(e,t,n){const r=[];let s=0;return e.forEach(({width:o,height:i},u)=>{let T=!1;for(;!T;){const d=[];for(let c=0;cr[c]==null)?(d.forEach(c=>{r[c]=u}),T=!0):s+=1}}),[...r]}function Gs(e,t,n,r,s){if(e===-1)return-1;const o=n.indexOf(e),i=t[e];switch(s){case"tl":return o;case"tr":return i?o+i.width-1:o;case"bl":return i?o+(i.height-1)*r:o;case"br":return n.lastIndexOf(e);default:return-1}}function Ys(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function mt(e,t,n){if(typeof n=="function"?n(t):n?.includes(t)??!1)return!0;const s=e[t];return s?Pt(s)?!n&&(s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true"):!0:!1}function Sr(e){return e.visibility==="hidden"||e.visibility==="collapse"}function Pt(e,t=e?Tt(e):null){return!e||!e.isConnected||!t||Sr(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const Rr=\'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]\';function Tr(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return Ue(n)?n.host:null}function bt(e){for(const t of Array.from(e.children))if(de(t)==="summary")return t;return null}function wr(e,t){const n=bt(t);return!!n&&(e===n||W(n,e))}function ln(e){const t=e?de(e):"";return e!=null&&e.matches(Rr)&&(t!=="summary"||e.parentElement!=null&&de(e.parentElement)==="details"&&bt(e.parentElement)===e)&&(t!=="details"||bt(e)==null)&&(t!=="input"||e.type!=="hidden")}function fn(e){if(!ln(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=Tr(t)){const n=t!==e,r=de(t)==="slot";if(t.hasAttribute("inert")||n&&de(t)==="details"&&!t.open&&!wr(e,t)||t.hasAttribute("hidden")||!r&&!Cr(t,n))return!1}return!0}function Cr(e,t){const n=Tt(e);return t?n.display!=="none":Pt(e,n)}function dn(e){const t=e.tabIndex;if(t<0){const n=de(e);if(n==="details"||n==="audio"||n==="video"||ie(e)&&e.isContentEditable)return 0}return t}function ot(e){if(de(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function Or(e,t){const n=ot(e);if(!n)return!0;const r=t.find(s=>{const o=ot(s);return o?.name===n.name&&o.form===n.form&&o.checked});return r?r===n:t.find(s=>{const o=ot(s);return o?.name===n.name&&o.form===n.form})===n}function pn(e){if(ie(e)&&de(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return ie(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function gn(e,t){pn(e).forEach(n=>{ln(n)&&t.push(n),gn(n,t)})}function hn(e,t,n){pn(e).forEach(r=>{ie(r)&&r.matches(t)&&n.push(r),hn(r,t,n)})}function kt(e){return fn(e)&&dn(e)>=0}function mn(e){const t=[];return gn(e,t),t.filter(fn)}function ze(e){const t=mn(e);return t.filter(n=>dn(n)>=0&&Or(n,t))}function bn(e,t){const n=ze(e),r=n.length;if(r===0)return;const s=he($(e)),o=n.indexOf(s),i=o===-1?t===1?0:r-1:o+t;return n[i]}function yn(e){return bn($(e).body,1)||e}function En(e){return bn($(e).body,-1)||e}function Ne(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!W(n,r)}function xr(e){ze(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Gt(e){const t=[];hn(e,"[data-tabindex]",t),t.forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Pr="ArrowUp",kr="ArrowDown",Ar="ArrowLeft",Ir="ArrowRight",vr="Home",Mr="End",Fr=new Set([Ar,Ir]),Dr=new Set([Pr,kr]),Nr=new Set([...Fr,...Dr]),Bs=new Set([...Nr,vr,Mr]);function it(e){const t=Rt(Wr,e).current;return t.next=e,H(t.effect),t}function Wr(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Ks(e){const t=a.useRef(!0);t.current&&(t.current=!1,e())}const Oe=(e,t,n,r,s,o,...i)=>{if(i.length>0)throw new Error(Dn(1));let u;if(e)u=e;else throw new Error("Missing arguments");return u};var Lr=Mn();const Vr=Jt(19),_r=Vr?Gr:Yr;function Sn(e,t,n,r,s){return _r(e,t,n,r,s)}function Hr(e,t,n,r,s){const o=a.useCallback(()=>t(e.getSnapshot(),n,r,s),[e,t,n,r,s]);return Lr.useSyncExternalStore(e.subscribe,o,o)}function Gr(e,t,n,r,s){return Hr(e,t,n,r,s)}function Yr(e,t,n,r,s){return Fn.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,o=>t(o,n,r,s))}class Br{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,s){return Sn(this,t,n,r,s)}}class Kr extends Br{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){a.useDebugValue(t);const r=this;H(()=>{r.state[t]!==n&&r.set(t,n)},[r,t,n])}useSyncedValueWithCleanup(t,n){const r=this;H(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this,r=Object.values(t);H(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){a.useDebugValue(t);const r=this,s=n!==void 0;H(()=>{s&&!Object.is(r.state[t],n)&&r.setState({...r.state,[t]:n})},[r,t,n,s])}select(t,n,r,s){const o=this.selectors[t];return o(this.state,n,r,s)}useState(t,n,r,s){return a.useDebugValue(t),Sn(this,this.selectors[t],n,r,s)}useContextCallback(t,n){a.useDebugValue(t);const r=K(n??wt);this.context[t]=r}useStateSetter(t){const n=a.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let s=r(this.state);return n(s,s,this),this.subscribe(o=>{const i=r(o);if(!Object.is(s,i)){const u=s;s=i,n(i,u,this)}})}}function Pe(...e){return()=>{for(let t=0;t{e.removeEventListener(t,n,r)}}const ve=0;class Ce{static create(){return new Ce}currentId=ve;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=ve,n()},t)}isStarted(){return this.currentId!==ve}clear=()=>{this.currentId!==ve&&(clearTimeout(this.currentId),this.currentId=ve)};disposeEffect=()=>this.clear}function Ve(){const e=Rt(Ce.create).current;return nn(e.disposeEffect),e}const qe=a.forwardRef(function(t,n){const[r,s]=a.useState();H(()=>{zn&&s("button")},[]);const o={tabIndex:0,role:r};return fe.jsx("span",{...t,ref:n,style:Nn,"aria-hidden":r?void 0:!0,...o,"data-base-ui-focus-guard":""})});function $e(e){return`data-base-ui-${e}`}let Ke=0;function ct(e,t={}){const{preventScroll:n=!1,sync:r=!1,shouldFocus:s}=t;cancelAnimationFrame(Ke);function o(){s&&!s()||e?.focus({preventScroll:n})}if(r)return o(),wt;const i=requestAnimationFrame(o);return Ke=i,()=>{Ke===i&&(cancelAnimationFrame(i),Ke=0)}}const ut={inert:new WeakMap,"aria-hidden":new WeakMap},Yt="data-base-ui-inert",yt={inert:new WeakSet,"aria-hidden":new WeakSet};let Me=new WeakMap,at=0;function jr(e){return yt[e]}function Rn(e){return e?Ue(e)?e.host:Rn(e.parentNode):null}const lt=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=Rn(n);return e.contains(r)?r:null}).filter(n=>n!=null),Bt=e=>{const t=new Set;return e.forEach(n=>{let r=n;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},Kt=(e,t,n)=>{const r=[],s=o=>{!o||n.has(o)||Array.from(o.children).forEach(i=>{de(i)!=="script"&&(t.has(i)?s(i):r.push(i))})};return s(e),r};function qr(e,t,n,r,{mark:s=!0,markerIgnoreElements:o=[]}){const i=r?"inert":n?"aria-hidden":null;let u=null,T=null;const d=lt(t,e),c=s?lt(t,o):[],w=new Set(c),l=s?Kt(t,Bt(d),new Set(d)).filter(R=>!w.has(R)):[],E=[],S=[];if(i){const R=ut[i],p=jr(i);T=p,u=R;const g=lt(t,Array.from(t.querySelectorAll("[aria-live]"))),m=d.concat(g);Kt(t,Bt(m),new Set(m)).forEach(I=>{const b=I.getAttribute(i),j=b!==null&&b!=="false",P=(R.get(I)||0)+1;R.set(I,P),E.push(I),P===1&&j&&p.add(I),j||I.setAttribute(i,i==="inert"?"":"true")})}return s&&l.forEach(R=>{const p=(Me.get(R)||0)+1;Me.set(R,p),S.push(R),p===1&&R.setAttribute(Yt,"")}),at+=1,()=>{u&&E.forEach(R=>{const g=(u.get(R)||0)-1;u.set(R,g),g||(!T?.has(R)&&i&&R.removeAttribute(i),T?.delete(R))}),s&&S.forEach(R=>{const p=(Me.get(R)||0)-1;Me.set(R,p),p||R.removeAttribute(Yt)}),at-=1,at||(ut.inert=new WeakMap,ut["aria-hidden"]=new WeakMap,yt.inert=new WeakSet,yt["aria-hidden"]=new WeakSet,Me=new WeakMap)}}function jt(e,t={}){const{ariaHidden:n=!1,inert:r=!1,mark:s=!0,markerIgnoreElements:o=[]}=t,i=$(e[0]).body;return qr(e,i,n,r,{mark:s,markerIgnoreElements:o})}const js={style:{transition:"none"}},$r="data-base-ui-click-trigger",qs={fallbackAxisSide:"none"},Ur={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Tn=a.createContext(null),wn=()=>a.useContext(Tn),Xr=$e("portal");function zr(e={}){const{ref:t,container:n,componentProps:r=De,elementProps:s}=e,o=Qt(),u=wn()?.portalNode,[T,d]=a.useState(null),[c,w]=a.useState(null),l=K(p=>{p!==null&&w(p)}),E=a.useRef(null);H(()=>{if(n===null){E.current&&(E.current=null,w(null),d(null));return}if(o==null)return;const p=(n&&(Wn(n)?n:n.current))??u??document.body;if(p==null){E.current&&(E.current=null,w(null),d(null));return}E.current!==p&&(E.current=p,w(null),d(p))},[n,u,o]);const S=Ln("div",r,{ref:[t,l],props:[{id:o,[Xr]:""},s]});return{portalNode:c,portalSubtree:T&&S?St.createPortal(S,T):null}}const $s=a.forwardRef(function(t,n){const{render:r,className:s,style:o,children:i,container:u,renderGuards:T,...d}=t,{portalNode:c,portalSubtree:w}=zr({container:u,ref:n,componentProps:t,elementProps:d}),l=a.useRef(null),E=a.useRef(null),S=a.useRef(null),R=a.useRef(null),[p,g]=a.useState(null),m=a.useRef(!1),D=p?.modal,I=p?.open,b=typeof T=="boolean"?T:!!p&&!p.modal&&p.open&&!!c;a.useEffect(()=>{if(!c||D)return;function P(V){c&&V.relatedTarget&&Ne(V)&&(V.type==="focusin"?m.current&&(Gt(c),m.current=!1):(xr(c),m.current=!0))}return Pe(L(c,"focusin",P,!0),L(c,"focusout",P,!0))},[c,D]),a.useEffect(()=>{!c||I!==!1||(Gt(c),m.current=!1)},[I,c]);const j=a.useMemo(()=>({beforeOutsideRef:l,afterOutsideRef:E,beforeInsideRef:S,afterInsideRef:R,portalNode:c,setFocusManagerState:g}),[c]);return fe.jsxs(a.Fragment,{children:[w,fe.jsxs(Tn.Provider,{value:j,children:[b&&c&&fe.jsx(qe,{"data-type":"outside",ref:l,onFocus:P=>{if(Ne(P,c))S.current?.focus();else{const V=p?p.domReference:null;En(V)?.focus()}}}),b&&c&&fe.jsx("span",{"aria-owns":c.id,style:Ur}),c&&St.createPortal(i,c),b&&c&&fe.jsx(qe,{"data-type":"outside",ref:E,onFocus:P=>{if(Ne(P,c))R.current?.focus();else{const V=p?p.domReference:null;yn(V)?.focus(),p?.closeOnFocusOut&&p?.onOpenChange(!1,xe(Zt,P.nativeEvent))}}})]})]})});function Jr(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}const Zr=a.createContext(null),Qr=a.createContext(null),es=()=>a.useContext(Zr)?.id||null,Cn=e=>{const t=a.useContext(Qr);return e??t};function ts(e,t){const n=Xe(ye(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const qt=20;let be=[];function At(){be=be.filter(e=>e.deref()?.isConnected)}function ns(e){At(),e&&de(e)!=="body"&&(be.push(new WeakRef(e)),be.length>qt&&(be=be.slice(-qt)))}function ft(){return At(),be[be.length-1]?.deref()}function rs(e){return e?kt(e)?e:ze(e)[0]||e:null}function $t(e,t){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const r=mn(e).filter(o=>{const i=o.getAttribute("data-tabindex")||"";return kt(o)||o.hasAttribute("data-tabindex")&&!i.startsWith("-")}),s=e.getAttribute("tabindex");t.current.includes("floating")||r.length===0?s!=="0"&&e.setAttribute("tabindex","0"):(s!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function Us(e){const{context:t,children:n,disabled:r=!1,initialFocus:s=!0,returnFocus:o=!0,restoreFocus:i=!1,modal:u=!0,closeOnFocusOut:T=!0,openInteractionType:d="",nextFocusableElement:c,previousFocusableElement:w,beforeContentFocusGuardRef:l,externalTree:E,getInsideElements:S}=e,R="rootStore"in t?t.rootStore:t,p=R.useState("open"),g=R.useState("domReferenceElement"),m=R.useState("floatingElement"),{events:D,dataRef:I}=R.context,b=K(()=>I.current.floatingContext?.nodeId),j=s===!1,P=Dt(g)&&j,V=a.useRef(["content"]),_=it(s),C=it(o),B=it(d),G=Cn(E),h=wn(),N=a.useRef(!1),U=a.useRef(!1),te=a.useRef(!1),q=a.useRef(null),oe=a.useRef(""),Ee=a.useRef(""),Se=a.useRef(null),Re=a.useRef(null),_e=Ft(Se,l,h?.beforeInsideRef),v=Ft(Re,h?.afterInsideRef),se=Ve(),pe=Ve(),Te=Ot(),He=h!=null,k=Nt(m),ee=K((O=k)=>O?ze(O):[]),ue=K(()=>S?.().filter(O=>O!=null)??[]);a.useEffect(()=>{if(r||!u)return;function O(J){J.key==="Tab"&&W(k,he($(k)))&&ee().length===0&&!P&&je(J)}const X=$(k);return L(X,"keydown",O)},[r,k,u,P,ee]),a.useEffect(()=>{if(r||!p)return;const O=$(k);function X(){te.current=!1}function J(M){const A=ye(M),Y=ue(),x=W(m,A)||W(g,A)||W(h?.portalNode,A)||Y.some(Z=>Z===A||W(Z,A));te.current=!x,Ee.current=M.pointerType||"keyboard",A?.closest(`[${$r}]`)&&(U.current=!0)}function z(){Ee.current="keyboard"}return Pe(L(O,"pointerdown",J,!0),L(O,"pointerup",X,!0),L(O,"pointercancel",X,!0),L(O,"keydown",z,!0))},[r,m,g,k,p,h,ue]),a.useEffect(()=>{if(r||!T)return;const O=$(k);function X(){U.current=!0,pe.start(0,()=>{U.current=!1})}function J(Y){const x=ye(Y);kt(x)&&(q.current=x)}function z(Y){const x=Y.relatedTarget,Z=Y.currentTarget,ne=ye(Y);queueMicrotask(()=>{const we=b(),re=R.context.triggerElements,Je=ue(),f=x?.hasAttribute($e("focus-guard"))&&[Se.current,Re.current,h?.beforeInsideRef.current,h?.afterInsideRef.current,h?.beforeOutsideRef.current,h?.afterOutsideRef.current,ge(w),ge(c)].includes(x),y=!(W(g,x)||W(m,x)||W(x,m)||W(h?.portalNode,x)||Je.some(F=>F===x||W(F,x))||x!=null&&re.hasElement(x)||re.hasMatchingElement(F=>W(F,x))||f||G&&(Le(G.nodesRef.current,we).find(F=>W(F.context?.elements.floating,x)||W(F.context?.elements.domReference,x))||Wt(G.nodesRef.current,we).find(F=>[F.context?.elements.floating,Nt(F.context?.elements.floating)].includes(x)||F.context?.elements.domReference===x)));if(Z===g&&k&&$t(k,V),i&&Z!==g&&!Pt(ne)&&he(O)===O.body){if(ie(k)&&(k.focus(),i==="popup")){Te.request(()=>{k.focus()});return}const F=ee(),Q=q.current,me=(Q&&F.includes(Q)?Q:null)||F[F.length-1]||k;ie(me)&&me.focus()}if(I.current.insideReactTree){I.current.insideReactTree=!1;return}(P||!u)&&x&&y&&!U.current&&(P||x!==ft())&&(N.current=!0,R.setOpen(!1,xe(Zt,Y)))})}function M(){te.current||(I.current.insideReactTree=!0,se.start(0,()=>{I.current.insideReactTree=!1}))}const A=ie(g)?g:null;if(!(!m&&!A))return Pe(A&&L(A,"focusout",z),A&&L(A,"pointerdown",X),m&&L(m,"focusin",J),m&&L(m,"focusout",z),m&&h&&L(m,"focusout",M,!0))},[r,g,m,k,u,G,h,R,T,i,ee,P,b,V,I,se,pe,Te,c,w,ue]),a.useEffect(()=>{if(r||!m||!p)return;const O=Array.from(h?.portalNode?.querySelectorAll(`[${$e("portal")}]`)||[]),J=(G?Wt(G.nodesRef.current,b()):[]).find(Z=>Dt(Z.context?.elements.domReference||null))?.context?.elements.domReference,M=[...[m,...O,Se.current,Re.current,h?.beforeOutsideRef.current,h?.afterOutsideRef.current,...ue()],J,ge(w),ge(c),P?g:null].filter(Z=>Z!=null),A=jt(M,{ariaHidden:u||P,mark:!1}),Y=[m,...O].filter(Z=>Z!=null),x=jt(Y);return()=>{x(),A()}},[p,r,g,m,u,h,P,G,b,c,w,ue]),H(()=>{if(!p||r||!ie(k))return;const O=$(k),X=he(O);queueMicrotask(()=>{const J=_.current,z=typeof J=="function"?J(B.current||""):J;if(z===void 0||z===!1||W(k,X))return;let A=null;const Y=()=>(A==null&&(A=ee(k)),A[0]||k);let x;z===!0||z===null?x=Y():x=ge(z),x=x||Y();const Z=W(k,he(O));ct(x,{preventScroll:x===k,shouldFocus(){if(Z)return!0;const ne=he(O);return!(ne!==x&&W(k,ne))}})})},[r,p,k,ee,_,B]),H(()=>{if(r||!k)return;const O=$(k),X=he(O);ns(X);function J(M){if(M.open||(oe.current=ts(M.nativeEvent,Ee.current)),M.reason===Vn&&M.nativeEvent.type==="mouseleave"&&(N.current=!0),M.reason===en)if(M.nested)N.current=!1;else if(ir(M.nativeEvent)||cr(M.nativeEvent))N.current=!1;else{let A=!1;$(k).createElement("div").focus({get preventScroll(){return A=!0,!1}}),A?N.current=!1:N.current=!0}}D.on("openchange",J);function z(){const M=C.current;let A=typeof M=="function"?M(oe.current):M;if(A===void 0||A===!1)return null;if(A===null&&(A=!0),typeof A=="boolean")return g?.isConnected?g:ft()||null;const Y=g?.isConnected?g:ft();return ge(A)||Y||null}return()=>{D.off("openchange",J);const M=he(O),A=ue(),Y=W(m,M)||A.some(ne=>ne===M||W(ne,M))||G&&Le(G.nodesRef.current,b(),!1).some(ne=>W(ne.context?.elements.floating,M)),x=C.current,Z=z();queueMicrotask(()=>{const ne=rs(Z),we=typeof x!="boolean";x&&!N.current&&ie(ne)&&(!(!we&&ne!==M&&M!==O.body)||Y)&&ne.focus({preventScroll:!0}),N.current=!1})}},[r,m,k,C,D,G,g,b,ue]),H(()=>{if(!on||p||!m)return;const O=he($(m));!ie(O)||!xt(O)||W(m,O)&&O.blur()},[p,m]),H(()=>{if(!(r||!h))return h.setFocusManagerState({modal:u,closeOnFocusOut:T,open:p,onOpenChange:R.setOpen,domReference:g}),()=>{h.setFocusManagerState(null)}},[r,h,u,p,R,T,g]),H(()=>{if(!(r||!k))return $t(k,V),()=>{queueMicrotask(At)}},[r,k,V]);const Ae=!r&&(u?!P:!0)&&(He||u);return fe.jsxs(a.Fragment,{children:[Ae&&fe.jsx(qe,{"data-type":"inside",ref:_e,onFocus:O=>{if(u){const X=ee();ct(X[X.length-1])}else h?.portalNode&&(N.current=!1,Ne(O,h.portalNode)?yn(g)?.focus():ge(w??h.beforeOutsideRef)?.focus())}}),n,Ae&&fe.jsx(qe,{"data-type":"inside",ref:v,onFocus:O=>{u?ct(ee()[0]):h?.portalNode&&(T&&(N.current=!0),Ne(O,h.portalNode)?En(g)?.focus():ge(c??h.afterOutsideRef)?.focus())}})]})}function Xs(e,t={}){const{enabled:n=!0,event:r="click",toggle:s=!0,ignoreMouse:o=!1,stickIfOpen:i=!0,touchOpenDelay:u=0,reason:T=tn}=t,d="rootStore"in e?e.rootStore:e,c=d.context.dataRef,w=a.useRef(void 0),l=Ot(),E=Ve(),S=a.useMemo(()=>{function R(g,m,D,I){const b=xe(T,m,D);g&&I==="touch"&&u>0?E.start(u,()=>{d.setOpen(!0,b)}):d.setOpen(g,b)}function p(g,m,D){const I=c.current.openEvent,b=d.select("domReferenceElement")!==m;return g&&b||!g||!s?!0:I&&i?!D(I.type):!1}return{onPointerDown(g){w.current=g.pointerType},onMouseDown(g){const m=w.current,D=g.nativeEvent,I=d.select("open");if(g.button!==0||r==="click"||Lt(m)&&o)return;const b=p(I,g.currentTarget,V=>V==="click"||V==="mousedown"),j=ye(D);if(xt(j)){R(b,D,j,m);return}const P=g.currentTarget;l.request(()=>{R(b,D,P,m)})},onClick(g){if(r==="mousedown-only")return;const m=w.current;if(r==="mousedown"&&m){w.current=void 0;return}if(Lt(m)&&o)return;const D=d.select("open"),I=p(D,g.currentTarget,b=>b==="click"||b==="mousedown"||b==="keydown"||b==="keyup");R(I,g.nativeEvent,g.currentTarget,m)},onKeyDown(){w.current=void 0}}},[c,r,o,T,d,i,s,l,E,u]);return a.useMemo(()=>n?{reference:S}:De,[n,S])}const ss={intentional:"onClick",sloppy:"onPointerDown"};function os(){return!1}function is(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function zs(e,t={}){const{enabled:n=!0,escapeKey:r=!0,outsidePress:s=!0,outsidePressEvent:o="sloppy",referencePress:i=os,referencePressEvent:u="sloppy",bubbles:T,externalTree:d}=t,c="rootStore"in e?e.rootStore:e,w=c.useState("open"),l=c.useState("floatingElement"),{dataRef:E}=c.context,S=Cn(d),R=K(typeof s=="function"?s:()=>!1),p=typeof s=="function"?R:s,g=p!==!1,m=K(()=>o),{escapeKey:D,outsidePress:I}=is(T),b=a.useRef(!1),j=a.useRef(!1),P=a.useRef(!1),V=a.useRef(!1),_=a.useRef(""),C=a.useRef(null),B=Ve(),G=Ve(),h=K(()=>{G.clear(),E.current.insideReactTree=!1}),N=K(v=>{const se=E.current.floatingContext?.nodeId;return(S?Le(S.nodesRef.current,se):[]).some(Te=>Te.context?.open&&!Te.context.dataRef.current[v])}),U=K(v=>rt(v,c.select("floatingElement"))||rt(v,c.select("domReferenceElement"))),te=K(v=>{i()&&c.setOpen(!1,xe(tn,v.nativeEvent))}),q=K(v=>{if(!w||!n||!r||v.key!=="Escape"||V.current||!D&&N("__escapeKeyBubbles"))return;const se=or(v)?v.nativeEvent:v,pe=xe(_n,se);c.setOpen(!1,pe),pe.isCanceled||v.preventDefault(),!D&&!pe.isPropagationAllowed&&v.stopPropagation()}),oe=K(()=>{E.current.insideReactTree=!0,G.start(0,h)}),Ee=K(v=>{if(!w||!n||v.button!==0)return;const se=ye(v.nativeEvent);W(c.select("floatingElement"),se)&&(b.current||(b.current=!0,j.current=!1))}),Se=K(v=>{!w||!n||(v.defaultPrevented||v.nativeEvent.defaultPrevented)&&b.current&&(j.current=!0)});a.useEffect(()=>{if(!w||!n)return;E.current.__escapeKeyBubbles=D,E.current.__outsidePressBubbles=I;const v=new Ce,se=new Ce;function pe(){v.clear(),V.current=!0}function Te(){v.start(Hn()?5:0,()=>{V.current=!1})}function He(){P.current=!0,se.start(0,()=>{P.current=!1})}function k(){b.current=!1,j.current=!1}function ee(){const f=_.current,y=f==="pen"||!f?"mouse":f,F=m(),Q=typeof F=="function"?F():F;return typeof Q=="string"?Q:Q[y]}function ue(f){const y=ee();return y==="intentional"&&f.type!=="click"||y==="sloppy"&&f.type==="click"}function Ae(f){const y=E.current.floatingContext?.nodeId,F=S&&Le(S.nodesRef.current,y).some(Q=>rt(f,Q.context?.elements.floating));return U(f)||F}function O(f){if(ue(f)){f.type!=="click"&&!U(f)&&(se.clear(),P.current=!1),h();return}if(E.current.insideReactTree){h();return}const y=ye(f),F=`[${$e("inert")}]`,Q=Fe(y)?y.getRootNode():null,me=Array.from((Ue(Q)?Q:$(c.select("floatingElement"))).querySelectorAll(F)),vt=c.context.triggerElements;if(y&&(vt.hasElement(y)||vt.hasMatchingElement(ae=>W(ae,y))))return;let Ie=Fe(y)?y:null;for(;Ie&&!Qe(Ie);){const ae=Gn(Ie);if(Qe(ae)||!Fe(ae))break;Ie=ae}if(!(me.length&&Fe(y)&&!sr(y)&&!W(y,c.select("floatingElement"))&&me.every(ae=>!W(Ie,ae)))){if(ie(y)&&!("touches"in f)){const ae=Qe(y),Ze=Tt(y),Mt=/auto|scroll/,On=ae||Mt.test(Ze.overflowX),xn=ae||Mt.test(Ze.overflowY),Pn=On&&y.clientWidth>0&&y.scrollWidth>y.clientWidth,kn=xn&&y.clientHeight>0&&y.scrollHeight>y.clientHeight,An=Ze.direction==="rtl",In=kn&&(An?f.offsetX<=y.offsetWidth-y.clientWidth:f.offsetX>y.clientWidth),vn=Pn&&f.offsetY>y.clientHeight;if(In||vn)return}if(!Ae(f)){if(ee()==="intentional"&&P.current){se.clear(),P.current=!1;return}typeof p=="function"&&!p(f)||N("__outsidePressBubbles")||(c.setOpen(!1,xe(en,f)),h())}}}function X(f){ee()!=="sloppy"||f.pointerType==="touch"||!c.select("open")||!n||U(f)||O(f)}function J(f){if(ee()!=="sloppy"||!c.select("open")||!n||U(f))return;const y=f.touches[0];y&&(C.current={startTime:Date.now(),startX:y.clientX,startY:y.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},B.start(1e3,()=>{C.current&&(C.current.dismissOnTouchEnd=!1,C.current.dismissOnMouseDown=!1)}))}function z(f,y){const F=ye(f);if(!F)return;const Q=L(F,f.type,()=>{y(f),Q()})}function M(f){_.current="touch",z(f,J)}function A(f){B.clear(),f.type==="pointerdown"&&(_.current=f.pointerType),!(f.type==="mousedown"&&C.current&&!C.current.dismissOnMouseDown)&&z(f,y=>{y.type==="pointerdown"?X(y):O(y)})}function Y(f){if(!b.current)return;const y=j.current;if(k(),ee()==="intentional"){if(f.type==="pointercancel"){y&&He();return}if(!Ae(f)){if(y){He();return}typeof p=="function"&&!p(f)||(se.clear(),P.current=!0,h())}}}function x(f){if(ee()!=="sloppy"||!C.current||U(f))return;const y=f.touches[0];if(!y)return;const F=Math.abs(y.clientX-C.current.startX),Q=Math.abs(y.clientY-C.current.startY),me=Math.sqrt(F*F+Q*Q);me>5&&(C.current.dismissOnTouchEnd=!0),me>10&&(O(f),B.clear(),C.current=null)}function Z(f){z(f,x)}function ne(f){ee()!=="sloppy"||!C.current||U(f)||(C.current.dismissOnTouchEnd&&O(f),B.clear(),C.current=null)}function we(f){z(f,ne)}const re=$(l),Je=Pe(r&&Pe(L(re,"keydown",q),L(re,"compositionstart",pe),L(re,"compositionend",Te)),g&&Pe(L(re,"click",A,!0),L(re,"pointerdown",A,!0),L(re,"pointerup",Y,!0),L(re,"pointercancel",Y,!0),L(re,"mousedown",A,!0),L(re,"mouseup",Y,!0),L(re,"touchstart",M,!0),L(re,"touchmove",Z,!0),L(re,"touchend",we,!0)));return()=>{Je(),v.clear(),se.clear(),k(),P.current=!1}},[E,l,r,g,p,w,n,D,I,q,h,m,N,U,S,c,B]),a.useEffect(h,[p,h]);const Re=a.useMemo(()=>({onKeyDown:q,[ss[u]]:te,...u!=="intentional"&&{onClick:te}}),[q,te,u]),_e=a.useMemo(()=>({onKeyDown:q,onPointerDown:Se,onMouseDown:Se,onClickCapture:oe,onMouseDownCapture(v){oe(),Ee(v)},onPointerDownCapture(v){oe(),Ee(v)},onMouseUpCapture:oe,onTouchEndCapture:oe,onTouchMoveCapture:oe}),[q,oe,Ee,Se]);return a.useMemo(()=>n?{reference:Re,floating:_e,trigger:Re}:{},[n,Re,_e])}const cs={open:Oe(e=>e.open),transitionStatus:Oe(e=>e.transitionStatus),domReferenceElement:Oe(e=>e.domReferenceElement),referenceElement:Oe(e=>e.positionReference??e.referenceElement),floatingElement:Oe(e=>e.floatingElement),floatingId:Oe(e=>e.floatingId)};class us extends Kr{constructor(t){const{syncOnly:n,nested:r,onOpenChange:s,triggerElements:o,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:s,dataRef:{current:{}},events:Jr(),nested:r,triggerElements:o},cs),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&ur(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}}function as(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:s,nested:o,onOpenChange:i}=e,u=t.useState("open"),T=t.useState("activeTriggerElement"),d=t.useState(n?"popupElement":"positionerElement"),c=t.context.triggerElements,w=i,l=a.useRef(null);r===void 0&&l.current===null&&(l.current=new us({open:u,transitionStatus:void 0,referenceElement:T,floatingElement:d,triggerElements:c,onOpenChange:w,floatingId:s,syncOnly:!0,nested:o}));const E=r??l.current;return t.useSyncedValue("floatingId",s),H(()=>{const S={open:u,floatingId:s,referenceElement:T,floatingElement:d};Fe(T)&&(S.domReferenceElement=T),E.state.positionReference===E.state.referenceElement&&(S.positionReference=T),E.update(S)},[u,s,T,d,E]),E.context.onOpenChange=w,E.context.nested=o,E}const Js={tabIndex:-1,[pt]:""};function Zs(e,t,n=!1){const r=Qt(),s=es()!=null,o=a.useRef(null);e===void 0&&o.current===null&&(o.current=t(r,s));const i=e??o.current;return as({popupStore:i,treatPopupAsFloatingElement:n,floatingRootContext:i.state.floatingRootContext,floatingId:r,nested:s,onOpenChange:i.setOpen}),{store:i,internalStore:o.current}}function ls(e,t){const n=a.useRef(null),r=a.useRef(null);return a.useCallback(s=>{if(e===void 0)return;let o=!1;if(n.current!==null){const i=n.current,u=r.current,T=t.context.triggerElements.getById(i);u&&T===u&&(t.context.triggerElements.delete(i),o=!0),n.current=null,r.current=null}if(s!==null&&(n.current=e,r.current=s,t.context.triggerElements.add(e,s),o=!0),o){const i=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==i&&t.set("triggerCount",i)}},[t,e])}function Qs(e,t,n){const r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function eo(e,t,n,r){const s=n.useState("isMountedByTrigger",e),o=ls(e,n),i=K(u=>{if(o(u),!u)return;const T=n.select("open"),d=n.select("activeTriggerId");if(d===e){n.update({activeTriggerElement:u,...T?r:null});return}d==null&&T&&n.update({activeTriggerId:e,activeTriggerElement:u,...r})});return H(()=>{s&&n.update({activeTriggerElement:t.current,...r})},[s,n,t,...Object.values(r)]),{registerTrigger:i,isMountedByThisTrigger:s}}function to(e){const t=e.useState("open"),n=e.useState("triggerCount");H(()=>{if(!t){e.state.triggerCount!==0&&e.set("triggerCount",0);return}const r=e.context.triggerElements.size,s={};if(e.state.triggerCount!==r&&(s.triggerCount=r),!e.select("activeTriggerId")&&r===1){const o=e.context.triggerElements.entries().next();if(!o.done){const[i,u]=o.value;s.activeTriggerId=i,s.activeTriggerElement=u}}(s.triggerCount!==void 0||s.activeTriggerId!==void 0)&&e.update(s)},[t,e,n])}function no(e,t,n){const{mounted:r,setMounted:s,transitionStatus:o}=Xn(e);t.useSyncedValues({mounted:r,transitionStatus:o});const i=K(()=>{s(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),t.context.onOpenChangeComplete?.(!1)}),u=t.useState("preventUnmountingOnClose");return Un({enabled:r&&!e&&!u,open:e,ref:t.context.popupRef,onComplete(){e||i()}}),{forceUnmount:i,transitionStatus:o}}function ro(e,t){e.useSyncedValues(t),H(()=>()=>{e.update({activeTriggerProps:De,inactiveTriggerProps:De,popupProps:De})},[e])}function so(e,t){H(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),H(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}class oo{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function fs(e){const t=a.useRef(""),n=a.useCallback(s=>{s.defaultPrevented||(t.current=s.pointerType,e(s,s.pointerType))},[e]);return{onClick:a.useCallback(s=>{if(s.detail===0){e(s,"keyboard");return}"pointerType"in s?e(s,s.pointerType):e(s,t.current),t.current=""},[e]),onPointerDown:n}}function ds(e,t){const n=K((o,i)=>{(typeof e=="function"?e():e)||t(i||(cn?"touch":""))}),{onClick:r,onPointerDown:s}=fs(n);return a.useMemo(()=>({onClick:r,onPointerDown:s}),[r,s])}function io(e){const[t,n]=a.useState(null),r=ds(e,n);return Yn(e,s=>{s&&!e&&n(null)}),a.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}let It=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=We.startingStyle]="startingStyle",e[e.endingStyle=We.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),Et=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const ps={[Et.popupOpen]:""},gs={[Et.popupOpen]:"",[Et.pressed]:""},hs={[It.open]:""},ms={[It.closed]:""},bs={[It.anchorHidden]:""},co={open(e){return e?ps:null}},uo={open(e){return e?gs:null}},ao={open(e){return e?hs:ms},anchorHidden(e){return e?bs:null}};function lo(e){return Jt(19)?e:e?"true":void 0}const fo=a.forwardRef(function(t,n){const{cutout:r,...s}=t;let o;if(r){const i=r.getBoundingClientRect();o=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${i.left}px ${i.top}px,${i.left}px ${i.bottom}px,${i.right}px ${i.bottom}px,${i.right}px ${i.top}px,${i.left}px ${i.top}px)`}return fe.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...s,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:o}})});let Ut={},Xt={},zt="";function ys(e){if(typeof document>"u")return!1;const t=$(e);return Xe(t).innerWidth-t.documentElement.clientWidth>0}function Es(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=$(e),r=n.documentElement,s=n.body,o=Ct(r)?r:s,i=o.style.overflowY,u=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",o.style.overflowY="scroll";const T=o.offsetWidth;o.style.overflowY="hidden";const d=o.offsetWidth;return o.style.overflowY=i,r.style.scrollbarGutter=u,T===d}function Ss(e){const t=$(e),n=t.documentElement,r=t.body,s=Ct(n)?n:r,o={overflowY:s.style.overflowY,overflowX:s.style.overflowX};return Object.assign(s.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(s.style,o)}}function Rs(e){const t=$(e),n=t.documentElement,r=t.body,s=Xe(n);let o=0,i=0,u=!1;const T=le.create();if(on&&(s.visualViewport?.scale??1)!==1)return()=>{};function d(){const E=s.getComputedStyle(n),S=s.getComputedStyle(r),g=(E.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";o=n.scrollTop,i=n.scrollLeft,Ut={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},zt=n.style.scrollBehavior,Xt={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const m=n.scrollHeight>n.clientHeight,D=n.scrollWidth>n.clientWidth,I=E.overflowY==="scroll"||S.overflowY==="scroll",b=E.overflowX==="scroll"||S.overflowX==="scroll",j=Math.max(0,s.innerWidth-r.clientWidth),P=Math.max(0,s.innerHeight-r.clientHeight),V=parseFloat(S.marginTop)+parseFloat(S.marginBottom),_=parseFloat(S.marginLeft)+parseFloat(S.marginRight),C=Ct(n)?n:r;if(u=Es(e),u){n.style.scrollbarGutter=g,C.style.overflowY="hidden",C.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:g,overflowY:"hidden",overflowX:"hidden"}),(m||I)&&(n.style.overflowY="scroll"),(D||b)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:V||P?`calc(100dvh - ${V+P}px)`:"100dvh",width:_||j?`calc(100vw - ${_+j}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=o,r.scrollLeft=i,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function c(){Object.assign(n.style,Ut),Object.assign(r.style,Xt),u||(n.scrollTop=o,n.scrollLeft=i,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=zt)}function w(){c(),T.request(d)}d();const l=L(s,"resize",w);return()=>{T.cancel(),c(),typeof s.removeEventListener=="function"&&l()}}class Ts{lockCount=0;restore=null;timeoutLock=Ce.create();timeoutUnlock=Ce.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=$(t).documentElement,s=Xe(r).getComputedStyle(r).overflowY;if(s==="hidden"||s==="clip"){this.restore=wt;return}const o=cn||!ys(t);this.restore=o?Ss(t):Rs(t)}}const ws=new Ts;function po(e=!0,t=null){H(()=>{if(e)return ws.acquire(t)},[e,t])}export{Nt as $,vs as A,un as B,It as C,gr as D,ht as E,us as F,Fs as G,Ds as H,fo as I,Ms as J,an as K,ar as L,lr as M,hr as N,Ns as O,oo as P,Ws as Q,Kr as R,Ps as S,pr as T,Is as U,dr as V,As as W,ks as X,st as Y,es as Z,Cn as _,Un as a,Dt as a0,it as a1,Ot as a2,ct as a3,Ht as a4,Ls as a5,Vs as a6,he as a7,$ as a8,je as a9,Hs as aa,mt as ab,_s as ac,Gs as ad,rr as ae,tt as af,nt as ag,Ys as ah,ce as ai,ir as aj,cr as ak,nr as al,Ve as am,Pt as an,io as ao,Sn as ap,Br as aq,uo as ar,js as as,qs as at,on as au,L as av,Js as b,Oe as c,Bs as d,Us as e,$s as f,so as g,to as h,lo as i,no as j,zs as k,po as l,ro as m,ye as n,W as o,ao as p,Zs as q,Ks as r,Qs as s,xs as t,Xn as u,eo as v,Xs as w,ds as x,$r as y,co as z};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/useSuspenseInfiniteQuery-BqhMYNDJ.js': { content: 'import{I as r}from"./Rows-Cud9pG1r.js";import{aw as u,aC as n}from"./index-DetZ1d0r.js";function a(e,s){return u({...e,enabled:!0,suspense:!0,throwOnError:n},r)}export{a as u};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/useSuspenseQuery-BRwpEaa4.js': { content: 'import{aw as r,aD as u,aC as a}from"./index-DetZ1d0r.js";function t(e,s){return r({...e,enabled:!0,suspense:!0,throwOnError:a,placeholderData:void 0},u)}export{t as u};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/useValueChanged-CTPdEny_.js': { content: 'import{r as a,aP as Ee}from"./index-DetZ1d0r.js";const F={};function x(e,t){const n=a.useRef(F);return n.current===F&&(n.current=e(t)),n}function Y(e,t,n,r){const o=x(q).current;return Pe(o,e,t,n,r)&&Q(o,[e,t,n,r]),o.callback}function Ce(e){const t=x(q).current;return ke(t,e)&&Q(t,e),t.callback}function q(){return{callback:null,cleanup:null,refs:[]}}function Pe(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function ke(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function Q(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let o=0;o{for(let o=0;o{},S=typeof document<"u"?a.useLayoutEffect:Ie,L={...Ee},v=L.useInsertionEffect,Ne=v&&v!==L.useLayoutEffect?v:e=>e();function ee(e){const t=x(ve).current;return t.next=e,Ne(t.effect),t.trampoline}function ve(){const e={next:void 0,callback:De,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function De(){}const te={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},ot={...te,position:"fixed",top:0,left:0},rt={...te,position:"absolute"};function st(){}const ct=Object.freeze([]),y=Object.freeze({});function k(){return typeof window<"u"}function B(e){return ne(e)?(e.nodeName||"").toLowerCase():"#document"}function g(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Re(e){var t;return(t=(ne(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ne(e){return k()?e instanceof Node||e instanceof g(e).Node:!1}function oe(e){return k()?e instanceof Element||e instanceof g(e).Element:!1}function O(e){return k()?e instanceof HTMLElement||e instanceof g(e).HTMLElement:!1}function z(e){return!k()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof g(e).ShadowRoot}function re(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function it(e){return/^(table|td|th)$/.test(B(e))}function Se(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Te=/transform|translate|scale|rotate|perspective|filter/,Ae=/paint|layout|strict|content/,m=e=>!!e&&e!=="none";let D;function xe(e){const t=oe(e)?ce(e):e;return m(t.transform)||m(t.translate)||m(t.scale)||m(t.rotate)||m(t.perspective)||!Le()&&(m(t.backdropFilter)||m(t.filter))||Te.test(t.willChange||"")||Ae.test(t.contain||"")}function ut(e){let t=T(e);for(;O(t)&&!se(t);){if(xe(t))return t;if(Se(t))return null;t=T(t)}return null}function Le(){return D==null&&(D=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),D}function se(e){return/^(html|body|#document)$/.test(B(e))}function ce(e){return g(e).getComputedStyle(e)}function at(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function T(e){if(B(e)==="html")return e;const t=e.assignedSlot||e.parentNode||z(e)&&e.host||Re(e);return z(t)?t.host:t}function ie(e){const t=T(e);return se(t)?e.ownerDocument?e.ownerDocument.body:e.body:O(t)&&re(t)?t:ie(t)}function G(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ie(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=g(o);if(s){const f=Be(i);return t.concat(i,i.visualViewport||[],re(o)?o:[],f&&n?G(f):[])}else return t.concat(o,G(o,[],n))}function Be(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const lt="none",ft="trigger-press",dt="trigger-hover",pt="outside-press",bt="item-press",mt="close-press",yt="focus-out",gt="escape-key",wt="list-navigation",ht="cancel-open",Et="imperative-action",Ct="window-resize";function Pt(e,t,n,r){let o=!1,s=!1;const i=y;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){s=!0},get isCanceled(){return o},get isPropagationAllowed(){return s},trigger:n,...i}}let J=0;function Oe(e,t="mui"){const[n,r]=a.useState(e),o=e||n;return a.useEffect(()=>{n==null&&(J+=1,r(`${t}-${J}`))},[n,t]),o}const X=L.useId;function Me(e,t){if(X!==void 0){const n=X();return e??(t?`${t}-${n}`:n)}return Oe(e,t)}function kt(e){return Me(e,"base-ui")}function Ue(e,t){return function(r,...o){const s=new URL(e);return s.searchParams.set("code",r.toString()),o.forEach(i=>s.searchParams.append("args[]",i)),`${t} error #${r}; visit ${s} for the full message.`}}const ue=Ue("https://base-ui.com/production-error","Base UI"),$e=parseInt(a.version,10);function Ke(e){return $e>=e}function Z(e){if(!a.isValidElement(e))return null;const t=e,n=t.props;return(Ke(19)?n?.ref:t.ref)??null}function A(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function He(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const s=t[r](o);s!=null&&Object.assign(n,s);continue}o===!0?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function We(e,t){return typeof e=="function"?e(t):e}function Ve(e,t){return typeof e=="function"?e(t):e}const M={};function U(e,t,n,r,o){if(!n&&!r&&!o&&!e)return C(t);let s=C(e);return t&&(s=w(s,t)),n&&(s=w(s,n)),r&&(s=w(s,r)),o&&(s=w(s,o)),s}function je(e){if(e.length===0)return M;if(e.length===1)return C(e[0]);let t=C(e[0]);for(let n=1;n=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function $(e){return typeof e=="function"}function le(e,t){return $(e)?e(t):e??M}function Ye(e,t){return t?e?(...n)=>{const r=n[0];if(pe(r)){const s=r;P(s);const i=t(...n);return s.baseUIHandlerPrevented||e?.(...n),i}const o=t(...n);return e?.(...n),o}:fe(t):e}function fe(e){return e&&((...t)=>{const n=t[0];return pe(n)&&P(n),e(...t)})}function P(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function de(e,t){return t?e?t+" "+e:t:e}function pe(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function It(e,t,n={}){const r=t.render,o=ze(t,n);if(n.enabled===!1)return null;const s=n.state??y;return Xe(e,r,o,s)}function ze(e,t={}){const{className:n,style:r,render:o}=e,{state:s=y,ref:i,props:f,stateAttributesMapping:d,enabled:u=!0}=t,p=u?We(n,s):void 0,h=u?Ve(r,s):void 0,I=u?He(s,d):y,b=u&&f?Ge(f):void 0,l=u?A(I,b)??{}:y;return typeof document<"u"&&(u?Array.isArray(i)?l.ref=Ce([l.ref,Z(o),...i]):l.ref=Y(l.ref,Z(o),i):Y(null,null)),u?(p!==void 0&&(l.className=de(l.className,p)),h!==void 0&&(l.style=A(l.style,h)),l):y}function Ge(e){return Array.isArray(e)?je(e):U(void 0,e)}const Je=Symbol.for("react.lazy");function Xe(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const o=U(n,t.props);o.ref=n.ref;let s=t;return s?.$$typeof===Je&&(s=a.Children.toArray(t)[0]),a.cloneElement(s,o)}if(e&&typeof e=="string")return Ze(e,n);throw new Error(ue(8))}function Ze(e,t){return e==="button"?a.createElement("button",{type:"button",...t,key:t.key}):e==="img"?a.createElement("img",{alt:"",...t,key:t.key}):a.createElement(e,t)}const qe=a.createContext(void 0);function Qe(e=!1){const t=a.useContext(qe);if(t===void 0&&!e)throw new Error(ue(16));return t}function et(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:s}=e,i=r&&t!==!1,f=r&&t===!1;return{props:a.useMemo(()=>{const u={onKeyDown(p){n&&t&&p.key!=="Tab"&&p.preventDefault()}};return r||(u.tabIndex=o,!s&&n&&(u.tabIndex=t?o:-1)),(s&&(t||i)||!s&&n)&&(u["aria-disabled"]=n),s&&(!t||f)&&(u.disabled=n),u},[r,n,t,i,f,s,o])}}function Nt(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0,composite:s}=e,i=a.useRef(null),f=Qe(!0),d=s??f!==void 0,{props:u}=et({focusableWhenDisabled:n,disabled:t,composite:d,tabIndex:r,isNativeButton:o}),p=a.useCallback(()=>{const b=i.current;R(b)&&d&&t&&u.disabled===void 0&&b.disabled&&(b.disabled=!1)},[t,u.disabled,d]);S(p,[p]);const h=a.useCallback((b={})=>{const{onClick:l,onMouseDown:be,onKeyUp:me,onKeyDown:ye,onPointerDown:ge,...we}=b;return U({onClick(c){if(t){c.preventDefault();return}l?.(c)},onMouseDown(c){t||be?.(c)},onKeyDown(c){if(t||(P(c),ye?.(c),c.baseUIHandlerPrevented))return;const K=c.target===c.currentTarget,E=c.currentTarget,H=R(E),W=!o&&tt(E),V=K&&(o?H:!W),j=c.key==="Enter",_=c.key===" ",N=E.getAttribute("role"),he=N?.startsWith("menuitem")||N==="option"||N==="gridcell";if(K&&d&&_){if(c.defaultPrevented&&he)return;c.preventDefault(),W||o&&H?(E.click(),c.preventBaseUIHandler()):V&&(l?.(c),c.preventBaseUIHandler());return}V&&(!o&&(_||j)&&c.preventDefault(),!o&&j&&l?.(c))},onKeyUp(c){if(!t){if(P(c),me?.(c),c.target===c.currentTarget&&o&&d&&R(c.currentTarget)&&c.key===" "){c.preventDefault();return}c.baseUIHandlerPrevented||c.target===c.currentTarget&&!o&&!d&&c.key===" "&&l?.(c)}},onPointerDown(c){if(t){c.preventDefault();return}ge?.(c)}},o?{type:"button"}:{role:"button"},u,we)},[t,u,d,o]),I=ee(b=>{i.current=b,p()});return{getButtonProps:h,buttonRef:I}}function R(e){return O(e)&&e.tagName==="BUTTON"}function tt(e){return!!(e?.tagName==="A"&&e?.href)}function vt(e,t){const n=a.useRef(e),r=ee(t);S(()=>{n.current!==e&&r(n.current)},[e,r]),S(()=>{n.current=e},[e])}export{xe as A,ut as B,B as C,re as D,y as E,at as F,Be as G,Le as H,Me as I,wt as J,yt as K,ct as L,pt as M,st as N,ht as O,Ct as P,bt as Q,z as R,Ke as S,ne as T,dt as U,ft as V,gt as W,x as a,Nt as b,S as c,Y as d,vt as e,ue as f,It as g,g as h,ot as i,Pt as j,mt as k,Et as l,U as m,lt as n,ee as o,oe as p,Re as q,G as r,O as s,ce as t,kt as u,rt as v,Se as w,T as x,se as y,it as z};\n', contentType: 'text/javascript; charset=utf-8', }, 'assets/verified-tokens-Br5iLeNp.js': { content: 'import{r as N,j as l,c as Ue,e as D,g as Z,a as rn,p as z,b as _,f as an,d as sn,h as U,m as _e,i as We,A as on,R as cn,k as Ge,B as ln,l as un,s as dn,n as fn,o as mn,u as gn,W as hn,q as yn,t as xn,v as b,w as bn,x as Pe,y as He,z as g,C as v,D as w,E as W,F as k,G as C,H as G,I as pn,J as we,K as Qe,L as Ne,M as Ie,N as vn,O as Ae,P as wn,Q as Nn,S as jn,T as ee,U as kn,V as O,X as Te,Y as ne,Z as te,_ as En,$ as Cn}from"./index-DetZ1d0r.js";import{F as $e,I as M}from"./Input-3nKp-F7T.js";import{u as Sn,C as qn,a as Rn}from"./clipboard-DHXvtInv.js";import{S as Un}from"./Select-DnF193sj.js";import{P as Pn,C as Ve,N as $}from"./Page-CXChQl7o.js";import{C as In}from"./Checkbox-DRTNsWbJ.js";import{D as F}from"./Dialog-BUpC5JqE.js";import{P as An,T as Tn}from"./trash-2-DmnQRcCN.js";import{E as $n}from"./external-link-DPaXQLgQ.js";import"./useValueChanged-CTPdEny_.js";import"./useScrollLock-DC_n164h.js";import"./FormContext-BdJHfunf.js";import"./useAriaLabelledBy-uECG1FTb.js";const Fn=typeof window>"u"?N.useEffect:N.useLayoutEffect;function On(e){const{active:n,className:s,expand:c=!1,onChange:r,tabs:t,...a}=e,o=t.findIndex(y=>y.id===n),{indicatorRef:i,ready:u,stripRef:d,tabRef:f}=Dn(o),m=N.useRef(null),h=(y,p)=>{let x=null;if(y.key==="ArrowRight"?x=(p+1)%t.length:y.key==="ArrowLeft"?x=(p-1+t.length)%t.length:y.key==="Home"?x=0:y.key==="End"&&(x=t.length-1),x===null)return;const q=t[x];q&&(y.preventDefault(),r(q.id),m.current?.querySelectorAll(\'[role="tab"]\')[x]?.focus())};return l.jsxs("div",{...a,className:Ue("relative flex items-stretch border-b border-border",s),ref:y=>{m.current=y,d(y)},role:"tablist",children:[l.jsx("span",{ref:i,className:"pointer-events-none absolute bottom-[-1px] left-0 h-[1px] bg-accent"}),t.map((y,p)=>{const x=y.id===n;return l.jsxs("button",{"aria-selected":x,className:Ue("relative z-1 inline-flex min-w-0 cursor-pointer select-none items-center justify-center gap-[6px] whitespace-nowrap rounded-button border-0 bg-transparent py-[10px] label-13 focus-visible:outline focus-visible:outline-[2px] focus-visible:outline-offset-[-1px] focus-visible:outline-focus",c?"flex-1":"px-[12px]",x?"text-foreground":"text-foreground-secondary hover:text-foreground-secondary-hover"),onKeyDown:q=>h(q,p),onPointerDown:()=>r(y.id),ref:f(p),role:"tab",tabIndex:x?0:-1,type:"button",children:[y.icon,y.label,x&&!u&&l.jsx("span",{className:"absolute bottom-[-1px] left-0 h-[1px] w-full bg-accent"})]},y.id)})]})}function Dn(e,n={}){const{inset:s=0}=n,[c,r]=N.useState(!1),t=N.useRef(null),a=N.useRef([]),o=N.useRef(null),i=N.useCallback(u=>{const d=a.current[u],f=t.current,m=o.current;if(!d||!f||!m)return;const h=f.getBoundingClientRect(),y=d.getBoundingClientRect(),p=y.left-h.left+f.scrollLeft+s,x=Math.max(y.width-s*2,0);m.style.left=`${p}px`,m.style.width=`${x}px`,r(!0)},[s]);return Fn(()=>{if(e<0){r(!1);return}i(e)},[e,i]),N.useEffect(()=>{const u=()=>{e>=0&&i(e)};return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[e,i]),{indicatorRef:u=>{o.current=u},ready:c,stripRef:u=>{t.current=u},tabRef:u=>d=>{a.current[u]=d}}}async function Je(e,n){const{abi:s,address:c,args:r,functionName:t,dataSuffix:a=typeof e.dataSuffix=="string"?e.dataSuffix:e.dataSuffix?.value,...o}=n,i=D({abi:s,args:r,functionName:t});try{return await Z(e,rn,"estimateGas")({data:`${i}${a?a.replace("0x",""):""}`,to:c,...o})}catch(u){const d=o.account?z(o.account):void 0;throw _(u,{abi:s,address:c,args:r,docsPath:"/docs/contract/estimateContractGas",functionName:t,sender:d?.address})}}function zn(e,n){return an(e,n)}function Bn(e,n){return sn(e,n)}async function Mn(e,n){const{account:s,authorizationList:c,allowFailure:r=!0,blockHash:t,blockNumber:a,blockOverrides:o,blockTag:i,requireCanonical:u,stateOverride:d}=n,f=n.contracts,m=typeof e.batch?.multicall=="object"?e.batch.multicall:{},h=n.batchSize??m.batchSize??1024,y=n.multicallAddress?n.multicallAddress:null,p=[[]];let x=0,q=0;for(let E=0;E0&&q>h&&p[x].length>0&&(x++,q=(P.length-2)/2,p[x]=[]),p[x]=[...p[x],{allowFailure:!0,callData:P,target:T}]}catch(P){const Y=_(P,{abi:S,address:T,args:R,docsPath:"/docs/contract/multicall",functionName:B,sender:s});if(!r)throw Y;p[x]=[...p[x],{allowFailure:!0,callData:"0x",target:T}]}}const ke=!!e.batch?.multicall,X=ke?p.flatMap(E=>E.map(S=>[S])):p,Ee=await Promise.allSettled(X.map(E=>ke?Kn(e,{account:s,authorizationList:c,batchSize:h,blockHash:t,blockNumber:a,blockOverrides:o,blockTag:i,call:E[0],multicallAddress:y,requireCanonical:u,stateOverride:d}).then(S=>[S]):Z(e,U,"readContract")({...y===null?{code:We}:{address:y},abi:_e,account:s,args:[E],authorizationList:c,blockHash:t,blockNumber:a,blockOverrides:o,blockTag:i,functionName:"aggregate3",requireCanonical:u,stateOverride:d}))),A=[];for(let E=0;Ef+(m.length-2)/2,0)>s},fn:u=>Z(e,U,"readContract")({...r===null?{code:We}:{address:r},...t,abi:_e,args:[u],functionName:"aggregate3"})}),[i]=await o(c);return i}async function Ze(e,n){const{abi:s,address:c,args:r,functionName:t,dataSuffix:a=typeof e.dataSuffix=="string"?e.dataSuffix:e.dataSuffix?.value,...o}=n,i=o.account?z(o.account):e.account,u=D({abi:s,args:r,functionName:t});try{const{data:d}=await Z(e,fn,"call")({batch:!1,data:`${u}${a?a.replace("0x",""):""}`,to:c,...o,account:i}),f=Ge({abi:s,args:r,functionName:t,data:d||"0x"}),m=s.filter(h=>"name"in h&&h.name===n.functionName);return{result:f,request:{abi:m,address:c,args:r,dataSuffix:a,functionName:t,...o,account:i}}}catch(d){throw _(d,{abi:s,address:c,args:r,docsPath:"/docs/contract/simulateContract",functionName:t,sender:i?.address})}}function je(e,n){return{amount:e,decimals:n,formatted:zn(e,n)}}function K(e,n){if(typeof e=="bigint")return e;const s=e.decimals??n;return Bn(e.formatted,Ln(s))}function Ln(e){if(e===void 0)throw new Error("Token decimals are required. Pass `amount.decimals` or select a declared token.");return e}function Fe(e){return e.state.chainId}function _n(e,n){const{onChange:s}=n;return e.subscribe(c=>c.chainId,s)}const Wn="3.7.4",Gn=()=>`wagmi@${Wn}`;class Hn extends mn{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return Gn()}}class Qn extends Hn{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function Vn(e){return JSON.stringify(e,(n,s)=>Jn(s)?Object.keys(s).sort().reduce((c,r)=>(c[r]=s[r],c),{}):typeof s=="bigint"?s.toString():s)}function Jn(e){if(!Oe(e))return!1;const n=e.constructor;if(typeof n>"u")return!0;const s=n.prototype;return!(!Oe(s)||!s.hasOwnProperty("isPrototypeOf"))}function Oe(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zn(e){const n=gn({...e,queryKeyHashFn:Vn});return n.queryKey=e.queryKey,n}function Xe(e={}){const n=e.config??N.useContext(hn);if(!n)throw new Qn;return n}function Xn(e={}){const n=Xe(e);return N.useSyncExternalStore(s=>_n(n,{onChange:s}),()=>Fe(n),()=>Fe(n))}const Yn={defaultAdmin:"DEFAULT_ADMIN_ROLE",pause:"PAUSE_ROLE",unpause:"UNPAUSE_ROLE",issuer:"ISSUER_ROLE",burnBlocked:"BURN_BLOCKED_ROLE"};function I(e){return e==="defaultAdmin"?"0x0000000000000000000000000000000000000000000000000000000000000000":yn(xn(Yn[e]??e))}async function re(e,n){return re.inner(C,e,n)}(function(e){async function n(a,o,i){return await a(o,{...i,...e.call(o,i)})}e.inner=n;function s(...a){const[o,i]=v(a),{amount:u,spender:d,token:f}=i,{address:m,decimals:h}=b(o,{token:f});return w({address:m,abi:g,functionName:"approve",args:[d,K(u,h)]})}e.call=s;async function c(a,o){return Je(a,{...W(o),...e.call(a,o)})}e.estimateGas=c;async function r(a,o){return Ze(a,{...W(o),...e.call(a,o)})}e.simulate=r;function t(a){const[o]=k({abi:g,logs:a,eventName:"Approval"});if(!o)throw new Error("`Approval` event not found.");return o}e.extractEvent=t})(re||(re={}));async function ae(e,n){return ae.inner(C,e,n)}(function(e){async function n(r,t,a){const{amount:o,from:i,token:u,...d}=a,f=e.call(t,{amount:o,from:i,token:u});return await r(t,{...d,...f})}e.inner=n;function s(...r){const[t,a]=v(r),{from:o,amount:i,token:u}=a,{address:d,decimals:f}=b(t,{token:u});return w({address:d,abi:g,functionName:"burnBlocked",args:[o,K(i,f)]})}e.call=s;function c(r){const[t]=k({abi:g,logs:r,eventName:"BurnBlocked"});if(!t)throw new Error("`BurnBlocked` event not found.");return t}e.extractEvent=c})(ae||(ae={}));async function se(e,n){return se.inner(C,e,n)}(function(e){async function n(r,t,a){const{amount:o,memo:i,token:u,...d}=a,f=e.call(t,{amount:o,memo:i,token:u});return await r(t,{...d,...f})}e.inner=n;function s(...r){const[t,a]=v(r),{amount:o,memo:i,token:u}=a,{address:d,decimals:f}=b(t,{token:u}),m=K(o,f),h=i?{functionName:"burnWithMemo",args:[m,G(i,32)]}:{functionName:"burn",args:[m]};return w({address:d,abi:g,...h})}e.call=s;function c(r){const[t]=k({abi:g,logs:r,eventName:"Burn"});if(!t)throw new Error("`Burn` event not found.");return t}e.extractEvent=c})(se||(se={}));async function oe(e,n){return oe.inner(C,e,n)}(function(e){async function n(r,t,a){const{policyId:o,token:i,...u}=a,d=e.call(t,{policyId:o,token:i});return await r(t,{...u,...d})}e.inner=n;function s(...r){const[t,a]=v(r),{token:o,policyId:i}=a;return w({address:b(t,{token:o}).address,abi:g,functionName:"changeTransferPolicyId",args:[i]})}e.call=s;function c(r){const[t]=k({abi:g,logs:r,eventName:"TransferPolicyUpdate"});if(!t)throw new Error("`TransferPolicyUpdate` event not found.");return t}e.extractEvent=c})(oe||(oe={}));async function ce(e,n){return ce.inner(C,e,n)}(function(e){async function n(r,t,a){const{account:o=t.account,admin:i=t.account,chain:u=t.chain,...d}=a,f=i?z(i):void 0;if(!f)throw new Error("admin is required.");const m=e.call(t,{...d,admin:f.address});return await r(t,{...a,account:o,chain:u,...m})}e.inner=n;function s(...r){const[t,a]=v(r),{name:o,symbol:i,currency:u,logoURI:d,quoteToken:f=He,admin:m,salt:h=pn(32)}=a;return w({address:vn,abi:Ie,args:typeof d=="string"?[o,i,u,b(t,{token:f}).address,m,h,d]:[o,i,u,b(t,{token:f}).address,m,h],functionName:"createToken"})}e.call=s;function c(r){const[t]=k({abi:Ie,logs:r,eventName:"TokenCreated",strict:!0});if(!t)throw new Error("`TokenCreated` event not found.");return t}e.extractEvent=c})(ce||(ce={}));async function H(e,n){const{account:s,decimals:c,spender:r,token:t,...a}=n,[o,{decimals:i}]=await Promise.all([U(e,{...a,...H.call(e,{account:s,spender:r,token:t})}),we(e,{decimals:c,token:t})]);return je(o,i)}(function(e){function n(...s){const[c,r]=v(s);return w({address:b(c,r).address,abi:g,functionName:"allowance",args:[r.account,r.spender]})}e.call=n})(H||(H={}));async function Q(e,n){const{account:s=e.account,decimals:c,token:r,...t}=n;if(!s)throw new Qe;const a=z(s).address,[o,{decimals:i}]=await Promise.all([U(e,{...t,...Q.call(e,{account:a,token:r})}),we(e,{decimals:c,token:r})]);return je(o,i)}(function(e){function n(...s){const[c,r]=v(s),t=r.account??c?.account;if(!t)throw new Qe;const a=z(t).address;return w({address:b(c,r).address,abi:g,functionName:"balanceOf",args:[a]})}e.call=n})(Q||(Q={}));async function et(e,n){const{token:s,...c}=n,{address:r}=b(e,{token:s}),t=g,a=bn(e,s),o={...a?.decimals!=null?{decimals:a.decimals}:{},...a?.name!=null?{name:a.name}:{},...a?.symbol!=null?{symbol:a.symbol}:{}};return Pe(r)===Pe(He)?De(e,{...c,contracts:[{address:r,abi:t,functionName:"currency"},{address:r,abi:t,functionName:"decimals"},{address:r,abi:t,functionName:"logoURI"},{address:r,abi:t,functionName:"name"},{address:r,abi:t,functionName:"symbol"},{address:r,abi:t,functionName:"totalSupply"}]}).then(([i,u,d,f,m,h])=>({name:j(f),symbol:j(m),currency:j(i),decimals:j(u),logoURI:j(d,""),totalSupply:j(h),...o})):De(e,{...c,contracts:[{address:r,abi:t,functionName:"currency"},{address:r,abi:t,functionName:"decimals"},{address:r,abi:t,functionName:"logoURI"},{address:r,abi:t,functionName:"quoteToken"},{address:r,abi:t,functionName:"name"},{address:r,abi:t,functionName:"paused"},{address:r,abi:t,functionName:"supplyCap"},{address:r,abi:t,functionName:"symbol"},{address:r,abi:t,functionName:"totalSupply"},{address:r,abi:t,functionName:"transferPolicyId"}]}).then(([i,u,d,f,m,h,y,p,x,q])=>({name:j(m),symbol:j(p),currency:j(i),decimals:j(u),logoURI:j(d,""),quoteToken:j(f),totalSupply:j(x),paused:j(h),supplyCap:j(y),transferPolicyId:j(q),...o}))}async function De(e,n){if(e.batch?.multicall===void 0)return Mn(e,{...n,allowFailure:!0});const{contracts:s,...c}=n;return(await Promise.allSettled(s.map(t=>U(e,{...c,...t})))).map(t=>t.status==="fulfilled"?{result:t.value,status:"success"}:{error:t.reason,status:"failure"})}function j(e,...n){if(e.status==="failure"){if(n.length>0)return n[0];throw e.error}return e.result}async function ie(e,n){const{decimals:s,token:c,...r}=n,[t,{decimals:a}]=await Promise.all([U(e,{...r,...ie.call(e,{token:c})}),we(e,{decimals:s,token:c})]);return je(t,a)}(function(e){function n(...s){const[c,r]=v(s);return w({address:b(c,r).address,abi:g,args:[],functionName:"totalSupply"})}e.call=n})(ie||(ie={}));async function V(e,n){return U(e,{...n,...V.call(e,n)})}(function(e){function n(...s){const[c,r]=v(s),{role:t,token:a}=r;return w({address:b(c,{token:a}).address,abi:g,functionName:"getRoleAdmin",args:[I(t)]})}e.call=n})(V||(V={}));async function J(e,n){const{account:s=e.account}=n,c=s?z(s).address:void 0;if(!c)throw new Error("account is required.");return U(e,{...n,...J.call(e,{...n,account:c})})}(function(e){function n(...s){const[c,r]=v(s),{account:t,role:a,token:o}=r;return w({address:b(c,{token:o}).address,abi:g,functionName:"hasRole",args:[t,I(a)]})}e.call=n})(J||(J={}));async function le(e,n){return le.inner(Ne,e,n)}(function(e){async function n(r,t,a){return await r(t,{...a,calls:a.roles.map(o=>{const i=e.call(t,{...a,role:o});return{...i,data:D(i)}})})}e.inner=n;function s(...r){const[t,a]=v(r),{token:o,to:i,role:u}=a,d=I(u);return w({address:b(t,{token:o}).address,abi:g,functionName:"grantRole",args:[d,i]})}e.call=s;function c(r){const t=k({abi:g,logs:r,eventName:"RoleMembershipUpdated"});if(t.length===0)throw new Error("`RoleMembershipUpdated` events not found.");return t}e.extractEvents=c})(le||(le={}));async function ue(e,n){return ue.inner(C,e,n)}(function(e){async function n(r,t,a){const{amount:o,memo:i,to:u,token:d,...f}=a,m=e.call(t,{amount:o,memo:i,to:u,token:d});return await r(t,{...f,...m})}e.inner=n;function s(...r){const[t,a]=v(r),{to:o,amount:i,memo:u,token:d}=a,{address:f,decimals:m}=b(t,{token:d}),h=K(i,m),y=u?{functionName:"mintWithMemo",args:[o,h,G(u,32)]}:{functionName:"mint",args:[o,h]};return w({address:f,abi:g,...y})}e.call=s;function c(r){const[t]=k({abi:g,logs:r,eventName:"Mint"});if(!t)throw new Error("`Mint` event not found.");return t}e.extractEvent=c})(ue||(ue={}));async function de(e,n){return de.inner(C,e,n)}(function(e){async function n(r,t,a){const{token:o,...i}=a,u=e.call(t,{token:o});return await r(t,{...i,...u})}e.inner=n;function s(...r){const[t,a]=v(r),{token:o}=a;return w({address:b(t,{token:o}).address,abi:g,functionName:"pause",args:[]})}e.call=s;function c(r){const[t]=k({abi:g,logs:r,eventName:"PauseStateUpdate"});if(!t)throw new Error("`PauseStateUpdate` event not found.");return t}e.extractEvent=c})(de||(de={}));async function fe(e,n){return fe.inner(Ne,e,n)}(function(e){async function n(r,t,a){return await r(t,{...a,calls:a.roles.map(o=>{const i=e.call(t,{...a,role:o});return{...i,data:D(i)}})})}e.inner=n;function s(...r){const[t,a]=v(r),{token:o,role:i}=a,u=I(i);return w({address:b(t,{token:o}).address,abi:g,functionName:"renounceRole",args:[u]})}e.call=s;function c(r){const t=k({abi:g,logs:r,eventName:"RoleMembershipUpdated"});if(t.length===0)throw new Error("`RoleMembershipUpdated` events not found.");return t}e.extractEvents=c})(fe||(fe={}));async function me(e,n){return me.inner(Ne,e,n)}(function(e){async function n(r,t,a){const{from:o,...i}=a;return await r(t,{...i,calls:a.roles.map(u=>{const d=e.call(t,{...a,role:u});return{...d,data:D(d)}})})}e.inner=n;function s(...r){const[t,a]=v(r),{token:o,from:i,role:u}=a,d=I(u);return w({address:b(t,{token:o}).address,abi:g,functionName:"revokeRole",args:[d,i]})}e.call=s;function c(r){const t=k({abi:g,logs:r,eventName:"RoleMembershipUpdated"});if(t.length===0)throw new Error("`RoleMembershipUpdated` events not found.");return t}e.extractEvents=c})(me||(me={}));async function ge(e,n){return ge.inner(C,e,n)}(function(e){async function n(r,t,a){const{supplyCap:o,token:i,...u}=a,d=e.call(t,{supplyCap:o,token:i});return await r(t,{...u,...d})}e.inner=n;function s(...r){const[t,a]=v(r),{token:o,supplyCap:i}=a;return w({address:b(t,{token:o}).address,abi:g,functionName:"setSupplyCap",args:[i]})}e.call=s;function c(r){const[t]=k({abi:g,logs:r,eventName:"SupplyCapUpdate"});if(!t)throw new Error("`SupplyCapUpdate` event not found.");return t}e.extractEvent=c})(ge||(ge={}));async function he(e,n){return he.inner(C,e,n)}(function(e){async function n(r,t,a){const{adminRole:o,role:i,token:u,...d}=a,f=e.call(t,{adminRole:o,role:i,token:u});return await r(t,{...d,...f})}e.inner=n;function s(...r){const[t,a]=v(r),{token:o,role:i,adminRole:u}=a,d=I(i),f=I(u);return w({address:b(t,{token:o}).address,abi:g,functionName:"setRoleAdmin",args:[d,f]})}e.call=s;function c(r){const[t]=k({abi:g,logs:r,eventName:"RoleAdminUpdated"});if(!t)throw new Error("`RoleAdminUpdated` event not found.");return t}e.extractEvent=c})(he||(he={}));async function ye(e,n){return ye.inner(C,e,n)}(function(e){async function n(a,o,i){return await a(o,{...i,...e.call(o,i)})}e.inner=n;function s(...a){const[o,i]=v(a),{from:u,memo:d,to:f,token:m}=i,{address:h,decimals:y}=b(o,{token:m}),p=K(i.amount,y),x=d&&u?{functionName:"transferFromWithMemo",args:[u,f,p,G(d,32)]}:d?{functionName:"transferWithMemo",args:[f,p,G(d,32)]}:u?{functionName:"transferFrom",args:[u,f,p]}:{functionName:"transfer",args:[f,p]};return w({address:h,abi:g,...x})}e.call=s;async function c(a,o){return Je(a,{...W(o),...e.call(a,o)})}e.estimateGas=c;async function r(a,o){return Ze(a,{...W(o),...e.call(a,o)})}e.simulate=r;function t(a){const[o]=k({abi:g,logs:a,eventName:"Transfer"});if(!o)throw new Error("`Transfer` event not found.");return o}e.extractEvent=t})(ye||(ye={}));async function xe(e,n){return xe.inner(C,e,n)}(function(e){async function n(r,t,a){const{token:o,...i}=a,u=e.call(t,{token:o});return await r(t,{...i,...u})}e.inner=n;function s(...r){const[t,a]=v(r),{token:o}=a;return w({address:b(t,{token:o}).address,abi:g,functionName:"unpause",args:[]})}e.call=s;function c(r){const[t]=k({abi:g,logs:r,eventName:"PauseStateUpdate"});if(!t)throw new Error("`PauseStateUpdate` event not found.");return t}e.extractEvent=c})(xe||(xe={}));async function be(e,n){return be.inner(C,e,n)}(function(e){async function n(r,t,a){const{quoteToken:o,token:i,...u}=a,d=e.call(t,{quoteToken:o,token:i});return await r(t,{...u,...d})}e.inner=n;function s(...r){const[t,a]=v(r),{token:o,quoteToken:i}=a;return w({address:b(t,{token:o}).address,abi:g,functionName:"setNextQuoteToken",args:[b(t,{token:i}).address]})}e.call=s;function c(r){const[t]=k({abi:g,logs:r,eventName:"NextQuoteTokenSet"});if(!t)throw new Error("`NextQuoteTokenSet` event not found.");return t}e.extractEvent=c})(be||(be={}));async function pe(e,n){return pe.inner(C,e,n)}(function(e){async function n(r,t,a){const{token:o,...i}=a,u=e.call(t,{token:o});return await r(t,{...i,...u})}e.inner=n;function s(...r){const[t,a]=v(r),{token:o}=a;return w({address:b(t,{token:o}).address,abi:g,functionName:"completeQuoteTokenUpdate",args:[]})}e.call=s;function c(r){const[t]=k({abi:g,logs:r,eventName:"QuoteTokenUpdate"});if(!t)throw new Error("`QuoteTokenUpdateCompleted` event not found.");return t}e.extractEvent=c})(pe||(pe={}));function ze(e,n){const{chainId:s,...c}=n,r=e.getClient({chainId:s});return H(r,c)}(function(e){function n(c){return["getAllowance",c]}e.queryKey=n;function s(c,r){const{query:t,...a}=r;return{...t,enabled:!!(a.account&&a.spender&&a.token&&(t?.enabled??!0)),queryKey:n(a),async queryFn(o){const[,i]=o.queryKey;return await e(c,i)}}}e.queryOptions=s})(ze||(ze={}));function Be(e,n){const{chainId:s,...c}=n,r=e.getClient({chainId:s});return Q(r,c)}(function(e){function n(c){return["getBalance",c]}e.queryKey=n;function s(c,r){const{query:t,...a}=r;return{...t,enabled:!!(a.account&&a.token&&(t?.enabled??!0)),queryKey:n(a),async queryFn(o){const[,i]=o.queryKey;return await e(c,i)??null}}}e.queryOptions=s})(Be||(Be={}));function ve(e,n){const{chainId:s,...c}=n,r=e.getClient({chainId:s});return et(r,c)}(function(e){function n(c){return["getMetadata",c]}e.queryKey=n;function s(c,r){const{query:t,...a}=r;return{...t,enabled:!!(a.token&&(t?.enabled??!0)),queryKey:n(a),async queryFn(o){const[,i]=o.queryKey;return await e(c,i)}}}e.queryOptions=s})(ve||(ve={}));function Me(e,n){const{chainId:s,...c}=n,r=e.getClient({chainId:s});return V(r,c)}(function(e){function n(c){return["getRoleAdmin",c]}e.queryKey=n;function s(c,r){const{query:t,...a}=r;return{...t,enabled:!!(a.token&&a.role&&(t?.enabled??!0)),queryKey:n(a),async queryFn(o){const[,i]=o.queryKey;return await e(c,i)}}}e.queryOptions=s})(Me||(Me={}));function Ke(e,n){const{chainId:s,...c}=n,r=e.getClient({chainId:s});return J(r,c)}(function(e){function n(c){return["hasRole",c]}e.queryKey=n;function s(c,r){const{query:t,...a}=r;return{...t,enabled:!!(a.token&&a.role&&a.account&&(t?.enabled??!0)),queryKey:n(a),async queryFn(o){const[,i]=o.queryKey;return await e(c,i)}}}e.queryOptions=s})(Ke||(Ke={}));function nt(e={}){const n=Xe(e),s=Xn({config:n}),c=ve.queryOptions(n,{...e,chainId:e.chainId??s});return Zn(c)}const Ye=[{id:ne.id,label:"Mainnet"},{id:te.id,label:"Testnet"}],tt={[ne.id]:ne.blockExplorers.default.url,[te.id]:te.blockExplorers.default.url};function Ct(){const{tab:e="verified"}=Ae.useSearch(),n=wn({from:Ae.fullPath}),[s,c]=N.useState(Nn),[r,t]=N.useState(!1),a=jn.useQuery({chainId:s}),o=ee.list.useQuery(),i=kn.useMutation(),u=o.data?.data.length??0;return l.jsx(F.Root,{onOpenChange:t,open:r,children:l.jsxs(Pn,{title:"Verified Tokens",description:"Manage the curated verified token list",action:e==="verified"?l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(en,{onChange:c,value:s}),l.jsx(F.Trigger,{render:l.jsxs(O,{variant:"primary",children:[l.jsx(An,{className:"size-4"}),"Add token"]})})]}):void 0,children:[l.jsx(On,{active:e,onChange:d=>{n({search:d==="verified"?{}:{tab:d}})},tabs:[{id:"verified",label:"Verified"},{id:"pending",label:u>0?`Pending (${u})`:"Pending"}]}),e==="verified"?l.jsx(lt,{chain:s,error:a.error,loading:a.isPending,tokens:a.data?.data??[]}):l.jsx(at,{error:o.error,loading:o.isPending,requests:o.data?.data??[]}),l.jsx(F.Popup,{children:l.jsx(ct,{defaultChain:s,onSubmit:d=>i.mutate(d,{onError:f=>alert(f.message),onSuccess:()=>t(!1)}),pending:i.isPending})})]})})}function rt(e){return Ye.find(n=>n.id===e)?.label??String(e)}function at(e){const n=ee.approve.useMutation(),s=ee.deny.useMutation(),[c,r]=N.useState(new Set),[t,a]=N.useState(null),o=e.requests.filter(d=>c.has(d.id));function i(d){r(f=>{const m=new Set(f);return m.has(d)?m.delete(d):m.add(d),m})}async function u(d){if(d==="approve"&&!confirm(`Verify ${Le(o)}?`))return;let f;if(d==="deny"){const m=prompt(`Reason for denying ${Le(o)} (optional):`);if(m===null)return;f=m.trim()||void 0}a(d);try{for(const m of o)d==="approve"?await n.mutateAsync({chainId:m.chainId,requestId:m.id}):await s.mutateAsync({requestId:m.id,...f?{reviewNote:f}:{}});r(new Set)}catch(m){alert(m instanceof Error?m.message:String(m))}finally{a(null)}}return l.jsxs(Ve,{children:[e.requests.length>0?l.jsxs("div",{className:"flex items-center justify-between gap-4 border-b border-border px-5 py-3",children:[l.jsxs("span",{className:"text-label-12 text-foreground-secondary",children:[o.length," selected"]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(O,{disabled:o.length===0||t!==null,loading:t==="deny",onClick:()=>{u("deny")},size:"small",children:"Deny"}),l.jsx(O,{disabled:o.length===0||t!==null,loading:t==="approve",onClick:()=>{u("approve")},size:"small",variant:"primary",children:"Approve"})]})]}):null,e.loading?l.jsx($,{children:"Loading requests…"}):e.error?l.jsx($,{children:e.error.message}):e.requests.length===0?l.jsx($,{children:"No pending requests."}):l.jsx("ul",{className:"divide-y divide-border",children:e.requests.map(d=>l.jsx(st,{onToggle:()=>i(d.id),request:d,selected:c.has(d.id)},d.id))})]})}function Le(e){const[n]=e;return e.length===1&&n?`${n.name} (${n.symbol})`:`${e.length} tokens`}function st(e){const{request:n}=e;return l.jsxs("li",{className:"flex cursor-pointer items-center justify-between gap-4 px-5 py-3 transition-colors hover:bg-surface-hover data-[selected]:bg-surface-hover","data-selected":e.selected||void 0,onClick:s=>{s.target.closest("a, button, input")||e.onToggle()},children:[l.jsxs("div",{className:"flex min-w-0 items-center gap-4",children:[l.jsx(ot,{request:n}),l.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[l.jsxs("span",{className:"text-label-14 text-foreground",children:[n.name," ",l.jsx("span",{className:"text-foreground-secondary",children:n.symbol})," ",l.jsxs("span",{className:"text-foreground-secondary",children:["· ",rt(n.chainId)]})]}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(nn,{value:n.address}),l.jsxs("span",{className:"text-label-12 text-foreground-secondary",children:[n.orgName??n.orgId," ·"," ",new Intl.DateTimeFormat(void 0,{dateStyle:"medium"}).format(new Date(n.createdAt))]})]}),n.note?l.jsx("p",{className:"truncate text-label-12 text-foreground-secondary",title:n.note,children:n.note}):null]})]}),l.jsx(In,{"aria-label":`Select ${n.name}`,checked:e.selected,onCheckedChange:e.onToggle})]})}function ot(e){const{request:n}=e,[s,c]=N.useState(!1),r=n.logo?`data:image/svg+xml;utf8,${encodeURIComponent(n.logo)}`:n.logoUri;return r&&!s?l.jsx("img",{alt:"",className:"size-8 shrink-0 rounded-full bg-secondary",onError:()=>c(!0),src:r,title:n.logo?"Uploaded SVG":n.logoUri}):l.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-secondary text-label-12 text-foreground-secondary",children:n.symbol.slice(0,2).toUpperCase()})}function en(e){return l.jsx(Un,{className:e.className??"w-40",items:Ye.map(n=>({label:n.label,value:String(n.id)})),onChange:n=>e.onChange(Number(n)),value:String(e.value)})}function ct(e){const[n,s]=N.useState(e.defaultChain),[c,r]=N.useState(""),t=nt({chainId:n,token:c,query:{enabled:Te(c)}}),a=t.data;function o(u){if(u.preventDefault(),!a)return;const d=new FormData(u.currentTarget),f=d.get("name"),m=d.get("logo"),h=m instanceof File&&m.size>0?m:null;e.onSubmit({address:c,chainId:n,currency:a.currency,decimals:a.decimals,name:typeof f=="string"?f.trim():"",symbol:a.symbol,logo:h,...!h&&a.logoURI?{logoUri:a.logoURI}:{}})}const i=c.length>0&&!Te(c);return l.jsxs(l.Fragment,{children:[l.jsx(F.Title,{children:"Add Token"}),l.jsx(F.Description,{children:"Add a token to the curated verified token list"}),l.jsxs("form",{className:"mt-6 flex flex-col gap-8",onSubmit:o,children:[l.jsxs($e,{className:"gap-6",variant:"default",children:[l.jsxs("div",{className:"flex flex-col gap-2",children:[l.jsx("span",{className:"label-13 text-foreground-secondary",children:"Chain"}),l.jsx(en,{className:"w-full",onChange:s,value:n})]}),l.jsx(it,{logoUri:a?.logoURI}),l.jsx(M,{error:i?"Enter a valid address":t.isError?"Token not found":!1,label:"Address",onChange:u=>r(u.target.value.trim()),placeholder:"0x20c000000000000000000000b9537d11c60e8b50",required:!0,value:c}),a?l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"flex gap-2",children:[l.jsx("div",{className:"w-32 shrink-0",children:l.jsx(M,{disabled:!0,label:"Symbol",placeholder:"USDC",value:a.symbol})}),l.jsx("div",{className:"flex-1",children:l.jsx(M,{defaultValue:a.name,label:"Name",name:"name",placeholder:"USD Coin",required:!0},a.name)})]}),l.jsxs($e.Inline,{children:[l.jsx(M,{disabled:!0,label:"Decimals",placeholder:"6",value:a.decimals}),l.jsx(M,{disabled:!0,label:"Currency",placeholder:"USD",value:a.currency})]})]}):null]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(F.Close,{render:l.jsx(O,{type:"button",children:"Cancel"})}),l.jsx(O,{disabled:!a,loading:e.pending,type:"submit",variant:"primary",children:"Add token"})]})]})]})}function it(e){const[n,s]=N.useState("");return l.jsxs("div",{className:"flex flex-col gap-2",children:[l.jsx("span",{className:"label-13 text-foreground-secondary",children:"Logo"}),l.jsxs("div",{className:"relative flex h-[40px] items-center gap-[10px] rounded-body border-[2px] border-transparent bg-secondary px-[12px] copy-14 text-foreground transition-colors hover:bg-secondary-hover",children:[e.logoUri&&!n?l.jsx("img",{alt:"",className:"size-6 shrink-0",src:e.logoUri}):null,l.jsx("span",{className:"border border-border px-2 py-0.5 text-label-12 text-foreground-secondary",children:"Choose SVG"}),l.jsx("span",{className:"min-w-0 flex-1 truncate text-label-12 text-foreground-secondary",children:n||(e.logoUri?"Using on-chain logo":"No file selected")}),l.jsx("input",{accept:"image/svg+xml,.svg",className:"absolute inset-0 cursor-pointer opacity-0",name:"logo",onChange:c=>s(c.target.files?.[0]?.name??""),type:"file"})]})]})}function lt(e){return l.jsx(Ve,{children:e.loading?l.jsx($,{children:"Loading tokens…"}):e.error?l.jsx($,{children:e.error.message}):e.tokens.length===0?l.jsx($,{children:"No verified tokens yet."}):l.jsx("ul",{className:"divide-y divide-border",children:e.tokens.map(n=>l.jsx(ut,{chain:e.chain,token:n},n.address))})})}function ut(e){const{chain:n,token:s}=e,c=En.useMutation();function r(){confirm(`Remove ${s.name} (${s.symbol})? This can\'t be undone.`)&&c.mutate({address:s.address,chainId:n},{onError:t=>alert(t.message)})}return l.jsxs("li",{className:"flex items-center justify-between gap-4 px-5 py-2.5",children:[l.jsxs("div",{className:"flex min-w-0 items-center gap-4",children:[l.jsx(ft,{chainId:n,token:s}),l.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[l.jsxs("span",{className:"text-label-14 text-foreground",children:[s.name," ",l.jsx("span",{className:"text-foreground-secondary",children:s.symbol})]}),l.jsx(nn,{value:s.address})]})]}),l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsxs("a",{className:"flex items-center gap-1.5 text-label-12 text-foreground-secondary hover:text-foreground",href:`${tt[n]}/token/${s.address}`,rel:"noreferrer",target:"_blank",children:["Explorer",l.jsx($n,{className:"size-3"})]}),l.jsx(O.Icon,{className:"text-foreground-secondary hover:text-negative",disabled:c.isPending,onClick:r,size:"lg",title:"Remove token",variant:"plain",children:l.jsx(Tn,{})})]})]})}function dt(e){return`${e.slice(0,6)}…${e.slice(-6)}`}function nn(e){const{copy:n,notifying:s}=Sn();return l.jsxs("button",{"aria-label":"Copy address",className:"flex w-fit cursor-pointer items-center gap-1.5 text-label-12 text-foreground-secondary hover:text-foreground",onClick:()=>n(e.value),title:"Copy address",type:"button",children:[dt(e.value),s?l.jsx(qn,{className:"size-3"}):l.jsx(Rn,{className:"size-3"})]})}function ft(e){const{chainId:n,token:s}=e,[c,r]=N.useState(!1),t=s.logoUri??Cn({address:s.address,chainId:n});return c?l.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-secondary text-label-12 text-foreground-secondary",children:s.symbol.slice(0,2).toUpperCase()}):l.jsx("img",{alt:"",className:"size-8 shrink-0 rounded-full bg-secondary",onError:()=>r(!0),src:t})}export{Ct as component};\n', contentType: 'text/javascript; charset=utf-8', }, }